Page MenuHomeFreeBSD

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

Authored by michaelo on Fri, Jun 20, 10:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 27, 2:23 AM
Unknown Object (File)
Tue, Jun 24, 5:28 AM
Unknown Object (File)
Sun, Jun 22, 5:53 PM
Unknown Object (File)
Sat, Jun 21, 7:08 PM
Subscribers
None

Details

Summary

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

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 65012
Build 61895: arc lint + arc unit

Event Timeline

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

Shouldn't be < 14 ?

This revision now requires changes to proceed.Sat, Jun 21, 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.Mon, Jun 23, 11:07 PM

Yes, that should be fine in most cases.