unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Matthias Guedemann <matthias.guedemann@googlemail.com>
To: notmuch@notmuchmail.org
Subject: [PATCH] adds getline and getdelim to notmuch.sym if not provided by OS
Date: Tue, 30 Aug 2011 14:56:50 +0200	[thread overview]
Message-ID: <87k49v12i5.fsf@pc44es141.cs.uni-magdeburg.de> (raw)


not hopefully a correctly formatted patch for:

OpenBSD does not provide the getline function. This is correctly
detected in the configure script, but the version script only emits the
Xapian*Error and notmuch_... symbols leading to undefined symbol errors
for getline and getdelim.

Therefore this adds two lines to gen-version-script.sh to also emit
getline and getdelim if needed, tested on OpenBSD 5.0-current and Debian
on current git head.

---
 lib/gen-version-script.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/gen-version-script.sh b/lib/gen-version-script.sh
index f71afec..3ee9c69 100644
--- a/lib/gen-version-script.sh
+++ b/lib/gen-version-script.sh
@@ -23,5 +23,7 @@ while read sym; do
            ;;
     esac
 done
+nm $* | grep "^[0-f][0-f]*.*T" | awk '$3 ~ "getline" {print $3 ";"}'
+nm $* | grep "^[0-f][0-f]*.*T" | awk '$3 ~ "getdelim" {print $3 ";"}'
 sed  -n 's/^[[:space:]]*\(notmuch_[a-z_]*\)[[:space:]]*(.*/ \1;/p' $HEADER
 printf "local: *;\n};\n"
-- 
1.7.5.4

             reply	other threads:[~2011-08-30 12:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-30 12:56 Matthias Guedemann [this message]
2011-09-05  3:28 ` [PATCH] adds getline and getdelim to notmuch.sym if not provided by OS David Bremner
2011-09-05  7:43   ` matthias.guedemann
2011-09-05 10:51     ` David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k49v12i5.fsf@pc44es141.cs.uni-magdeburg.de \
    --to=matthias.guedemann@googlemail.com \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).