Package Details: apt-cacher-ng 3.7.4-10

Git Clone URL: https://aur.archlinux.org/apt-cacher-ng.git (read-only, click to copy)
Package Base: apt-cacher-ng
Description: A caching proxy specialized for package files
Upstream URL: http://www.unix-ag.uni-kl.de/~bloch/acng/
Licenses: custom
Submitter: dequis
Maintainer: solsticedhiver
Last Packager: solsticedhiver
Votes: 13
Popularity: 0.034780
First Submitted: 2015-08-26 17:11 (UTC)
Last Updated: 2024-05-19 10:33 (UTC)

Latest Comments

1 2 3 4 Next › Last »

luziferius commented on 2024-05-18 15:34 (UTC)

Compilation seems to be broken (on aarch64 at least). There are two issues:

  1. The mirrorlist is fetched from a git master branch, so the hashes change from time to time, breaking the package build because of a hard-coded sha256 hash. This file should not be validated
  2. The C++ compiler complains about unknown functions, because several source files miss #include <algorithm> lines. This seems to be a recent change in the compiler behavior, as it built fine before.

Please use the provided patch that fixes both issues:

--- PKGBUILD
+++ PKGBUILD
@@ -10,7 +10,7 @@

 pkgname=apt-cacher-ng
 pkgver=3.7.4
-pkgrel=9
+pkgrel=10
 pkgdesc="A caching proxy specialized for package files"
 url="http://www.unix-ag.uni-kl.de/~bloch/acng/"
 arch=('i686' 'x86_64' 'armv7h' 'aarch64')
@@ -22,6 +22,7 @@ source=("http://deb.debian.org/debian/pool/main/a/apt-cacher-ng/apt-cacher-ng_${
         'https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/master/core/pacman-mirrorlist/mirrorlist'
         'acng.conf.patch'
         'apt-cacher-ng.service.patch'
+        'include_algorithm.patch'
         'have_strlcpy.patch'
         'apt-cacher-ng.tmpfile'
 )
@@ -29,15 +30,17 @@ source=("http://deb.debian.org/debian/pool/main/a/apt-cacher-ng/apt-cacher-ng_${
 backup=('etc/apt-cacher-ng/acng.conf' 'etc/apt-cacher-ng/security.conf')
 install=apt-cacher-ng.install
 sha256sums=('63140473a669c42f5e2219e38fa9d7c733f9047699dde52c3bd828e372929a5f'
-            '5d622ca30f7a47e6e9cd536720912e0ef0a1ee96d4a5f3fe7c119cb495aec76f'
+            'SKIP'
             '695c074de35a75730e6b711960993f00f120634276349c8640db2ad883a5ad09'
             'c89335ea833fc04ec2ce6598e3fdaf86aa8f2fa0892203eef4c0a5cb24d6c188'
+            '761dd0fcf53f9da7fa7a9a729cee6a12a65ea116f63b98fd87583e0e2cf4021d'
             '0d584e8193ab2c63d4d629c4fdca23e09dc369953a60c57cbb4a6138b5136265'
             'ead4e80771f88b42d922aff6c62da93ae9c9b001a071043e2092949f2337b459')

 prepare() {
   cd ${srcdir}/${pkgname}-${pkgver}
   patch -i ${srcdir}/have_strlcpy.patch -p0
+  patch -i ${srcdir}/include_algorithm.patch -p0

   # === uncomment the next line to update mirrors [w3m package is needed]; it will take some time ===
   #make -f scripts/Makefile.release gendbs

And the content of include_algorithm.patch referenced above:

--- fs/httpfs.cc    2021-12-07 15:43:56.000000000 +0100
+++ fs/httpfs.cc    2024-05-18 16:11:02.848787530 +0200
@@ -37,6 +37,7 @@
 #ifdef HAVE_DLOPEN
 #include <dlfcn.h>
 #endif

+#include <algorithm>
 #include <list>
 #include <unordered_map>
--- src/aconnect.cc 2021-12-07 15:43:56.000000000 +0100
+++ src/aconnect.cc 2024-05-18 16:11:02.848787530 +0200
@@ -6,6 +6,7 @@
 #include "debug.h"
 #include "portutils.h"

+#include <algorithm>
 #include <future>

 #include <sys/types.h>

--- src/acregistry.cc   2021-12-07 15:43:56.000000000 +0100
+++ src/acregistry.cc   2024-05-18 16:11:02.848787530 +0200
@@ -5,6 +5,7 @@
 #include "cleaner.h"
 #include "evabase.h"

+#include <algorithm>
 #include <list>

 #define IN_ABOUT_ONE_DAY 100000

--- src/caddrinfo.cc    2021-12-07 15:43:56.000000000 +0100
+++ src/caddrinfo.cc    2024-05-18 16:11:02.848787530 +0200
@@ -1,5 +1,6 @@
 #include "meta.h"

+#include <algorithm>
 #include <deque>
 #include <memory>
 #include <list>

--- src/header.cc   2021-12-07 15:43:56.000000000 +0100
+++ src/header.cc   2024-05-18 16:11:02.848787530 +0200
@@ -1,4 +1,5 @@

+#include <algorithm>
 #include "debug.h"
 #include "acfg.h"
 #include "meta.h"

nova-2nd commented on 2024-01-28 19:01 (UTC)

@solsticedhiver Hi,

Would you mind integrating this patch from Ubuntu ( https://launchpad.net/ubuntu/+source/apt-cacher-ng/3.7.4-1ubuntu1 ), since it would fix exactly my problem.

Greets, Stefan


In file included from /home/xxxx/.cache/yay/apt-cacher-ng/src/apt-cacher-ng-3.7.4/src/astrop.cc:9:
/home/xxxx/.cache/yay/apt-cacher-ng/src/apt-cacher-ng-3.7.4/src/meta.h:326:44: error: operator '!' has no right operand
  326 | #if !defined(HAVE_STRLCPY) || !HAVE_STRLCPY
      |                                            ^
In file included from /home/xxxx/.cache/yay/apt-cacher-ng/src/apt-cacher-ng-3.7.4/src/acbuf.cc:6,
                 from /home/xxxx/.cache/yay/apt-cacher-ng/src/apt-cacher-ng-3.7.4/client/client.cc:6:
/home/xxxx/.cache/yay/apt-cacher-ng/src/apt-cacher-ng-3.7.4/src/meta.h:326:44: error: operator '!' has no right operand
  326 | #if !defined(HAVE_STRLCPY) || !HAVE_STRLCPY
      |                                            ^

solsticedhiver commented on 2023-04-28 15:29 (UTC)

@DHxchange this is fixed. I have uploaded a libwrap package to AUR.

DHxchange commented on 2023-04-27 04:27 (UTC)

This package no longer builds due to the missing libwrap dependency.

solsticedhiver commented on 2023-01-25 10:23 (UTC)

I couldn't make that change because that's already the dfault value in acng.conf.

I don't know how you end up having the log in /var/tmp. I have them in /var/log/apt-cacher-ng without changing anything...

pellcorp commented on 2023-01-25 01:46 (UTC)

I noticed that logs are currently going to /var/tmp even though the /var/log/apt-cacher-ng/ directory gets created, a simple:

sudo sed -i 's!LogDir.*!LogDir: /var/log/apt-cacher-ng!g' /etc/apt-cacher-ng/acng.conf

after installation fixes this issue, but would be good to get it done by the PKBUILD

Geek_Almighty commented on 2022-01-07 12:23 (UTC)

No one is currently maintaining the package, would anyone like to step in?

I haven't done anything related to AUR pkgs before, don't mind learning, however, I don't want to ruin this for everyone, including myself :D

cherkaba commented on 2021-08-19 17:14 (UTC)

ok i've solved my issue by putting my extra partition in the fstab file ;)

cherkaba commented on 2021-08-19 12:28 (UTC) (edited on 2021-08-19 12:44 (UTC) by cherkaba)

hi, i am facing a probleme with aptCng: it does'nt accepte changing default path for CacheDir.

i did everything too find a solution like:


- # chown -R /NEWPATH/TO/MyCACH = NOK
- # usermod -a -G MYGROUP Apt-Cacher-NG = NOK

the error is same in journalctl:


... apt-cacher-ng[3081]: Error: Cannot create any directory in ...
... systemd[1]: apt-cacher-ng.service: Main process exited, code=exited, status=1/FAILURE

So what's wrong

sulaweyo commented on 2021-06-04 10:02 (UTC)

As I'm no longer using apt-cacher in my environment I'll disown it so somebody who actually uses it can take it over.