You are not logged in.

#1 2016-04-08 23:22:55

geommer
Member
Registered: 2016-03-13
Posts: 7

[SOLVED] AUR error fatal: Not a git repository

Hello Arch community, I maintain the package yabar (I am the author too!) on AUR (Actually it was maintained thanks to @jsteel but he transfered it to me to make it more up-to-date with development). Now, I updated the version from 0.3.0 to 0.4.0 but I got that weird error `fatal: Not a git repository (or any parent up to mount point /tmp)`.

Here is my PKGBUILD!
https://aur.archlinux.org/cgit/aur.git/ … LD?h=yabar

And that is what shows up during build

==> Validating source files with md5sums...
    yabar-0.4.0.tar.gz ... Passed
==> Extracting sources...
  -> Extracting yabar-0.4.0.tar.gz with bsdtar
==> Starting build()...
fatal: Not a git repository (or any parent up to mount point /tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -std=c99 -Iinclude -pedantic -Wall -Os `pkg-config --cflags pango pangocairo libconfig` -D_FORTIFY_SOURCE=2 -DVERSION=\"\" -D_POSIX_C_SOURCE=199309L -DYA_INTERNAL -DYA_DYN_COL -DYA_ENV_VARS -DYA_INTERNAL_EWMH  -c -o src/ya_parse.o src/ya_parse.c
fatal: Not a git repository (or any parent up to mount point /tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: Not a git repository (or any parent up to mount point /tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -std=c99 -Iinclude -pedantic -Wall -Os `pkg-config --cflags pango pangocairo libconfig` -D_FORTIFY_SOURCE=2 -DVERSION=\"\" -D_POSIX_C_SOURCE=199309L -DYA_INTERNAL -DYA_DYN_COL -DYA_ENV_VARS -DYA_INTERNAL_EWMH  -c -o src/ya_exec.o src/ya_exec.c
fatal: Not a git repository (or any parent up to mount point /tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: Not a git repository (or any parent up to mount point /tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -std=c99 -Iinclude -pedantic -Wall -Os `pkg-config --cflags pango pangocairo libconfig` -D_FORTIFY_SOURCE=2 -DVERSION=\"\" -D_POSIX_C_SOURCE=199309L -DYA_INTERNAL -DYA_DYN_COL -DYA_ENV_VARS -DYA_INTERNAL_EWMH  -c -o src/ya_draw.o src/ya_draw.c
fatal: Not a git repository (or any parent up to mount point /tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: Not a git repository (or any parent up to mount point /tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -std=c99 -Iinclude -pedantic -Wall -Os `pkg-config --cflags pango pangocairo libconfig` -D_FORTIFY_SOURCE=2 -DVERSION=\"\" -D_POSIX_C_SOURCE=199309L -DYA_INTERNAL -DYA_DYN_COL -DYA_ENV_VARS -DYA_INTERNAL_EWMH  -c -o src/ya_main.o src/ya_main.c
fatal: Not a git repository (or any parent up to mount point /tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: Not a git repository (or any parent up to mount point /tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -std=c99 -Iinclude -pedantic -Wall -Os `pkg-config --cflags pango pangocairo libconfig` -D_FORTIFY_SOURCE=2 -DVERSION=\"\" -D_POSIX_C_SOURCE=199309L -DYA_INTERNAL -DYA_DYN_COL -DYA_ENV_VARS -DYA_INTERNAL_EWMH  -c -o src/intern_blks/ya_intern.o src/intern_blks/ya_intern.c
fatal: Not a git repository (or any parent up to mount point /tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
cc -o yabar src/ya_parse.o src/ya_exec.o src/ya_draw.o src/ya_main.o src/intern_blks/ya_intern.o -lxcb -lpthread -lxcb-randr -lxcb-ewmh `pkg-config --libs pango pangocairo libconfig`
fatal: Not a git repository (or any parent up to mount point /tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
==> Entering fakeroot environment...
==> Starting package()...
mkdir -p "/tmp/yaourt-tmp-ga1/aur-yabar/pkg/yabar/usr/bin"
fatal: Not a git repository (or any parent up to mount point /tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
cp -pf yabar "/tmp/yaourt-tmp-ga1/aur-yabar/pkg/yabar/usr/bin"
mkdir -p "/tmp/yaourt-tmp-ga1/aur-yabar/pkg/yabar/usr/share/man"/man1
cp -pf doc/yabar.1 "/tmp/yaourt-tmp-ga1/aur-yabar/pkg/yabar/usr/share/man"/man1
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "yabar"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: yabar 0.4.0-1 (Sat Apr  9 01:14:45 EET 2016)

==> Continue installing yabar ? [Y/n]
==> [v]iew package contents [c]heck package with namcap
==> ---------------------------------------------------

The weird thing is that I updated the PKGBUILD from 0.2.3 to 0.3.0 and it was all fine, now I can't understand why this happens now!

Last edited by geommer (2016-04-09 00:54:26)

Offline

#2 2016-04-08 23:24:34

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: [SOLVED] AUR error fatal: Not a git repository

Build it with makepkg not an AUR helper that isn't very helpful.

Last edited by graysky (2016-04-08 23:24:50)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2016-04-08 23:26:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] AUR error fatal: Not a git repository

Not a Pacman issue, moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2016-04-08 23:28:58

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,614

Re: [SOLVED] AUR error fatal: Not a git repository

The issue is in the build system, not in the AUR. Look at the Makefile, first line calls git describe. That doesn't work on a release tarball.

Online

#5 2016-04-09 00:25:02

geommer
Member
Registered: 2016-03-13
Posts: 7

Re: [SOLVED] AUR error fatal: Not a git repository

Scimmia wrote:

The issue is in the build system, not in the AUR. Look at the Makefile, first line calls git describe. That doesn't work on a release tarball.

Thank you, you solved my issue. I used sed to replace the git command with the $pkgver variable.

Last edited by geommer (2016-04-09 00:40:25)

Offline

#6 2016-04-09 01:21:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,614

Re: [SOLVED] AUR error fatal: Not a git repository

That's not really a fix. Anyone on any distro that uses your tarball will run into this.

Online

Board footer

Powered by FluxBB