Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [WIP] ngircd: update to 27~rc1.
@ 2024-04-13 19:08 AnInternetTroll
  2024-04-13 19:08 ` [PR PATCH] [Updated] " AnInternetTroll
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: AnInternetTroll @ 2024-04-13 19:08 UTC (permalink / raw)
  To: ml

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

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

https://github.com/AnInternetTroll/void-packages user/luca/ngircd
https://github.com/void-linux/void-packages/pull/49826

[WIP] ngircd: update to 27~rc1.
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### Local build testing
- I built this PR locally for my native architecture, (x86\_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl

Crossbuilt on x86\_64-glibc for aarch64-musl and tested with a simple
unencrypted server. As far as features go, I only tested the default
with PAM disabled


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-user/luca/ngircd-49826.patch --]
[-- Type: text/x-diff, Size: 4139 bytes --]

From 3351dfdbb19b37e1177e22023e7e0b41ad8aa7c5 Mon Sep 17 00:00:00 2001
From: Luca Matei Pintilie <luca@lucamatei.com>
Date: Sat, 13 Apr 2024 15:33:50 +0200
Subject: [PATCH] ngircd: update to 27~rc1.

---
 srcpkgs/ngircd/patches/0001-getpid-fix.patch  | 30 +++++++++++++++++++
 .../ngircd/patches/0002-getpid-fix-2.patch    | 22 ++++++++++++++
 srcpkgs/ngircd/template                       | 11 +++----
 3 files changed, 58 insertions(+), 5 deletions(-)
 create mode 100644 srcpkgs/ngircd/patches/0001-getpid-fix.patch
 create mode 100644 srcpkgs/ngircd/patches/0002-getpid-fix-2.patch

diff --git a/srcpkgs/ngircd/patches/0001-getpid-fix.patch b/srcpkgs/ngircd/patches/0001-getpid-fix.patch
new file mode 100644
index 00000000000000..4765604bea554f
--- /dev/null
+++ b/srcpkgs/ngircd/patches/0001-getpid-fix.patch
@@ -0,0 +1,30 @@
+From a33d15751b3e3910bd06125efbeae6569844f313 Mon Sep 17 00:00:00 2001
+From: Alexander Barton <alex@barton.de>
+Date: Sat, 13 Apr 2024 15:52:33 +0200
+Subject: [PATCH] Test suite: Don't use "pgrep -u" when LOGNAME and USER are
+ not set
+
+Thanks for reporting this on IRC, luca!
+---
+ src/testsuite/getpid.sh | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/src/testsuite/getpid.sh b/src/testsuite/getpid.sh
+index 85059142..3cc186e1 100755
+--- a/src/testsuite/getpid.sh
++++ b/src/testsuite/getpid.sh
+@@ -23,7 +23,13 @@ if [ -x /usr/bin/pgrep ]; then
+ 		*)
+ 			PGREP_FLAGS=""
+ 	esac
+-	exec /usr/bin/pgrep $PGREP_FLAGS -n -u "${LOGNAME:-$USER}" "$1"
++	if [ -n "$LOGNAME" ] || [ -n "$USER" ]; then
++		# Try to narrow the search down to the current user ...
++		exec /usr/bin/pgrep $PGREP_FLAGS -n -u "${LOGNAME:-$USER}" "$1"
++	else
++		# ... but neither LOGNAME nor USER were set!
++		exec /usr/bin/pgrep $PGREP_FLAGS -n "$1"
++	fi
+ fi
+ 
+ # pidof(1) could be a good alternative on elder Linux systems
diff --git a/srcpkgs/ngircd/patches/0002-getpid-fix-2.patch b/srcpkgs/ngircd/patches/0002-getpid-fix-2.patch
new file mode 100644
index 00000000000000..8bbd59a37e354b
--- /dev/null
+++ b/srcpkgs/ngircd/patches/0002-getpid-fix-2.patch
@@ -0,0 +1,22 @@
+From b77b9432c45d6f38c0ad6d9021afb4dd91f163e4 Mon Sep 17 00:00:00 2001
+From: Alexander Barton <alex@barton.de>
+Date: Sat, 13 Apr 2024 16:04:29 +0200
+Subject: [PATCH] Test suite: Correctly test for LOGNAME and USER
+
+---
+ src/testsuite/getpid.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/testsuite/getpid.sh b/src/testsuite/getpid.sh
+index 3cc186e1..7a3dbe37 100755
+--- a/src/testsuite/getpid.sh
++++ b/src/testsuite/getpid.sh
+@@ -23,7 +23,7 @@ if [ -x /usr/bin/pgrep ]; then
+ 		*)
+ 			PGREP_FLAGS=""
+ 	esac
+-	if [ -n "$LOGNAME" ] || [ -n "$USER" ]; then
++	if [ -n "${LOGNAME:-}" ] || [ -n "${USER:-}" ]; then
+ 		# Try to narrow the search down to the current user ...
+ 		exec /usr/bin/pgrep $PGREP_FLAGS -n -u "${LOGNAME:-$USER}" "$1"
+ 	else
diff --git a/srcpkgs/ngircd/template b/srcpkgs/ngircd/template
index 66c09814f049ef..92027e9ff1b6e2 100644
--- a/srcpkgs/ngircd/template
+++ b/srcpkgs/ngircd/template
@@ -1,18 +1,19 @@
 # Template file for 'ngircd'
 pkgname=ngircd
-version=26
-revision=4
+version=27~rc1
+revision=1
 build_style=gnu-configure
-configure_args="--enable-ipv6 --with-openssl --without-ident ac_cv_func_getaddrinfo=yes"
+configure_args="--enable-ipv6 --with-openssl --without-ident ac_cv_func_getaddrinfo=yes --with-pam --with-iconv"
 hostmakedepends="pkg-config"
-makedepends="zlib-devel openssl-devel"
+makedepends="zlib-devel openssl-devel pam-devel libticonv-devel"
+checkdepends="procps-ng expect inetutils-telnet"
 conf_files="/etc/ngircd.conf"
 short_desc="Free, portable and lightweight Internet Relay Chat server"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-or-later"
 homepage="http://ngircd.barton.de/"
 distfiles="https://ngircd.barton.de/pub/ngircd/ngircd-${version}.tar.xz"
-checksum=56dcc6483058699fcdd8e54f5010eecee09824b93bad7ed5f18818e550d855c6
+checksum=ef04b85e99ffda2bdf73a823848f04a1d5aa4f288beb631dae2dcc0d34e5c665
 
 post_configure() {
 	echo "#define HAVE_WORKING_GETADDRINFO 1" >>src/config.h

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

end of thread, other threads:[~2024-05-01 19:50 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-13 19:08 [PR PATCH] [WIP] ngircd: update to 27~rc1 AnInternetTroll
2024-04-13 19:08 ` [PR PATCH] [Updated] " AnInternetTroll
2024-04-16 19:34 ` AnInternetTroll
2024-04-24 16:46 ` AnInternetTroll
2024-04-26 15:31 ` AnInternetTroll
2024-04-26 15:32 ` AnInternetTroll
2024-04-26 15:33 ` AnInternetTroll
2024-04-26 16:32 ` [PR PATCH] [Updated] ngircd: update to 27 AnInternetTroll
2024-04-26 18:15 ` AnInternetTroll
2024-04-26 18:25 ` AnInternetTroll
2024-05-01 14:33 ` AnInternetTroll
2024-05-01 19:50 ` AnInternetTroll

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).