Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] mit-krb5: update to 1.21
@ 2023-06-07 22:04 klarasm
  2023-06-10 16:52 ` [PR PATCH] [Updated] " klarasm
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: klarasm @ 2023-06-07 22:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]

There is a new pull request by klarasm against master on the void-packages repository

https://github.com/klarasm/void-packages mit-krb5/1.21
https://github.com/void-linux/void-packages/pull/44311

mit-krb5: update to 1.21
- update changed upstream mirror
- move configure options to configure_args
- add build options
  - ldap: enable LDAP database backend, enabled by default
  - lmdb: enable LMDB database backend, disabled by default
- remove --without-tcl (not recognized by configure)
- remove vsed that doesn't do anything
- change sed to vsed and restrict it to files which need the changes
- remove unnecessary do_build

#### Testing the changes
- I tested the changes in this PR: in progress

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures:
  - aarch64-musl
  - armv7l
  - armv6l-musl
  - x86_64-musl

A patch file from https://github.com/void-linux/void-packages/pull/44311.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mit-krb5/1.21-44311.patch --]
[-- Type: text/x-diff, Size: 2845 bytes --]

From b73df06463730891ecf85311671d7ce724d659a2 Mon Sep 17 00:00:00 2001
From: Klara Modin <klarasmodin@gmail.com>
Date: Wed, 7 Jun 2023 23:14:35 +0200
Subject: [PATCH] mit-krb5: update to 1.21

- update changed upstream mirror
- move configure options to configure_args
- add build options
  - ldap: enable LDAP database backend, enabled by default
  - lmdb: enable LMDB database backend, disabled by default
- remove --without-tcl (not recognized by configure)
- remove vsed that doesn't do anything
- change sed to vsed and restrict it to files which need the changes
- remove unnecessary do_build
---
 srcpkgs/mit-krb5/template | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/srcpkgs/mit-krb5/template b/srcpkgs/mit-krb5/template
index 36a7de46e099..793fb19e074e 100644
--- a/srcpkgs/mit-krb5/template
+++ b/srcpkgs/mit-krb5/template
@@ -2,38 +2,38 @@
 # if there is a bump in .so version,
 # also update srcpkgs/libgssglue/files/gssapi_mech.conf
 pkgname=mit-krb5
-version=1.20.1
+version=1.21
 revision=1
 build_style=gnu-configure
+configure_args="--sbindir=/usr/bin --disable-rpath --with-system-et
+ --without-system-verto --with-system-ss --enable-shared --with-system-db
+ $(vopt_with ldap) $(vopt_with lmdb)"
 hostmakedepends="e2fsprogs-devel flex perl pkg-config"
-makedepends="e2fsprogs-devel libldap-devel"
+makedepends="e2fsprogs-devel $(vopt_if ldap libldap-devel)
+ $(vopt_if lmdb lmdb-devel)"
 short_desc="MIT Kerberos 5 implementation"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="http://web.mit.edu/kerberos"
-distfiles="http://web.mit.edu/kerberos/dist/krb5/${version%.*}/krb5-${version}.tar.gz"
-checksum=704aed49b19eb5a7178b34b2873620ec299db08752d6a8574f95d41879ab8851
+distfiles="http://kerberos.org/dist/krb5/${version}/krb5-${version}.tar.gz"
+checksum=69f8aaff85484832df67a4bbacd99b9259bd95aab8c651fbbe65cdc9620ea93b
+build_options="ldap lmdb"
+build_options_default="ldap"
+desc_option_lmdb="Enable LMDB database backend"
 
 post_patch() {
-	vsed -e "/LDFLAGS=/d" -i src/build-tools/krb5-config.in
-
 	# Fix db plugin.
-	sed -i -e "s|<db.h>|<db_185.h>|" $wrksrc/src/plugins/kdb/db2/*.[ch]
+	vsed -i -e "s|<db.h>|<db_185.h>|" \
+		src/plugins/kdb/db2/{adb_openclose.c,db2_exp.c,kdb_db2.c,policy_db.h}
 }
 
 do_configure() {
-	WARN_CFLAGS= ./src/configure ${configure_args} --sbindir=/usr/bin \
-		--disable-rpath --with-system-et --without-system-verto --with-ldap \
-		--with-system-ss --with-system-db --enable-shared --without-tcl \
+	./src/configure ${configure_args} \
 		ac_cv_func_pthread_once=yes ac_cv_func_pthread_rwlock_init=yes \
 		acx_pthread_ok=yes ac_cv_func_regcomp=yes ac_cv_printf_positional=yes \
 		krb5_cv_attr_constructor_destructor=yes,yes
 }
 
-do_build() {
-	make
-}
-
 post_install() {
 	vsv krb5kdc
 	vsv kadmind

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-07-29 22:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-07 22:04 [PR PATCH] mit-krb5: update to 1.21 klarasm
2023-06-10 16:52 ` [PR PATCH] [Updated] " klarasm
2023-06-10 17:00 ` klarasm
2023-07-24 14:47 ` [PR PATCH] [Updated] " klarasm
2023-07-24 14:48 ` mit-krb5: update to 1.21.1 klarasm
2023-07-25  1:40 ` [PR REVIEW] " Piraty
2023-07-25  9:36 ` klarasm
2023-07-27  0:23 ` Piraty
2023-07-27 16:08 ` [PR PATCH] [Updated] " klarasm
2023-07-29 22:45 ` [PR PATCH] [Merged]: " Piraty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).