You are not logged in.

#1 2016-03-03 16:16:44

dr.lambda
Member
Registered: 2016-03-02
Posts: 10

[SOLVED] makepkg cannot install from the AUR anymore.

makepkg used to work fine but lately I seem to keep getting the same errors when trying to install packages from the AUR and none of the packages seem to work.

The package compiles and generates a pkg dir with the binaries and manfiles.

df -h reveals that I have enough space left.

here is the end of the output of makepkg:

  -> Generating .MTREE file...
bsdtar: Failed to clean up compressor
  -> Compressing package...
bsdtar: .PKGINFO: Cannot stat: No such file or directory
bsdtar: .BUILDINFO: Cannot stat: No such file or directory
bsdtar: .MTREE: Cannot stat: No such file or directory
xz: Compressed data cannot be written to a terminal
xz: Try `xz --help' for more information.
bsdtar: Write error
==> ERROR: Failed to create package file.

I do not understand why would xz want to write compressed data to the terminal? If I redirect to a file then he writes gibberish to it, and when I edit the conf file to change PKGEXT to .pkg.tar then he writes gibberish to to the terminal. Is it because it is supposed to be piped to bsdtar but bsdtar did not work?
I do not understand "Failed to clean up compressor" either. Via google I found that this error could mean that there is a problem writing output but I have enough space and I use the current dir as build dir which seems to have the proper permissions.

Here is ~/.config/pacman/makepkg.conf

#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
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')

# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget

#-- The package required by makepkg to download VCS sources
#  Format: 'protocol::package'
VCSCLIENTS=('bzr::bzr'
            'git::git'
            'hg::mercurial'
            'svn::subversion')

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-unknown-linux-gnu"

#-- Compiler and Linker Flags
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
#-- Debugging flags
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(!distcc color !ccache check !sign)
#  A negated environment option will do the opposite of the comments below.
#
#-- distcc:   Use the Distributed C/C++/ObjC compiler
#-- color:    Colorize output messages
#-- ccache:   Use ccache to cache compilation
#-- check:    Run the check() function if present in the PKGBUILD
#-- sign:     Generate PGP signature file
#
BUILDENV=(!distcc color !ccache check !sign)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""
#
#-- Specify a directory for package building.
#BUILDDIR=/tmp/makepkg

#########################################################################
# GLOBAL PACKAGE OPTIONS
#   These are default values for the options=() settings
#########################################################################
#
# Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !optipng !upx !debug)
#  A negated option will do the opposite of the comments below.
#
#-- strip:      Strip symbols from binaries/libraries
#-- docs:       Save doc directories specified by DOC_DIRS
#-- libtool:    Leave libtool (.la) files in packages
#-- staticlibs: Leave static library (.a) files in packages
#-- emptydirs:  Leave empty directories in packages
#-- zipman:     Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge:      Remove files specified by PURGE_TARGETS
#-- upx:        Compress binary executable files using UPX
#-- optipng:    Optimize PNG images with optipng
#-- debug:      Add debugging flags as specified in DEBUG_* variables
#
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !optipng !upx !debug)

#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
#SRCPKGDEST=/home/srcpackages
#-- Log files: specify a fixed directory where all log files will be placed
#LOGDEST=/home/makepkglogs
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"
#-- Specify a key to use for package signing
#GPGKEY=""

#########################################################################
# COMPRESSION DEFAULTS
#########################################################################
#
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)

#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
# WARNING: Do NOT modify these variables unless you know what you are
#          doing.
#
#PKGEXT='.pkg.tar.xz'
PKGEXT='.pkg.tar.xz'
SRCEXT='.src.tar.gz'

# vim: set ft=sh ts=2 sw=2 et:

I have been trying to solve this for a long time and it is as if I am the only one in recorded history to ever have had this problem. Please tell if you have any idea about a possible solution since I seem to be at a dead end.

Last edited by dr.lambda (2016-03-04 18:10:09)

Offline

#2 2016-03-03 16:36:00

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

Re: [SOLVED] makepkg cannot install from the AUR anymore.

dr.lambda wrote:

Is it because it is supposed to be piped to bsdtar but bsdtar did not work?

Most likely.  Solve the first error first.  Although I'm curious whether $pkg_file is not being properly set in makepkg.

Please post the output of the following for a start:

pacman -Q pacman libarchive
md5sum /usr/bin/{makepkg,bsdtar}
type bsdtar

EDIT: I just found this old bug report It's "fixed" but looks like the same error.  Although this does lend support to my suspicion about $pkg_file (or perhaps PKGDEST) not being properly set as that would likely result in similar errors.

As a follow up, I'm not sure if makepkg would honor these variables set in the environment, but it's worth checking from your shell that you'd run makepkg from:

echo $pkg_file
echo $PKGDEST

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2016-03-03 16:48:11

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: [SOLVED] makepkg cannot install from the AUR anymore.

Not sure what happens, but it's weird that .PKGINFO and .BUILDINFO are not found as they're normally generated before  .MTREE .

could you post the output of makepkg after the line "Tidying install..." ?


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

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2016-03-03 18:48:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] makepkg cannot install from the AUR anymore.

Please post full error messages/logs, not truncated versions: https://bbs.archlinux.org/viewtopic.php?id=57855


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2016-03-04 00:49:47

dr.lambda
Member
Registered: 2016-03-02
Posts: 10

Re: [SOLVED] makepkg cannot install from the AUR anymore.

pacman -Q pacman libarchive

pacman 5.0.1-2
libarchive 3.1.2-8

md5sum /usr/bin/{makepkg,bsdtar}

61ce09de77a63e655784077b756cd596  /usr/bin/makepkg
50159800504d37ec5e3d1af115662edb  /usr/bin/bsdtar

type bsdtar

bsdtar is /usr/bin/bsdtar

The environment variables $pkg_file and $PKGDEST were not set.

I tried putting

echo "$pkg_file"

in the PKGBUILD surrended by 2 other echo's in the package() funtion and I saw the other 2  echo's messages with an empty line in between so I guess $pkg_file is probably empty.



Here is the full output of mkpkg to stderr: (Including tidying install and beyond)

==> Making package: hnb 1.9.17-5 (Thu  3 Mar 23:36:42 CET 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found hnb-1.9.17.tar.gz
==> Validating source files with md5sums...
    hnb-1.9.17.tar.gz ... Passed
==> Extracting sources...
  -> Extracting hnb-1.9.17.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
==> Entering fakeroot environment...
/usr/share/makepkg/util/pkgbuild.sh: line 37: declare: optdepends_i686: not found
/usr/share/makepkg/util/pkgbuild.sh: line 37: declare: optdepends_x86_64: not found
/usr/share/makepkg/util/pkgbuild.sh: line 37: declare: provides_i686: not found
/usr/share/makepkg/util/pkgbuild.sh: line 37: declare: provides_x86_64: not found
/usr/share/makepkg/util/pkgbuild.sh: line 37: declare: source_x86_64: not found
/usr/share/makepkg/util/pkgbuild.sh: line 37: declare: depends_x86_64: not found
/usr/share/makepkg/util/pkgbuild.sh: line 37: declare: makedepends_x86_64: not found
/usr/share/makepkg/util/pkgbuild.sh: line 37: declare: source_x86_64: not found
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
strip:./usr/bin/stH5N2s4: Success
  -> Compressing man and info pages...
find: ‘usr/man’: No such file or directory
find: ‘usr/info’: No such file or directory
find: ‘usr/share/info’: No such file or directory
find: ‘usr/local/man’: No such file or directory
find: ‘usr/local/info’: No such file or directory
find: ‘usr/local/share/man’: No such file or directory
find: ‘usr/local/share/info’: No such file or directory
find: ‘opt/*/man’: No such file or directory
find: ‘opt/*/info’: No such file or directory
find: ‘usr/man’: No such file or directory
find: ‘usr/info’: No such file or directory
find: ‘usr/share/info’: No such file or directory
find: ‘usr/local/man’: No such file or directory
find: ‘usr/local/info’: No such file or directory
find: ‘usr/local/share/man’: No such file or directory
find: ‘usr/local/share/info’: No such file or directory
find: ‘opt/*/man’: No such file or directory
find: ‘opt/*/info’: No such file or directory
==> Checking for packaging issue...
==> Creating package "hnb"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
bsdtar: Failed to clean up compressor
  -> Compressing package...
bsdtar: .PKGINFO: Cannot stat: No such file or directory
bsdtar: .BUILDINFO: Cannot stat: No such file or directory
bsdtar: .MTREE: Cannot stat: No such file or directory
xz: Compressed data cannot be written to a terminal
xz: Try `xz --help' for more information.
bsdtar: Write error
==> ERROR: Failed to create package file.

Offline

#6 2016-03-04 00:56:05

dr.lambda
Member
Registered: 2016-03-02
Posts: 10

Re: [SOLVED] makepkg cannot install from the AUR anymore.

The stdout message is hard to copy because I use makepkg > error to redirect it to a file named error and then I copy it but the output is different because when redirecting to a file I do not get the error of compressed data that cannot be written to terminal and instead end up with a file with some text follow by gibberish. I cut the gibberish out because it is unreadable and seems to break elinks and I cut out a lot of Installed = x lines and replaced them with ... because otherwise my post becomes too long.

make: 'src/hnb' is up to date.
/usr/bin/gettext
[30mdeclare -a arch='([0]="i686" [1]="x86_64")'
declare -a arch='([0]="i686" [1]="x86_64")'
build () 
{ 
    cd "$srcdir/$pkgname-$pkgver";
    make
}
package () 
{ 
    cd "$srcdir/$pkgname-$pkgver";
    install -D src/hnb $pkgdir/usr/bin/hnb;
    install -D -m444 doc/hnb.1 $pkgdir/usr/share/man/man1/hnb.1
}
declare -a source='([0]="http://downloads.sourceforge.net/hnb/hnb-1.9.17.tar.gz")'
declare -a aggregate='([0]="http://downloads.sourceforge.net/hnb/hnb-1.9.17.tar.gz")'
/usr/bin/openssl
/usr/bin/strip
/usr/bin/gzip
declare -a depends='([0]="ncurses")'
declare -a depends='([0]="ncurses")'
declare -a makedepends='()'
declare -a source='([0]="http://downloads.sourceforge.net/hnb/hnb-1.9.17.tar.gz")'
declare -a aggregate='([0]="http://downloads.sourceforge.net/hnb/hnb-1.9.17.tar.gz")'
build () 
{ 
    cd "$srcdir/$pkgname-$pkgver";
    make
}
package () 
{ 
    cd "$srcdir/$pkgname-$pkgver";
    install -D src/hnb $pkgdir/usr/bin/hnb;
    install -D -m444 doc/hnb.1 $pkgdir/usr/share/man/man1/hnb.1
}
# Generated by makepkg 5.0.1
# using fakeroot version 1.20.2
# Thu Mar  3 22:51:30 UTC 2016
pkgname = hnb
pkgver = 1.9.17-5
pkgdesc = Ncurses based hierarchical notebook to structure many kinds of data in one place.
url = http://hnb.sourceforge.net
builddate = 1457045490
packager = Unknown Packager
size = 335872
arch = x86_64
license = GPL3
depend = ncurses
builddir = /home/lambda/arch/aur/hnb
pkgbuild_sha256sum = 8c92d9c4fa7ec3910bd0915c121930e10f4f448f4b9674fa927b51fd3367d671
buildenv = !distcc
buildenv = color
buildenv = !ccache
buildenv = check
buildenv = !sign
options = strip
options = docs
options = !libtool
options = !staticlibs
options = emptydirs
options = zipman
options = purge
options = !optipng
options = !upx
options = !debug
installed = a52dec-0.7.4-8
installed = aalib-1.4rc5-11
installed = abs-2.4.4-2
...

Edit: Sorry for the double post.

Last edited by dr.lambda (2016-03-04 01:04:41)

Offline

#7 2016-03-04 01:12:58

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

Re: [SOLVED] makepkg cannot install from the AUR anymore.

dr.lambda wrote:

I tried putting

echo "$pkg_file"

in the PKGBUILD surrended by 2 other echo's in the package() funtion and I saw the other 2  echo's messages with an empty line in between so I guess $pkg_file is probably empty.

It's not supposed to be set in the package function.  It's set by makepkg when actually creating the package.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2016-03-04 01:16:31

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] makepkg cannot install from the AUR anymore.

Reinstall the pacman package, maybe?

Offline

#9 2016-03-04 01:25:48

dr.lambda
Member
Registered: 2016-03-02
Posts: 10

Re: [SOLVED] makepkg cannot install from the AUR anymore.

I noticed something weird too, when I use makepkg with a long option for example

makepkg --install

it crashes and outputs this to stderr:

==> Making package: hnb 1.9.17-5 (Fri Mar  4 02:20:30 CET 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found hnb-1.9.17.tar.gz
==> Validating source files with md5sums...
    hnb-1.9.17.tar.gz ... Passed
==> Extracting sources...
  -> Extracting hnb-1.9.17.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
==> Entering fakeroot environment...
/usr/bin/makepkg: line 1780: cannot create temp file for here-document: Success
makepkg: invalid option '--F'

Other long options make him complain about --F as well. It seems like my makepkg is really broken.

Edit: I already tried reïnstalling pacman but that did not help.

Last edited by dr.lambda (2016-03-04 01:29:21)

Offline

#10 2016-03-04 01:32:49

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

Re: [SOLVED] makepkg cannot install from the AUR anymore.

ok lets get a few more basics:

df -h
mount
ls -l /home/lambda/arch/aur/

As for makepkg being broken, you have the correct checksum for the script itself, but it seems some tools it relies on are failing.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#11 2016-03-04 12:31:21

dr.lambda
Member
Registered: 2016-03-02
Posts: 10

Re: [SOLVED] makepkg cannot install from the AUR anymore.

df -h

Filesystem      Size  Used Avail Use% Mounted on
dev             3,9G     0  3,9G   0% /dev
run             3,9G  616K  3,9G   1% /run
/dev/sda3       894G  323G  526G  39% /
tmpfs           3,9G     0  3,9G   0% /dev/shm
tmpfs           3,9G     0  3,9G   0% /sys/fs/cgroup
tmpfs           3,9G     0  3,9G   0% /tmp
/dev/sda1       8,0G   38M  8,0G   1% /boot
tmpfs           790M     0  790M   0% /run/user/1000

mount

proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=4039352k,nr_inodes=1009838,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda3 on / type ext4 (rw,relatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=24,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
tmpfs on /tmp type tmpfs (rw)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=808480k,mode=700,uid=1000,gid=1000)

ls -l /home/lambda/arch/aur/

total 164
drwxr-xr-x 5 lambda lambda 4096 Feb 29 21:34 2048.c
drwxr-xr-x 5 lambda lambda 4096 Feb 29 21:49 bastet
drwxr-xr-x 5 lambda lambda 4096 Feb 22 12:39 brave
drwxr-xr-x 5 lambda lambda 4096 Feb 29 23:30 bs
drwxr-xr-x 5 lambda lambda 4096 Feb 27 00:01 clex
drwxr-xr-x 5 lambda lambda 4096 Mar  2 21:51 cplay
-rw-r--r-- 1 lambda lambda 2244 Mar  4 13:21 error
drwxr-xr-x 6 lambda lambda 4096 Feb 24 23:14 fbpdf-git
drwxr-xr-x 5 lambda lambda 4096 Feb 24 18:11 fim
drwxr-xr-x 5 lambda lambda 4096 Feb 26 05:41 glib
drwxr-xr-x 5 lambda lambda 4096 Feb 26 04:59 herrie
drwxr-xr-x 5 lambda lambda 4096 Mar  4 13:18 hnb
drwxr-xr-x 6 lambda lambda 4096 Feb 22 22:31 imv
drwxr-xr-x 5 lambda lambda 4096 Feb 21 17:42 laptop-mode-tools
drwxr-xr-x 5 lambda lambda 4096 Feb 24 03:48 ledger
drwxr-xr-x 5 lambda lambda 4096 Feb 24 14:48 libtrash
drwxr-xr-x 5 lambda lambda 4096 Feb 26 04:57 libxspf
drwxr-xr-x 6 lambda lambda 4096 Feb 22 11:44 liri-browser-git
drwxr-xr-x 5 lambda lambda 4096 Feb 26 05:43 mcplay
drwxr-xr-x 5 lambda lambda 4096 Feb 27 21:12 mimeo
drwxr-xr-x 5 lambda lambda 4096 Feb 29 21:45 moon-buggy
drwxr-xr-x 5 lambda lambda 4096 Feb 29 21:04 myman
drwxr-xr-x 5 lambda lambda 4096 Feb 29 21:39 ninvaders
drwxr-xr-x 5 lambda lambda 4096 Feb 21 23:40 nmh
drwxr-xr-x 8 lambda lambda 4096 Feb 22 01:54 orbment-git
drwxr-xr-x 4 lambda lambda 4096 Feb 28 01:22 otf-unscii-16-full
drwxr-xr-x 5 lambda lambda 4096 Feb 25 01:31 pal
drwxr-xr-x 5 lambda lambda 4096 Feb 21 20:37 pinentry-tty
drwxr-xr-x 5 lambda lambda 4096 Feb 25 04:22 purple-facebook
drwxr-xr-x 5 lambda lambda 4096 Feb 23 00:27 purple-skypeweb
drwxr-xr-x 6 lambda lambda 4096 Feb 22 11:42 qml-material-git
drwxr-xr-x 6 lambda lambda 4096 Feb 22 04:54 qt5-base-dev-git
drwxr-xr-x 5 lambda lambda 4096 Feb 22 03:20 quill-git
drwxr-xr-x 5 lambda lambda 4096 Mar  1 15:34 ski
drwxr-xr-x 5 lambda lambda 4096 Feb 25 21:22 ttf-inconsolata-g
drwxr-xr-x 3 lambda lambda 4096 Feb 25 20:33 ttf-ms-fonts
drwxr-xr-x 6 lambda lambda 4096 Mar  4 13:22 ultimatestunts
drwxr-xr-x 5 lambda lambda 4096 Mar  3 11:18 uw-ttyp0-font
drwxr-xr-x 5 lambda lambda 4096 Feb 22 01:28 velox
drwxr-xr-x 3 lambda lambda 4096 Feb 22 01:49 velox-git
drwxr-xr-x 8 lambda lambda 4096 Feb 22 01:53 wlc-git

Offline

#12 2016-03-04 12:45:43

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

Re: [SOLVED] makepkg cannot install from the AUR anymore.

Hmm, everything seems to be in order.  I'm stumped.  We still haven't seen a complete output from makepkg though.  There seem to be many different problems, but it's likely they are all the result the same underlying issue.  I'd like to track down the first error in the chain.  To do this, please post the complete output from makepkg with both stdout and stderr:

makepkg > output.log 2>&1

include the -sf or other flags for makepkg as needed.  Then post the output.log on a filesharing site and link to it here.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#13 2016-03-04 15:29:48

dr.lambda
Member
Registered: 2016-03-02
Posts: 10

Re: [SOLVED] makepkg cannot install from the AUR anymore.

I deleted everything in the folder except for .git and PKGBUILD and then I ran

makepkg > output.log 2>&1

.
I also removed some binary stuff from output.log because it could not be uploaded so I replaced it with [binary stuff].
I think that the binary stuff that I removed was the compressed data that "cannot be written to a terminal".

Here is the file:
http://pasted.co/f858fe5b

Redirecting the output does change the output though because he no longer complains at the end about bsdtar, xz, and compressed data not being able to be written to a terminal.

Offline

#14 2016-03-04 15:38:41

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] makepkg cannot install from the AUR anymore.

For some reason, all file redirection seems to be going to stderr (I think) instead of the file. /bin is a symlink to usr/bin, and /usr/bin/bash is bash 4.3, right?

How about the output of `env`?

Last edited by Scimmia (2016-03-04 15:39:36)

Offline

#15 2016-03-04 16:17:46

dr.lambda
Member
Registered: 2016-03-02
Posts: 10

Re: [SOLVED] makepkg cannot install from the AUR anymore.

env

XDG_VTNR=1
XDG_SESSION_ID=c1
XDG_DATA_HOME=/home/lambda/.local/share
SHELL=/bin/bash
TERM=screen
LD_PRELOAD=/usr/lib/libtrash.so
OLDPWD=/home/lambda/arch/aur
USER=lambda
TMUX=/tmp/tmux-1000/default,351,0
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/lambda/.local/bin
MAIL=/var/spool/mail/lambda
EVENT_NOEPOLL=1
PWD=/home/lambda/arch/aur/hnb
LANG=en_DK.UTF-8
TMUX_PANE=%5
XDG_SEAT=seat0
HOME=/home/lambda
SHLVL=2
XDG_CONFIG_HOME=/home/lambda/.config
LOGNAME=lambda
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
_=/usr/bin/env

/bin seems to be a symlink to usr/bin.

stat /bin

  File: '/bin' -> 'usr/bin'
  Size: 7               Blocks: 0          IO Block: 4096   symbolic link
Device: 803h/2051d      Inode: 12          Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2016-03-03 22:57:27.620507003 +0100
Modify: 2015-09-30 21:17:54.000000000 +0200
Change: 2016-02-20 22:25:16.824051170 +0100
 Birth: -

Bash seems to be fine as well.

type bash

bash is hashed (/usr/bin/bash)

bash --version

GNU bash, version 4.3.42(1)-release (x86_64-unknown-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

What do you mean with file redirection? I can redirect with > to files and I can also redirect to less with | so that seems to work.

Last edited by dr.lambda (2016-03-04 16:22:34)

Offline

#16 2016-03-04 16:22:35

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] makepkg cannot install from the AUR anymore.

Can you try with a new user account?

Offline

#17 2016-03-04 17:40:22

apg
Developer
Registered: 2012-11-10
Posts: 211

Re: [SOLVED] makepkg cannot install from the AUR anymore.

dr.lambda wrote:

env

...
LD_PRELOAD=/usr/lib/libtrash.so
...
libtrash.install wrote:

post_install() {
  echo ">> To enable libtrash:"
  echo ">>   export LD_PRELOAD=/usr/lib/libtrash.sh"
  echo ">> To disable libtrash:"
  echo ">>   unset LD_PRELOAD"
  echo ">> WARNING: a few programs might not work while libtrash is enable"
  echo ">>          currently known: fakeroot, chromium and firefox"
  echo ">>          disable libtrash before using any of them."
}

Offline

#18 2016-03-04 17:53:37

dr.lambda
Member
Registered: 2016-03-02
Posts: 10

Re: [SOLVED] makepkg cannot install from the AUR anymore.

apg wrote:
dr.lambda wrote:

env

...
LD_PRELOAD=/usr/lib/libtrash.so
...
libtrash.install wrote:

post_install() {
  echo ">> To enable libtrash:"
  echo ">>   export LD_PRELOAD=/usr/lib/libtrash.sh"
  echo ">> To disable libtrash:"
  echo ">>   unset LD_PRELOAD"
  echo ">> WARNING: a few programs might not work while libtrash is enable"
  echo ">>          currently known: fakeroot, chromium and firefox"
  echo ">>          disable libtrash before using any of them."
}

I think that is should be /usr/lib/libtrash.so instead of /usr/lib/libtrash.sh.

Also yes it worked !!!! I just installed a package from the aur that did not work before after typing "unset LD_PRELOAD"! It seems that libtrash was the reason that makepkg did not work and the solition appears to be to disable libtrash. Thanks for the help!

Last edited by dr.lambda (2016-03-04 18:04:01)

Offline

#19 2016-03-04 17:58:21

apg
Developer
Registered: 2012-11-10
Posts: 211

Re: [SOLVED] makepkg cannot install from the AUR anymore.

dr.lambda wrote:

Hey it says /usr/lib/libtrash.sh but I think it should be /usr/lib/libtrash.so.

Yes, there is a typo in the install script, the point is that libtrash breaks fakeroot and therefore makepkg.

Offline

#20 2016-03-04 17:58:34

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

Re: [SOLVED] makepkg cannot install from the AUR anymore.

(edit: cross posted with the above) It's a typo - and it's not relevant to this thread.  The problem is that setting LD_PRELOAD (which jumped out at me too) is known to break fakeroot.  Fakeroot is used by makepkg.  So unset LD_PRELOAD for using makepkg.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#21 2016-03-04 18:06:34

dr.lambda
Member
Registered: 2016-03-02
Posts: 10

Re: [SOLVED] makepkg cannot install from the AUR anymore.

Yeah sorry I just saw that and edited my post but you were too soon. Anyway I will mark this as solved and thanks again for the help!

Offline

Board footer

Powered by FluxBB