Summary: | sys-firmware/ipxe-1.0.0_p20130225 - make: *** No rule to make target `../.git/index', needed by `bin/version.o'. Stop. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Florian Schmaus <flow> |
Component: | [OLD] Library | Assignee: | Gentoo QEMU Project <qemu+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jacobgodserv |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
build.log with USE="-usb" 0001-Only-set-GITVERSION-if-there-is-a-git-repository.patch |
Description
Florian Schmaus
![]() Created attachment 357242 [details]
build.log
(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"? 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. Created attachment 357272 [details]
build.log with USE="-usb"
USE="-usb" emerge -1av ipxe
(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? (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. (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. 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.
Patch was accepted by upstream: http://git.ipxe.org/ipxe.git/commitdiff/6153c09 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 |