Opened 4 years ago

Closed 4 years ago

#61378 closed defect (fixed)

notmuch @0.31_1: contains version file

Reported by: chrstphrchvz (Christopher Chavez) Owned by: rseichter (Ralph Seichter)
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc:
Port: notmuch

Description

notmuch contains a file named "version" that takes precedence over the <version> header from libc++, causing the build to fail at least on 10.6, with errors such as:

In file included from lib/database.cc:21:
In file included from ./lib/database-private.h:33:
In file included from ./lib/notmuch-private.h:36:
In file included from /opt/local/libexec/llvm-9.0/bin/../include/c++/v1/stdlib.h:100:
In file included from /opt/local/libexec/llvm-9.0/bin/../include/c++/v1/math.h:337:
In file included from /opt/local/libexec/llvm-9.0/bin/../include/c++/v1/type_traits:417:
In file included from /opt/local/libexec/llvm-9.0/bin/../include/c++/v1/cstddef:37:
./version:1:1: error: expected unqualified-id
0.31
^
In file included from lib/database.cc:21:
In file included from ./lib/database-private.h:33:
In file included from ./lib/notmuch-private.h:36:
In file included from /opt/local/libexec/llvm-9.0/bin/../include/c++/v1/stdlib.h:100:
In file included from /opt/local/libexec/llvm-9.0/bin/../include/c++/v1/math.h:337:
In file included from /opt/local/libexec/llvm-9.0/bin/../include/c++/v1/type_traits:417:
/opt/local/libexec/llvm-9.0/bin/../include/c++/v1/cstddef:49:9: error: no member named 'ptrdiff_t' in the global namespace
using ::ptrdiff_t;
      ~~^

The workaround used in other affected ports (example: #59575) is to rename the "version" file to "version.txt" and adjust any usage accordingly.

Change History (2)

comment:1 Changed 4 years ago by rseichter (Ralph Seichter)

Now that's interesting. Various people have been wondering about these build failures for quite a while. I have created a pull request: https://github.com/macports/macports-ports/pull/8970

comment:2 Changed 4 years ago by rseichter (Ralph Seichter)

Resolution: fixed
Status: assignedclosed

In 58e8f334048f66198660619dfdfc9cebc0d71f01/macports-ports (master):

notmuch: Rename version files

The upstream distribution archive contains two files named 'version'
which cause compile errors on old OS X versions like 10.6. The files
are now renamed to 'version.txt' and the build files are patched
accordingly.

Closes: #61378
Signed-off-by: Ralph Seichter <macports@…>

Note: See TracTickets for help on using tickets.