<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>74105</bug_id>
          
          <creation_ts>2004-12-11 08:28 0000</creation_ts>
          <short_desc>building scrollkeeper 0.3.14 with collision-protect feature fails</short_desc>
          <delta_ts>2005-05-29 20:06:59 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Unspecified</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gentoo@tresi.org</reporter>
          <assigned_to>text-markup@gentoo.org</assigned_to>
          <cc>gnome@gentoo.org</cc>
    
    <cc>truedfx@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>gentoo@tresi.org</who>
            <bug_when>2004-12-11 08:28:35 0000</bug_when>
            <thetext>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&apos;m about to turn off collison-protect for this build... that should work.)

&gt;&gt;&gt; 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=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O2 -march=i686&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /
usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -march=i686&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache collision-protect distlocks sandbox sfperms userpriv 
usersandbox&quot;
GENTOO_MIRRORS=&quot;http://mirror.tucdemonic.org/gentoo/ ftp://sunsite.ualberta.ca/pub/unix/Linux/
gentoo/&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ptitoine@ptitoine.net</who>
            <bug_when>2004-12-16 10:43:30 0000</bug_when>
            <thetext>Same problem

make[3]: Entering directory `/var/tmp/portage/scrollkeeper-0.3.14/work/scrollkeeper-0.3.14&apos;
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=&quot;/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&quot; ; \
        echo &quot;`date +\&quot;%b %d %X\&quot;` Installing ScrollKeeper `scrollkeeper-config --version`...&quot; &gt;&gt; /var/tmp/portage/scrollkeeper-0.3.14/image//var/log/scrollkeeper.log
/bin/sh: /usr/bin/scrollkeeper-config: cannot execute binary file
PATH=&quot;/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&quot; ; \
        /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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ptitoine@ptitoine.net</who>
            <bug_when>2004-12-16 10:43:30 0000</bug_when>
            <thetext>Same problem

make[3]: Entering directory `/var/tmp/portage/scrollkeeper-0.3.14/work/scrollkeeper-0.3.14&apos;
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=&quot;/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&quot; ; \
        echo &quot;`date +\&quot;%b %d %X\&quot;` Installing ScrollKeeper `scrollkeeper-config --version`...&quot; &gt;&gt; /var/tmp/portage/scrollkeeper-0.3.14/image//var/log/scrollkeeper.log
/bin/sh: /usr/bin/scrollkeeper-config: cannot execute binary file
PATH=&quot;/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&quot; ; \
        /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&apos;
make[2]: *** [install-data-am] Erreur 2
make[2]: Leaving directory `/var/tmp/portage/scrollkeeper-0.3.14/work/scrollkeeper-0.3.14&apos;
make[1]: *** [install-am] Erreur 2
make[1]: Leaving directory `/var/tmp/portage/scrollkeeper-0.3.14/work/scrollkeeper-0.3.14&apos;
make: *** [install-recursive] Erreur 1


=&gt; emerge info &lt;=


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=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O3 -march=pentium-m -mtune=pentium-m -pipe -ftracer -ffast-math&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O3 -march=pentium-m -mtune=pentium-m -pipe -ftracer -ffast-math&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache distlocks sandbox sfperms&quot;
GENTOO_MIRRORS=&quot;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&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>usata@gentoo.org</who>
            <bug_when>2005-04-08 21:12:36 0000</bug_when>
            <thetext>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?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@tresi.org</who>
            <bug_when>2005-04-09 08:41:29 0000</bug_when>
            <thetext>Actually, I no longer have this gentoo install so I cannot help you further in debugging it.

It&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>truedfx@gentoo.org</who>
            <bug_when>2005-04-25 23:18:02 0000</bug_when>
            <thetext>I just ran into this myself. I didn&apos;t yet have scrollkeeper installed, and /var/log/scrollkeeper.log didn&apos;t yet exist on my system. The file appears to be created during make install, where sandbox isn&apos;t helping, because that file is in SANDBOX_WRITE.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>truedfx@gentoo.org</who>
            <bug_when>2005-04-25 23:31:19 0000</bug_when>
            <thetext>Created an attachment (id=57241)
scrollkeeper-norebuilddb.patch

The log is created during the call to scrollkeeper-rebuilddb. Since this is
called during pkg_postinst anyway, it shouldn&apos;t be necessary to call it during
make install. I managed to install it with collision-protect with this patch
and haven&apos;t noticed any problems.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leonardop@gentoo.org</who>
            <bug_when>2005-05-29 20:06:59 0000</bug_when>
            <thetext>Fixed now.

Thanks truedfx.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>57241</attachid>
            <date>2005-04-25 23:31 0000</date>
            <desc>scrollkeeper-norebuilddb.patch</desc>
            <filename>norebuilddb.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIE1ha2VmaWxlLmluLm9yaWcKKysrIE1ha2VmaWxlLmluCkBAIC02NzUsOCArNjc1LDYgQEAK
IAkkKG1raW5zdGFsbGRpcnMpICQoREVTVERJUikkKGxvY2Fsc3RhdGVkaXIpL2xvZwogCVBBVEg9
IiQoUEFUSCk6JChERVNURElSKSQoYmluZGlyKSIgOyBcCiAJCWVjaG8gImBkYXRlICtcIiViICVk
ICVYXCJgIEluc3RhbGxpbmcgU2Nyb2xsS2VlcGVyIGBzY3JvbGxrZWVwZXItY29uZmlnIC0tdmVy
c2lvbmAuLi4iID4+ICQoREVTVERJUikkKGxvY2Fsc3RhdGVkaXIpL2xvZy9zY3JvbGxrZWVwZXIu
bG9nCi0JUEFUSD0iJChQQVRIKTokKERFU1RESVIpJChiaW5kaXIpIiA7IFwKLQkJJChERVNURElS
KSQoYmluZGlyKS9zY3JvbGxrZWVwZXItcmVidWlsZGRiIC1xIC1wICQoREVTVERJUikkKHNjcm9s
bGtlZXBlcl9sb2NhbHN0YXRlX2RpcikKIAogIyBSZW1vdmUgZ2VuZXJhdGVkIGZpbGVzCiB1bmlu
c3RhbGwtbG9jYWw6Cg==
</data>        

          </attachment>
    </bug>

</bugzilla>