Package Base Details: apt

Git Clone URL: (read-only, click to copy)
Keywords: apt debian lib management package
Submitter: JonnyJD
Maintainer: moe_narrow (
Last Packager: moe_narrow
Votes: 37
Popularity: 0.073223
First Submitted: 2013-01-27 01:20
Last Updated: 2021-03-19 02:25

Packages (2)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

mbunkus commented on 2015-02-11 12:15

For me I could fix it by using dash for configure instead of bash. This addition in PKGBUILD right before ./configure --prefix… fixed it:

sed -i -e 's|#! /bin/sh|#! /bin/dash|' configure

JonnyJD commented on 2015-02-11 12:03

I am still at bash 4.3.30(1) and I can't do an update right now (important stuff going on on the system).

Could you be more explicit with "I can build the package outside of the PKGBUILD"?
Just running
$ ./configure && make
fails with
configure: error: cannot run /bin/sh buildlib/config.sub
(having automake 1.14.1)

When I do the automake step before:
$ automake --add-missing --no-force -W none
$ ./configure --prefix=/usr && make

I do get this:

warning: failed to load external entity "/usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml-1_1/chunk.xsl"
compilation error: file ./docbook-html-style.xsl line 5 element import
xsl:import : unable to load /usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml-1_1/chunk.xsl
../buildlib/docbook.mak:35: die Regel für Ziel „/var/abs/local/_src/_debian/apt/apt-“ scheiterte

That is the reason I do that sed parts to just fix the docs target.
I do have these installed:
docbook-xml 4.5-6
docbook-xsl 1.78.1-1
(again, I can't run a full upgrade just now)

So please do be more specific with "I've just build it".
There is no big difference of build() to an outside build in general. I don't see why an outside build works better for you than just changing the build() part of the PKGBUILD.

Anonymous comment on 2015-02-11 11:41

I'm on zsh too. But I manage to fix the problem using a workaround. It happens that I can build the package outside the PKGBUILD. So I've just build it, comment out the build function in PKGBUILD and run makepkg it to package it. Not the best way to do it, but it works. Hope this helps those who got the same issue.

mbunkus commented on 2015-02-11 09:29

I have the same problem eomarjee has. My /bin/sh is a symlink to bash, bash is v4.3.33(1)-release.

My user's shell is zsh, but it happens even if I change it to bash.

JonnyJD commented on 2015-02-04 23:18

I can't reproduce your problem. Maybe you have a "weird" shell variant?

I have
$ ls -lh `/bin/sh`
lrwxrwxrwx 1 root root 4 6. Okt 08:06 /bin/sh -> bash
$ bash --version
GNU bash, Version 4.3.30(1)-release (x86_64-unknown-linux-gnu)

Or maybe it is test?
what does that give:
$ test -n "" && echo not empty
(should be no output)

Can anybody else reproduce that behavior?

Anonymous comment on 2015-02-03 13:47

configure: WARNING: unrecognized options:
./configure: line 9574: syntax error near unexpected token `fi'
./configure: line 9574: `fi'
==> ERROR: A failure occurred in build().

Anonymous comment on 2015-02-03 13:41

./configure: line 9574: syntax error near unexpected token `fi'
./configure: line 9574: `fi'
==> ERROR: A failure occurred in build().

conormanning commented on 2014-06-27 13:37

Package on the server is out of date again. 1.0.5 works with SHA256sum 'eb88a82e2a044c1612c6d6aadf7cc0b5587298df3352e9755f5420be8abd62d7'.

There is also a 1.1 but I haven't tried it.

JonnyJD commented on 2014-05-30 00:58

Updated to 1.0.3.
This depends on "gtest" now for the build, even if it didn't with 1.0.
Also note that gtest is not only needed for the tests, but also for the non-test build.

littledude commented on 2014-05-29 21:24

Could you update to 1.0.3 please ? The 1.0 is not available for download anymore :
-> Downloading apt_1.0.tar.xz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
==> ERROR: Failure while downloading apt_1.0.tar.xz
==> ERROR: Makepkg was unable to build .

After tried to edit the pkgbuild (changinthe the version and the md5sum), but I cannot build it after that :
/tmp/corentih/yaourt-tmp-corentih/aur-apt/src/upstream.git/test/libapt/ fatal error: gtest/gtest.h: No such file or directory
#include <gtest/gtest.h>
compilation terminated.