epmfile.pm (8caaea53) | epmfile.pm (e250bff1) |
---|---|
1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 873 unchanged lines hidden (view full) --- 882################################################# 883 884sub get_ld_preload_string 885{ 886 my ($includepatharrayref) = @_; 887 888 my $getuidlibraryname = "getuid.so"; 889 | 1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 873 unchanged lines hidden (view full) --- 882################################################# 883 884sub get_ld_preload_string 885{ 886 my ($includepatharrayref) = @_; 887 888 my $getuidlibraryname = "getuid.so"; 889 |
890 my $ldpreloadstring; 891 |
|
890 my $getuidlibraryref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$getuidlibraryname, $includepatharrayref, 0); | 892 my $getuidlibraryref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$getuidlibraryname, $includepatharrayref, 0); |
891 if ($$getuidlibraryref eq "") { installer::exiter::exit_program("ERROR: Could not find $getuidlibraryname!", "get_ld_preload_string"); } | |
892 | 893 |
893 my $ldpreloadstring = "LD_PRELOAD=" . $$getuidlibraryref; | 894 if ($ENV{'FAKEROOT'} ne "no") { 895 896 $ldpreloadstring = $ENV{'FAKEROOT'}; 897 898 } else { 899 900 if ($$getuidlibraryref eq "") { installer::exiter::exit_program("ERROR: Could not find $getuidlibraryname!", "get_ld_preload_string"); } 901 902 my $ldpreloadstring = "LD_PRELOAD=" . $$getuidlibraryref; 903 } |
894 895 return $ldpreloadstring; 896} 897 898################################################# 899# Calling epm to create the installation sets 900################################################# 901 --- 7 unchanged lines hidden (view full) --- 909 910 my $localpackagename = $packagename; 911 # Debian allows only lowercase letters in package name 912 if ( $installer::globals::debian ) { $localpackagename = lc($localpackagename); } 913 914 my $outdirstring = ""; 915 if ( $installer::globals::epmoutpath ne "" ) { $outdirstring = " --output-dir $installer::globals::epmoutpath"; } 916 | 904 905 return $ldpreloadstring; 906} 907 908################################################# 909# Calling epm to create the installation sets 910################################################# 911 --- 7 unchanged lines hidden (view full) --- 919 920 my $localpackagename = $packagename; 921 # Debian allows only lowercase letters in package name 922 if ( $installer::globals::debian ) { $localpackagename = lc($localpackagename); } 923 924 my $outdirstring = ""; 925 if ( $installer::globals::epmoutpath ne "" ) { $outdirstring = " --output-dir $installer::globals::epmoutpath"; } 926 |
917 # Debian package build needs a LD_PRELOAD for correct rights | 927 # Debian package build needs fakeroot or our LD_PRELOAD hack for correct rights |
918 919 my $ldpreloadstring = ""; 920 921 if ( $installer::globals::debian ) { $ldpreloadstring = get_ld_preload_string($includepatharrayref) . " "; } 922 923 my $extraflags = ""; 924 if ($ENV{'EPM_FLAGS'}) { $extraflags = $ENV{'EPM_FLAGS'}; } 925 --- 2421 unchanged lines hidden --- | 928 929 my $ldpreloadstring = ""; 930 931 if ( $installer::globals::debian ) { $ldpreloadstring = get_ld_preload_string($includepatharrayref) . " "; } 932 933 my $extraflags = ""; 934 if ($ENV{'EPM_FLAGS'}) { $extraflags = $ENV{'EPM_FLAGS'}; } 935 --- 2421 unchanged lines hidden --- |