From e9ef8f32c2cf637f6f151a837753887f8a3fabfa Mon Sep 17 00:00:00 2001
From: Mooffie <mooffie@gmail.com>
Date: Fri, 6 Jan 2017 01:23:42 +0200
Subject: [PATCH 2/3] Ticket #3751: extfs: rpm: use @PERL@ instead of perl for
tests.
Signed-off-by: Mooffie <mooffie@gmail.com>
---
configure.ac | 1 +
src/vfs/extfs/helpers/Makefile.am | 4 +++-
src/vfs/extfs/helpers/{rpm => rpm.in} | 1 +
tests/src/vfs/extfs/helpers-list/data/rpm.rewrite.sh | 4 ++--
4 files changed, 7 insertions(+), 3 deletions(-)
rename src/vfs/extfs/helpers/{rpm => rpm.in} (99%)
mode change 100755 => 100644
diff --git a/configure.ac b/configure.ac
index c128c09..893beca 100644
a
|
b
|
src/vfs/extfs/helpers/hp48+ |
554 | 554 | src/vfs/extfs/helpers/lslR |
555 | 555 | src/vfs/extfs/helpers/mailfs |
556 | 556 | src/vfs/extfs/helpers/patchfs |
| 557 | src/vfs/extfs/helpers/rpm |
557 | 558 | src/vfs/extfs/helpers/rpms+ |
558 | 559 | src/vfs/extfs/helpers/s3+ |
559 | 560 | src/vfs/extfs/helpers/uace |
diff --git a/src/vfs/extfs/helpers/Makefile.am b/src/vfs/extfs/helpers/Makefile.am
index 06ea789..47954d5 100644
a
|
b
|
EXTFSCONFFILES = sfs.ini |
6 | 6 | EXTFS_MISC = README README.extfs |
7 | 7 | |
8 | 8 | # Scripts hat don't need adaptation to the local system |
9 | | EXTFS_CONST = bpp changesetfs gitfs+ patchsetfs rpm trpm u7z |
| 9 | EXTFS_CONST = bpp changesetfs gitfs+ patchsetfs trpm u7z |
10 | 10 | |
11 | 11 | # Scripts that need adaptation to the local system - source files |
12 | 12 | EXTFS_IN = \ |
… |
… |
EXTFS_IN = \ |
22 | 22 | lslR.in \ |
23 | 23 | mailfs.in \ |
24 | 24 | patchfs.in \ |
| 25 | rpm.in \ |
25 | 26 | rpms+.in \ |
26 | 27 | s3+.in \ |
27 | 28 | uace.in \ |
… |
… |
EXTFS_OUT = \ |
52 | 53 | lslR \ |
53 | 54 | mailfs \ |
54 | 55 | patchfs \ |
| 56 | rpm \ |
55 | 57 | rpms+ \ |
56 | 58 | s3+ \ |
57 | 59 | uace \ |
diff --git a/src/vfs/extfs/helpers/rpm b/src/vfs/extfs/helpers/rpm.in
old mode 100755
new mode 100644
similarity index 99%
rename from src/vfs/extfs/helpers/rpm
rename to src/vfs/extfs/helpers/rpm.in
index 30d6926..c131dfc
a
|
b
|
mcrpmfs_run () |
329 | 329 | } |
330 | 330 | |
331 | 331 | # Let the test framework override functions and variables. |
| 332 | PERL=@PERL@ |
332 | 333 | [ -n "$MC_TEST_RPM_REWRITE" ] && . "$MC_TEST_RPM_REWRITE" |
333 | 334 | |
334 | 335 | AllTAGS=`mcrpmfs_getAllNeededTags "$1"` |
diff --git a/tests/src/vfs/extfs/helpers-list/data/rpm.rewrite.sh b/tests/src/vfs/extfs/helpers-list/data/rpm.rewrite.sh
index a6c4932..5552057 100644
a
|
b
|
TAGSF="$MC_TEST_INPUT" |
18 | 18 | # |
19 | 19 | mcrpmfs_getSupportedTags() |
20 | 20 | { |
21 | | perl -e ' |
| 21 | $PERL -e ' |
22 | 22 | $tagsf = $ARGV[0]; |
23 | 23 | |
24 | 24 | do $tagsf or die("$tagsf: $!"); |
… |
… |
mcrpmfs_getSupportedTags() |
39 | 39 | # |
40 | 40 | rpm_qf() |
41 | 41 | { |
42 | | perl -w -e ' |
| 42 | $PERL -w -e ' |
43 | 43 | $tagsf = $ARGV[0]; |
44 | 44 | $tmplt = $ARGV[1]; |
45 | 45 | |