You are not logged in.

#1 2016-05-14 19:14:41

martynjy
Member
Registered: 2015-04-03
Posts: 6

[SOLVED] makepkg and git+https

Hi all

This is my first post.

I am having trouble building certain packages from AUR.  This is an example:

==> Extracting sources...
  -> Creating working copy of namebench git repo...
/usr/share/makepkg/util/util.sh: line 80: cd: namebench: No such file or directory
==> ERROR: Failed to change to directory namebench
    Aborting...

It appears to happen with packages pointing to 'git+https' addresses.  If that is the case how do I handle these?
Otherwise makepkg and pacman are performing normally.

Last edited by martynjy (2016-05-14 23:27:12)

Offline

#2 2016-05-14 19:35:35

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,022

Re: [SOLVED] makepkg and git+https

start looking the PKGBUILD of that sertain package... and say what package.


Well, I suppose that this is somekind of signature, no?

Offline

#3 2016-05-14 20:03:48

martynjy
Member
Registered: 2015-04-03
Posts: 6

Re: [SOLVED] makepkg and git+https

The package is 'namebench':
https://aur.archlinux.org/packages.php?ID=245148

source=(namebench::git+https://github.com/google/$pkgname.git#branch=$pkgver)

That is an example.  Another could be 'lightspark-git':
https://aur.archlinux.org/packages.php?ID=277263

source=("$_pkgname::git+https://github.com/lightspark/lightspark.git")

They both fail with the same error and both point to 'git+https://github.com/' addresses.  This is the only common factor I can see.
As mentioned other packages build OK.

Last edited by martynjy (2016-05-14 20:05:42)

Offline

#4 2016-05-14 20:30:39

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,835
Website

Re: [SOLVED] makepkg and git+https

Create a new directory and post the full output from a clean attempt.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2016-05-14 20:44:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,514
Website

Re: [SOLVED] makepkg and git+https

Please post the exact command you used and the full output (in code tags).

(edit: oops, this was cross posted with the above - I had this window open for 15 minutes while distracted apparently)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2016-05-14 20:55:01

martynjy
Member
Registered: 2015-04-03
Posts: 6

Re: [SOLVED] makepkg and git+https

namebench

makepkg -sic
==> Making package: namebench 1.3-1 (Sat 14 May 21:45:11 BST 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning namebench git repo...
==> Validating source files with sha512sums...
    namebench ... Skipped
==> Extracting sources...
  -> Creating working copy of namebench git repo...
/usr/share/makepkg/util/util.sh: line 80: cd: namebench: No such file or directory
==> ERROR: Failed to change to directory namebench
    Aborting...

lightspark-git

makepkg -sic
==> Making package: lightspark-git 0.7.2.r461.g10b91ea-1 (Sat 14 May 21:52:59 BST 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning lightspark git repo...
==> Validating source files with md5sums...
    lightspark ... Skipped
==> Extracting sources...
  -> Creating working copy of lightspark git repo...
/usr/share/makepkg/util/util.sh: line 80: cd: lightspark: No such file or directory
==> ERROR: Failed to change to directory lightspark
    Aborting...

Offline

#7 2016-05-14 20:57:35

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,835
Website

Re: [SOLVED] makepkg and git+https

That's from a clean directory, with no pre-existing "namebench" file or directory?

What is the "namebench" file?

file namebench

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2016-05-14 21:31:33

martynjy
Member
Registered: 2015-04-03
Posts: 6

Re: [SOLVED] makepkg and git+https

WorMzy

What are you referring to exactly?

Offline

#9 2016-05-14 21:42:51

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

Re: [SOLVED] makepkg and git+https

martynjy wrote:

namebench

..
==> Retrieving sources...
  -> Cloning namebench git repo...
==> Validating source files with sha512sums...

You have trimmed the output...   unless there was no output there!

Offline

#10 2016-05-14 21:43:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,514
Website

Re: [SOLVED] makepkg and git+https

Try these commands:

cd /tmp
mkdir anewdir
cd anewdir
git clone https://aur.archlinux.org/namebench.git
cd namebench
makepkg -s

Then post the output.

I've removed the i and c flags from makepkg, the i just because it's not needed yet, and the c so we can explore what's left if/when this fails.

EDIT: D'Oh, Allan is right.  But blame him, he probably broke it (for OP, that's a joke).  Can you clone from git directly?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#11 2016-05-14 23:26:25

martynjy
Member
Registered: 2015-04-03
Posts: 6

Re: [SOLVED] makepkg and git+https

Sorry for the delay but I have managed to solve it.

The problem was with git.  Trilby (thanks) led me on the path.  For some reason It was well and truly messed up.
I haven't used it for a long time so I don't know what happened or when!

Thank you everyone.

Offline

#12 2016-05-14 23:30:56

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,835
Website

Re: [SOLVED] makepkg and git+https

Great! If you could share some details about what the problem was, or at least how you resolved it, that may help somebody else with a similar problem down the line.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#13 2016-05-14 23:59:58

martynjy
Member
Registered: 2015-04-03
Posts: 6

Re: [SOLVED] makepkg and git+https

WorMzy

As I say I haven't used git for a long time so I don't know what happened or when.  I could not do anything with it including clone hence the original problem.
After trying to uninstall with pacman it said it had uninstalled git but had left most of the files behind.  Result being a manual cleanup and reinstall.

Offline

#14 2016-05-15 00:38:46

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,514
Website

Re: [SOLVED] makepkg and git+https

Either you manually installed git and/or you were very very out of date.  In case you aren't doing so already, you should run regular* system updates with `pacman -Syu`.

*regular has different meanings for different people, but at least once a week is a good baseline.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB