Bug 284532 - www/squid: Build fails if TDB option is enabled
Summary: www/squid: Build fails if TDB option is enabled
Status: Closed FIXED
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-02-03 12:35 UTC by Yasuhiro Kimura
Modified: 2025-02-05 06:40 UTC (History)
1 user (show)

See Also:
yasu: maintainer-feedback+


Attachments
port patch (957 bytes, patch)
2025-02-04 23:00 UTC, Pavel Timofeev
timp87: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yasuhiro Kimura freebsd_committer freebsd_triage 2025-02-03 12:35:28 UTC
If TDB option is enabled, build fails at configure phase as following.

----------------------------------------------------------------------
configure: checking log helpers: file DB
configure: log helpers to be built:  file DB
configure: checking acl/external helpers: time_quota session file_userip unix_group delayer
checking for LIBTDB... no
checking for sys/stat.h... (cached) yes
checking for tdb.h... yes
configure: error: Required TrivialDB library 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-6.12/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

Stop.
make: stopped in /usr/ports/www/squid
----------------------------------------------------------------------

Conditions are,

Host: 14.2-RELEASE amd64
Poudriere: 3.4.2
Jail: Same as host
Ports tree: ports b31003d07b00 (main branch)
Comment 1 Pavel Timofeev 2025-02-04 23:00:50 UTC
Created attachment 257243 [details]
port patch

please verify
Comment 2 Yasuhiro Kimura freebsd_committer freebsd_triage 2025-02-05 06:35:24 UTC
I confirmed your patch fixes build error. So I'll commit it.
Comment 3 commit-hook freebsd_committer freebsd_triage 2025-02-05 06:40:08 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b357fc2787483896354af0635d24887d8d0dc277

commit b357fc2787483896354af0635d24887d8d0dc277
Author:     Pavel Timofeev <timp87@gmail.com>
AuthorDate: 2025-02-04 23:00:19 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2025-02-05 06:39:02 +0000

    www/squid: fix build with TDB enabled

    PR:             284532

 www/squid/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 4 Yasuhiro Kimura freebsd_committer freebsd_triage 2025-02-05 06:40:41 UTC
Committed. Thanks!