-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fail to compile on standard archlinux install #47
Comments
Hi @ririsoft, It seems like we have two different problems: 1. Not automatically detecting libmodsecurity What was the path that you have used to install libmod? 2. Not being able to install mod_security3.so Did you executed |
Closing this issue as it seems that it was already sorted by the user. |
Hello, My point is that the makefile is using a hardcoded path for the installation destination through its usage of apxs. This does not ease the work of distro packagers who cannot use It would be really great that the makefile supports the Sorry for the confusion, this issue is more a feature request than a bug report. |
@ririsoft could you check this solution before I send the PR? https://github.com/airween/ModSecurity-apache/tree/smallfixes You can use it:
OR with optional arguments: Then you can type:
The last step configures the temporary httpd, load necessary modules, and run the tests (where the run system also configured by your configure arguments). |
Hello @airween
However I still cannot use
What do you think ? |
Hi @ririsoft I've never used DESTDIR, but after a quick check it looks like https://www.gnu.org/prep/standards/html_node/DESTDIR.html
Could you try it with that way? Regards, |
Hi, Using
or
Produces the same result and fails to install. This is because apxs is used during
|
Hi @ririsoft, It is actually using apxs to decide where to install. It is using the same apxs informed on the configure script. That way, we can use the installation path informed by the distro. Do you happens to known if other Apache modules also respect DESTDIR? |
I've played with the code, looked few other modules... I didn't other module, which uses apxs to build. Anyway, I prepared this module for Debian, see this: All I could do that make a patch which replaces the "-i" in Makefile.am to "-c", then apxs doesn't want to install, and debuild script can install to the DESTDIR. Please note, that the branch above (debian) based on v0.0.9-beta1 tagged state of repository. The raw patch is here: Hope that it helps. |
This is what I am doing too. But I would prefer that the patch is included in modsecurity source code instead of letting distro packagers do it because they do not have full knowledge of what files exactly need to be installed and in which part of the source code repository they can find them after the compilation. What I do is patch the makefile generated after configure step. I did not succeeded in patching the configure/Makefile.am with a good handling of the DESTDIR variable because of my very poor knowledge of autotools. |
Meanhile I realized, that with the -c doesn't gives the expected result, for some reason the .so is incompatible with the apache2 httpd... apxs2 doesn't support the DESTDIR argument, or other destination than axps2 gives back (I guess). That's the problem, and this isn't autotools issue. I'll follow the investigate, how could I fix that. |
Are the package generation process held into a fakeroot? if so, it inst point to the right directory? |
yes (on Debian). But may be I've found a solution (on Debian), hope that can present soon. |
#55 has a patch that resolves this |
Hello,
I would like to package modsecurity-apache for Archlinux but I am encountering the following issues :
The workaround for configure is :
The workaround for
install
is to patch the makefile to remove the-i
flag of theapxs
command and do a manual copy to the expected destination.Could you consider fixing the configure script, please, and honor the
DESTDIR
variable atmake install
stage ?Thank you very much in advance !
Cheers.
The text was updated successfully, but these errors were encountered: