Accepting request 993344 from home:kukuk:branches:utilities

- Use full path for perl interpreter to fix
  "/usr/bin/parallel: perl: bad interpreter: No such file or directory"

OBS-URL: https://build.opensuse.org/request/show/993344
OBS-URL: https://build.opensuse.org/package/show/utilities/gnu_parallel?expand=0&rev=166
This commit is contained in:
Jan Engelhardt 2022-08-05 15:43:06 +00:00 committed by Git OBS Bridge
parent 9a632678b0
commit 26643e754a
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Aug 5 14:58:48 UTC 2022 - Thorsten Kukuk <kukuk@suse.com>
- Use full path for perl interpreter to fix
"/usr/bin/parallel: perl: bad interpreter: No such file or directory"
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 25 06:31:00 UTC 2022 - Dirk Müller <dmueller@suse.com> Mon Jul 25 06:31:00 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -83,7 +83,7 @@ This subpackage contains the zsh completion for Parallel.
cp -a CITATION NEWS README "%buildroot/%_docdir/%name/" cp -a CITATION NEWS README "%buildroot/%_docdir/%name/"
# fix shebang to to not use env & preserve the time stamps # fix shebang to to not use env & preserve the time stamps
sed -i.orig "s:^#\!/usr/bin/env\s\+perl\s\?$:#!perl:" "%buildroot/%_bindir/parallel" sed -i.orig "s:^#\!/usr/bin/env\s\+perl\s\?$:#!/usr/bin/perl:" "%buildroot/%_bindir/parallel"
touch -r "%buildroot/%_bindir/parallel.orig" "%buildroot/%_bindir/parallel" touch -r "%buildroot/%_bindir/parallel.orig" "%buildroot/%_bindir/parallel"
rm "%buildroot/%_bindir/parallel.orig" rm "%buildroot/%_bindir/parallel.orig"