Page MenuHomeFreeBSD

[PATCH] devel/jwt-cpp: Use release assets and other fixes
ClosedPublic

Authored by kiwi on Jun 3 2025, 8:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 12, 6:15 PM
Unknown Object (File)
Fri, Oct 10, 9:18 AM
Unknown Object (File)
Fri, Oct 3, 3:49 PM
Unknown Object (File)
Thu, Oct 2, 8:17 PM
Unknown Object (File)
Thu, Oct 2, 2:06 PM
Unknown Object (File)
Wed, Oct 1, 10:58 PM
Unknown Object (File)
Wed, Oct 1, 10:36 PM
Unknown Object (File)
Wed, Oct 1, 8:25 PM
Subscribers
None

Details

Summary
devel/jwt-cpp: Use release assets and other fixes

After the nice suggestion from @diizzy and @mat, this port
will use the release assets instead.
LICENSE_FILE has been added and remove the picojson.h install.

Approved by:    0mp (mentor)
Approved by:    diizzy
Test Plan

Double checked with poudriere and futur consummers ports.

Diff Detail

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

Event Timeline

kiwi requested review of this revision.Jun 3 2025, 8:59 AM
kiwi created this revision.
0mp requested changes to this revision.Jun 3 2025, 1:27 PM
0mp added inline comments.
devel/jwt-cpp/Makefile
23

Why was COVERAGE and FUZZING on before and now it's gone? Could you add a note about that to the commit message?

24

What is the role of picojson here? I've heard it is a bundled dependecy. If this is true then if you disable it, don't you need to add picojson to RUN_DEPENDS or so?

25

I've heard that nlohmann-json is only necessary for example. Please note in the commit message that this is the reason why this dependency and related variables are removed.

26

Was it buggy before? It used to be an absolute path and now it is a relative one. Could you explain this part in the commit message?

This revision now requires changes to proceed.Jun 3 2025, 1:27 PM
kiwi marked 2 inline comments as done.Jun 3 2025, 1:56 PM
kiwi added inline comments.
devel/jwt-cpp/Makefile
23

COVERAGE and FUZZING are not enabled per default. And are used to testing (according to CMakeFiles.txt)

24

Do you think only add RUN_DEPENDS can be ok ?
Because PICOJSON is lacking of cmake file and cannot be correctly detected when it is installed. So I am not sure it is really usefull to add RUN_DEPENDS in this case.

25

Ok

26

Thanks ! Will fix that

Hello @diizzy, if you have some time, can you push this Bugzilla ? To permit me to reroll, and fix jwt-cpp port ?
Thanks

kiwi marked an inline comment as done.Mon, Sep 15, 7:54 AM

Thanks just backported this other things related to pkgconfig and so.

This port is consummer of pkgconfig
Backported detection fix with pkgconfig of picojson
Fixed the path of picojson.h in the header files
Make portlint and portclippy happy

devel/jwt-cpp/Makefile
16

This is not correct usually.

You could have this instead:

BUILD_DEPENDS= ${_BUILD_RUN_DEPENDS}
RUN_DEPENDS= ${_BUILD_RUN_DEPENDS}
_BUILD_RUN_DEPENDS= ${LOCALBASE}/include/picojson.h:devel/picojson

but to be honest in this case I'd just:

BUILD_DEPENDS=${LOCALBASE}/include/picojson.h:devel/picojson
RUN_DEPENDS=${LOCALBASE}/include/picojson.h:devel/picojson

because it's just a single dependency.

The reason why RUN_DEPENDS= ${BUILD_DEPENDS} is incorrect is that the ports framework appends extra dependencies to BUILD_DEPENDS. I suspect that USES=cmake add CMake to BUILD_DEPENDS at some point. As a result, if you set RUN_DEPENDS= ${BUILD_DEPENDS} you end up with CMake in RUN_DEPENDS.

kiwi added inline comments.
devel/jwt-cpp/Makefile
16

Oh thanks for the hint. I will use the honest way. But I keep in mind the BUILD_DEPEND have cmake as dependency because of the USES=.

kiwi marked an inline comment as done.

Fixed RUN and BUILD_DEPENDS as pointed by 0mp

This revision is now accepted and ready to land.Mon, Sep 15, 11:17 AM