Bug 54795

Summary: 'apxs -g -n' should be self-referring
Product: Apache httpd-2 Reporter: Daniel Shahaf <danielsh>
Component: BuildAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 2.4.4   
Target Milestone: ---   
Hardware: PC   
OS: FreeBSD   

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.