ports/123042: [PATCH] Fix USE_LDCONFIG when used with PREFIX
dirk.meyer at dinoex.sub.org
dirk.meyer at dinoex.sub.org
Thu Apr 24 04:40:05 UTC 2008
>Number: 123042
>Category: ports
>Synopsis: [PATCH] Fix USE_LDCONFIG when used with PREFIX
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Apr 24 04:40:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Dirk Meyer
>Release: FreeBSD 7.0-STABLE
>Organization:
privat
>Environment:
bsd.port.mk
>Description:
A ports that needs shared libs in different PREFIX
needs his directory added to ldconfig.
USE_LDCONFIG=path fails in 3 ways.
1. It references libdata/ldconfig partly in LOCALBASE
and partly in PREFIX.
2. The libdata/ldconfig does not exist is USE_MTREE=no
is set.
3. On startup only the files in LOCALBASE/libdata/ldconfig
are executed.
>How-To-Repeat:
sed -i .orig -e 's|USE_GNUSTEP_LDCONFIG|USE_LDCONFIG|' \
/usr/ports/lang/gnustep-base/Makefile
/usr/ports/lang/gnustep-base# make package
[...]
===> Installing ldconfig configuration file
cannot create /usr/local/GNUstep/libdata/ldconfig/gnustep-base: No such file or directory
*** Error code 2
[...]
>Fix:
USE_LDCONFIG should place the files in LOCALBASE.
Tested by a full run of GNUstep ports,
where bsd.gnustep.mk was modified to set:
USE_LDCONFIG+= ${i}
instead of INSTALLS_SHLIB.
RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.592
diff -u -r1.592 bsd.port.mk
--- bsd.port.mk 14 Apr 2008 16:46:41 -0000 1.592
+++ bsd.port.mk 23 Apr 2008 11:29:36 -0000
@@ -3849,8 +3849,8 @@
@${MKDIR} ${PREFIX}/${LDCONFIG_DIR}
.endif
@${ECHO_CMD} ${USE_LDCONFIG} | ${TR} ' ' '\n' \
- > ${PREFIX}/${LDCONFIG_DIR}/${UNIQUENAME}
- @${ECHO_CMD} "@cwd" >> ${TMPPLIST}
+ > ${LOCALBASE}/${LDCONFIG_DIR}/${UNIQUENAME}
+ @${ECHO_CMD} "@cwd ${LOCALBASE}" >> ${TMPPLIST}
@${ECHO_CMD} ${LDCONFIG_DIR}/${UNIQUENAME} >> ${TMPPLIST}
.if defined(NO_LDCONFIG_MTREE)
@${ECHO_CMD} "@unexec rmdir ${LDCONFIG_DIR} >/dev/null 2>&1 || true" >> ${TMPPLIST}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list