Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482804 - sys-firmware/ipxe-1.0.0_p20130225 - make: *** No rule to make target `../.git/index', needed by `bin/version.o'. Stop.
Summary: sys-firmware/ipxe-1.0.0_p20130225 - make: *** No rule to make target `../.git...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-28 14:21 UTC by Florian Schmaus
Modified: 2015-03-16 18:50 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,48.89 KB, text/plain)
2013-08-28 14:21 UTC, Florian Schmaus
Details
build.log with USE="-usb" (build.log,48.89 KB, text/x-log)
2013-08-28 18:43 UTC, Florian Schmaus
Details
0001-Only-set-GITVERSION-if-there-is-a-git-repository.patch (0001-Only-set-GITVERSION-if-there-is-a-git-repository.patch,1.26 KB, patch)
2014-07-28 14:29 UTC, Florian Schmaus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Schmaus gentoo-dev 2013-08-28 14:21:28 UTC
Emerging sys-firmware/ipxe failes with "No rule to make target `../.git/index', needed by `bin/version.o'."

Reproducible: Always

Steps to Reproduce:
1. emerge ipxe




Portage 2.1.12.2 (default/linux/amd64/13.0, gcc-4.5.4, glibc-2.15-r3, 3.5.7 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.5.7-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.1
KiB Mem:     3928764 total,    562992 free
KiB Swap:    3756028 total,   3632432 free
Timestamp of tree: Wed, 28 Aug 2013 09:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.5
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.7, 4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo belak scarabeus luman seden betagarden gbin mozilla gamerlay emacs pentoo java local flow bitcoin sage-on-gentoo sunrise gentoo-haskell
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-write --jobs 2 --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,--hash-style=gnu,-O1 -Wl,--as-needed"
MAKEOPTS="-j 3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/belak /var/lib/layman/scarabeus /var/lib/layman/luman /var/lib/layman/seden /var/lib/layman/betagarden /var/lib/layman/gbin /var/lib/layman/mozilla /var/lib/layman/gamerlay /var/lib/layman/emacs /var/lib/layman/pentoo /var/lib/layman/java /usr/local/portage /usr/local/flo_portage /usr/local/bitcoin-gentoo /usr/local/sage-on-gentoo /usr/local/sunrise /usr/local/gentoo-haskell"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aalib acl acpi adns alsa amd64 android ao applet asyncns autoipd avahi bash-completion berkdb bluetooth bzip2 cairo canvas caps cdda cdparanoia cdr chipcard2 cli consolekit cracklib crypt cuda cups curl cvs cxx daap darcs dbus device-mapper dga dia dirac divx4linux dri dv dvd dvdr dvdread dynamic eap-sim emacs escreen exif extra extras fat ffmpeg firefox flac fontconfig fortran ftp fuse gajim galago gconf gcrypt gd gdbm gdu gedit geldkarte gif gimp git glitz gnome gnome-keyring gnutls gpg gphoto2 gps gstreamer gtk gtk2 gudev hddtemp hoogle howl howl-compat hscolour hwdb iconv icu id3tag idn ieee1394 imap inkjar introspection iproute2 ipv6 ithreads jadetex java java6 javascript jingle jpeg jpeg2k kdrive keyring kpathsea kvm latex libcaca libedit libnotify lm_sensors lua mad matroska mdnsresponder-compat mercurial mmx mmxext mng modules mozilla mozsvg mp2 mp3 mpeg mplayer mudflap multilib musicbrainz nas nautilus ncurses networkmanager nls nptl nptlonly nsplugin nss ntfs ocamlopt offensive ogg openal openct opengl openmp otr pam pcmcia pcre pcsc-lite pdf pixbuf pkcs11 png policykit posix preview-latex pulseaudio python python3 qemu qt qt3support qt4 quicktime rar readline real resolvconf rtc ruby samba schroedinger sdl secure-delete session sftp slang smartcard smp sound speex spell sqlite srv sse sse2 ssl ssse3 stars subtitles subversion svg system-sqlite tagwriting tga theora threads tiff tk tordns tpm truetype twolame udev unicode upnp usb utils v4l v4l2 vcd vorbis webkit wifi wxwidgets x264 xattr xcb xforms xft xinerama xv xvid xvmc zeroconf zlib zrtp zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics mutouch" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="i386 sparc64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Florian Schmaus gentoo-dev 2013-08-28 14:21:53 UTC
Created attachment 357242 [details]
build.log
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2013-08-28 18:06:53 UTC
(In reply to Florian Schmaus from comment #0)
> Emerging sys-firmware/ipxe failes with "No rule to make target
> `../.git/index', needed by `bin/version.o'."
> 

What happens if you use USE="-usb", instead of USE="usb"?
Comment 3 Florian Schmaus gentoo-dev 2013-08-28 18:35:06 UTC
Same error, see attached build.log. Usually this type of error is caused by the build system issuing some git command, in order to get the git revision of the current branch, in a folder which is not a git repository. The git command then traverses the filesystem up to / where it finds /.git/ which is causing the sandbox violation.
Comment 4 Florian Schmaus gentoo-dev 2013-08-28 18:43:35 UTC
Created attachment 357272 [details]
build.log with USE="-usb"

USE="-usb" emerge -1av ipxe
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2013-08-28 19:25:32 UTC
(In reply to Florian Schmaus from comment #3)
> Same error, see attached build.log. Usually this type of error is caused by
> the build system issuing some git command, in order to get the git revision
> of the current branch, in a folder which is not a git repository. The git
> command then traverses the filesystem up to / where it finds /.git/ which is
> causing the sandbox violation.

I'm not seeing a sandbox violation anywhere in your logs. Do you have some more info that's not attached to the bug?
Comment 6 Florian Schmaus gentoo-dev 2013-08-28 19:38:34 UTC
(In reply to Doug Goldstein from comment #5)
> I'm not seeing a sandbox violation anywhere in your logs. Do you have some
> more info that's not attached to the bug?

No. I just confused Bug # 482818 with this one.
Comment 7 Jacob Godserv 2013-09-17 03:41:57 UTC
(In reply to Florian Schmaus from comment #3)
> Same error, see attached build.log. Usually this type of error is caused by
> the build system issuing some git command, in order to get the git revision
> of the current branch, in a folder which is not a git repository. The git
> command then traverses the filesystem up to / where it finds /.git/ which is
> causing the sandbox violation.

I also experienced this bug. Moving /.git to anything but .git until this package finished building worked around the issue.
Comment 8 Florian Schmaus gentoo-dev 2014-07-28 14:29:54 UTC
Created attachment 381714 [details, diff]
0001-Only-set-GITVERSION-if-there-is-a-git-repository.patch

Patch for ipxe's Makefile to check for the existence of a '.git' directory when trying to determine GITVERSION. Patch also send upstream.
Comment 9 Florian Schmaus gentoo-dev 2014-07-28 16:10:47 UTC
Patch was accepted by upstream: http://git.ipxe.org/ipxe.git/commitdiff/6153c09
Comment 10 SpanKY gentoo-dev 2015-03-16 18:49:51 UTC
should be all set now in the tree; thanks for the report!

Commit message: Fix building when the source is not a git repo (but a higher dir is)
http://sources.gentoo.org/sys-firmware/ipxe/files/ipxe-1.0.0_p20130925-git-version.patch?rev=1.1
http://sources.gentoo.org/sys-firmware/ipxe/ipxe-1.0.0_p20130925.ebuild?r1=1.3&r2=1.4