Github messages for voidlinux
 help / color / mirror / Atom feed
From: Johnnynator <Johnnynator@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] xinetd: use libtirpc
Date: Thu, 14 Jan 2021 18:01:18 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27928@inbox.vuxu.org> (raw)

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

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

https://github.com/Johnnynator/void-packages xinetd
https://github.com/void-linux/void-packages/pull/27928

xinetd: use libtirpc


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-xinetd-27928.patch --]
[-- Type: text/x-diff, Size: 1334 bytes --]

From 69e043fb0cfd6cd25e71d3a1ebf6aaccfb845aba Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Thu, 14 Jan 2021 17:26:04 +0100
Subject: [PATCH] xinetd: use libtirpc

---
 srcpkgs/xinetd/template | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/xinetd/template b/srcpkgs/xinetd/template
index 9d71592b6e7..1bba8af8fd1 100644
--- a/srcpkgs/xinetd/template
+++ b/srcpkgs/xinetd/template
@@ -1,9 +1,10 @@
 # Template file for 'xinetd'
 pkgname=xinetd
 version=2.3.15
-revision=7
+revision=8
 build_style=gnu-configure
 configure_args="--without-libwrap"
+makedepends="libtirpc-devel"
 short_desc="A secure replacement for inetd"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="xinetd"
@@ -13,11 +14,13 @@ checksum=bf4e060411c75605e4dcbdf2ac57c6bd9e1904470a2f91e01ba31b50a80a5be3
 
 conf_files="/etc/xinetd.conf /etc/xinetd.d/servers /etc/xinetd.d/services"
 
-pre_configure() {
-	case "$XBPS_TARGET_MACHINE" in
-		*-musl) export CFLAGS+=" -DNO_RPC"; configure_args+=" xinetd_cv_type_rlim_t=yes";;
-	esac
-}
+CFLAGS=" -I/usr/include/tirpc"
+LDFLAGS=" -ltirpc"
+
+if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
+	configure_args+=" xinetd_cv_type_rlim_t=yes"
+fi
+
 do_install() {
 	make prefix=${DESTDIR}/usr DAEMONDIR=${DESTDIR}/usr/bin MANDIR=${DESTDIR}/usr/share/man install
 

             reply	other threads:[~2021-01-14 17:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-14 17:01 Johnnynator [this message]
2021-01-14 17:04 ` [PR REVIEW] " ericonr
2021-01-14 17:06 ` Johnnynator
2021-01-14 17:06 ` [PR PATCH] [Updated] " Johnnynator
2021-01-14 18:02 ` [PR PATCH] [Merged]: " Johnnynator

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27928@inbox.vuxu.org \
    --to=johnnynator@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).