Bug 54795 - 'apxs -g -n' should be self-referring
Summary: 'apxs -g -n' should be self-referring
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Build (show other bugs)
Version: 2.4.4
Hardware: PC FreeBSD
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2013-04-03 12:44 UTC by Daniel Shahaf
Modified: 2016-01-27 22:50 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Shahaf 2013-04-03 12:44:55 UTC
aurora,7:/tmp% /usr/local/apache2-install/www.apache.org/current/bin/apxs -gn foo >/dev/null
aurora,7:/tmp% grep apxs foo/Makefile 
##  Autogenerated via ``apxs -n foo -g''.

The generated Makefile refers to the 'apxs' binary in $PATH.  That is not the same binary as the one that generated the Makefile (in my case, there is no apxs in $PATH; but in general there could be a different install's apxs in $PATH).  Instead I would expect apxs to generate a Makefile that refers to itself.
Comment 1 Jacob Champion 2016-01-27 22:50:29 UTC
FWIW, this was fixed in trunk@1535699 with the removal of the unused APXS variable.