svn commit: r345834 - head/devel/meta-cvs
Pietro Cerutti
gahr at FreeBSD.org
Mon Feb 24 13:13:40 UTC 2014
Author: gahr
Date: Mon Feb 24 13:13:37 2014
New Revision: 345834
URL: http://svnweb.freebsd.org/changeset/ports/345834
QAT: https://qat.redports.org/buildarchive/r345834/
Log:
- Better way of finding out libc's real name
Obtained from: bapt, jlh
Modified:
head/devel/meta-cvs/Makefile
Modified: head/devel/meta-cvs/Makefile
==============================================================================
--- head/devel/meta-cvs/Makefile Mon Feb 24 13:13:31 2014 (r345833)
+++ head/devel/meta-cvs/Makefile Mon Feb 24 13:13:37 2014 (r345834)
@@ -31,15 +31,11 @@ PORTDOCS= *
.include <bsd.port.options.mk>
post-patch:
-# libc.so is now a symlink, see
+# libc.so is now a symlink, let's find out the real name of the libc
+# shared library. See:
# http://svnweb.freebsd.org/base/head/lib/libc/libc.ldscript?revision=251668&view=markup
- (if [ -h /usr/lib/libc.so ]; then \
- rep=libc.so; \
- else \
- rep=`${SED} -e '1d; s|^.*\(/lib/libc\.so\.[0-9]*\).*$$|\1|' /usr/lib/libc.so`; \
- fi; \
- ${REINPLACE_CMD} -e "s|libc.so.6|$$rep|" ${WRKSRC}/code/clisp-ffi.lisp)
-
+ rep=$$(${BASENAME} $$(${LDCONFIG} -r | ${AWK} '/libc.so/ { print $$3 }')); \
+ ${REINPLACE_CMD} -e "s|libc.so.6|$$rep|" ${WRKSRC}/code/clisp-ffi.lisp
${REINPLACE_CMD} -e '232s|make|${GMAKE}|g' ${WRKSRC}/configure
${REINPLACE_CMD} -e 's|type -P|which|g;s|$$(prefix)/lib|${DATADIR}|g' ${WRKSRC}/Makefile
More information about the svn-ports-all
mailing list