Skip to content

Commit

Permalink
Merge pull request epicsdeb#9 from mark0n/find-EpicsHostArch.pl
Browse files Browse the repository at this point in the history
Fix EpicsHostArch.pl path for Base >=3.15.6
  • Loading branch information
aderbenev authored Oct 29, 2018
2 parents 34807ad + c34f924 commit fb87203
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
epics-debhelper (8.18) unstable; urgency=medium

* Fix EPICS_HOST_ARCH.pl path for Base >=3.15.6

-- Martin Konrad <[email protected]> Tue, 16 Oct 2018 09:43:48 -0400

epics-debhelper (8.17) unstable; urgency=medium

[ Michael Davidsaver ]
Expand Down
11 changes: 10 additions & 1 deletion lib/Debian/Debhelper/Dh_Epics.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,16 @@ sub setepicsenv {
$ENV{EPICS_BASE} = "/usr/lib/epics";
}
if (not exists $ENV{EPICS_HOST_ARCH}) {
$ENV{EPICS_HOST_ARCH} = `$ENV{EPICS_BASE}/startup/EpicsHostArch.pl`;
my $EHA_PATH;
if (-r "$ENV{EPICS_BASE}/lib/perl/EpicsHostArch.pl") {
$EHA_PATH = "$ENV{EPICS_BASE}/lib/perl/EpicsHostArch.pl";
} elsif (-r "$ENV{EPICS_BASE}/src/tools/EpicsHostArch.pl") {
$EHA_PATH = "$ENV{EPICS_BASE}/src/tools/EpicsHostArch.pl";
} else {
$EHA_PATH = "$ENV{EPICS_BASE}/startup/EpicsHostArch.pl";
}
$ENV{EPICS_HOST_ARCH} = `/usr/bin/perl ${EHA_PATH}`;
chomp($ENV{EPICS_HOST_ARCH});
}
}

Expand Down

0 comments on commit fb87203

Please sign in to comment.