[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Jailkit-dev] Patch for fix Jailkit installation after building
From: |
brodokk |
Subject: |
[Jailkit-dev] Patch for fix Jailkit installation after building |
Date: |
Fri, 22 Jan 2021 01:26:16 +0100 |
Hi,
I wanted to build Jailkit from source but it failed with the following error:
/usr/bin/install -c -d -m 755 /usr/share/man/man7/
/usr/bin/install -c -m 0644 jailkit.7.gz /usr/share/man/man7/
/usr/bin/install: cannot stat 'jailkit.7.gz': No such file or directory
make[1]: *** [Makefile:82: install] Error 1
make[1]: Leaving directory '/tmp/jailkit/man'
make: *** [Makefile:63: install] Error 2
After checking the code and the logs entry (I mean the commits but I don't know
the correct name on CVS), I see than you had tried to rename the
file from man/jailkit.8 to man/jailkit.7 but it's seems to be a fail, at least
for my part.
I have done two patchs to fix this, I hope I do it correctly because I don't
write and use Makefiles very often.
Here is the first patch for the man/Makefile file:
--- man/Makefile.in 2020-08-31 10:50:49.000000000 +0000
+++ man/Makefile.in 2021-01-22 00:00:23.730967074 +0000
@@ -1,11 +1,10 @@
-INSTALL = @INSTALL@
-prefix = @prefix@
-datadir = @datadir@
-datarootdir = @datarootdir@
-mandir = @mandir@
+INSTALL = /usr/bin/install -c
+prefix = /usr
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+mandir = ${datarootdir}/man
SRCS = \
- jailkit.7 \
jk_chrootsh.8 \
jk_uchroot.8 \
jk_lsh.8 \
@@ -18,11 +17,10 @@
jk_list.8 \
jk_update.8
-@HAVEPROCMAIL_TRUE@SRCS += jk_procmailwrapper.8
+#SRCS += jk_procmailwrapper.8
MANS = $(SRCS:.8=.8.gz)
-
#%.8.gz : %.8
# gzip -9 > $@ $@
-jailkit: ${MANS}
+jailkit: ${MANS} jailkit.7.gz
all: jailkit
And here is the second one to fix the man page number in the first line of
the man/jailkit.7 file:
--- man/jailkit.7 2020-08-31 10:47:07.000000000 +0000
+++ man/jailkit.7 2021-01-21 23:54:07.800751872 +0000
@@ -1,4 +1,4 @@
-.TH jailkit 8 07-02-2010 JAILKIT jailkit
+.TH jailkit 7 07-02-2010 JAILKIT jailkit
.SH NAME
jailkit \- utilities for jailing a user or process
And It would be cool if you make a new release because I'm impacted by the
bug from last year:
https://lists.libreplanet.org/archive/html/jailkit-dev/2020-01/msg00000.html
But in any case thanks for this tool that makes my life easier,
--
brodokk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Jailkit-dev] Patch for fix Jailkit installation after building,
brodokk <=