Bug 290630 - www/squid: Update 6.14 => 7.3
Summary: www/squid: Update 6.14 => 7.3
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-28 12:17 UTC by ant2
Modified: 2025-12-03 07:03 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (timp87)


Attachments
squid-7.3.patch (18.86 KB, patch)
2025-10-29 05:39 UTC, takefu
no flags Details | Diff
port patch (11.15 KB, patch)
2025-11-04 23:19 UTC, Pavel Timofeev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ant2 2025-10-28 12:17:31 UTC
Is there any plans to bring squid 7.2+ to ports?
Comment 1 Pavel Timofeev 2025-10-28 15:08:47 UTC
Hi
Yes, I do have plans to upgrade it.
I'll try to make it this week.
Comment 2 takefu 2025-10-29 05:39:14 UTC
Created attachment 264986 [details]
squid-7.3.patch

Update to 7.3

https://github.com/squid-cache/squid/releases/tag/SQUID_7_3

portlint(1) Compliant.
Comment 3 ant2 2025-10-29 08:15:17 UTC
I'm sorry but how can I apply this patch over poudriere ports tree?
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2025-10-29 12:44:00 UTC
(In reply to ant2 from comment #3)
git apply?
Comment 5 ant2 2025-10-29 13:17:58 UTC
Build failed in my case. 

...
checking for pkg-config... no
configure: WARNING: pkg-config not found. Many optional features with external 
...
configure: OpenSSL library support: yes  -lcrypto -lssl
checking for LIBMIT_KRB5... no
configure: Library 'mit-krb5' support: no (auto)
./configure: LIBHEIMDAL_KRB5_PATH+=-L/usr/lib: not found
./configure: LIBHEIMDAL_KRB5_CFLAGS+=-I/usr/include: not found
checking for LIBHEIMDAL_KRB5... no
configure: error: Required library 'heimdal-krb5' not found
===>  Script "configure" failed unexpectedly.
Please report the problem to timp87@gmail.com [maintainer] and attach the
"/wrkdirs/usr/ports/www/squid/work/squid-7.3/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

checking how to recognize dependent libraries... pass_all
checking for dlltool... no
...

Options was:
...
====> GSSAPI Security API support: you have to select exactly one of them
     GSSAPI_BASE=on: GSSAPI support via base system (needs Kerberos)
     GSSAPI_HEIMDAL=off: GSSAPI support via security/heimdal
     GSSAPI_MIT=off: GSSAPI support via security/krb5
     GSSAPI_NONE=off: Disable GSSAPI support
...

uname -a
FreeBSD 14.3-STABLE FreeBSD 14.3-STABLE #0 stable/14-n272483
Comment 6 ant2 2025-10-29 13:21:44 UTC
Sorry. 
Ignore my comment https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290630#c5
There was no FreeBSD-kerberos basepackage in my system.
Comment 7 Vladimir Druzenko freebsd_committer freebsd_triage 2025-10-29 13:36:26 UTC
(In reply to ant2 from comment #5)
> checking for pkg-config... no
> configure: WARNING: pkg-config not found. Many optional features with external
Maybe add USES+=pkgconfig?
Comment 8 ant2 2025-10-29 14:04:28 UTC
I can report that with patch above (from 2025-10-29 05:39 UTC) squid 7.3 was successfully builded in my case.
Comment 9 Pavel Timofeev 2025-11-04 22:30:27 UTC
Thank you, guys.

The base heimdal kerberos detection is messy indeed.
I found how to workaround it, but need a bit more time for testing. So I'll post port patch within next few days.
Comment 10 Pavel Timofeev 2025-11-04 23:19:48 UTC
Created attachment 265166 [details]
port patch

- upgrade to latest 7.3, see changelog at https://github.com/squid-cache/squid/blob/SQUID_7_3/ChangeLog
- remove all patch sites. They do not exist anymore, project moved to github
- remove ESI, IDENT options as upstream did
- rename --without-gnugss to --without-gss to follow changes in configure script
- add --without-mit-krb5 paramater to GSSAPI_BASE_CONFIGURE_ON (for fbsd < 15) and GSSAPI_HEIMDAL_CONFIGURE_ON (for fbsd 15+) to stop auto-detection of MIT KRB5 which comes before HEIMDAL in configure
- remove SMB_LM basic auth helper as upstream did
- add patch to fix build with based heimdal krb5 on fbsd < 15
- remove workaround for https://bugs.squid-cache.org/show_bug.cgi?id=5390 in squid rc script, not actual for squid 7
- apply portfmt


I'll report configure script problems with heimdal krb5 detection to upstream. Hope they will fix it in the next version
Comment 11 Pavel Timofeev 2025-11-05 19:44:14 UTC
Still has problems under freebsd 15. Fixing