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
Unknown Object (File)
Sun, Nov 16, 10:26 AM
Unknown Object (File)
Sat, Nov 15, 1:43 PM
Unknown Object (File)
Fri, Nov 7, 11:26 PM
Unknown Object (File)
Wed, Nov 5, 1:18 PM
Unknown Object (File)
Thu, Oct 30, 7:23 AM
Unknown Object (File)
Thu, Oct 30, 7:23 AM
Unknown Object (File)
Thu, Oct 30, 7:23 AM
Unknown Object (File)
Thu, Oct 30, 7:23 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.