From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] man-db: add system account man:man
Date: Fri, 01 Nov 2019 01:45:12 +0100 [thread overview]
Message-ID: <20191101004512.snsDZC_h1eJTHNd2mLK5fxwrf0CSp69pNUCQg2utz_Y@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-15737@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 392 bytes --]
There is an updated pull request by zdtcd against master on the void-packages repository
https://github.com/zdtcd/void-packages man-db
https://github.com/void-linux/void-packages/pull/15737
man-db: add system account man:man
man-db complains that:
> mandb: the setuid man user "man" does not exist
A patch file from https://github.com/void-linux/void-packages/pull/15737.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-man-db-15737.patch --]
[-- Type: text/x-diff, Size: 2223 bytes --]
From 17c377b210c7a40d6dd7715232fb0702bd466800 Mon Sep 17 00:00:00 2001
From: Doan Tran Cong Danh <congdanhqx@gmail.com>
Date: Wed, 23 Oct 2019 08:18:33 +0700
Subject: [PATCH] man-db: add system account _man:_man
man-db complains that:
> mandb: the setuid man user "man" does not exist
---
srcpkgs/man-db/files/man-db.cron-daily | 9 ++++-----
srcpkgs/man-db/template | 8 ++++++--
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/srcpkgs/man-db/files/man-db.cron-daily b/srcpkgs/man-db/files/man-db.cron-daily
index 6953b76560f..a602972b400 100755
--- a/srcpkgs/man-db/files/man-db.cron-daily
+++ b/srcpkgs/man-db/files/man-db.cron-daily
@@ -4,11 +4,10 @@
# man-db cron daily
set -e
-if ! [ -d /var/cache/man ]; then
- # Recover from deletion, per FHS.
- mkdir -p /var/cache/man
- chmod 755 /var/cache/man
-fi
+# Recover from deletion, per FHS.
+mkdir -p /var/cache/man
+chown _man:_man /var/cache/man
+chmod 755 /var/cache/man
# regenerate man database
/usr/bin/mandb --quiet
diff --git a/srcpkgs/man-db/template b/srcpkgs/man-db/template
index dfc483c3ea8..17202241ba6 100644
--- a/srcpkgs/man-db/template
+++ b/srcpkgs/man-db/template
@@ -1,13 +1,14 @@
# Template file for 'man-db'
pkgname=man-db
version=2.9.0
-revision=1
+revision=2
build_style=gnu-configure
configure_args="--with-db=db --with-pager=less --with-gzip=/usr/bin/gzip
--with-bzip2=/usr/bin/bzip2 --disable-rpath --enable-threads=posix
--with-lzma=/usr/bin/lzma --with-xz=/usr/bin/xz --disable-setuid
--without-included-regex --enable-automatic-create --with-libseccomp
- --without-systemdsystemunitdir --without-systemdtmpfilesdir"
+ --without-systemdsystemunitdir --without-systemdtmpfilesdir
+ --enable-cache-owner=_man"
hostmakedepends="groff pkg-config"
makedepends="db-devel gettext-devel groff libpipeline-devel libseccomp-devel
zlib-devel"
@@ -21,6 +22,9 @@ distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=5d4aacd9e8876d6a3203a889860c3524c293c38f04111a3350deab8a6cd3e261
provides="man-0_1"
lib32disabled=yes
+system_accounts="_man"
+man_homedir="/var/cache/man"
+make_dirs="/var/cache/man 0755 _man _man"
alternatives="
man:man:/usr/bin/mandb-man
next prev parent reply other threads:[~2019-11-01 0:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-23 13:43 [PR PATCH] " voidlinux-github
2019-10-31 1:13 ` [PR PATCH] [Updated] " voidlinux-github
2019-10-31 1:13 ` voidlinux-github
2019-10-31 14:14 ` voidlinux-github
2019-11-01 0:43 ` voidlinux-github
2019-11-01 0:45 ` [PR PATCH] [Updated] " voidlinux-github
2019-11-01 0:45 ` voidlinux-github [this message]
2019-11-01 0:49 ` voidlinux-github
2019-11-10 10:08 ` [PR PATCH] [Updated] " voidlinux-github
2019-11-11 2:37 ` [PR PATCH] [Updated] [NO MERGE] man-db: add system account _man:_man voidlinux-github
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=20191101004512.snsDZC_h1eJTHNd2mLK5fxwrf0CSp69pNUCQg2utz_Y@z \
--to=voidlinux-github@inbox.vuxu.org \
--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).