GNU bug report logs -
#54396
[PATCH] [WIP] gnu: python-notmuch2: Fix build.
Previous Next
Reported by: Tanguy Le Carrour <tanguy <at> bioneland.org>
Date: Tue, 15 Mar 2022 09:40:01 UTC
Severity: normal
Tags: patch
Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #26 received at 54396 <at> debbugs.gnu.org (full text, mbox):
Hi Liliana,
Quoting Liliana Marie Prikler (2022-03-16 12:28:49)
> Am Mittwoch, dem 16.03.2022 um 12:16 +0100 schrieb Tanguy Le Carrour:
> > The generated contains the expected paths:
> > […]
> >
> > … but they **always** reference `drv-0`, even if it's not the first
> > build!?
> > For instance:
> >
> > ```
> > $ cat /tmp/guix-build-python-notmuch2-0.35.drv-6/notmuch-
> > 0.35/bindings/python-
> > cffi/_notmuch_config.py
> > NOTMUCH_VERSION_FILE='/tmp/guix-build-python-notmuch2-0.35.drv-
> > 0/notmuch-0.35/version.txt'
> > NOTMUCH_INCLUDE_DIR='/tmp/guix-build-python-notmuch2-0.35.drv-
> > 0/notmuch-0.35/lib'
> > NOTMUCH_LIB_DIR='/tmp/guix-build-python-notmuch2-0.35.drv-0/notmuch-
> > 0.35/lib'
> > ```
> >
> > Does it matter?!
> Yes, it does matter. The cwd you reference will no longer exist when
> the bindings are installed. The purpose of generating the file is to
> fill it with useful, persisting data,
Oh, I thought it was only used at build time! Sorry, my mistake!
> i.e. (dirname (search-input-file inputs "notmuch.h")) and
> (dirname (search-input-file inputs "libnotmuch.so")).
Unfortunately, I couldn't make those work. :-(
So I ended up with a less "sexy" version:
```
"NOTMUCH_INCLUDE_DIR='" (assoc-ref inputs "notmuch") "/include/notmuch.h" "'\n"
"NOTMUCH_LIB_DIR='" (assoc-ref inputs "notmuch") "/lib/libnotmuch.so" "'"
```
> As for the version file, that should probably be
> set to an error value such as None or NotImplemented or even unset. It
> does not appear to be currently used and we don't install any such file
> for notmuch.
If I set `NOTMUCH_VERSION_FILE=''`, I get a "file does not exist" error
at build time. So I decided to set it to `/dev/null` instead. Or would
it be better if I patched `notmuch` to create the actual version file?!
Thanks again for your precious help!
--
Tanguy
This bug report was last modified 3 years and 58 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.