X-Git-Url: https://git.tld-linux.org/?p=packages%2Fapache.git;a=blobdiff_plain;f=apache-apxs.patch;h=7dc3930e3cf0260234fe996334029c8db030e8af;hp=7ee05ad5f39e894e694ab40a89bf2e82870cce7d;hb=1129fb3c19c2f3be62c2cf69dd8410756676ce6f;hpb=03fa0e1eac0d3851c5ae1ab08a02cc3a5ee4eb69 diff --git a/apache-apxs.patch b/apache-apxs.patch index 7ee05ad..7dc3930 100644 --- a/apache-apxs.patch +++ b/apache-apxs.patch @@ -1,6 +1,7 @@ ---- httpd-2.2.3/support/apxs.in-orig 2006-11-01 00:59:27.000000000 +0100 -+++ httpd-2.2.3/support/apxs.in 2006-11-01 00:59:54.000000000 +0100 -@@ -35,6 +35,7 @@ +diff -urNp -x '*.orig' httpd-2.4.46.org/support/apxs.in httpd-2.4.46/support/apxs.in +--- httpd-2.4.46.org/support/apxs.in 2020-03-20 14:00:44.000000000 +0100 ++++ httpd-2.4.46/support/apxs.in 2021-06-16 09:20:17.513003551 +0200 +@@ -45,6 +45,7 @@ my $CFG_PREFIX = $prefix; my $exec_prefix = get_vars("exec_prefix"); my $datadir = get_vars("datadir"); my $localstatedir = get_vars("localstatedir"); @@ -8,15 +9,15 @@ my $CFG_TARGET = get_vars("progname"); my $CFG_SYSCONFDIR = get_vars("sysconfdir"); my $CFG_CFLAGS = join ' ', map { get_vars($_) } -@@ -44,6 +45,7 @@ +@@ -56,6 +57,7 @@ my $CFG_INCLUDEDIR = eval qq("$includedi my $CFG_CC = get_vars("CC"); - my $libexecdir = get_vars("libexecdir"); + my $libexecdir = $destdir . get_vars("libexecdir"); my $CFG_LIBEXECDIR = eval qq("$libexecdir"); +my $CFG_DESTDIR = ''; my $sbindir = get_vars("sbindir"); my $CFG_SBINDIR = eval qq("$sbindir"); my $ltflags = $ENV{'LTFLAGS'}; -@@ -171,7 +173,7 @@ +@@ -183,7 +185,7 @@ if (@opt_S) { my ($val) = $2; my $oldval = eval "\$CFG_$var"; @@ -25,34 +26,10 @@ print STDERR "apxs:Error: no config variable $var\n"; &usage; } -@@ -199,11 +201,10 @@ - ($httpd = $0) =~ s:support/apxs$::; - } - --unless (-x "$httpd") { -- error("$httpd not found or not executable"); -- exit 1; -+if (not -x "$httpd") { -+ print STDERR "Note: $httpd not found or not executable.\n"; - } -- -+else { - unless (grep /mod_so/, `. $envvars && $httpd -l`) { - error("Sorry, no shared object support for Apache"); - error("available under your platform. Make sure"); -@@ -211,7 +212,7 @@ - error("your server binary `$httpd'."); - exit 1; - } -- -+} - sub get_config_vars{ - my ($file, $rh_config) = @_; - -@@ -479,8 +480,8 @@ +@@ -512,8 +514,8 @@ if ($opt_i or $opt_e) { $t =~ s|\.[^./\\]+$|\.so|; if ($opt_i) { - push(@cmds, "$installbuilddir/instdso.sh SH_LIBTOOL='" . + push(@cmds, $destdir . "$installbuilddir/instdso.sh SH_LIBTOOL='" . - "$libtool' $f $CFG_LIBEXECDIR"); - push(@cmds, "chmod 755 $CFG_LIBEXECDIR/$t"); + "$libtool' $f $CFG_DESTDIR$CFG_LIBEXECDIR");