Package Base Details: apt

Git Clone URL: https://aur.archlinux.org/apt.git (read-only, click to copy)
Keywords: apt debian lib management package
Submitter: JonnyJD
Maintainer: moe_narrow
Last Packager: MarkWalters.pw
Votes: 39
Popularity: 0.108635
First Submitted: 2013-01-27 01:20 (UTC)
Last Updated: 2023-04-20 04:01 (UTC)

Packages (2)

Latest Comments

1 2 3 4 5 6 .. 9 Next › Last »

sirus20x6 commented on 2023-04-16 05:46 (UTC) (edited on 2023-04-16 05:48 (UTC) by sirus20x6)

/usr/include/features.h:413:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
  413 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
/home/sirus/.cache/trizen/sources/apt/src/apt-2.6.0/apt-pkg/init.cc: In function ‘bool pkgInitArchTupleMap()’:
/home/sirus/.cache/trizen/sources/apt/src/apt-2.6.0/apt-pkg/init.cc:59:64: error: ‘DPKG_DATADIR’ was not declared in this scope
   59 |    auto tuplepath = _config->FindFile("Dir::dpkg::tupletable", DPKG_DATADIR "/tupletable");
      |                                                                ^~~~~~~~~~~~
/home/sirus/.cache/trizen/sources/apt/src/apt-2.6.0/apt-pkg/init.cc:60:80: error: expected ‘)’ before string constant
   60 |    auto tripletpath = _config->FindFile("Dir::dpkg::triplettable", DPKG_DATADIR "/triplettable");
      |                                        ~                                       ^~~~~~~~~~~~~~~~
      |                                                                                )
/home/sirus/.cache/trizen/sources/apt/src/apt-2.6.0/apt-pkg/init.cc:61:72: error: expected ‘)’ before string constant
   61 |    auto cpupath = _config->FindFile("Dir::dpkg::cputable", DPKG_DATADIR "/cputable");
      |                                    ~                                   ^~~~~~~~~~~~
      |                                                                        )
make[2]: *** [apt-pkg/CMakeFiles/apt-pkg.dir/build.make:692: apt-pkg/CMakeFiles/apt-pkg.dir/init.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:484: apt-pkg/CMakeFiles/apt-pkg.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
make: Leaving directory '/home/sirus/.cache/trizen/sources/apt/src/apt-2.6.0/build'
==> ERROR: A failure occurred in build().
    Aborting...
:: Unable to build apt - makepkg exited with code: 4
=>> Try again? [y/N]: 

allspark commented on 2023-03-30 15:50 (UTC)

dpkg is also a make dependency

jackro commented on 2023-01-17 02:42 (UTC)

Looks like a missing dependency on po4a as well (manually fixing the db dependency):

[ 10%] Generating planners/dump
[ 10%] Built target ..-solvers-dump-link_names
[ 11%] Generating de/apt.ent (or dropping it)
/bin/sh: line 1: po4a: command not found
make[2]: *** [doc/CMakeFiles/apt-doc.dir/build.make:758: doc/de/apt.ent.po4a-stamp] Error 127
make[1]: *** [CMakeFiles/Makefile2:965: doc/CMakeFiles/apt-doc.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
make: Leaving directory '/home/build/pkgbuild/aur/apt/src/apt-2.5.3/build'
==> ERROR: A failure occurred in build().
    Aborting...

jackro commented on 2023-01-17 02:39 (UTC)

This package is missing a makedepends (or depends?) on db:

==> Making package: apt 2.5.3-2 (Tue Jan 17 02:06:47 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading apt-2.5.3.tar.bz2...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1291    0  1291    0     0   1708      0 --:--:-- --:--:-- --:--:--  1707
100  828k    0  828k    0     0   498k      0 --:--:--  0:00:01 --:--:--  497k
100 1823k    0 1823k    0     0   667k      0 --:--:--  0:00:02 --:--:--  667k
100 2672k    0 2672k    0     0   711k      0 --:--:--  0:00:03 --:--:--  711k
100 2938k    0 2938k    0     0   751k      0 --:--:--  0:00:03 --:--:--  751k
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha512sums...
    apt-2.5.3.tar.bz2 ... Passed
==> Extracting sources...
  -> Extracting apt-2.5.3.tar.bz2 with bsdtar
==> Starting build()...
< ... snip ... >
-- Configuring incomplete, errors occurred!
See also "/home/build/pkgbuild/aur/apt/src/apt-2.5.3/build/CMakeFiles/CMakeOutput.log".
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could not find Berkeley DB >= 4.1 (missing: BERKELEY_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  CMake/FindBerkeley.cmake:57 (find_package_handle_standard_args)
  CMakeLists.txt:88 (find_package)


==> ERROR: A failure occurred in build().
    Aborting...

ragreener1 commented on 2022-05-30 15:52 (UTC)

This fails to build.

This fixes it: https://github.com/Debian/apt/pull/133

It's not merged upstream, but should probably be applied as a patch

tuxayo commented on 2022-03-01 13:07 (UTC) (edited on 2022-03-01 13:08 (UTC) by tuxayo)

error 403 for the source ( https://salsa.debian.org/apt-team/apt/-/archive/2.3.15/apt-2.3.15.tar.bz2 )

edit: no worries that looks transient. https://salsa.debian.org/ does 403 also.

Forty-Bot commented on 2021-12-22 20:41 (UTC) (edited on 2021-12-22 20:42 (UTC) by Forty-Bot)

From 843d402e231fb11bc3d0211fb55f497b5b20b597 Mon Sep 17 00:00:00 2001
From: Sean Anderson <seanga2@gmail.com>
Date: Wed, 22 Dec 2021 15:40:35 -0500
Subject: [PATCH] Updated: 2.3.13

We can now use Arch's po4a. Also switch to downloading tar archives so we
can use sha512sums.
---
 .SRCINFO | 11 ++++-------
 PKGBUILD | 19 ++++---------------
 2 files changed, 8 insertions(+), 22 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 18a13b8..8a7afbe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = apt
-   pkgver = 2.2.0
+   pkgver = 2.3.13
    pkgrel = 1
-   url = http://packages.debian.org
+   url = https://salsa.debian.org/apt-team/apt
    arch = i686
    arch = x86_64
    license = GPL2
@@ -27,10 +27,8 @@ pkgbase = apt
    provides = libapt-pkg
    provides = libapt-pkg-dev
    provides = apt-utils
-   source = git+https://salsa.debian.org/apt-team/apt.git#tag=2.2.0
-   source = https://github.com/mquinson/po4a/releases/download/v0.60/po4a-0.60.tar.gz
-   sha256sums = SKIP
-   sha256sums = c8d9c28758fa007e8e2989b5820c55910a6533dab581208d0c8acf4d43027b59
+   source = https://salsa.debian.org/apt-team/apt/-/archive/2.3.13/apt-2.3.13.tar.bz2
+   sha512sums = a01be2c2973a9e606e97a331f68089bfa41ca3464ea48b8d2f427d322d3ac71a6f718311a290603cb4f743267ebe8e385bee975460f6a90d68949ad2cdbf8c44

 pkgname = apt
    pkgdesc = Command-line package manager used on Debian-based systems
@@ -43,4 +41,3 @@ pkgname = apt
 pkgname = apt-docs
    pkgdesc = Documentation for apt
    arch = any
-
diff --git a/PKGBUILD b/PKGBUILD
index 59504db..6c0b73e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,30 +7,19 @@

 pkgbase=apt
 pkgname=('apt' 'apt-docs')
-pkgver=2.2.0
+pkgver=2.3.13
 pkgrel=1
 arch=('i686' 'x86_64')
-url="http://packages.debian.org"
+url="https://salsa.debian.org/apt-team/apt"
 license=('GPL2')
 makedepends=('cmake' 'dpkg' 'docbook-xsl' 'doxygen' 'git' 'gtest' 'w3m' 'triehash'
              'perl-text-wrapi18n' 'perl-locale-gettext' 'perl-yaml-tiny'
              'perl-term-readkey' 'perl-sgmls' 'perl-module-build' 'perl-unicode-linebreak' 'perl-pod-parser' 'po4a' 'xxhash')
 provides=('libapt-inst' 'libapt-pkg' 'libapt-pkg-dev' "apt-utils")
-source=("git+https://salsa.debian.org/apt-team/apt.git#tag=${pkgver}"
-   "https://github.com/mquinson/po4a/releases/download/v0.60/po4a-0.60.tar.gz")
-sha256sums=('SKIP'
-            'c8d9c28758fa007e8e2989b5820c55910a6533dab581208d0c8acf4d43027b59')
+source=("https://salsa.debian.org/apt-team/apt/-/archive/$pkgver/apt-$pkgver.tar.bz2")
+sha512sums=('a01be2c2973a9e606e97a331f68089bfa41ca3464ea48b8d2f427d322d3ac71a6f718311a290603cb4f743267ebe8e385bee975460f6a90d68949ad2cdbf8c44')

 build() {
-  # arch linux's po4a is too new to build apt, so build an older version
-  # will likely be good to use system po4a when it's updated in sid
-  msg2 "Building po4a 0.60..."
-  cd "$srcdir/po4a-0.60"
-  perl Build.PL installdirs=vendor create_packlist=0
-  LC_ALL=en_US.UTF-8 perl Build
-  [[ "$PATH" =~ /usr/bin/vendor_perl ]] || export PATH="$PATH:/usr/bin/vendor_perl"
-
-  msg2 "Building apt..."
   cd "$srcdir/$pkgname"

   # docbook xsl is stored with the version on Arch
-- 
2.33.0

iamtalhaasghar commented on 2021-05-28 02:20 (UTC) (edited on 2021-05-28 02:21 (UTC) by iamtalhaasghar)

@Un1Gfn apt is working now. Thank you!!

Un1Gfn commented on 2021-05-12 18:18 (UTC) (edited on 2021-05-12 18:19 (UTC) by Un1Gfn)

@iamtalhaasghar

gtest provides /usr/lib/libgmock.so.1.10.0

gtest is already in makedepends=().

Maybe yay fails to install gtest before building?

Also if you yay <pkg> please yay -Syu <pkg> instead.

iamtalhaasghar commented on 2021-05-12 11:26 (UTC)

I got following error while installing apt using "yay"

CMake Error at /usr/lib64/cmake/GTest/GTestTargets.cmake:112 (message):
  The imported target "GTest::gmock" references the file

     "/usr/lib/libgmock.so.1.10.0"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib64/cmake/GTest/GTestTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib64/cmake/GTest/GTestConfig.cmake:42 (include)
  /usr/share/cmake-3.20/Modules/FindGTest.cmake:187 (find_package)
  test/libapt/CMakeLists.txt:8 (find_package)


-- Configuring incomplete, errors occurred!
See also "~/.cache/yay/apt/src/apt/build/CMakeFiles/CMakeOutput.log".
See also "~/.cache/yay/apt/src/apt/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
    Aborting...
error making: apt