Bug 273735

Summary: misc/mbuffer: fails to build if www/libwww installed
Product: Ports & Packages Reporter: Koichiro Iwao <meta>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: dbaio, loader
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
portmaster-log none

Description Koichiro Iwao freebsd_committer freebsd_triage 2023-09-12 06:06:41 UTC
Created attachment 244788 [details]
portmaster-log

See attached portmaster log.

Maybe trying to link wrong libraries of libwww.

% pkg info -l libwww|grep libmd
        /usr/local/lib/libmd5.a
        /usr/local/lib/libmd5.so
        /usr/local/lib/libmd5.so.0
        /usr/local/lib/libmd5.so.0.1.0
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-09-13 02:44:07 UTC
A commit in branch main references this bug:

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

commit d3f22d319918c1dda4dbfbc5d85678c91ed13590
Author:     Fukang Chen <loader@FreeBSD.org>
AuthorDate: 2023-09-13 01:01:25 +0000
Commit:     Fukang Chen <loader@FreeBSD.org>
CommitDate: 2023-09-13 02:13:32 +0000

    misc/mbuffer: Fix build if www/libwww installed

    Remove libmd5 from AC_SEARCH_LIBS and only searches for libmd,
    avoid linking with libmd5 installed by www/libwww.

    PR:             273735
    Reported by:    meta
    MFH:            2023Q3 (build fix)

 misc/mbuffer/files/patch-configure.in | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)
Comment 2 Koichiro Iwao freebsd_committer freebsd_triage 2023-09-13 07:08:47 UTC
Thanks!
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-09-13 10:22:05 UTC
A commit in branch 2023Q3 references this bug:

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

commit 42abff3b5076e7805cf85565a90520a872425d23
Author:     Fukang Chen <loader@FreeBSD.org>
AuthorDate: 2023-09-13 01:01:25 +0000
Commit:     Fukang Chen <loader@FreeBSD.org>
CommitDate: 2023-09-13 10:19:08 +0000

    misc/mbuffer: Fix build if www/libwww installed

    Remove libmd5 from AC_SEARCH_LIBS and only searches for libmd,
    avoid linking with libmd5 installed by www/libwww.

    PR:             273735
    Reported by:    meta
    MFH:            2023Q3 (build fix)

    (cherry picked from commit d3f22d319918c1dda4dbfbc5d85678c91ed13590)

 misc/mbuffer/files/patch-configure.in | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)
Comment 4 Fukang Chen freebsd_committer freebsd_triage 2023-09-13 11:16:53 UTC
Thanks for reporting!