<?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>185361</bug_id>
          
          <creation_ts>2007-07-15 00:20 0000</creation_ts>
          <short_desc>sys-boot/grub-1.95 parallel make fails</short_desc>
          <delta_ts>2007-08-25 17:09:12 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>Ebuilds</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>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>attila.jecs@gmail.com</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          <cc>kevin@lacqui.com</cc>

      

      
          <long_desc isprivate="0">
            <who>attila.jecs@gmail.com</who>
            <bug_when>2007-07-15 00:20:09 0000</bug_when>
            <thetext>util/grub-emu.c tries to include grub_modules_init.h instead of grub/modules_init.h

Reproducible: Always

Steps to Reproduce:
1. echo sys-boot/grub ** &gt;&gt; /etc/portage/package.keyword
2. emerge grub
3.

Actual Results:  
util/grub-emu.c:41:31: error: grub_modules_init.h: Nincs ilyen fájl vagy könyvtár
util/grub-emu.c: In function ‘main’:
util/grub-emu.c:205: warning: implicit declaration of function ‘grub_init_all’
util/grub-emu.c:211: warning: implicit declaration of function ‘grub_fini_all’
make: *** [grub_emu-util_grub_emu.o] Error 1
make: *** Waiting for unfinished jobs....
 *
 * ERROR: sys-boot/grub-1.95 failed.
 * Call stack:
 *   ebuild.sh, line 1647:   Called dyn_compile
 *   ebuild.sh, line 988:   Called qa_call &apos;src_compile&apos;
 *   ebuild.sh, line 44:   Called src_compile
 *   grub-1.95.ebuild, line 30:   Called die
 *
 * making regular stuff
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at &apos;/var/tmp/portage/sys-boot/grub-1.95/temp/build.log&apos;.
 *


Expected Results:  
boot from evms/lvm/md

I&apos;m trying to make up an cvs ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-07-15 04:32:13 0000</bug_when>
            <thetext>error: grub_modules_init.h: Nincs ilyen fájl vagy könyvtár

??? Please set your locales to C when reporting bugs; also emerge --info is mandatory.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>attila.jecs@gmail.com</who>
            <bug_when>2007-07-16 13:11:38 0000</bug_when>
            <thetext>Steps to Reproduce:
1. echo &quot;sys-boot/grub **&quot; &gt;&gt; /etc/portage/package.keywords
2. emerge grub

i686-pc-linux-gnu-gcc -Iutil -I./util -I. -Iinclude -I./include -Wall -W -DGRUB_LIBDIR=\&quot;//lib/grub/i386-pc\&quot; -g -O2 -DGRUB_UTIL=1  -MD -c -o grub_emu-util_grub_emu.o util/grub-emu.c
i686-pc-linux-gnu-gcc -Iutil -I./util -I. -Iinclude -I./include -Wall -W -DGRUB_LIBDIR=\&quot;//lib/grub/i386-pc\&quot; -g -O2 -DGRUB_UTIL=1  -MD -c -o grub_emu-util_misc.o util/misc.c
util/grub-emu.c:41:31: error: grub_modules_init.h: No such file or directory
util/grub-emu.c: In function &apos;main&apos;:
util/grub-emu.c:205: warning: implicit declaration of function &apos;grub_init_all&apos;
util/grub-emu.c:211: warning: implicit declaration of function &apos;grub_fini_all&apos;
make: *** [grub_emu-util_grub_emu.o] Error 1
make: *** Waiting for unfinished jobs....
 *
 * ERROR: sys-boot/grub-1.95 failed.
 * Call stack:
 *   ebuild.sh, line 1647:   Called dyn_compile
 *   ebuild.sh, line 988:   Called qa_call &apos;src_compile&apos;
 *   ebuild.sh, line 44:   Called src_compile
 *   grub-1.95.ebuild, line 30:   Called die
 *
 * making regular stuff
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at &apos;/var/tmp/portage/sys-boot/grub-1.95/temp/build.log&apos;.
 *
wundiserver ~ # emerge --info
Portage 2.1.3_rc8 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6-r0, 2.6.22-gentoo-r1 i686)
=================================================================
System uname: 2.6.22-gentoo-r1 i686 AMD Sempron(tm)
Gentoo Base System release 1.12.10
Timestamp of tree: Sun, 15 Jul 2007 14:50:01 +0000
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=pentium3 -O3 -pipe -mfpmath=sse -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-march=pentium3 -O3 -pipe -mfpmath=sse -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://gentoo.inode.at/ &quot;
LANG=&quot;hu_HU.UTF-8&quot;
LC_ALL=&quot;hu_HU.UTF-8&quot;
LINGUAS=&quot;hu en&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;X acl acpi alsa apache2 bash-completion berkdb bitmap-fonts bzip2 caps cdr cli cracklib crypt cups dbus device-mapper disk-partition dri dvd dvdr fam ftp gdbm gif gpm hal iconv isdnlog jpeg jpeg2k kde libg++ mad mmx mmxext mudflap mysql ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python qt3 qt4 readline reflection samba session slang spl sse ssl svg symlink tcpd tiff tk truetype-fonts type1-fonts unicode x86 xcomposite xorg zlib&quot; ALSA_CARDS=&quot;intel8x0&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;ncurses text&quot; LINGUAS=&quot;hu en&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;nvidia nv vesa&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>attila.jecs@gmail.com</who>
            <bug_when>2007-07-16 13:14:44 0000</bug_when>
            <thetext>I acually solved the problem by setting MAKEOPTS to -j1, but I don&apos;t know if this is a solution or just a workaround.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kevin@lacqui.com</who>
            <bug_when>2007-07-16 14:58:19 0000</bug_when>
            <thetext>Created an attachment (id=125030)
Patch to add header deps to .o files

The current makefile works by fluke, here&apos;s a patch to ensure headers are built before the corresponding .o files</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kevin@lacqui.com</who>
            <bug_when>2007-07-16 14:58:37 0000</bug_when>
            <thetext>Created an attachment (id=125032)
ebuild patch to apply the source patch

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-07-17 06:29:11 0000</bug_when>
            <thetext>where did that patch come from ?  it isnt in the upstream cvs ... if you wrote it, you should send the patch to the grub peeps please</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kevin@lacqui.com</who>
            <bug_when>2007-07-17 09:20:43 0000</bug_when>
            <thetext>That was mine, I&apos;m sending it upstream now.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kevin@lacqui.com</who>
            <bug_when>2007-07-17 14:33:33 0000</bug_when>
            <thetext>Looks like upstream already has this fixed in CVS.  I don&apos;t know if they have any plans to release an updated tarball any time soon.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-08-25 17:09:12 0000</bug_when>
            <thetext>added to the tree, thanks</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>125030</attachid>
            <date>2007-07-16 14:58 0000</date>
            <desc>Patch to add header deps to .o files</desc>
            <filename>grub-1.95-headers.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtcnUgZ3J1Yi0xLjk1LmNsZWFuL2NvbmYvaTM4Ni1wYy5tayBncnViLTEuOTUvY29uZi9p
Mzg2LXBjLm1rCi0tLSBncnViLTEuOTUuY2xlYW4vY29uZi9pMzg2LXBjLm1rCTIwMDctMDctMTYg
MTE6Mzk6NDcuMDAwMDAwMDAwIC0wMzAwCisrKyBncnViLTEuOTUvY29uZi9pMzg2LXBjLm1rCTIw
MDctMDctMTYgMTE6NDk6MjUuMDAwMDAwMDAwIC0wMzAwCkBAIC03MzksNyArNzM5LDcgQEAKIAkk
KENDKSAtSXV0aWwgLUkkKHNyY2RpcikvdXRpbCAkKENQUEZMQUdTKSAkKENGTEFHUykgLURHUlVC
X1VUSUw9MSAkKGdydWJfZW11X0NGTEFHUykgLU1EIC1jIC1vICRAICQ8CiAtaW5jbHVkZSBncnVi
X2VtdS11dGlsX2NvbnNvbGUuZAogCi1ncnViX2VtdS11dGlsX2dydWJfZW11Lm86IHV0aWwvZ3J1
Yi1lbXUuYworZ3J1Yl9lbXUtdXRpbF9ncnViX2VtdS5vOiB1dGlsL2dydWItZW11LmMgZ3J1Yl9t
b2R1bGVzX2luaXQuaAogCSQoQ0MpIC1JdXRpbCAtSSQoc3JjZGlyKS91dGlsICQoQ1BQRkxBR1Mp
ICQoQ0ZMQUdTKSAtREdSVUJfVVRJTD0xICQoZ3J1Yl9lbXVfQ0ZMQUdTKSAtTUQgLWMgLW8gJEAg
JDwKIC1pbmNsdWRlIGdydWJfZW11LXV0aWxfZ3J1Yl9lbXUuZAogCg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>125032</attachid>
            <date>2007-07-16 14:58 0000</date>
            <desc>ebuild patch to apply the source patch</desc>
            <filename>ebuild-headers.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGdydWItMS45NS5lYnVpbGQJMjAwNy0wNy0xNiAxMToyNToxNC4wMDAwMDAwMDAgLTAzMDAK
KysrIGdydWItMS45NS1yMS5lYnVpbGQJMjAwNy0wNy0xNiAxMTo1Mjo0OC4wMDAwMDAwMDAgLTAz
MDAKQEAgLTE4LDYgKzE4LDEyIEBACiAJZGV2LWxpYnMvbHpvIgogUFJPVklERT0idmlydHVhbC9i
b290bG9hZGVyIgogCitzcmNfdW5wYWNrKCkgeworCXVucGFjayAke0F9CisJY2QgJHtTfQorCWVw
YXRjaCAke0ZJTEVTRElSfS8ke1B9LWhlYWRlcnMucGF0Y2gKK30KKwogc3JjX2NvbXBpbGUoKSB7
CiAJdXNlIGFtZDY0ICYmIG11bHRpbGliX3Rvb2xjaGFpbl9zZXR1cCB4ODYKIAl1c2UgY3VzdG9t
LWNmbGFncyB8fCB1bnNldCBDRkxBR1MgTERGTEFHUwo=
</data>        

          </attachment>
    </bug>

</bugzilla>