<?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>117649</bug_id>
          
          <creation_ts>2006-01-03 12:20 0000</creation_ts>
          <short_desc>minor errors after genkernel action in catalyst</short_desc>
          <delta_ts>2006-05-01 13:54:14 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Hosted Projects</product>
          <component>Catalyst</component>
          <version>unspecified</version>
          <rep_platform>All</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>rajiv@gentoo.org</reporter>
          <assigned_to>catalyst@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>rajiv@gentoo.org</who>
            <bug_when>2006-01-03 12:20:29 0000</bug_when>
            <thetext>using catalyst 2.0_rc12. two errors after genkernel runs. see the &apos;mv&apos; and
&apos;binary operator expected&apos; errors below.

...
* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest genkernel before reporting bugs.
removing /brontes/installer/catalyst/tmp/default/stage4-amd64-20060103.1/tmp/chroot-functions.sh from the chroot
mv: when moving multiple files, last argument must be a directory
Try `mv --help&apos; for more information.
/usr/lib/catalyst2/targets/support/functions.sh: line 167: [: /brontes/installer/catalyst/tmp/default/stage4-amd64-20060103.1//boot/initramfs-genkernel-x86_64-2.6.14-gentoo-r5: binary operator expected
copying post-kmerge.sh to /brontes/installer/catalyst/tmp/default/stage4-amd64-20060103.1/tmp/
copying chroot-functions.sh to /brontes/installer/catalyst/tmp/default/stage4-amd64-20060103.1/tmp/
Running post-kmerge.sh in chroot /brontes/installer/catalyst/tmp/default/stage4-amd64-20060103.1/
&gt;&gt;&gt; Regenerating /etc/ld.so.cache...
...

build completes sucessfully.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-01-03 12:53:28 0000</bug_when>
            <thetext>How many kernels does your build have?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rajiv@gentoo.org</who>
            <bug_when>2006-01-03 13:06:50 0000</bug_when>
            <thetext>just 1. this is while building the stage 4. although gentoo-sources is pulled in as a dep of one of the packages in stage4/packages and it is also installed (overwritten?) by genkernel during the build.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-01-16 07:40:31 0000</bug_when>
            <thetext>This should be fixed in 2.0_rc15.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rajiv@gentoo.org</who>
            <bug_when>2006-01-19 14:46:14 0000</bug_when>
            <thetext>still seeing this with 2.0_rc19 while building a stage4:

...
* Do NOT report kernel bugs as genkernel bugs unless your bug                                                      
* is about the default genkernel configuration...                                                                  
*                                                                                                                  
* Make sure you have the latest genkernel before reporting bugs.                                                   
removing /brontes/installer/catalyst/tmp/workstation/stage4-amd64-20060118.1/tmp/chroot-functions.sh from the chroot                                                                                                                  
mv: when moving multiple files, last argument must be a directory                                                  
Try `mv --help&apos; for more information.                                                                              
/usr/lib/catalyst2/targets/support/functions.sh: line 167: [: /brontes/installer/catalyst/tmp/workstation/stage4-amd64-20060118.1//boot/initramfs-genkernel-x86_64-2.6.15-gentoo-r1: binary operator expected                         
copying post-kmerge.sh to /brontes/installer/catalyst/tmp/workstation/stage4-amd64-20060118.1/tmp/                 
Running post-kmerge.sh in chroot /brontes/installer/catalyst/tmp/workstation/stage4-amd64-20060118.1/              
&gt;&gt;&gt; Regenerating /etc/ld.so.cache...                                                                               
...

the build completes sucessfully.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-02-01 13:03:30 0000</bug_when>
            <thetext>OK... This should really be InCVS now.  It&apos;ll show up in rc29+ when I roll up a new one.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-02-02 06:25:57 0000</bug_when>
            <thetext>In 2.0_rc29</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rajiv@gentoo.org</who>
            <bug_when>2006-02-08 10:41:07 0000</bug_when>
            <thetext>
still seeing this with Gentoo Catalyst, version 2.0_rc33

...
* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
* 
* Make sure you have the latest genkernel before reporting bugs.
removing /brontes/installer/catalyst/tmp/trident/stage4-amd64-20060207.1/tmp/chroot-functions.sh from the chroot
mv: when moving multiple files, last argument must be a directory
Try `mv --help&apos; for more information.
/usr/lib/catalyst2/targets/support/functions.sh: line 167: [: /brontes/installer/catalyst/tmp/trident/stage4-amd64-20060207
.1//boot/initramfs-genkernel-x86_64-2.6.15-gentoo-r4: binary operator expected
copying post-kmerge.sh to /brontes/installer/catalyst/tmp/trident/stage4-amd64-20060207.1/tmp/
copying chroot-functions.sh to /brontes/installer/catalyst/tmp/trident/stage4-amd64-20060207.1/tmp/
Running post-kmerge.sh in chroot /brontes/installer/catalyst/tmp/trident/stage4-amd64-20060207.1/
&gt;&gt;&gt; Regenerating /etc/ld.so.cache...
...

let me know if you need any more info (spec file, etc)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-02-08 12:55:22 0000</bug_when>
            <thetext>Yeah, since I absolutely cannot reproduce this and you&apos;re the only person that ahs ever seen it (and the simple fact that it *is* a binary operator) the only thing I can conclude is either it&apos;s some corner case that you&apos;re the only person who has ever hit it, or its something on your system.

Edit targets/support/functions.sh and go to line 167.  Add a couple debug statements in there to echo the output of ${1} and ${2} and show that output here.  It looks like one of the two isn&apos;t getting set for you.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rajiv@gentoo.org</who>
            <bug_when>2006-02-08 14:18:13 0000</bug_when>
            <thetext>looks like there are multiple files in there:

...
* Make sure you have the latest genkernel before reporting bugs.
removing /brontes/installer/catalyst/tmp/trident/stage4-amd64-20060207.1/tmp/chroot-functions.sh from the chroot
==in extract_kernel() 1:/brontes/installer/catalyst/tmp/trident/stage4-amd64-20060207.1//boot 2:brontes
mv: when moving multiple files, last argument must be a directory
Try `mv --help&apos; for more information.
/usr/lib/catalyst2/targets/support/functions.sh: line 169: [: /brontes/installer/catalyst/tmp/trident/stage4-amd64-20060207
.1//boot/initramfs-genkernel-x86_64-2.6.15-gentoo-r4: binary operator expected
copying post-kmerge.sh to /brontes/installer/catalyst/tmp/trident/stage4-amd64-20060207.1/tmp/
copying chroot-functions.sh to /brontes/installer/catalyst/tmp/trident/stage4-amd64-20060207.1/tmp/
Running post-kmerge.sh in chroot /brontes/installer/catalyst/tmp/trident/stage4-amd64-20060207.1/
&gt;&gt;&gt; Regenerating /etc/ld.so.cache...
...


# ls -l /brontes/installer/catalyst/tmp/trident/stage4-amd64-20060207.1//boot
total 6740
-rw-r--r--  1 root root 1009963 Feb  8 16:50 System.map-genkernel-x86_64-2.6.15-gentoo-r4
lrwxrwxrwx  1 root root       1 Feb  8 16:30 boot -&gt; .
drwxr-xr-x  2 root root    4096 Feb  8 16:43 grub
-rw-r--r--  1 root root 1035007 Feb  8 16:52 initramfs-genkernel-x86_64-2.6.15-gentoo-r4
-rw-r--r--  1 root root 1035007 Feb  8 16:52 initramfs-x86_64-2.6.15-gentoo-r4
-rw-r--r--  1 root root 1894189 Feb  8 16:50 kernel-genkernel-x86_64-2.6.15-gentoo-r4
-rw-r--r--  1 root root 1894189 Feb  8 16:51 kernel-x86_64-2.6.15-gentoo-r4

here is the kernel section of my spec file:

boot/kernel: brontes
boot/kernel/brontes/sources: gentoo-sources
boot/kernel/brontes/config: /brontes/installer/tmp/stage4-kernel.config
boot/kernel/brontes/packages: media-video/nvidia-glx

fyi, i `rm -rf /brontes/installer/catalyst/tmp/trident/stage4-amd64-20060207.1/` before running catalyst. so is genkernel creating 2 kernel files?

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rajiv@gentoo.org</who>
            <bug_when>2006-02-08 14:31:48 0000</bug_when>
            <thetext>i just noticed that this does not happen when building livecd-stage2. it only happens when building a stage4.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-02-08 14:35:08 0000</bug_when>
            <thetext>What &quot;options&quot; are you using for catalyst?

Are you using any gk_* spec options?

I&apos;m completely not understanding how you&apos;re getting two kernels and nobody else seems to be, but that *would* determine why you&apos;re getting both the mv error and the binary operator error.

As for it only happening with stage4, that actually does help quite a bit.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rajiv@gentoo.org</who>
            <bug_when>2006-02-14 15:28:03 0000</bug_when>
            <thetext>here is my catalyst.conf:

distdir=&quot;/usr/portage/distfiles&quot;
options=&quot;autoresume ccache kerncache pkgcache seedcache snapcache&quot;
sharedir=&quot;/usr/lib/catalyst2&quot;
storedir=&quot;/brontes/installer/catalyst&quot;
snapshot_cache=&quot;/brontes/installer/catalyst/snapshot_cache&quot;
hash_function=&quot;md5&quot;
digests=&quot;md5 sha1&quot;
envscript=&quot;/brontes/installer/tmp/catalyst-env.sh&quot;


there are not gk_* options in my spec file.

catalyst-env.sh has:

export GENTOO_MIRRORS=&quot;http://mirror/ http://gentoo.osuosl.org/ http://distfiles.gentoo.org/&quot;
export SYNC=&quot;rsync://mirror/gentoo-portage&quot;
export LINGUAS=&quot;en&quot;
export CHOST=&quot;x86_64-pc-linux-gnu&quot;
export CFLAGS=&quot;-O2 -march=opteron -pipe -fomit-frame-pointer -ftracer&quot;
export CXXFLAGS=&quot;${CFLAGS}&quot;
export MAKEOPTS=&quot;-j5&quot;

export EPAUSE_IGNORE=0
export EBEEP_IGNORE=0
export FEATURES=&quot;nodoc noinfo noman&quot;


with catalyst 2.0_rc37 and rc38 i also now see an error with kmerge.sh:

...

/tmp/kmerge.sh: line 65: [: too many arguments
* Gentoo Linux Genkernel; Version 3.3.10
* Running with options: --callback=PKGDIR=/tmp/kerncache/brontes/ebuilds emerge -kb                             media-video/nvidia-glx --cachedir=/tmp/kerncache/brontes-genkernel_cache-20060207.2 --no-mountboot --kerneldir=/usr/src/linux --kernel-config=/var/tmp/brontes.config --modulespackage=/tmp/kerncache/brontes-modules-20060207.2.tar.bz2 --minkernpackage=/tmp/kerncache/brontes-kernel-initrd-20060207.2.tar.bz2 --kerncache=/tmp/kerncache/brontes-kerncache-20060207.2.tar.bz2 all --kernel-cc=/usr/lib/ccache/bin/gcc --utils-cc=/usr/lib/ccache/bin/gcc

* Linux Kernel 2.6.15-gentoo-r4 for x86_64...
...
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-05-01 13:54:14 0000</bug_when>
            <thetext>I&apos;m pretty sure that Ifixed this recently with one of the changes I made to that section.  I started getting the error myself and decided to clean it up, having forgotten about this bug.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>