Gentoo Archives: gentoo-dev

From: Damo Brisbane <dhatchett2@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] "Not a git repository" error on ebuild
Date: Tue, 07 Nov 2017 23:02:36
Message-Id: CAE5cDqNqiVrB8w=8eBgUVkshNKGj52dbNFZsjUfU7b7sK9tdPA@mail.gmail.com
In Reply to: Re: [gentoo-dev] "Not a git repository" error on ebuild by Damo Brisbane
1 Thanks all, commenting out below line in source Makefile eems to have
2 removed error
3
4 GO = GOGC=off go
5 #GOFLAGS = -ldflags "-X main.version=$(shell git describe --tags)"
6 GOVENDOR = $(shell which govendor)
7
8
9 On Wed, Nov 8, 2017 at 7:45 AM, Damo Brisbane <dhatchett2@×××××.com> wrote:
10
11 > We have this in the project makefile..
12 >
13 > GOFLAGS = -ldflags "-X main.version=$(shell git describe --tags)"
14 >
15 > ..
16 >
17 > On Wed, Nov 8, 2017 at 7:44 AM, Damo Brisbane <dhatchett2@×××××.com>
18 > wrote:
19 >
20 >> attached, ok?
21 >>
22 >> On Wed, Nov 8, 2017 at 5:33 AM, Alan McKinnon <alan.mckinnon@×××××.com>
23 >> wrote:
24 >>
25 >>> On 07/11/2017 21:10, Damo Brisbane wrote:
26 >>> > Hi,
27 >>> >
28 >>> > I am getting an error on custom fabio-1.5.2.ebuild
29 >>> > <https://github.com/damobrisbane/damo-overlay/blob/master/ne
30 >>> t-proxy/fabio/fabio-1.5.2.ebuild> -
31 >>> > "Not a git repository (or any of the parent directories)..." I've been
32 >>> > looking on web, trying some things, but still message is coming up,
33 >>> > appreciate suggestions. Note package is installing fine, just not sure
34 >>> > how to clean up this message.
35 >>> >
36 >>> > Thanks in advance:
37 >>>
38 >>>
39 >>>
40 >>>
41 >>> Please post the ebuild. That's a git error (not a portage error) and it
42 >>> means you are trying to run "git <some_function>" without running "git
43 >>> init" first
44 >>>
45 >>>
46 >>> >
47 >>> >
48 >>> >
49 >>> >>>> Emerging (2 of 2) net-proxy/fabio-1.5.2::damo-overlay
50 >>> > * fabio-1.5.2.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...
51 >>>
52 >>> > [ ok ]
53 >>> > * Adding group 'fabio' to your system ...
54 >>> > * - Groupid: next available
55 >>> > * Adding user 'fabio' to your system ...
56 >>> > * - Userid: 116
57 >>> > * - Shell: /sbin/nologin
58 >>> > * - Home: /var/lib/fabio
59 >>> > * - Groups: fabio
60 >>> > * - GECOS: added by portage for fabio
61 >>> > * - Creating /var/lib/fabio in /
62 >>> >>>> Unpacking source...
63 >>> >>>> Source unpacked in /tmp/portage/net-proxy/fabio-1.5.2/work
64 >>> >>>> Preparing source in
65 >>> > /tmp/portage/net-proxy/fabio-1.5.2/work/fabio-1.5.2 ...
66 >>> >>>> Source prepared.
67 >>> >>>> Configuring source in
68 >>> > /tmp/portage/net-proxy/fabio-1.5.2/work/fabio-1.5.2 ...
69 >>> >>>> Source configured.
70 >>> >>>> Compiling source in
71 >>> > /tmp/portage/net-proxy/fabio-1.5.2/work/fabio-1.5.2 ...
72 >>> > make -j5 -C
73 >>> > /tmp/portage/net-proxy/fabio-1.5.2/work/fabio-1.5.2/src/gith
74 >>> ub.com/fabiolb/fabio
75 >>> > <http://github.com/fabiolb/fabio> install
76 >>> > make: Entering directory
77 >>> > '/tmp/portage/net-proxy/fabio-1.5.2/work/fabio-1.5.2/src/git
78 >>> hub.com/fabiolb/fabio
79 >>> > <http://github.com/fabiolb/fabio>'
80 >>> > *fatal: Not a git repository (or any of the parent directories): .git*
81 >>> > GOGC=off go install -ldflags "-X main.version="
82 >>> > make: Leaving directory
83 >>> > '/tmp/portage/net-proxy/fabio-1.5.2/work/fabio-1.5.2/src/git
84 >>> hub.com/fabiolb/fabio
85 >>> > <http://github.com/fabiolb/fabio>'
86 >>> >>>> Source compiled.
87 >>> >
88 >>>
89 >>>
90 >>> --
91 >>> Alan McKinnon
92 >>> alan.mckinnon@×××××.com
93 >>>
94 >>>
95 >>>
96 >>
97 >