From c3843e196017ee3dc3a94f432f834ec4e3c3a032 Mon Sep 17 00:00:00 2001 From: Dor Askayo Date: Tue, 4 Jan 2022 01:06:59 +0200 Subject: [PATCH] Ensure help2man is writable When not running as root, the shebang workaround requires write permissions to modify help2man. Since the original file is read-only, permission must be granted explicitly. Also fix the double '/' in the /usr prefix while at it. --- sysa/help2man-1.36.4/help2man-1.36.4.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sysa/help2man-1.36.4/help2man-1.36.4.sh b/sysa/help2man-1.36.4/help2man-1.36.4.sh index 547f265..37ad7fb 100755 --- a/sysa/help2man-1.36.4/help2man-1.36.4.sh +++ b/sysa/help2man-1.36.4/help2man-1.36.4.sh @@ -17,8 +17,9 @@ src_compile() { make MAKEINFO=true # fix a broken shebang + chmod +w help2man tail -n +6 help2man > help2man.tmp - echo "#!/${PREFIX}/bin/perl" > help2man + echo "#!${PREFIX}/bin/perl" > help2man cat help2man.tmp >> help2man rm help2man.tmp }