You are not logged in.

#1 2019-06-24 22:38:15

jaap aarts
Member
Registered: 2017-09-04
Posts: 30

[SOLVED] makepkg stuck at extracting sources

Since a few days this has been happening to me with every AUR package.
Running makepkg just blanc without arguments on firefox-nightly for example never finished extracting sources.
There is 0% CPU utilization and extracting the files manually happens within 10 seconds.
Only the .desktop file is copied over, the rest is stuck at extracting.

Is anyone else experiencing this issue? I find it hard to believe that I am in only one, but pacman hasn't been updated in a while so I don't know why it started happening all of a sudden

Last edited by jaap aarts (2019-06-26 16:02:49)

Offline

#2 2019-06-25 19:38:43

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] makepkg stuck at extracting sources

VCS packages (aur packages ending with -git , -svn and 2 others ) use a different  method to download sources then non-vcs packages.

Do you have problems with both types ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2019-06-25 20:28:59

jaap aarts
Member
Registered: 2017-09-04
Posts: 30

Re: [SOLVED] makepkg stuck at extracting sources

Installing wine-stagin-git works fine, so you vcs repos are "extracted" fine(probably just cloned? but thats not the point)
Firefox nightly contains a .tar.bz and flutter (another one stuck at extracting sources) uses.tar.xz.
Do you think that it might be related to some extracting libraries used in extracting these files?
Extracting them with nautilus works fine, but maybe that uses some special gnome library.

Offline

#4 2019-06-25 21:25:26

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] makepkg stuck at extracting sources

Makepkg has 2 separate fases for retrieving sources : downloading and extracting.
vcs pacakges typically use git/svn etc for downloading and don't need extracting
wine-staging-git worked, so makepkg appears to be functioning.

If you download one or more of the files manually and put them in the directory where the PKGBUILD is, is makepkg able to extract them ?

If yes, post pacman -Qkk curl
If not, post pacman -Qkk libarchive

Last edited by Lone_Wolf (2019-06-26 13:05:35)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2019-06-25 21:48:54

jaap aarts
Member
Registered: 2017-09-04
Posts: 30

Re: [SOLVED] makepkg stuck at extracting sources

All the files are already downloaded. Its only the unpacking them.
libarchive: 66 total files, 0 altered files

curl also doesn't have any altered files, but it downloads fine anyways.

libarchive has recently been updated, around the same time as it stopped working.
manually downgrading libarchive doesnt fix it. although im not sure if a reboot is required.

Offline

#6 2019-06-26 13:13:25

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] makepkg stuck at extracting sources

The problem may not be with libarchive.

when extracting sources makepkg shows lines like this

==> Extracting sources...
  -> Extracting qxmledit-0.9.13-src.tgz with bsdtar

The name after with depends on the type of file.
Post the terminal output of makepkg from one of the problem packages.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2019-06-26 13:29:28

jaap aarts
Member
Registered: 2017-09-04
Posts: 30

Re: [SOLVED] makepkg stuck at extracting sources

makepkg output on fresh firefox nightly

==> Making package: firefox-nightly 69.0a1.20190521-1 (Wed 26 Jun 2019 03:24:31 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found firefox-nightly.desktop
  -> Found policies.json
  -> Found 20190626-firefox-69.0a1.en-US.linux-x86_64.tar.bz2
  -> Found 20190626-firefox-69.0a1.en-US.linux-x86_64.tar.bz2.asc
  -> Found 20190626-firefox-69.0a1.en-US.linux-x86_64.txt
==> Validating source files with sha512sums...
    firefox-nightly.desktop ... Passed
    policies.json ... Passed
==> Validating source_x86_64 files with sha512sums...
    20190626-firefox-69.0a1.en-US.linux-x86_64.tar.bz2 ... Skipped
    20190626-firefox-69.0a1.en-US.linux-x86_64.tar.bz2.asc ... Skipped
    20190626-firefox-69.0a1.en-US.linux-x86_64.txt ... Skipped
==> Verifying source file signatures with gpg...
    20190626-firefox-69.0a1.en-US.linux-x86_64.tar.bz2 ... Passed
==> Extracting sources...

so no

extracting xxx with xxx

Offline

#8 2019-06-26 13:39:09

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] makepkg stuck at extracting sources

sofar .bz2 and .xz give problems, let's see what tgz gives.

Try to build https://aur.archlinux.org/packages/qxmledit/

It's a simple packages maintained by me that has one tgz sourcefile and not much dependencies.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#9 2019-06-26 13:53:25

jaap aarts
Member
Registered: 2017-09-04
Posts: 30

Re: [SOLVED] makepkg stuck at extracting sources

after waiting 10 minutes to be sure, it doesn't give any different results.
its still stuck at Extracting sources...

Offline

#10 2019-06-26 14:05:34

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] makepkg stuck at extracting sources

Ok, something in your system is messed up badly.

login as normal user to a tty, try to build.
Create a new user, login to a tty, test building.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#11 2019-06-26 14:20:39

jaap aarts
Member
Registered: 2017-09-04
Posts: 30

Re: [SOLVED] makepkg stuck at extracting sources

What do you mean build?
Build some application from AUR? what do you mean exactly?
And test building is just the same as try building?

Offline

#12 2019-06-26 14:28:45

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,933
Website

Re: [SOLVED] makepkg stuck at extracting sources

jaap aarts wrote:

What do you mean build?
Build some application from AUR? what do you mean exactly?
And test building is just the same as try building?

Yes, exactly that: Build the very application, that failed to build, as a new user.
You can also hook into line 87 et.seq. in /usr/share/makepkg/source.sh to debug where it hangs.

Offline

#13 2019-06-26 14:29:55

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] makepkg stuck at extracting sources

Yes test building is the same as try building.

run makepkg on a simple PKGBUILD that uses a compressed  sourcefile  (.bz2, xz, tgz, etc) and verify if makepkg is able to extract the sourcefiles.

The 2 two testcase are intended to help figure out if the problem is systemwide and/or related to your window manager / Desktop Environment .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#14 2019-06-26 15:04:52

jaap aarts
Member
Registered: 2017-09-04
Posts: 30

Re: [SOLVED] makepkg stuck at extracting sources

building with another (new) user does work!! I dont know why this would be the case, I dont remember changing anything about my setup in the last few weeks.
I have not debugged any shell scrips before, but running bash with -v on makepkg gives the following

keys=("${!source[@]}")
l=()
printf -v 'l[0]' %s "${source[0]}"; printf -v 'l[1]' %s "${source[1]}";
keys=("${!source_x86_64[@]}")
l=()
printf -v 'l[0]' %s "${source_x86_64[0]}"; printf -v 'l[1]' %s "${source_x86_64[1]}"; printf -v 'l[2]' %s "${source_x86_64[2]}";
keys=("${!aggregate[@]}")
all_sources=()
printf -v 'all_sources[0]' %s "${aggregate[0]}"; printf -v 'all_sources[1]' %s "${aggregate[1]}"; printf -v 'all_sources[2]' %s "${aggregate[2]}"; printf -v 'all_sources[3]' %s "${aggregate[3]}"; printf -v 'all_sources[4]' %s "${aggregate[4]}";

EDIT:
I tried installing bashdb from AUR, and that did work. it extracted the .tar.bz2 with bsdtar

EDIT:
running bash with -x gets stuck on

file -bizL -- firefox-nightly.desktop

which indeed doesnt compete if run seperatly

Last edited by jaap aarts (2019-06-26 15:14:18)

Offline

#15 2019-06-26 15:22:59

jaap aarts
Member
Registered: 2017-09-04
Posts: 30

Re: [SOLVED] makepkg stuck at extracting sources

I found the issue! I unintentionally installed a package called file into ~/go/bin (it was probably one of my own packages) I removed that specific file and it works now!
I really appreciate the help you guys gave me.
I guess this kinda shows how something completely unrelated can block a script so essential to installing programs(at least some of them)

Offline

#16 2019-06-26 15:57:43

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] makepkg stuck at extracting sources

Please remember to mark your thread [SOLVED] (edit the title of your first post).


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

Board footer

Powered by FluxBB