FS#71621 - [squid] [ARMv8] systemd squid.service fails with result 'timeout'
Attached to Project:
Community Packages
Opened by JC Francois (jeancf) - Monday, 26 July 2021, 19:04 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 15 November 2021, 12:16 GMT
Opened by JC Francois (jeancf) - Monday, 26 July 2021, 19:04 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 15 November 2021, 12:16 GMT
|
Details
Description:
I have been running squid on a Raspberry Pi on Arch Linux for a couple of years without issue. A while back an update started causing the squid systemd service to time out and fail. I have identified the update as a bug fix described here: https://github.com/squid-cache/squid/pull/539. Here is the update in question: https://github.com/squid-cache/squid/commit/6fa8c66435d55a2e713db0222cdca3a9dccf5bbe#diff-8ee48611fa2907dc60dcadd11cd9480d7e57fc34298c3d3541f702ed29277a40 The modification of the squid.service file has been implemented in the Arch package, however the build configuration switch "--with-systemd" that is also required appears to be missing from the PKGBUILD file https://github.com/archlinux/svntogit-community/blob/packages/squid/trunk/PKGBUILD Additional info: Bug that I filed with squid-cache discussing this issue and the solution proposed :"Building with --with-systemd is required if one wants to make sure that Squid supports systemd notifications." https://bugs.squid-cache.org/show_bug.cgi?id=5145 Can you please add the "--with-systemd" switch to the build configuration? |
This task depends upon
Closed by Sergej Pupykin (sergej)
Monday, 15 November 2021, 12:16 GMT
Reason for closing: Fixed
Additional comments about closing: should be fixed in community-testing for x86_64. Cannot do anything for arm.
Monday, 15 November 2021, 12:16 GMT
Reason for closing: Fixed
Additional comments about closing: should be fixed in community-testing for x86_64. Cannot do anything for arm.
Adding systemd to makedepends configure then detects systemd support through autodetection and through the option --with-systemd.
Added systemd-libs to depends. Explicitly adding systems also solved
FS#71286,FS#66762covers why systemd needs to be added to makedepends.Note squid 4.16-1 was built with systemd installed in the chroot, also has gcc7-7.4.1+20181207-3-x86_64 (custom chroot?) so should not have the issue.
> Note squid 4.16-1 was built with systemd installed in the chroot, also has gcc7-7.4.1+20181207-3-x86_64 (custom chroot?) so should not have the issue.
I confirm that my system runs with systemd 249.1-1 and squid 4.16-1 and it does have the issue. Squid does not issue any notification to systemd which causes the service to time out and fail.
FS#71286, so probably next squid build for arm will workType=forking
ExecStart=/usr/sbin/squid -sYC