Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: makemandb errors on 6.0_BETA
On Thu, May 24, 2012 at 01:54:14PM +0200, Joerg Sonnenberger wrote:
> Most Linux distributions are automatically replacing .so usage with
> symlinks for the reasons discussed elsewhere already, so they don't see
> this. As such, I'm more inclined to lean on the CS part :)
Ok, so here are two possible solutions for neon in particular. Both work.
1: replace .so-only files with symlinks before installation;
disadvantage: install copies the linked files instead of the symlinks.
2: replace .so-only files with symlinks after installation;
disadvantage: for people not using DESTDIR, it might replace other
package's symlink-only files.
I prefer 2.
Should I commit one of them? Which? If not, why not and how else
should it be done?
Thomas
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/neon/Makefile,v
retrieving revision 1.54
diff -u -r1.54 Makefile
--- Makefile 15 Dec 2011 15:19:35 -0000 1.54
+++ Makefile 24 May 2012 12:36:40 -0000
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.54 2011/12/15 15:19:35 drochner Exp $
DISTNAME= neon-0.29.6
+PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.webdav.org/neon/
@@ -24,6 +25,16 @@
#selftest needs perl
USE_TOOLS+= perl
+post-build:
+ cd ${WRKSRC}/doc/man && \
+ for i in *3; do \
+ if grep -q '^.so ' $$i >/dev/null; then \
+ new=`sed -e "s/.so //" $$i`; \
+ rm $$i; \
+ ln -s $$new $$i; \
+ fi; \
+ done
+
.include "options.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/neon/Makefile,v
retrieving revision 1.54
diff -u -r1.54 Makefile
--- Makefile 15 Dec 2011 15:19:35 -0000 1.54
+++ Makefile 24 May 2012 12:38:09 -0000
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.54 2011/12/15 15:19:35 drochner Exp $
DISTNAME= neon-0.29.6
+PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.webdav.org/neon/
@@ -24,6 +25,16 @@
#selftest needs perl
USE_TOOLS+= perl
+post-install:
+ cd ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3 && \
+ for i in ne_*3; do \
+ if grep -q '^.so ' $$i >/dev/null; then \
+ new=`sed -e "s/.so //" $$i`; \
+ rm $$i; \
+ ln -s $$new $$i; \
+ fi; \
+ done
+
.include "options.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index