You are not logged in.
Pages: 1
Hello everyone,
since today the makepkg command seems to fail everytime - no matter what package I try to build. The last step it enters is " -> Correcting permissions" and then I get "==> ERROR: A failure occurred in package().".
I don't have any idea where to start looking for the problem, that's why I'm asking here. Does anyone know where to start looking for the cause of the issue (or already knows what it is and can tell me a possible solution right away)?
I'd be happy to provide any kind of further information, just tell me what you need.
Thanks in advance.
Tedy
Last edited by tedy42 (2021-09-30 14:07:24)
Offline
You need to post a full build log and state an exact sample package you are using: https://bbs.archlinux.org/viewtopic.php?id=57855
If "every package" fails then you likely did something on your system, create an alias or so or mask/shadow a binary makepkg would be using.
Did you edit your makepkg.conf or install some "system" tools outside of the package manager/something that adjusts your $PATH recently? One thing that's more systemic in nature there was a bison update recently that could be at play here
Last edited by V1del (2021-09-30 10:59:28)
Offline
Hi,
sorry for not posting the full build log directly. I tried to install miniconda3 from the aur. I cloned the git repository, changed to the directory and ran makepkg, as I did many times before. Here's the output:
makepkg
==> Making package: miniconda3 4.10.3-1 (Thu 30 Sep 2021 01:28:54 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found miniconda3-4.10.3.sh
-> Found miniconda3.install
==> Validating source files with sha256sums...
miniconda3-4.10.3.sh ... Passed
miniconda3.install ... Passed
==> Extracting sources...
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
-> Packaging miniconda3 for installation to /opt/miniconda3
PREFIX=/home/{username}/tmp/miniconda3/pkg/miniconda3/opt/miniconda3
Unpacking payload ...
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /home/{username}/tmp/miniconda3/pkg/miniconda3/opt/miniconda3
added / updated specs:
- _libgcc_mutex==0.1=main
- _openmp_mutex==4.5=1_gnu
- brotlipy==0.7.0=py39h27cfd23_1003
- ca-certificates==2021.7.5=h06a4308_1
- certifi==2021.5.30=py39h06a4308_0
- cffi==1.14.6=py39h400218f_0
- chardet==4.0.0=py39h06a4308_1003
- conda-package-handling==1.7.3=py39h27cfd23_1
- conda==4.10.3=py39h06a4308_0
- cryptography==3.4.7=py39hd23ed53_0
- idna==2.10=pyhd3eb1b0_0
- ld_impl_linux-64==2.35.1=h7274673_9
- libffi==3.3=he6710b0_2
- libgcc-ng==9.3.0=h5101ec6_17
- libgomp==9.3.0=h5101ec6_17
- libstdcxx-ng==9.3.0=hd4cf53a_17
- ncurses==6.2=he6710b0_1
- openssl==1.1.1k=h27cfd23_0
- pip==21.1.3=py39h06a4308_0
- pycosat==0.6.3=py39h27cfd23_0
- pycparser==2.20=py_2
- pyopenssl==20.0.1=pyhd3eb1b0_1
- pysocks==1.7.1=py39h06a4308_0
- python==3.9.5=h12debd9_4
- readline==8.1=h27cfd23_0
- requests==2.25.1=pyhd3eb1b0_0
- ruamel_yaml==0.15.100=py39h27cfd23_0
- setuptools==52.0.0=py39h06a4308_0
- six==1.16.0=pyhd3eb1b0_0
- sqlite==3.36.0=hc218d9a_0
- tk==8.6.10=hbc83047_0
- tqdm==4.61.2=pyhd3eb1b0_1
- tzdata==2021a=h52ac0ba_0
- urllib3==1.26.6=pyhd3eb1b0_1
- wheel==0.36.2=pyhd3eb1b0_0
- xz==5.2.5=h7b6447c_0
- yaml==0.2.5=h7b6447c_0
- zlib==1.2.11=h7b6447c_3
The following NEW packages will be INSTALLED:
_libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main
_openmp_mutex pkgs/main/linux-64::_openmp_mutex-4.5-1_gnu
brotlipy pkgs/main/linux-64::brotlipy-0.7.0-py39h27cfd23_1003
ca-certificates pkgs/main/linux-64::ca-certificates-2021.7.5-h06a4308_1
certifi pkgs/main/linux-64::certifi-2021.5.30-py39h06a4308_0
cffi pkgs/main/linux-64::cffi-1.14.6-py39h400218f_0
chardet pkgs/main/linux-64::chardet-4.0.0-py39h06a4308_1003
conda pkgs/main/linux-64::conda-4.10.3-py39h06a4308_0
conda-package-han~ pkgs/main/linux-64::conda-package-handling-1.7.3-py39h27cfd23_1
cryptography pkgs/main/linux-64::cryptography-3.4.7-py39hd23ed53_0
idna pkgs/main/noarch::idna-2.10-pyhd3eb1b0_0
ld_impl_linux-64 pkgs/main/linux-64::ld_impl_linux-64-2.35.1-h7274673_9
libffi pkgs/main/linux-64::libffi-3.3-he6710b0_2
libgcc-ng pkgs/main/linux-64::libgcc-ng-9.3.0-h5101ec6_17
libgomp pkgs/main/linux-64::libgomp-9.3.0-h5101ec6_17
libstdcxx-ng pkgs/main/linux-64::libstdcxx-ng-9.3.0-hd4cf53a_17
ncurses pkgs/main/linux-64::ncurses-6.2-he6710b0_1
openssl pkgs/main/linux-64::openssl-1.1.1k-h27cfd23_0
pip pkgs/main/linux-64::pip-21.1.3-py39h06a4308_0
pycosat pkgs/main/linux-64::pycosat-0.6.3-py39h27cfd23_0
pycparser pkgs/main/noarch::pycparser-2.20-py_2
pyopenssl pkgs/main/noarch::pyopenssl-20.0.1-pyhd3eb1b0_1
pysocks pkgs/main/linux-64::pysocks-1.7.1-py39h06a4308_0
python pkgs/main/linux-64::python-3.9.5-h12debd9_4
readline pkgs/main/linux-64::readline-8.1-h27cfd23_0
requests pkgs/main/noarch::requests-2.25.1-pyhd3eb1b0_0
ruamel_yaml pkgs/main/linux-64::ruamel_yaml-0.15.100-py39h27cfd23_0
setuptools pkgs/main/linux-64::setuptools-52.0.0-py39h06a4308_0
six pkgs/main/noarch::six-1.16.0-pyhd3eb1b0_0
sqlite pkgs/main/linux-64::sqlite-3.36.0-hc218d9a_0
tk pkgs/main/linux-64::tk-8.6.10-hbc83047_0
tqdm pkgs/main/noarch::tqdm-4.61.2-pyhd3eb1b0_1
tzdata pkgs/main/noarch::tzdata-2021a-h52ac0ba_0
urllib3 pkgs/main/noarch::urllib3-1.26.6-pyhd3eb1b0_1
wheel pkgs/main/noarch::wheel-0.36.2-pyhd3eb1b0_0
xz pkgs/main/linux-64::xz-5.2.5-h7b6447c_0
yaml pkgs/main/linux-64::yaml-0.2.5-h7b6447c_0
zlib pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3
Preparing transaction: done
Executing transaction: done
installation finished.
-> Correcting permissions
==> ERROR: A failure occurred in package().
Aborting...I also tried using yay for that, but it produces a similar result:
yay -S miniconda3
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1] miniconda3-4.10.3-1
1 miniconda3 (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: PKGBUILD up to date, Skipping (1/1): miniconda3
1 miniconda3 (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: (1/1) Parsing SRCINFO: miniconda3
==> Making package: miniconda3 4.10.3-1 (Thu 30 Sep 2021 01:32:58 PM CEST)
==> Retrieving sources...
-> Found miniconda3-4.10.3.sh
-> Found miniconda3.install
==> Validating source files with sha256sums...
miniconda3-4.10.3.sh ... Passed
miniconda3.install ... Passed
==> Making package: miniconda3 4.10.3-1 (Thu 30 Sep 2021 01:32:59 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found miniconda3-4.10.3.sh
-> Found miniconda3.install
==> Validating source files with sha256sums...
miniconda3-4.10.3.sh ... Passed
miniconda3.install ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Sources are ready.
==> Making package: miniconda3 4.10.3-1 (Thu 30 Sep 2021 01:33:01 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
-> Packaging miniconda3 for installation to /opt/miniconda3
PREFIX=/home/{username}/.cache/yay/miniconda3/pkg/miniconda3/opt/miniconda3
Unpacking payload ...
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /home/{username}/.cache/yay/miniconda3/pkg/miniconda3/opt/miniconda3
added / updated specs:
- _libgcc_mutex==0.1=main
- _openmp_mutex==4.5=1_gnu
- brotlipy==0.7.0=py39h27cfd23_1003
- ca-certificates==2021.7.5=h06a4308_1
- certifi==2021.5.30=py39h06a4308_0
- cffi==1.14.6=py39h400218f_0
- chardet==4.0.0=py39h06a4308_1003
- conda-package-handling==1.7.3=py39h27cfd23_1
- conda==4.10.3=py39h06a4308_0
- cryptography==3.4.7=py39hd23ed53_0
- idna==2.10=pyhd3eb1b0_0
- ld_impl_linux-64==2.35.1=h7274673_9
- libffi==3.3=he6710b0_2
- libgcc-ng==9.3.0=h5101ec6_17
- libgomp==9.3.0=h5101ec6_17
- libstdcxx-ng==9.3.0=hd4cf53a_17
- ncurses==6.2=he6710b0_1
- openssl==1.1.1k=h27cfd23_0
- pip==21.1.3=py39h06a4308_0
- pycosat==0.6.3=py39h27cfd23_0
- pycparser==2.20=py_2
- pyopenssl==20.0.1=pyhd3eb1b0_1
- pysocks==1.7.1=py39h06a4308_0
- python==3.9.5=h12debd9_4
- readline==8.1=h27cfd23_0
- requests==2.25.1=pyhd3eb1b0_0
- ruamel_yaml==0.15.100=py39h27cfd23_0
- setuptools==52.0.0=py39h06a4308_0
- six==1.16.0=pyhd3eb1b0_0
- sqlite==3.36.0=hc218d9a_0
- tk==8.6.10=hbc83047_0
- tqdm==4.61.2=pyhd3eb1b0_1
- tzdata==2021a=h52ac0ba_0
- urllib3==1.26.6=pyhd3eb1b0_1
- wheel==0.36.2=pyhd3eb1b0_0
- xz==5.2.5=h7b6447c_0
- yaml==0.2.5=h7b6447c_0
- zlib==1.2.11=h7b6447c_3
The following NEW packages will be INSTALLED:
_libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main
_openmp_mutex pkgs/main/linux-64::_openmp_mutex-4.5-1_gnu
brotlipy pkgs/main/linux-64::brotlipy-0.7.0-py39h27cfd23_1003
ca-certificates pkgs/main/linux-64::ca-certificates-2021.7.5-h06a4308_1
certifi pkgs/main/linux-64::certifi-2021.5.30-py39h06a4308_0
cffi pkgs/main/linux-64::cffi-1.14.6-py39h400218f_0
chardet pkgs/main/linux-64::chardet-4.0.0-py39h06a4308_1003
conda pkgs/main/linux-64::conda-4.10.3-py39h06a4308_0
conda-package-han~ pkgs/main/linux-64::conda-package-handling-1.7.3-py39h27cfd23_1
cryptography pkgs/main/linux-64::cryptography-3.4.7-py39hd23ed53_0
idna pkgs/main/noarch::idna-2.10-pyhd3eb1b0_0
ld_impl_linux-64 pkgs/main/linux-64::ld_impl_linux-64-2.35.1-h7274673_9
libffi pkgs/main/linux-64::libffi-3.3-he6710b0_2
libgcc-ng pkgs/main/linux-64::libgcc-ng-9.3.0-h5101ec6_17
libgomp pkgs/main/linux-64::libgomp-9.3.0-h5101ec6_17
libstdcxx-ng pkgs/main/linux-64::libstdcxx-ng-9.3.0-hd4cf53a_17
ncurses pkgs/main/linux-64::ncurses-6.2-he6710b0_1
openssl pkgs/main/linux-64::openssl-1.1.1k-h27cfd23_0
pip pkgs/main/linux-64::pip-21.1.3-py39h06a4308_0
pycosat pkgs/main/linux-64::pycosat-0.6.3-py39h27cfd23_0
pycparser pkgs/main/noarch::pycparser-2.20-py_2
pyopenssl pkgs/main/noarch::pyopenssl-20.0.1-pyhd3eb1b0_1
pysocks pkgs/main/linux-64::pysocks-1.7.1-py39h06a4308_0
python pkgs/main/linux-64::python-3.9.5-h12debd9_4
readline pkgs/main/linux-64::readline-8.1-h27cfd23_0
requests pkgs/main/noarch::requests-2.25.1-pyhd3eb1b0_0
ruamel_yaml pkgs/main/linux-64::ruamel_yaml-0.15.100-py39h27cfd23_0
setuptools pkgs/main/linux-64::setuptools-52.0.0-py39h06a4308_0
six pkgs/main/noarch::six-1.16.0-pyhd3eb1b0_0
sqlite pkgs/main/linux-64::sqlite-3.36.0-hc218d9a_0
tk pkgs/main/linux-64::tk-8.6.10-hbc83047_0
tqdm pkgs/main/noarch::tqdm-4.61.2-pyhd3eb1b0_1
tzdata pkgs/main/noarch::tzdata-2021a-h52ac0ba_0
urllib3 pkgs/main/noarch::urllib3-1.26.6-pyhd3eb1b0_1
wheel pkgs/main/noarch::wheel-0.36.2-pyhd3eb1b0_0
xz pkgs/main/linux-64::xz-5.2.5-h7b6447c_0
yaml pkgs/main/linux-64::yaml-0.2.5-h7b6447c_0
zlib pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3
Preparing transaction: done
Executing transaction: done
installation finished.
-> Correcting permissions
==> ERROR: A failure occurred in package().
Aborting...
error making: miniconda3I also tried updating the spotify package via yay, and again: same error:
yay -S spotify
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1] spotify-1:1.1.68.632-1
1 spotify (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: PKGBUILD up to date, Skipping (1/1): spotify
1 spotify (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: (1/1) Parsing SRCINFO: spotify
==> Making package: spotify 1:1.1.68.632-1 (Thu 30 Sep 2021 01:34:09 PM CEST)
==> Retrieving sources...
-> Found spotify.protocol
-> Found LICENSE
-> Found spotify-1.1.68.632-x86_64.deb
-> Found spotify-1.1.68.632-Release
-> Found spotify-1.1.68.632-Release.sig
-> Found spotify-1.1.68.632-x86_64-Packages
==> Validating source files with sha512sums...
spotify.protocol ... Passed
LICENSE ... Passed
spotify-1.1.68.632-x86_64.deb ... Passed
spotify-1.1.68.632-Release ... Skipped
spotify-1.1.68.632-Release.sig ... Skipped
spotify-1.1.68.632-x86_64-Packages ... Skipped
==> Verifying source file signatures with gpg...
spotify-1.1.68.632-Release ... Passed
==> Making package: spotify 1:1.1.68.632-1 (Thu 30 Sep 2021 01:34:10 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found spotify.protocol
-> Found LICENSE
-> Found spotify-1.1.68.632-x86_64.deb
-> Found spotify-1.1.68.632-Release
-> Found spotify-1.1.68.632-Release.sig
-> Found spotify-1.1.68.632-x86_64-Packages
==> Validating source files with sha512sums...
spotify.protocol ... Passed
LICENSE ... Passed
spotify-1.1.68.632-x86_64.deb ... Passed
spotify-1.1.68.632-Release ... Skipped
spotify-1.1.68.632-Release.sig ... Skipped
spotify-1.1.68.632-x86_64-Packages ... Skipped
==> Verifying source file signatures with gpg...
spotify-1.1.68.632-Release ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting spotify-1.1.68.632-x86_64.deb with bsdtar
==> Starting prepare()...
spotify-1.1.68.632-x86_64-Packages: OK
spotify-1.1.68.632-x86_64.deb: OK
==> Sources are ready.
==> Making package: spotify 1:1.1.68.632-1 (Thu 30 Sep 2021 01:34:12 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
==> ERROR: A failure occurred in package().
Aborting...
error making: spotifyyou likely did something on your system
That's what I'm thinking too, but I don't quite know which things influence the process of makepkg, so I don't know where to start searching for the error.
Did you edit your makepkg.conf or install some "system" tools outside of the package manager/something that adjusts your $PATH recently?
I didn't edit that file. I don't really know what you mean by such tools, but if you mean packages that are not available via pacman then it would be the brave browser and the failed attemps listed above. To my knowledge, my PATH variable has not changed recently, but here is its value:
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/{username}/.local/bin One thing that's more systemic in nature there was a bison update recently that could be at play here
I ran a full system update (pacman -Syu) right before I started getting those errors. I can't tell if bison was among the updated packages though, but if it was updated recently, there's a high chance, cause I updated the system for the first time in three weeks (was on vacation previously).
Last edited by tedy42 (2021-09-30 11:45:40)
Offline
Both of these packages do a chmod on the failing operation. coreutils was recently updated to 9.0 and apparently there's a bug https://bugs.archlinux.org/task/72253 that's fixed in the current coreutils 9.0-2 package from testing.
Last edited by V1del (2021-09-30 12:01:16)
Offline
Hi,
thank you for your support. With the patched version of coreutils everything works.
Offline
Pages: 1