Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#20464 - [make] make.install dash friendly

Attached to Project: Arch Linux
Opened by Andrej Gelenberg (nikel) - Friday, 13 August 2010, 14:09 GMT
Last edited by Allan McRae (Allan) - Saturday, 14 August 2010, 00:14 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

make.install script fail if /bin/sh point to /bin/dash.
Here is small patch against package in testing (version 3.82-1), which make make.install work with dash too:

--- make.install.orig 2010-08-13 16:04:10.890000971 +0200
+++ make.install 2010-08-13 16:03:15.420001098 +0200
@@ -1,9 +1,9 @@
infodir=/usr/share/info
-filelist=(make.info make.info-1 make.info-2)
+filelist="make.info make.info-1 make.info-2"

post_install() {
[ -x usr/bin/install-info ] || return 0
- for file in ${filelist[@]}; do
+ for file in $filelist; do
install-info $infodir/$file.gz $infodir/dir 2> /dev/null
done
}
@@ -14,7 +14,7 @@

pre_remove() {
[ -x usr/bin/install-info ] || return 0
- for file in ${filelist[@]}; do
+ for file in $filelist; do
install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
done
}
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 14 August 2010, 00:14 GMT
Reason for closing:  Deferred
Comment by Allan McRae (Allan) - Saturday, 14 August 2010, 00:14 GMT
A very large number of install script will fail if you swap /bin/sh to point at dash (every package that has info pages). There is little point in fixing one package until it is mandated that our /bin/sh is not necessarily bash and so all install scriptlets need to be sh compatible. I will defer this until such a decision is formally made.

Loading...