You are not logged in.

#1 2017-04-23 21:24:06

m.renato93
Member
Registered: 2017-04-23
Posts: 4

makechrootpkg can't download package via git & hg

Hi,

I use makechrootpkg for a while without any issue, until today. I run into this error everytime i try to compile a package with makechrootpkg:

[user valentina-hg]$ makechrootpkg -c -r $CHROOT
==> Creating clean working copy [user]...done
==> Making package: valentina-hg r4337.847160e6d4af-1 (2017. ápr. 23., vasárnap, 23:07:13 CEST)
==> Retrieving sources...
  -> Cloning valentina hg repo...
/usr/share/makepkg/source/hg.sh: line 45: hg: command not found
==> ERROR: Failure while downloading valentina hg repo
    Aborting...
==> ERROR: Could not download sources.

and not only with mercurial, but with git too:

[user anbox-git]$ makechrootpkg -c -r $CHROOT
==> Creating clean working copy [user]...done
==> Making package: anbox-git 1:r468.76be0e2-1 (2017. ápr. 23., vasárnap, 23:18:20 CEST)
==> Retrieving sources...
  -> Cloning anbox git repo...
/usr/share/makepkg/source/git.sh: line 45: git: command not found
==> ERROR: Failure while downloading anbox git repo
    Aborting...
==> ERROR: Could not download sources.

I get this error even if I installed manually git/hg in the chroot and on a fresh installed VM too.

makepkg works properly

(Sorry for my bad english)

Offline

#2 2017-04-23 21:47:29

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: makechrootpkg can't download package via git & hg

https://git.archlinux.org/devtools.git/ … kg.in#n268

No -s so it won't install git/mercurial on the host, even if they are mentioned in makedepends.

Last edited by Alad (2017-04-23 21:49:21)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#3 2017-04-24 05:37:01

m.renato93
Member
Registered: 2017-04-23
Posts: 4

Re: makechrootpkg can't download package via git & hg

makechroot pkg automatically adds -s (makepkg_args)

I get the error above when I use the same command as the script to download the sources:

makepkg --verifysource

output:

[user anbox-git]$ makepkg --verifysource
==> Making package: anbox-git 1:r468.76be0e2-1 (2017. ápr. 24., hétfő, 07:28:12 CEST)
==> Retrieving sources...
  -> Cloning anbox git repo...
/usr/share/makepkg/source/git.sh: line 45: git: command not found
==> ERROR: Failure while downloading anbox git repo
    Aborting...

Offline

#4 2017-04-24 06:07:14

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,392
Website

Re: makechrootpkg can't download package via git & hg

You need git or hg installed on the host system.

Offline

#5 2017-04-24 07:09:30

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: makechrootpkg can't download package via git & hg

m.renato93 wrote:

makechroot pkg automatically adds -s (makepkg_args)]

It runs makepkg twice, once to fetch the sources (on the host) and once to build the package (in the container). makepkg_args only applies to latter.

Last edited by Alad (2017-04-24 07:10:35)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#6 2017-04-24 08:06:54

m.renato93
Member
Registered: 2017-04-23
Posts: 4

Re: makechrootpkg can't download package via git & hg

I have git/hg/bzr/svn already installed on both host and chroot system

Offline

#7 2017-04-24 08:15:34

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,392
Website

Re: makechrootpkg can't download package via git & hg

So the "git: command not found" error is magic?

Offline

Board footer

Powered by FluxBB