Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] xbps-src: do not allow `/usr/share/man/man`
@ 2022-07-26  9:44 Duncaen
  2022-07-26 19:08 ` [PR REVIEW] " paper42
  2022-09-10 21:58 ` [PR PATCH] [Merged]: " Duncaen
  0 siblings, 2 replies; 3+ messages in thread
From: Duncaen @ 2022-07-26  9:44 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Duncaen/void-packages man-paths
https://github.com/void-linux/void-packages/pull/38279

xbps-src: do not allow `/usr/share/man/man`
There is only a single package (`coturn`) using the directory because the `--manprefix` configure argument from the `gnu-configure` build style uses `/usr/share/man` while the configure script expected `/usr/share`.

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

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

From 1cbaaf260f3d1ed3a45dbd50c03dd1d02be1b7e8 Mon Sep 17 00:00:00 2001
From: Duncaen <duncaen@voidlinux.org>
Date: Mon, 25 Jul 2022 17:38:55 +0200
Subject: [PATCH 1/2] hooks/99-pkglint.sh: error if /usr/share/man/man/ is used

---
 common/hooks/pre-pkg/99-pkglint.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/common/hooks/pre-pkg/99-pkglint.sh b/common/hooks/pre-pkg/99-pkglint.sh
index 325938f5d541..2710a63576a4 100644
--- a/common/hooks/pre-pkg/99-pkglint.sh
+++ b/common/hooks/pre-pkg/99-pkglint.sh
@@ -108,6 +108,11 @@ hook() {
 		error=1
 	fi
 
+	if [[ -d ${PKGDESTDIR}/usr/share/man/man ]]; then
+		msg_red "${pkgver}: /usr/share/man/man is forbidden, use /usr/share/man.\n"
+		error=1
+	fi
+
 	if [ -d ${PKGDESTDIR}/usr/doc ]; then
 		msg_red "${pkgver}: /usr/doc is forbidden. Use /usr/share/doc.\n"
 		error=1

From 0c326c60e7e8c14cd2a7bc9b5e8c6391ea3adb7c Mon Sep 17 00:00:00 2001
From: Duncaen <duncaen@voidlinux.org>
Date: Mon, 25 Jul 2022 17:39:27 +0200
Subject: [PATCH 2/2] coturn: fix man page paths

Use build_style=configure as this is not a gnu-configure script.
Specifically the --manprefix argument works different in gnu configure.
---
 srcpkgs/coturn/template | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/coturn/template b/srcpkgs/coturn/template
index edfb526f4967..b55bd58fdb22 100644
--- a/srcpkgs/coturn/template
+++ b/srcpkgs/coturn/template
@@ -1,9 +1,12 @@
 # Template file for 'coturn'
 pkgname=coturn
 version=4.5.1.3
-revision=3
-build_style=gnu-configure
-configure_args="--libdir=/usr/lib"
+revision=4
+build_style=configure
+configure_args="
+ --prefix=/usr
+ --manprefix=/usr/share
+ --sysconfdir=/etc"
 conf_files="/etc/turnserver.conf"
 makedepends="openssl-devel libevent-devel hiredis-devel sqlite-devel
  postgresql-libs-devel libmariadbclient-devel"

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

* Re: [PR REVIEW] xbps-src: do not allow `/usr/share/man/man`
  2022-07-26  9:44 [PR PATCH] xbps-src: do not allow `/usr/share/man/man` Duncaen
@ 2022-07-26 19:08 ` paper42
  2022-09-10 21:58 ` [PR PATCH] [Merged]: " Duncaen
  1 sibling, 0 replies; 3+ messages in thread
From: paper42 @ 2022-07-26 19:08 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/38279#discussion_r930322927

Comment:
All conditions around this line use single [, double [ shouldn't be necessary.

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

* Re: [PR PATCH] [Merged]: xbps-src: do not allow `/usr/share/man/man`
  2022-07-26  9:44 [PR PATCH] xbps-src: do not allow `/usr/share/man/man` Duncaen
  2022-07-26 19:08 ` [PR REVIEW] " paper42
@ 2022-09-10 21:58 ` Duncaen
  1 sibling, 0 replies; 3+ messages in thread
From: Duncaen @ 2022-09-10 21:58 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

xbps-src: do not allow `/usr/share/man/man`
https://github.com/void-linux/void-packages/pull/38279

Description:
There is only a single package (`coturn`) using the directory because the `--manprefix` configure argument from the `gnu-configure` build style uses `/usr/share/man` while the configure script expected `/usr/share`.

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

end of thread, other threads:[~2022-09-10 21:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-26  9:44 [PR PATCH] xbps-src: do not allow `/usr/share/man/man` Duncaen
2022-07-26 19:08 ` [PR REVIEW] " paper42
2022-09-10 21:58 ` [PR PATCH] [Merged]: " Duncaen

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