[Bug 290149] databases/ldb29 and ldb28 fail to install with non-default PREFIX
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 11 Oct 2025 15:40:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290149
Bug ID: 290149
Summary: databases/ldb29 and ldb28 fail to install with
non-default PREFIX
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: samba@FreeBSD.org
Reporter: mi@FreeBSD.org
Flags: maintainer-feedback?(samba@FreeBSD.org)
Assignee: samba@FreeBSD.org
My PREFIX (and LOCALBASE) here are both set to /opt, but everything is staged
under $STAGEDIR/usr/local anyway. And then the port's own strip invocation
fails to strip ldbedit:
...
+ install
/n/home/ports/databases/ldb29/work/stage/usr/local/share/man/man1/ldbdel.1
(from bin/default/man/ldbdel.1)
+ install
/n/home/ports/databases/ldb29/work/stage/usr/local/share/man/man1/ldbmodify.1
(from bin/default/man/ldbmodify.1)
+ install
/n/home/ports/databases/ldb29/work/stage/usr/local/share/man/man1/ldbedit.1
(from bin/default/man/ldbedit.1)
+ install
/n/home/ports/databases/ldb29/work/stage/usr/local/share/man/man1/ldbrename.1
(from bin/default/man/ldbrename.1)
Waf: Leaving directory
`/n/home/ports/databases/ldb29/work/ldb-2.9.2/bin/default'
'install' finished successfully (6.915s)
/usr/bin/strip /n/home/ports/databases/ldb29/work/stage/opt/bin/ldbedit
strip: open /n/home/ports/databases/ldb29/work/stage/opt/bin/ldbedit failed: No
such file or directory
*** Error code 1
Adding an explicit --prefix argument to CONFIGURE_ARGS solves the problem:
--- a/databases/ldb29/Makefile
+++ b/databases/ldb29/Makefile
@@ -28,6 +28,7 @@ CONFIGURE_LOG= ${BUILD_WRKSRC}/bin/config.log
PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig
CONFIGURE_ARGS+= --bundled-libraries=!talloc,!tevent,!tdb,!popt,!cmocka
\
--disable-rpath \
+ --prefix=${PREFIX} \
--with-modulesdir=${PREFIX}/lib/shared-modules \
--with-openldap=${LOCALBASE} \
--with-privatelibdir=${PREFIX}/lib/ldb \
--
You are receiving this mail because:
You are the assignee for the bug.