webmin: remove use of the rename command
PATCH 1/1 webmin: remove use of the rename command
Several webmin modules are left out of the build due to misuse of the rename command. Acceptable use of the rename command depends on the version being supplied. Without knowledge of the version being used it is possible that any particular use will result in syntax errors.
--- recipes-extended/webmin/webmin_1.570.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
recipes-extended/webmin/webmin_1.570.bb +5 -1
@@ -53,7 +53,11 @@ do_configure() { sed -i "s/netstd_nfs/nfsserver/" exports/config-generic-linux # Fix insane naming that causes problems at packaging time (must be done before deleting below) - find . -name "*\**" -exec rename \* ALL {} \; + find . -name "*\**" | while read from + do + to=`echo "$from" | sed "s/*/ALL/"` + mv "$from" "$to" + done # Remove some other files we don't need find . -name "config-*" -a \! -name "config-generic-linux" -a \! -name "config-ALL-linux" -a \! -name "*.pl" -delete
Signature · 1 line
1.7.9.5
Paul Eggleton
AppliedQuoted 29 lines · On Monday 23 July 2012 10:59:57 Kevin Strasser wrote:
Several webmin modules are left out of the build due to misuse of the rename command. Acceptable use of the rename command depends on the version being supplied. Without knowledge of the version being used it is possible that any particular use will result in syntax errors.
Signed-off-by Kevin Strasser <[email protected]>--- recipes-extended/webmin/webmin_1.570.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)(quoted diff) +0
-0b/recipes-extended/webmin/webmin_1.570.bb index 63a1ed2..d7e14de 100644
recipes-extended/webmin/webmin_1.570.bb +5
-0@@ -53,7 +53,11 @@ do_configure() { sed -i "s/netstd_nfs/nfsserver/" exports/config-generic-linux # Fix insane naming that causes problems at packaging time (must be done before deleting below) - find . -name "*\**" -exec rename \* ALL {} \; + find . -name "*\**" | while read from + do + to=`echo "$from" | sed "s/*/ALL/"` + mv "$from" "$to" + done # Remove some other files we don't need find . -name "config-*" -a \! -name "config-generic-linux" -a \! -name
Quoted 1 line
"config-ALL-linux" -a \! -name "*.pl" -delete
Merged to meta-baryon master with a PR bump, thanks.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre