unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* remove GNU specific nm option from version script
@ 2011-08-30  9:20 Matthias Guedemann
  2011-08-30 11:04 ` Patch formatting: (was: remove GNU specific nm option from version script) Tomi Ollila
  0 siblings, 1 reply; 12+ messages in thread
From: Matthias Guedemann @ 2011-08-30  9:20 UTC (permalink / raw)
  To: notmuch

hi all,

I compiled notmuch on OpenBSD and stumbled onto the usage of the GNU
specific option "--defined" to nm.

I replaced this with calling nm without options and then filtering the
output with grep

tried on OpenBSD 5.0 -current and Debian on current git head

regards
Matthias



diff --git a/lib/gen-version-script.sh b/lib/gen-version-script.sh
index ec80196..f71afec 100644
--- a/lib/gen-version-script.sh
+++ b/lib/gen-version-script.sh
@@ -12,7 +12,7 @@ HEADER=$1
 shift
 
 printf '{\nglobal:\n'
-nm --defined $* | awk '$3 ~ "Xapian.*Error" {print $3}' | sort | uniq | \
+nm $* | grep "^[0-f][0-f]*" | awk '$3 ~ "Xapian.*Error" {print $3}' | sort | uniq | \
 while read sym; do
     demangled=$(c++filt $sym)
     case $demangled in

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-09-05 10:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-30  9:20 remove GNU specific nm option from version script Matthias Guedemann
2011-08-30 11:04 ` Patch formatting: (was: remove GNU specific nm option from version script) Tomi Ollila
2011-08-30 11:24   ` David Bremner
2011-08-30 13:04     ` Patch formatting: Tomi Ollila
2011-08-30 20:05       ` Tomi Ollila
2011-08-30 20:33         ` David Bremner
2011-08-31  1:22           ` Austin Clements
2011-08-31  1:33             ` Jameson Graef Rollins
2011-08-31  5:22               ` Tomi Ollila
2011-08-31  5:49                 ` Tomi Ollila
2011-08-30 12:46   ` removed "--defined" option from nm in gen-version-script.sh replaced functionality with grep Matthias Guedemann
2011-09-05 10:53     ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).