Bug 267312 - sysutils/dar: Fix failure to detect libgcrypt
Summary: sysutils/dar: Fix failure to detect libgcrypt
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: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-24 18:57 UTC by Yasuhiro Kimura
Modified: 2022-10-25 08:05 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (bofh)
yasu: merge-quarterly?


Attachments
Patch file (1.58 KB, patch)
2022-10-24 18:57 UTC, Yasuhiro Kimura
no flags 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 2022-10-24 18:57:18 UTC
Created attachment 237584 [details]
Patch file

Currently configure script fails to detect libgcrypt as following.

configure:24491: checking for libgcrypt usability
configure:24561: c++ -o conftest -O2 -pipe -fstack-protector-strong -fno-strict-aliasing   -I/usr/local/include  -fstack-protector-strong  conftest.cpp -llzma -lbz2 -lz -ldl  >&5
ld: error: undefined symbol: gcry_check_version
>>> referenced by conftest.cpp
>>>               /tmp/conftest-5a5403.o:(main)
c++: error: linker command failed with exit code 1 (use -v to see invocation)

It happens because '-L/usr/local/lib' is lacked from options to compile conftest. So fix it by adding 'localbase' to USES.

Bump PORTREVISION as GCRYPT option is ON by default.
Comment 1 graham 2022-10-25 07:08:34 UTC
Thank you! The patch works for me.
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-10-25 07:51:13 UTC
A commit in branch main references this bug:

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

commit c14a8f470eca8cf57a8cda29e62bd7a28dc82bc3
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2022-10-24 18:42:56 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-10-25 07:50:27 +0000

    sysutils/dar: Fix failure to detect libgcrypt

    Currently configure script fails to detect libgcrypt as following.

    configure:24491: checking for libgcrypt usability
    configure:24561: c++ -o conftest -O2 -pipe -fstack-protector-strong -fno-strict-aliasing   -I/usr/local/include  -fstack-protector-strong  conftest.cpp -llzma -lbz2 -lz -ldl  >&5
    ld: error: undefined symbol: gcry_check_version
    >>> referenced by conftest.cpp
    >>>               /tmp/conftest-5a5403.o:(main)
    c++: error: linker command failed with exit code 1 (use -v to see invocation)

    It happens because '-L/usr/local/lib' is lacked from options to
    compile conftest. So fix it by adding 'localbase' to USES.

    Bump PORTREVISION as GCRYPT option is ON by default.

    PR:             267312
    Reported by:    Graham Menhennitt (in freebsd-ports ML)
    MFH:            2022Q4

 sysutils/dar/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-10-25 07:55:15 UTC
A commit in branch 2022Q4 references this bug:

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

commit 0e5ddbfed433cd12ad82ea64cd894e0305cf17a0
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2022-10-24 18:42:56 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-10-25 07:53:55 +0000

    sysutils/dar: Fix failure to detect libgcrypt

    Currently configure script fails to detect libgcrypt as following.

    configure:24491: checking for libgcrypt usability
    configure:24561: c++ -o conftest -O2 -pipe -fstack-protector-strong -fno-strict-aliasing   -I/usr/local/include  -fstack-protector-strong  conftest.cpp -llzma -lbz2 -lz -ldl  >&5
    ld: error: undefined symbol: gcry_check_version
    >>> referenced by conftest.cpp
    >>>               /tmp/conftest-5a5403.o:(main)
    c++: error: linker command failed with exit code 1 (use -v to see invocation)

    It happens because '-L/usr/local/lib' is lacked from options to
    compile conftest. So fix it by adding 'localbase' to USES.

    Bump PORTREVISION as GCRYPT option is ON by default.

    PR:             267312
    Reported by:    Graham Menhennitt (in freebsd-ports ML)
    MFH:            2022Q4

    (cherry picked from commit c14a8f470eca8cf57a8cda29e62bd7a28dc82bc3)

 sysutils/dar/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)