Bug 280588 - sysutils/swtpm: Upgrade to 0.9.0
Summary: sysutils/swtpm: Upgrade to 0.9.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL: https://github.com/stefanberger/swtpm...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-03 12:20 UTC by Goran Mekić
Modified: 2024-08-17 23:23 UTC (History)
1 user (show)

See Also:


Attachments
swtpm.patch (1.55 KB, patch)
2024-08-03 12:21 UTC, Goran Mekić
meka: maintainer-approval+
Details | Diff
swtpm.patch (1.96 KB, patch)
2024-08-17 22:41 UTC, Goran Mekić
meka: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Goran Mekić 2024-08-03 12:20:07 UTC
QA:

  * portlint: OK (looks fine.)
  * testport: OK (poudriere: 14.1, amd64 tested)
Comment 1 Goran Mekić 2024-08-03 12:21:23 UTC
Created attachment 252476 [details]
swtpm.patch
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-03 22:42:44 UTC
I'll remove GNU_CONFIGURE_MANPREFIX=${PREFIX}/share.
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-03 22:52:00 UTC
New dependency libgmp.so:math/gmp.

Why did you add USE_LDCONFIG=yes? Build fine without it too.
Comment 4 Goran Mekić 2024-08-05 10:59:22 UTC
USE_LDCONFIG was suggested by portlint, and reading the comment in bsd.port.mk I understood it is to be used whenever the port contains libraries. Did I get that wrong?
Comment 5 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-05 11:34:28 UTC
(In reply to Goran Mekić from comment #4)
Ok.
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-05 11:38:52 UTC
My suggestion:
--- sysutils/swtpm/Makefile.orig
+++ sysutils/swtpm/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=      swtpm
 DISTVERSIONPREFIX=     v
-DISTVERSION=   0.8.2
+DISTVERSION=   0.9.0
 CATEGORIES=    sysutils
 
 MAINTAINER=    meka@tilda.center
@@ -16,6 +16,7 @@
                gawk>=0:lang/gawk \
                socat>=0:net/socat
 LIB_DEPENDS=   libfuse.so:sysutils/fusefs-libs \
+               libgmp.so:math/gmp \
                libgnutls.so:security/gnutls \
                libjson-glib-1.0.so:devel/json-glib \
                libtasn1.so:security/libtasn1 \
@@ -25,11 +26,11 @@
                pkgconfig ssl
 USE_GITHUB=    yes
 GH_ACCOUNT=    stefanberger
-USE_GNOME+=    glib20
-USE_RC_SUBR=   swtpm
+USE_GNOME=     glib20
+USE_LDCONFIG=  yes
+USE_RC_SUBR=   ${PORTNAME}
 
 GNU_CONFIGURE= yes
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 
 INSTALL_TARGET=        install-strip
Comment 7 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-07 22:15:28 UTC
ping
Comment 8 Goran Mekić 2024-08-17 22:41:13 UTC
Created attachment 252862 [details]
swtpm.patch

Finally, some Internet.
Comment 9 commit-hook freebsd_committer freebsd_triage 2024-08-17 23:23:03 UTC
A commit in branch main references this bug:

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

commit 9e09d664d97f1db9e32ef891aea18c3bced553c7
Author:     Goran Mekić <meka@tilda.center>
AuthorDate: 2024-08-17 23:20:04 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-08-17 23:20:04 +0000

    sysutils/swtpm: Upgrade 0.8.2 → 0.9.0

    Changelog:
    https://github.com/stefanberger/swtpm/releases/tag/v0.9.0

    Also:
     - remove GNU_CONFIGURE_MANPREFIX
     - small improvements

    PR:     280588

 sysutils/swtpm/Makefile | 9 +++++----
 sysutils/swtpm/distinfo | 6 +++---
 2 files changed, 8 insertions(+), 7 deletions(-)
Comment 10 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-17 23:23:40 UTC
Thanks.