You are not logged in.

#1 2016-04-12 00:45:15

aldeano
Member
Registered: 2009-09-04
Posts: 30

[SOLVED] Makepkg can't clone from github

I'm using pacaur 4.6.1 and cower 16-1, and with some packages who require cloning from github i've been unable to download the source. I got this message:

==> Making package: gtk-theme-arc 20160331-1 (Mon Apr 11 21:38:02 CLST 2016)
==> Retrieving sources...
  -> Downloading 20160331.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   129    0   129    0     0     92      0 --:--:--  0:00:01 --:--:--    92
==> Validating source files with md5sums...
    20160331.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
:: failed to verify gtk-theme-arc integrity

It's like it doesn't download the right files. This happens with some packages like pacaur and cower themselves, python-owslib, adapta-gtk-theme and gtk-theme-arc.

Now what i do is cloning the aur pkgbuild, download the source and changing the pkgbuild to use the source downloaded in my folder.

Last edited by aldeano (2016-04-13 22:04:15)

Offline

#2 2016-04-12 02:08:13

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

Re: [SOLVED] Makepkg can't clone from github

This isn't cloning from github, it's simply downloading an archive. If the md5sum is wrong, figure out why. What, exactly, is being downloaded?

Offline

#3 2016-04-12 02:44:34

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

Re: [SOLVED] Makepkg can't clone from github

That package downloads and passes the validity check fine here: the checksum is correct.  So for one reason or another you are getting a corrupted or otherwise invalid download.  You say you can manually download the source tarball, but do you checksum what you've manually downloaded?  Does it match the checksum in the PKGBUILD?  If yes, then the problem is in the DLAGENT used for makepkg, if no, then the problem is somewhere along the network between your computer and the upstream source (github in one case).


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

Offline

#4 2016-04-12 03:07:03

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

Re: [SOLVED] Makepkg can't clone from github

python-owslib is on your list, and I know that one's correct as well (my package). Based on the size of the download, I'm guessing you're getting an html file?

Offline

#5 2016-04-12 04:55:17

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Makepkg can't clone from github

Just to add to what scimmia said, if it is an HTML file, please inspect its content. It might contain some error message.

Offline

#6 2016-04-12 22:30:52

aldeano
Member
Registered: 2009-09-04
Posts: 30

Re: [SOLVED] Makepkg can't clone from github

Trilby, yes, when i download the source and run makepkg, it passes the validity check wihtout need of changing anything, only the source.

Scimmia, yes, i renamed the downloaded file and what i get it's really an html file. The source of the html, in the case of the adapta-gtk-theme package, is this:

<html><body>You are being <a href="https://codeload.github.com/tista500/Adapta/tar.gz/3.20.2.132">redirected</a>.</body></html>

.

So, i'm being redirected.

Offline

#7 2016-04-12 23:04:43

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

Re: [SOLVED] Makepkg can't clone from github

So ... you changed the DLAGENT in makepkg.conf?  What are you using?


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

Offline

#8 2016-04-13 00:37:27

aldeano
Member
Registered: 2009-09-04
Posts: 30

Re: [SOLVED] Makepkg can't clone from github

These are my dlagents in makepkg.conf:

DLAGENTS=('ftp::/usr/bin/curl %u -o %o'
          'http::/usr/bin/curl %u -o %o'
          'https::/usr/bin/curl %u -o %o'
          'rsync::/usr/bin/rsync --no-motd -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

Offline

#9 2016-04-13 01:12:14

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

Re: [SOLVED] Makepkg can't clone from github

That's the problem.  Why did you change all the defaults?


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

Offline

#10 2016-04-13 13:46:22

aldeano
Member
Registered: 2009-09-04
Posts: 30

Re: [SOLVED] Makepkg can't clone from github

Don't remember exactly when and why i change it. I've searched in the makepkg, pacman and pkgbuild man page and didn't find the defaults, where i can find it?

Offline

#11 2016-04-13 13:56:41

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Makepkg can't clone from github

Delete makepkg.conf and reinstall pacman...

Or see https://projects.archlinux.org/svntogit … ges/pacman


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#12 2016-04-13 18:29:36

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

Re: [SOLVED] Makepkg can't clone from github

Or just get it out of your package cache:

DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
          'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'rsync::/usr/bin/rsync --no-motd -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

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

Offline

#13 2016-04-13 22:02:56

aldeano
Member
Registered: 2009-09-04
Posts: 30

Re: [SOLVED] Makepkg can't clone from github

I've deleted makepkg.conf and reinstalled pacman and everything works! Marking as solved!

Offline

Board footer

Powered by FluxBB