Bug 5848 - apxs returns wrong value for LIBEXECDIR
apxs returns wrong value for LIBEXECDIR
Status: CLOSED DUPLICATE of bug 5650
Product: Red Hat Linux
Classification: Retired
Component: apache (Show other bugs)
6.1
All Linux
high Severity medium
: ---
: ---
Assigned To: Preston Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-10-11 16:52 EDT by tanner
Modified: 2008-05-01 11:37 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-11-02 10:49:41 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description tanner 1999-10-11 16:52:06 EDT
apache-devel-1.3.9 has a bug where:

/usr/sbin/apxs -q LIBEXECDIR

returns, just "module"

Under 1.3.6-7 the same command returns
/usr/lib/apache
Comment 1 tanner 1999-10-11 17:03:59 EDT
It looks like the problem is in the apache_1.3.9-apxs.patch:

-my $CFG_LIBEXECDIR    = '@libexecdir@';   # substituted
+my $CFG_LIBEXECDIR    = 'modules';        # substituted

Not sure why you are removing the @libexecdir@, but taking that out
fixes the problem.

I'll await the official word from you.

------- Additional Comments From   10/29/99 04:40 -------
Oh, Tanner, that doesn't fix much. The broken AXPS from 136 couldn't
-a modules correctly.  The 'fixed' one can't -i them correctly.  it's
painfully obvious that this file wasn't tested even as simply as an
apxs -c -i -a mod_foo.c.

A further patch, utilising the very coding that apci was probably
trying to avoid, may fix the behaviour:

! my $dir = 'modules';
 $dir =~ s|^$CFG_PREFIX/?||;
 $dir =~ s|(.)$|$1/|;

another almost-as bad patch, same area:

 my $dir = $CFG_LIBEXECDIR;
-$dir =~ s|^$CFG_PREFIX/?||;
 $dir =~ s|(.)$|$1/|;

the second one is no better thant he first, imho, because it changes
the 'format' or standard location of the modules in the httpd.conf
file. Hey, at least it may go.  CAVEAT:  I don't do a lick of perl.
<rant>
At least I tested the first patch, which makes me a step ahead of
RHQA in one aspect.
</rant>
Comment 2 Bishop Clark 1999-10-29 04:42:59 EDT
Hmm.  My email wasn't added as it should have been.
Comment 3 Preston Brown 1999-11-02 10:49:59 EST
*** This bug has been marked as a duplicate of 5650 ***

Note You need to log in before you can comment on or make changes to this bug.