Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Install via yaourt fails with …pkg.tar.xz not found #1

Closed
flying-sheep opened this Issue · 6 comments

2 participants

@flying-sheep

The installation fails with Package /tmp/yaourt-tmp-$(whoami)/PKGDEST.???/*.pkg.tar.xz not found, while the directory contains the same file with .gz extension.

renaming the package results in successful installation.

@adityam
Owner

This appears to be a bug with yaourt. The PKGBUILD specifies that the PKGEXT is tar.gz, so yaourt should not be looking for tar.xz files.

Although .xz is the default for arch packages, I prefer .gz because compression and decompression are faster. I don't distribute a binary version of the package, so the smaller size of pkg.tar.xz is not a big advantage.

You could file a bug report with yaourt or manually install the package:

cd $HOME/Software/context-minimals (or any another directory)
git clone git://github.com/adityam/context-pkgbuild.git ./
makepkg
sudo packan -U context-minimals-<date>.tar.gz

The advantage of this approach is that file download is faster (since you keep the old version of the downloaded files), and you can revert back to an older version easily.

@flying-sheep

i can’t see any spec which says that $PKGEXT exists outside of the makepkg.conf

several places confirm this, e.g.:

An Arch package is no more than a tar archive compressed using xz, or 'tarball', which contains: […]

and

When makepkg is run, it searches for a PKGBUILD in the current directory and follows the instructions therein to either compile or otherwise acquire the files to build a package file (pkgname.pkg.tar.xz).

@adityam
Owner
@flying-sheep

ok, sorry for not researching thoroughly enough :(

@adityam
Owner

No problem. This feature is not documented properly, and as such it is not surprising that most tools ignore PKGEXT inside a PKGBUILD.

@adityam adityam closed this
@adityam
Owner

I installed the latest git version of yaourt (the yaourt-git package on AUR), and it correctly builds the context-mnimals package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.