diff options
| author | Rich Megginson <rmeggins@redhat.com> | 2007-08-02 14:39:01 +0000 |
|---|---|---|
| committer | Rich Megginson <rmeggins@redhat.com> | 2007-08-02 14:39:01 +0000 |
| commit | d7531c68d34d83c17c0d1996fec6d6a0ebfc0e4b (patch) | |
| tree | d9dc41736d47540967b5523a96d6a0eed9f6b379 /ldap/admin/src/scripts/DSCreate.pm.in | |
| parent | 2ebeaf1fbbba60e8ed0040bb904c1bb858a876c3 (diff) | |
| download | ds-d7531c68d34d83c17c0d1996fec6d6a0ebfc0e4b.tar.gz ds-d7531c68d34d83c17c0d1996fec6d6a0ebfc0e4b.tar.xz ds-d7531c68d34d83c17c0d1996fec6d6a0ebfc0e4b.zip | |
Resolves: bug 250535
Bug Description: improve perldap script execution ability on bundled platforms
Reviewed by: nkinder (Thanks!)
Fix Description: Most platforms will just use perl from PATH. However, on Solaris and HP-UX, we have to use special 64 bit versions to execute perldap, since perldap is 64 bit on those platforms. Also, if bundling all of the dependent components into the single package, we need to make sure the perl library path is set correctly to find perldap.
The last step will be to build our version of perldap on the bundled platforms to use rpath to point to the correct runtime library location.
Platforms tested: RHEL4, HP-UX 11.23 IPF 64 bit
Flag Day: no
Doc impact: no
Diffstat (limited to 'ldap/admin/src/scripts/DSCreate.pm.in')
| -rw-r--r-- | ldap/admin/src/scripts/DSCreate.pm.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ldap/admin/src/scripts/DSCreate.pm.in b/ldap/admin/src/scripts/DSCreate.pm.in index cee2c93a..a122d536 100644 --- a/ldap/admin/src/scripts/DSCreate.pm.in +++ b/ldap/admin/src/scripts/DSCreate.pm.in @@ -201,7 +201,8 @@ sub makeDSDirs { sub createInstanceScripts { my $inf = shift; - my $myperl = "!/usr/bin/env perl"; + my $perlexec = "@perlexec@" || "/usr/bin/env perl"; + my $myperl = "!$perlexec"; my $mydevnull = (-f "/dev/null" ? " /dev/null " : " NUL "); my %maptable = ( "DS-ROOT" => $inf->{General}->{prefix}, |
