Page MenuHomeFreeBSD

security/libp11: Fails to build on 13.5-RELEASE
ClosedPublic

Authored by michaelo on Jun 20 2025, 10:17 PM.
Tags
None
Referenced Files
F134001741: D50960.diff
Wed, Oct 29, 10:47 PM
Unknown Object (File)
Sun, Oct 26, 12:44 PM
Unknown Object (File)
Sat, Oct 25, 4:36 AM
Unknown Object (File)
Wed, Oct 22, 11:43 PM
Unknown Object (File)
Wed, Oct 22, 10:11 PM
Unknown Object (File)
Mon, Oct 20, 8:40 AM
Unknown Object (File)
Sat, Oct 18, 12:24 AM
Unknown Object (File)
Wed, Oct 15, 3:43 AM
Subscribers
None

Details

Summary

PR: 287671
Approved by: jrm (mentor), otis (mentor), ale (maintainer), diizzy

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

michaelo created this revision.
ale requested changes to this revision.Jun 21 2025, 4:34 PM
ale added inline comments.
security/libp11/Makefile
45

Shouldn't be < 14 ?

This revision now requires changes to proceed.Jun 21 2025, 4:34 PM

You can also save a few lines by using PLIST_FILES directly and remove lib/ossl-modules/libpkcs11.so and lib/ossl-modules/pkcs11prov.so from pkg-plist
Something like this perhaps?

.if ${OPSYS} == FreeBSD && ${OSREL:R} >= 14 && ${SSL_DEFAULT} != "openssl111"
PLIST_FILES=	lib/ossl-modules/libpkcs11.so \
		lib/ossl-modules/pkcs11prov.so
.endif

You can also save a few lines by using PLIST_FILES directly and remove lib/ossl-modules/libpkcs11.so and lib/ossl-modules/pkcs11prov.so from pkg-plist
Something like this perhaps?

.if ${OPSYS} == FreeBSD && ${OSREL:R} >= 14 && ${SSL_DEFAULT} != "openssl111"
PLIST_FILES=	lib/ossl-modules/libpkcs11.so \
		lib/ossl-modules/pkcs11prov.so
.endif

This looks good, but this port is also marked for removal with the EOL of 13: https://www.freshports.org/security/openssl111/
I'd like to keep the pkg-plist line-consistent. When 13 and 1.1.1 are gone one can remove the PLIST_SUB and done.

WDYT?

Either way is fine, if you want minimal impact however.... (a bit hackish) :-)

post-install:
.if ${OPSYS} == FreeBSD && ${OSREL:R} < 14 && ${SSL_DEFAULT} == "base"
        @${REINPLACE_CMD} -i '' -e '/ossl-modules/d' ${TMPPLIST}
.endif

Either way is fine, if you want minimal impact however.... (a bit hackish) :-)

post-install:
.if ${OPSYS} == FreeBSD && ${OSREL:R} < 14 && ${SSL_DEFAULT} == "base"
        @${REINPLACE_CMD} -i '' -e '/ossl-modules/d' ${TMPPLIST}
.endif

This is too minimalist and feels like Perl :-D It should be visible in the pkg-plist that this file could be removed w/o looking into the Makefile. IMHO

I cannot test it now, but it looks good to me.

This revision is now accepted and ready to land.Jun 23 2025, 11:07 PM

Yes, that should be fine in most cases.