Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 317367

Summary: sys-libs/tdb fails to install due to /usr/bin/install: cannot stat `manpages/*.8': No such file or directory(possible app-text/docbook-xml-dtd missing dependency)
Product: Gentoo Linux Reporter: J.C. Wren <jcwren>
Component: New packagesAssignee: Gentoo's SAMBA Team <samba>
Status: RESOLVED FIXED    
Severity: normal CC: napalmllama, pchrist
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description J.C. Wren 2010-04-26 20:14:55 UTC
When attempting to emerge sys-libs/tdb, the ebuild dies during the installation process, claiming that it cannot stat 'manpages/*.8'

Reproducible: Always

Steps to Reproduce:
1.emerge -uDN world -q
2.
3.

Actual Results:  
# emerge -uDN world -q
>>> Verifying ebuild manifests
>>> Starting parallel fetch
>>> Emerging (1 of 2) sys-libs/tdb-1.2.1
>>> Failed to emerge sys-libs/tdb-1.2.1, Log file:
>>>  '/var/tmp/portage/sys-libs/tdb-1.2.1/temp/build.log'
[snip]
config.status: creating Makefile
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating tdb.pc
config.status: creating include/config.h
config.status: executing rm-stdint.h commands
config.status: executing rm-stdbool.h commands
tdb will be compiled with flags:
  CFLAGS = -I./include -Iinclude  -O2 -march=pentium3 -pipe -fomit-frame-pointer -I./libreplace
  CPPFLAGS = -I./include -Iinclude 
  LDFLAGS = -Wl,-O1
  LIBS = 
Compiling tools/tdbtool.c
Compiling common/tdb.c
Compiling common/dump.c
Compiling common/transaction.c
Compiling common/error.c
Compiling common/traverse.c
Compiling common/freelist.c
Compiling common/freelistcheck.c
Compiling common/io.c
Compiling common/lock.c
Compiling common/open.c
Compiling common/check.c
Compiling libreplace/replace.c
Compiling libreplace/snprintf.c
Compiling libreplace/getpass.c
Compiling tools/tdbdump.c
Compiling tools/tdbbackup.c
i686-pc-linux-gnu-gcc -shared -Wl,-Bsymbolic  -Wl,-O1 -o libtdb.so.1.2.1 common/tdb.o common/dump.o common/transaction.o common/error.o common/traverse.o common/freelist.o common/freelistcheck.o common/io.o common/lock.o common/open.o common/check.o ./libreplace/replace.o ./libreplace/snprintf.o ./libreplace/getpass.o -Wl,--version-script tdb.exports -Wl,-soname=libtdb.so.1
i686-pc-linux-gnu-gcc -fPIC -c ./pytdb.c -I./include -Iinclude  -O2 -march=pentium3 -pipe -fomit-frame-pointer -I./libreplace `/usr/bin/python-config --cflags`
test -z "/usr/bin/xsltproc" || /usr/bin/xsltproc --nonet -o manpages/tdbbackup.8 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl manpages/tdbbackup.8.xml
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
make: [manpages/tdbbackup.8] Error 4 (ignored)
test -z "/usr/bin/xsltproc" || /usr/bin/xsltproc --nonet -o manpages/tdbdump.8 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl manpages/tdbdump.8.xml
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
make: [manpages/tdbdump.8] Error 4 (ignored)
test -z "/usr/bin/xsltproc" || /usr/bin/xsltproc --nonet -o manpages/tdbtool.8 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl manpages/tdbtool.8.xml
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
make: [manpages/tdbtool.8] Error 4 (ignored)
ar -rv libtdb.a common/tdb.o common/dump.o common/transaction.o common/error.o common/traverse.o common/freelist.o common/freelistcheck.o common/io.o common/lock.o common/open.o common/check.o ./libreplace/replace.o ./libreplace/snprintf.o ./libreplace/getpass.o
In file included from /usr/include/python2.6/Python.h:8,
                 from ./pytdb.c:30:
/usr/include/python2.6/pyconfig.h:1067:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/stdio.h:28,
                 from ./libreplace/replace.h:39,
                 from ./pytdb.c:27:
/usr/include/features.h:158:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/Python.h:8,
                 from ./pytdb.c:30:
/usr/include/python2.6/pyconfig.h:1079:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/stdio.h:28,
                 from ./libreplace/replace.h:39,
                 from ./pytdb.c:27:
/usr/include/features.h:160:1: warning: this is the location of the previous definitionar: creating libtdb.a
a - common/tdb.o
a - common/dump.o
a - common/transaction.o
a - common/error.o
a - common/traverse.o
a - common/freelist.o
a - common/freelistcheck.o
a - common/io.o
a - common/lock.o
a - common/open.o
a - common/check.o
a - ./libreplace/replace.o
a - ./libreplace/snprintf.o
a - ./libreplace/getpass.o

ln -fs libtdb.so.1.2.1 libtdb.so
i686-pc-linux-gnu-gcc -I./include -Iinclude  -O2 -march=pentium3 -pipe -fomit-frame-pointer -I./libreplace -Wl,-O1 -o bin/tdbtool tools/tdbtool.o -L. -ltdb
i686-pc-linux-gnu-gcc -I./include -Iinclude  -O2 -march=pentium3 -pipe -fomit-frame-pointer -I./libreplace -Wl,-O1 -o bin/tdbdump tools/tdbdump.o -L. -ltdb
i686-pc-linux-gnu-gcc -I./include -Iinclude  -O2 -march=pentium3 -pipe -fomit-frame-pointer -I./libreplace -Wl,-O1 -o bin/tdbbackup tools/tdbbackup.o -L. -ltdb
i686-pc-linux-gnu-gcc -shared -Wl,-Bsymbolic  -o tdb.so pytdb.o -L. -ltdb `/usr/bin/python-config --ldflags`
/usr/bin/install -c -d ./sharedbuild/lib
/usr/bin/install -c -m 644 libtdb.a ./sharedbuild/lib
/usr/bin/install -c -m 755 libtdb.so.1.2.1 ./sharedbuild/lib
ln -sf libtdb.so.1.2.1 ./sharedbuild/lib/libtdb.so.1
ln -sf libtdb.so.1.2.1 ./sharedbuild/lib/libtdb.so
/usr/bin/install -c -d ./sharedbuild/include
/usr/bin/install -c -m 644 ./include/tdb.h ./sharedbuild/include
mkdir -p /var/tmp/portage/sys-libs/tdb-1.2.1/image//usr/bin
mkdir -p /var/tmp/portage/sys-libs/tdb-1.2.1/image//usr/include
mkdir -p /var/tmp/portage/sys-libs/tdb-1.2.1/image//usr/lib 
mkdir -p /var/tmp/portage/sys-libs/tdb-1.2.1/image//usr/lib/pkgconfig
tdb will be compiled with flags:
  CFLAGS = -I./include -Iinclude  -O2 -march=pentium3 -pipe -fomit-frame-pointer -I./libreplace
  CPPFLAGS = -I./include -Iinclude 
  LDFLAGS = -Wl,-O1
  LIBS = test -z "/usr/bin/xsltproc" || /usr/bin/xsltproc --nonet -o manpages/tdbtool.8 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl manpages/tdbtool.8.xml
error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
make: [manpages/tdbdump.8] Error 4 (ignored)
cp ./include/tdb.h /var/tmp/portage/sys-libs/tdb-1.2.1/image//usr/include
mkdir -p /var/tmp/portage/sys-libs/tdb-1.2.1/image/`/usr/bin/python2.6 -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(1, prefix='/usr')"`
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
make: [manpages/tdbtool.8] Error 4 (ignored)
/usr/bin/install -c -d /var/tmp/portage/sys-libs/tdb-1.2.1/image//usr/share/man/man8
for I in manpages/*.8; do \
                /usr/bin/install -c -m 644 $I /var/tmp/portage/sys-libs/tdb-1.2.1/image//usr/share/man/man8; \
        done
/usr/bin/install: cannot stat `manpages/*.8': No such file or directory
make: *** [installdocs] Error 1
make: *** Waiting for unfinished jobs....
cp tdb.so /var/tmp/portage/sys-libs/tdb-1.2.1/image/`/usr/bin/python2.6 -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(1, prefix='/usr')"`
 * ERROR: sys-libs/tdb-1.2.1 failed:
 *   emake install failed
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_install
 *   environment, line 4540:  Called die
 * The specific snippet of code:
 *       emake install DESTDIR="${D}" || die "emake install failed";
 * 
 * If you need support, post the output of 'emerge --info =sys-libs/tdb-1.2.1',
 * the complete build log and the output of 'emerge -pqv =sys-libs/tdb-1.2.1'.
 * The complete build log is located at '/var/tmp/portage/sys-libs/tdb-1.2.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/tdb-1.2.1/temp/environment'.
 * S: '/var/tmp/portage/sys-libs/tdb-1.2.1/work/tdb-1.2.1'

 * Messages for package sys-libs/tdb-1.2.1:

 * ERROR: sys-libs/tdb-1.2.1 failed:
 *   emake install failed
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_install
 *   environment, line 4540:  Called die
 * The specific snippet of code:
 *       emake install DESTDIR="${D}" || die "emake install failed";
 * 
 * If you need support, post the output of 'emerge --info =sys-libs/tdb-1.2.1',
 * the complete build log and the output of 'emerge -pqv =sys-libs/tdb-1.2.1'.
 * The complete build log is located at '/var/tmp/portage/sys-libs/tdb-1.2.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/tdb-1.2.1/temp/environment'.
 * S: '/var/tmp/portage/sys-libs/tdb-1.2.1/work/tdb-1.2.1'
'

 * Messages for package sys-libs/tdb-1.2.1:

 * ERROR: sys-libs/tdb-1.2.1 failed:
 *   emake install failed
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_install
 *   environment, line 4540:  Called die
 * The specific snippet of code:
 *       emake install DESTDIR="${D}" || die "emake install failed";
 * 
 * If you need support, post the output of 'emerge --info =sys-libs/tdb-1.2.1',
 * the complete build log and the output of 'emerge -pqv =sys-libs/tdb-1.2.1'.
 * The complete build log is located at '/var/tmp/portage/sys-libs/tdb-1.2.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/tdb-1.2.1/temp/environment'.
 * S: '/var/tmp/portage/sys-libs/tdb-1.2.1/work/tdb-1.2.1'


Expected Results:  
sys-libs/tdb to be emerged :)

# emerge --info =sys-libs/tdb-1.2.1
Portage 2.1.8.3 (default/linux/x86/10.0/server, gcc-4.3.3, glibc-2.11.1-r0, 2.6.30-gentoo-r4 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.30-gentoo-r4-i686-Pentium_III_-Coppermine-with-gentoo-2.0.1
Timestamp of tree: Mon, 26 Apr 2010 13:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p5
dev-lang/python:     2.4.4-r4, 2.5.4-r2, 2.6.5-r1, 3.1.2-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.1.2, 4.2.4, 4.3.3-r2, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.mirrors.pair.com/ http://mirror.espri.arizona.edu/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cli cracklib curl cxx dri gd gdbm iconv imagemagick jpeg modules mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl png python readline reflection server session snmp spl ssl subversion svnserve sysfs tcpd truetype unicode webdav x86 xml zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 J.C. Wren 2010-04-26 20:16:31 UTC
Output from 'emerge -uDN world -p'

# emerge -uDN world -p

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] sys-libs/tdb-1.2.1  USE="python -static-libs -tdbtest -tools" 
[ebuild     U ] net-fs/samba-3.5.2 [3.2.13-r2] USE="client%* netapi%* server%* smbclient%* -addns% -aio% -avahi% -cluster% -debug% -ldb% -quota% -smbsharemodes%" 
[blocks b     ] <net-fs/samba-3.3 ("<net-fs/samba-3.3" is blocking sys-libs/tdb-1.2.1)
Comment 2 will3b 2010-05-01 14:45:38 UTC
I think sys-libs/tdb should depend on app-text/docbook-xml-dtd-4.2

at least, in my tests, it builds just fine if you have this version installed and does not without it : I had versions app-text/docbook-xml-dtd-4.1.2-r6 and app-text/docbook-xml-dtd-4.4-r1, and could not build tdb until I installed version 4.2

Regards


Comment 3 J.C. Wren 2010-05-01 17:57:34 UTC
That seemed to do it, although I used docbook-xml-dtd-4.5-r1.  Thanks!
Comment 4 John Hardin 2010-05-30 22:56:54 UTC
That did not fix it for me. There may also be corruption or obsolete data in your XML catalog files. What did fix it for me is this:

1. Change to /etc/xml

2. Back up the "catalog" and "docbook" files and delete them. (One good way to do this is: "mkdir RCS; ci -m-. -t-. catalog docbook" - then you have started a revision history of the files)

3. Run "build-docbook-catalog".

Apparently my XML config files had references to prehistoric XSL files that were no longer present, and running "build-docbook-catalog" without deleting the existing files first didn't drop the incorrect data.
Comment 5 Tom Lloyd 2011-02-19 16:42:42 UTC
I have the same problem, but neither of those suggestions helped.  I'm on uclibc/ppc/hardened.
Comment 6 Víctor Ostorga (RETIRED) gentoo-dev 2011-06-27 20:14:16 UTC
Can you please test if you can reproduce this bug with the new tdb-1.2.9  ?
Comment 7 Tom Lloyd 2011-06-28 19:53:31 UTC
tdb-1.2.9 appears to install correctly.  Thanks :)
Comment 8 Víctor Ostorga (RETIRED) gentoo-dev 2011-06-29 14:27:21 UTC
(In reply to comment #7)
> tdb-1.2.9 appears to install correctly.  Thanks :)