Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74105 - building scrollkeeper 0.3.14 with collision-protect feature fails
Summary: building scrollkeeper 0.3.14 with collision-protect feature fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-11 08:28 UTC by gentoo
Modified: 2005-05-29 20:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
scrollkeeper-norebuilddb.patch (norebuilddb.patch,469 bytes, patch)
2005-04-25 23:31 UTC, Harald van Dijk (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo 2004-12-11 08:28:35 UTC
It would appear that building scrollkeeper 0.3.14 generates /var/log/scrollkeeper.log.  When FEATURES includes collision-detect, it fails to install because of this existing file.
If I manually delete the log and attempt to merge sk, it complains again.
(Note: I'm about to turn off collison-protect for this build... that should work.)

>>> Completed installing ito /var/tmp/portage/scrollkeeper-0.3.14/image/
* checking 106 files for package collisions
existing file /var/log/scrollkeeper.log is not owned by this package
...
package app-text/scollkeeper-0.3.14 NOT merged

Reproducible: Always
Steps to Reproduce:
1. add collison-detect to FEATURES
2. emerge scrollkeeper

Actual Results:  
package not merge, collision detected

Expected Results:  
possibly, the ebuild should claim ownership of /var/log/scrollkeeper.log so that collision-detect does 
not complain.

Gentoo Base System version 1.4.16
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9 i686)
===============================================================
==
System uname: 2.6.9 i686 Intel(R) Celeron(R) CPU 2.53GHz
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /
usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks sandbox sfperms userpriv 
usersandbox"
GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo/ ftp://sunsite.ualberta.ca/pub/unix/Linux/
gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb bitmap-fonts crypt cups encode f77 fam foomaticdb fortran gdbm gif 
gnome gpm gtk gtk2 imlib jpeg libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl 
oss pam pdflib perl png python qt quicktime readline sdl spell ssl svga tcpd truetype x86 xml2 xmms 
xv zlib"
Comment 1 ptitoine 2004-12-16 10:43:30 UTC
Same problem

make[3]: Entering directory `/var/tmp/portage/scrollkeeper-0.3.14/work/scrollkeeper-0.3.14'
rm -rf /var/tmp/portage/scrollkeeper-0.3.14/image//var/lib/scrollkeeper
/bin/sh ./mkinstalldirs /var/tmp/portage/scrollkeeper-0.3.14/image//var/lib/scrollkeeper
mkdir -p -- /var/tmp/portage/scrollkeeper-0.3.14/image//var/lib/scrollkeeper
/bin/sh ./mkinstalldirs /var/tmp/portage/scrollkeeper-0.3.14/image//var/log
mkdir -p -- /var/tmp/portage/scrollkeeper-0.3.14/image//var/log
PATH="/usr/lib/ccache/bin:/sbin:/usr/sbin:/usr/lib/portage/bin:/bin:/usr/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.3:/opt/ati/bin:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin:/var/tmp/portage/scrollkeeper-0.3.14/image//usr/bin" ; \
        echo "`date +\"%b %d %X\"` Installing ScrollKeeper `scrollkeeper-config --version`..." >> /var/tmp/portage/scrollkeeper-0.3.14/image//var/log/scrollkeeper.log
/bin/sh: /usr/bin/scrollkeeper-config: cannot execute binary file
PATH="/usr/lib/ccache/bin:/sbin:/usr/sbin:/usr/lib/portage/bin:/bin:/usr/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.3:/opt/ati/bin:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin:/var/tmp/portage/scrollkeeper-0.3.14/image//usr/bin" ; \
        /var/tmp/portage/scrollkeeper-0.3.14/image//usr/bin/scrollkeeper-rebuilddb -q -p /var/tmp/portage/scrollkeeper-0.3.14/image//var/lib/scrollkeeper
/bin/sh: /var/tmp/portage/scrollkeeper-0.3.14/image//usr/bin/scrollkeeper-rebuilddb: Aucun fichier ou r
Comment 2 ptitoine 2004-12-16 10:43:30 UTC
Same problem

make[3]: Entering directory `/var/tmp/portage/scrollkeeper-0.3.14/work/scrollkeeper-0.3.14'
rm -rf /var/tmp/portage/scrollkeeper-0.3.14/image//var/lib/scrollkeeper
/bin/sh ./mkinstalldirs /var/tmp/portage/scrollkeeper-0.3.14/image//var/lib/scrollkeeper
mkdir -p -- /var/tmp/portage/scrollkeeper-0.3.14/image//var/lib/scrollkeeper
/bin/sh ./mkinstalldirs /var/tmp/portage/scrollkeeper-0.3.14/image//var/log
mkdir -p -- /var/tmp/portage/scrollkeeper-0.3.14/image//var/log
PATH="/usr/lib/ccache/bin:/sbin:/usr/sbin:/usr/lib/portage/bin:/bin:/usr/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.3:/opt/ati/bin:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin:/var/tmp/portage/scrollkeeper-0.3.14/image//usr/bin" ; \
        echo "`date +\"%b %d %X\"` Installing ScrollKeeper `scrollkeeper-config --version`..." >> /var/tmp/portage/scrollkeeper-0.3.14/image//var/log/scrollkeeper.log
/bin/sh: /usr/bin/scrollkeeper-config: cannot execute binary file
PATH="/usr/lib/ccache/bin:/sbin:/usr/sbin:/usr/lib/portage/bin:/bin:/usr/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.3:/opt/ati/bin:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin:/var/tmp/portage/scrollkeeper-0.3.14/image//usr/bin" ; \
        /var/tmp/portage/scrollkeeper-0.3.14/image//usr/bin/scrollkeeper-rebuilddb -q -p /var/tmp/portage/scrollkeeper-0.3.14/image//var/lib/scrollkeeper
/bin/sh: /var/tmp/portage/scrollkeeper-0.3.14/image//usr/bin/scrollkeeper-rebuilddb: Aucun fichier ou répertoire de ce type
make[3]: *** [install-data-hook] Erreur 127
make[3]: Leaving directory `/var/tmp/portage/scrollkeeper-0.3.14/work/scrollkeeper-0.3.14'
make[2]: *** [install-data-am] Erreur 2
make[2]: Leaving directory `/var/tmp/portage/scrollkeeper-0.3.14/work/scrollkeeper-0.3.14'
make[1]: *** [install-am] Erreur 2
make[1]: Leaving directory `/var/tmp/portage/scrollkeeper-0.3.14/work/scrollkeeper-0.3.14'
make: *** [install-recursive] Erreur 1


=> emerge info <=


T40p ptitoine # emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-nitro4 i686)
=================================================================
System uname: 2.6.9-nitro4 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.6.7
Autoconf: sys-devel/autoconf-2.59-r6,sys-devel/autoconf-2.13
Automake: sys-devel/automake-1.8.5-r1,sys-devel/automake-1.8.5-r2,sys-devel/automake-1.4_p6,sys-devel/automake-1.6.3,sys-devel/automake-1.7.9,sys-devel/automake-1.9.3
Binutils: sys-devel/binutils-2.15.92.0.2-r1,sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium-m -mtune=pentium-m -pipe -ftracer -ffast-math"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium-m -mtune=pentium-m -pipe -ftracer -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://194.117.143.71"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts crypt cups encode esd f77 fam flac foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imagemagick imlib java jpeg libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl spell ssl svga tcltk tcpd tiff truetype x86 xml2 xmms xv zlib"
Comment 3 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-04-08 21:12:36 UTC
I cannot reproduce the bug. What does `equery belongs /var/log/scrollkeeper.log`
say? It should be owned by app-text/scrollkeeper (obviously). If not, did you
install scrollkeeper by normal emerge or use GRP from installation CD or something?
Comment 4 gentoo 2005-04-09 08:41:29 UTC
Actually, I no longer have this gentoo install so I cannot help you further in debugging it.

It's possible that the original /var/log/scrollkeeper.log was left over from when I installed the machine, but otherwise, all updates were done by normal emerge.
Comment 5 Harald van Dijk (RETIRED) gentoo-dev 2005-04-25 23:18:02 UTC
I just ran into this myself. I didn't yet have scrollkeeper installed, and /var/log/scrollkeeper.log didn't yet exist on my system. The file appears to be created during make install, where sandbox isn't helping, because that file is in SANDBOX_WRITE.
Comment 6 Harald van Dijk (RETIRED) gentoo-dev 2005-04-25 23:31:19 UTC
Created attachment 57241 [details, diff]
scrollkeeper-norebuilddb.patch

The log is created during the call to scrollkeeper-rebuilddb. Since this is
called during pkg_postinst anyway, it shouldn't be necessary to call it during
make install. I managed to install it with collision-protect with this patch
and haven't noticed any problems.
Comment 7 Leonardo Boshell (RETIRED) gentoo-dev 2005-05-29 20:06:59 UTC
Fixed now.

Thanks truedfx.