From: klarasm <klarasm@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] mit-krb5: update to 1.21
Date: Sat, 10 Jun 2023 18:52:17 +0200 [thread overview]
Message-ID: <20230610165217.Lkvg_0Uat3BHXa2OI_oOXoPJqooYxCjffqpjHtJ6U7I@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-44311@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]
There is an updated 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: **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for my native architecture, (x86_64-musl)
- 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: 3178 bytes --]
From ce10fc83f6aec9601bb8d7ab50fc62cab09f1ad5 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
- include LDAP schemas when ldap option is set
- 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 | 35 +++++++++++++++++++++--------------
1 file changed, 21 insertions(+), 14 deletions(-)
diff --git a/srcpkgs/mit-krb5/template b/srcpkgs/mit-krb5/template
index 36a7de46e099..78d422c6307e 100644
--- a/srcpkgs/mit-krb5/template
+++ b/srcpkgs/mit-krb5/template
@@ -2,42 +2,49 @@
# 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 db-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
vlicense NOTICE
+
+ # Install schema files for LDAP database backend
+ if [ -n "$(vopt_if ldap present)" ]; then
+ for schema in kerberos.{schema,ldif,openldap.ldif}; do
+ vdoc src/plugins/kdb/ldap/libkdb_ldap/$schema
+ done
+ fi
}
mit-krb5-client_package() {
next prev parent reply other threads:[~2023-06-10 16:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-07 22:04 [PR PATCH] " klarasm
2023-06-10 16:52 ` klarasm [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230610165217.Lkvg_0Uat3BHXa2OI_oOXoPJqooYxCjffqpjHtJ6U7I@z \
--to=klarasm@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).