package/apache: fixing apxs path mangling
authorAngelo Compagnucci <angelo@amarulasolutions.com>
Fri, 24 Apr 2020 08:31:59 +0000 (10:31 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Fri, 24 Apr 2020 09:29:35 +0000 (11:29 +0200)
commitaa04edab77c75bc04ffb52755430bcdeb19c6d74
tree9f09e674f4f4e5f9dd7f0e821e8c0161c5179842
parentf4deb625e8988376febf22ee7a5148b1266751ff
package/apache: fixing apxs path mangling

Latest version of Apache introduce a new apxs with a slightly modified
path handling logic. In order to simplify the crosscompilation, the
software removes the common prefix from bin install dir and build
install dir, but for this to work they both should have a common prefix.

So we introduce a new regexp to fix /usr/bin to staging dir, the regexps
are also fixed to replace only the exact path between double quotes, to
avoid replacing the she-bang line.

Fixes:
http://autobuild.buildroot.net/results/c41f31566974209897a3a1ec35afe2536fb248cc
http://autobuild.buildroot.net/results/b93f19976ce96e79ea159c25ed74a7377c78f334

Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
[yann.morin.1998@free.fr:
  - add the last few words about the she-bang blurb
  - do not use quotes in the existing /sur/bin regexp
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/apache/apache.mk