Skip to content

Commit

Permalink
bump(main/swtpm): 0.10.0
Browse files Browse the repository at this point in the history
Remove unnecessary installed tests explicitly.
  • Loading branch information
Biswa96 committed Nov 16, 2024
1 parent a8b82fa commit 19b3e04
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions packages/swtpm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ TERMUX_PKG_DESCRIPTION="Software TPM Emulator"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_LICENSE_FILE="LICENSE"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.9.0"
TERMUX_PKG_VERSION="0.10.0"
TERMUX_PKG_SRCURL=https://github.com/stefanberger/swtpm/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=9679ca171e8aaa3c4e4053e8bc1d10c8dabf0220bd4b16aba78743511c25f731
TERMUX_PKG_SHA256=9f10ae0d3123ab05c3808f8c8d39f633cf1a0cf142d6ac9b87b8364a682ac842
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="glib, json-glib, libseccomp, libtpms, openssl"
TERMUX_PKG_BUILD_DEPENDS="libtasn1"
Expand All @@ -20,3 +20,7 @@ termux_step_pre_configure() {

CPPFLAGS+=" -Dindex=strchr"
}

termux_step_post_massage() {
rm -r "${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}"/libexec/installed-tests
}
6 changes: 3 additions & 3 deletions packages/swtpm/src-swtpm_setup-swtpm.c.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--- a/src/swtpm_setup/swtpm.c
+++ b/src/swtpm_setup/swtpm.c
@@ -70,7 +70,7 @@
unsigned ctr;
@@ -92,7 +92,7 @@
int pidfile_fd;
int ret = 1;
gchar *tmp;
- char pidfile[] = "/tmp/.swtpm_setup.pidfile.XXXXXX";
+ char pidfile[] = "@TERMUX_PREFIX@/tmp/.swtpm_setup.pidfile.XXXXXX";

pidfile_fd = mkstemp(pidfile);
pidfile_fd = g_mkstemp_full(pidfile, O_EXCL|O_CREAT, 0600);
if (pidfile_fd < 0) {

0 comments on commit 19b3e04

Please sign in to comment.