pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/40035: Installation of libraries using bsd.lib.mk is broken if SHLIB_MINOR is undefined
>Number: 40035
>Category: pkg
>Synopsis: Installation of libraries using bsd.lib.mk is broken if
>SHLIB_MINOR is undefined
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 26 14:35:00 +0000 2008
>Originator: Aleksej Saushev
>Release: FreeBSD 6.3-STABLE i386
>Organization:
>Environment:
>Description:
Installation of shared objects is broken if SHLIB_MINOR is undefined,
the problem doesn't exists on NetBSD 4.99.73, it occurs on FreeBSD 6.3
to me, when using current pkgsrc's bootstrap-mk-files-20080808.
>How-To-Repeat:
cat > Makefile << EOF
LIB= test
SHLIB_MAJOR= 0
#SHLIB_MINOR= 0
SRCS= test.c
LIBDIR= /
LINTLIBDIR= /
LIBOWN!= id -un
LIBGRP!= id -gn
.include <bsd.lib.mk>
EOF
cat > test.c << EOF
static const char string[] = "Hello world!";
EOF
make && make install DESTDIR=/tmp
Note that it fails with:
building shared test library (version 0)
ld -shared -soname libtest.so.0 -o libtest.so.0 --whole-archive
libtest_pic.a --no-whole-archive
ln -sf libtest.so.0 libtest.so.0.tmp
mv -f libtest.so.0.tmp libtest.so.0
ln -sf libtest.so.0 libtest.so.tmp
mv -f libtest.so.tmp libtest.so
install -c -o asau -g wheel -m 600 libtest.a /tmp//libtest.a
ranlib -t /tmp//libtest.a
chmod 444 /tmp//libtest.a
install -c -o asau -g wheel -m 600 libtest_p.a /tmp//libtest_p.a
ranlib -t /tmp//libtest_p.a
chmod 444 /tmp//libtest_p.a
install -c -o asau -g wheel -m 600 libtest_pic.a /tmp//libtest_pic.a
ranlib -t /tmp//libtest_pic.a
chmod 444 /tmp//libtest_pic.a
install -c -o asau -g wheel -m 444 libtest.so.0 /tmp//libtest.so.0
install: libtest.so.0: Too many levels of symbolic links
*** Error code 71
>Fix:
Update pkgtools/bootstrap-mk-files?
Home |
Main Index |
Thread Index |
Old Index