Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 381714 Details for
Bug 482804
sys-firmware/ipxe-1.0.0_p20130225 - make: *** No rule to make target `../.git/index', needed by `bin/version.o'. Stop.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-Only-set-GITVERSION-if-there-is-a-git-repository.patch
0001-Only-set-GITVERSION-if-there-is-a-git-repository.patch (text/plain), 1.26 KB, created by
Florian Schmaus
on 2014-07-28 14:29:54 UTC
(
hide
)
Description:
0001-Only-set-GITVERSION-if-there-is-a-git-repository.patch
Filename:
MIME Type:
Creator:
Florian Schmaus
Created:
2014-07-28 14:29:54 UTC
Size:
1.26 KB
patch
obsolete
>From 2422abe61fdd9b625465cb780bf7a5f5b6a005d0 Mon Sep 17 00:00:00 2001 >From: Florian Schmaus <flo@geekplace.eu> >Date: Mon, 28 Jul 2014 16:20:18 +0200 >Subject: [PATCH] Only set GITVERSION if there is a git repository > >The bin/version.o target will fail if ipxe is build within a non-git >repository, e.g. when the user downloaded and extracted an archive >containing ipxe sources, *and* if any parent-directory of the ipxe >sources is a git repository (or even contains a directory named >'.git'). This is because git will by default ascend the directory tree >and look for '.git'. > >The problem typical manifests on source based distributions, see for >example https://bugs.gentoo.org/show_bug.cgi?id=482804 >--- > src/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/src/Makefile b/src/Makefile >index 22a7335..e8bf2e7 100644 >--- a/src/Makefile >+++ b/src/Makefile >@@ -190,7 +190,7 @@ VERSION_PATCH = 0 > EXTRAVERSION = + > MM_VERSION = $(VERSION_MAJOR).$(VERSION_MINOR) > VERSION = $(MM_VERSION).$(VERSION_PATCH)$(EXTRAVERSION) >-GITVERSION := $(shell git describe --always --abbrev=1 --match "" 2>/dev/null) >+GITVERSION := $(shell [ -d ../.git ] && git describe --always --abbrev=1 --match "" 2>/dev/null) > ifneq ($(GITVERSION),) > VERSION += ($(GITVERSION)) > endif >-- >1.9.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 482804
:
357242
|
357272
| 381714