{"action":"created","issue":{"url":"https://api.github.com/repos/gnif/mod_rpaf/issues/8","repository_url":"https://api.github.com/repos/gnif/mod_rpaf","labels_url":"https://api.github.com/repos/gnif/mod_rpaf/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/gnif/mod_rpaf/issues/8/comments","events_url":"https://api.github.com/repos/gnif/mod_rpaf/issues/8/events","html_url":"https://github.com/gnif/mod_rpaf/issues/8","id":6421373,"number":8,"title":"DESTDIR fails. Building on CentOS6","user":{"login":"jldeniro","id":2207419,"avatar_url":"https://avatars.githubusercontent.com/u/2207419?v=3","gravatar_id":"","url":"https://api.github.com/users/jldeniro","html_url":"https://github.com/jldeniro","followers_url":"https://api.github.com/users/jldeniro/followers","following_url":"https://api.github.com/users/jldeniro/following{/other_user}","gists_url":"https://api.github.com/users/jldeniro/gists{/gist_id}","starred_url":"https://api.github.com/users/jldeniro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jldeniro/subscriptions","organizations_url":"https://api.github.com/users/jldeniro/orgs","repos_url":"https://api.github.com/users/jldeniro/repos","events_url":"https://api.github.com/users/jldeniro/events{/privacy}","received_events_url":"https://api.github.com/users/jldeniro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2012-08-23T22:25:39Z","updated_at":"2016-11-29T04:54:19Z","closed_at":"2016-11-29T04:54:19Z","body":"When i try and pass the DESTDIR=/foo/bar parameter it fails with.\n\n<pre>make install DESTDIR=/root/fpm/tmp/mod_rpaf\n./apxs.sh -c -n mod_rpaf.so mod_rpaf.c\n/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/local/include  -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o mod_rpaf.lo mod_rpaf.c && touch mod_rpaf.slo\n/usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o mod_rpaf.la  -rpath /usr/local/libexec -module -avoid-version    mod_rpaf.lo\n./apxs.sh -i -S LIBEXECDIR=/root/fpm/tmp/mod_rpaf$(./apxs.sh -q LIBEXECDIR)/ -n mod_rpaf.so mod_rpaf.la\n/usr/local/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib64/apr-1/build/libtool' mod_rpaf.la /root/fpm/tmp/mod_rpaf/usr/local/libexec/\n/usr/lib64/apr-1/build/libtool --mode=install cp mod_rpaf.la /root/fpm/tmp/mod_rpaf/usr/local/libexec//\nlibtool: install: cp .libs/mod_rpaf.so /root/fpm/tmp/mod_rpaf/usr/local/libexec/mod_rpaf.so\ncp: cannot create regular file `/root/fpm/tmp/mod_rpaf/usr/local/libexec/mod_rpaf.so': No such file or directory\napxs:Error: Command failed with rc=65536\n.\nmake: *** [install] Error 1</pre>\n\n\nAs you can see it puts a //  here /usr/lib64/apr-1/build/libtool --mode=install cp mod_rpaf.la /root/fpm/tmp/mod_rpaf/usr/local/libexec//\n\nIn the Makefile changing install to:\n\n<pre>$(APXS) -i -S LIBEXECDIR=$(DESTDIR)$$($(APXS) -q LIBEXECDIR) -n mod_rpaf.so mod_rpaf.la</pre>\n\ndrops the extra / but still fails to install to my DESTDIR. \n\n<pre>make install DESTDIR=/root/fpm/tmp/mod_rpaf\n./apxs.sh -c -n mod_rpaf.so mod_rpaf.c\n/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/local/include  -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o mod_rpaf.lo mod_rpaf.c && touch mod_rpaf.slo\n/usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o mod_rpaf.la  -rpath /usr/local/libexec -module -avoid-version    mod_rpaf.lo\n./apxs.sh -i -S LIBEXECDIR=/root/fpm/tmp/mod_rpaf$(./apxs.sh -q LIBEXECDIR) -n mod_rpaf.so mod_rpaf.la\n/usr/local/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib64/apr-1/build/libtool' mod_rpaf.la /root/fpm/tmp/mod_rpaf/usr/local/libexec\n/usr/lib64/apr-1/build/libtool --mode=install cp mod_rpaf.la /root/fpm/tmp/mod_rpaf/usr/local/libexec/\nlibtool: install: cp .libs/mod_rpaf.so /root/fpm/tmp/mod_rpaf/usr/local/mod_rpaf.so\ncp: cannot create regular file `/root/fpm/tmp/mod_rpaf/usr/local/mod_rpaf.so': No such file or directory\napxs:Error: Command failed with rc=65536\n.\nmake: *** [install] Error 1</pre>\n\n\nNow if I change the install line to:\n\n<pre>$(APXS) -i -S LIBEXECDIR=$(DESTDIR)$($(APXS) -q LIBEXECDIR) -n mod_rpaf.so mod_rpaf.la</pre>\n\n\nThe install seems to complete to the DESTDIR\n\n<pre>make install DESTDIR=/root/fpm/tmp/mod_rpaf\n./apxs.sh -c -n mod_rpaf.so mod_rpaf.c\n/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/local/include  -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o mod_rpaf.lo mod_rpaf.c && touch mod_rpaf.slo\n/usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o mod_rpaf.la  -rpath /usr/local/libexec -module -avoid-version    mod_rpaf.lo\n./apxs.sh -i -S LIBEXECDIR=/root/fpm/tmp/mod_rpaf -n mod_rpaf.so mod_rpaf.la\n/usr/local/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib64/apr-1/build/libtool' mod_rpaf.la /root/fpm/tmp/mod_rpaf\n/usr/lib64/apr-1/build/libtool --mode=install cp mod_rpaf.la /root/fpm/tmp/mod_rpaf/\nlibtool: install: cp .libs/mod_rpaf.so /root/fpm/tmp/mod_rpaf/mod_rpaf.so\nlibtool: install: cp .libs/mod_rpaf.lai /root/fpm/tmp/mod_rpaf/mod_rpaf.la\nlibtool: install: cp .libs/mod_rpaf.a /root/fpm/tmp/mod_rpaf/mod_rpaf.a\nlibtool: install: chmod 644 /root/fpm/tmp/mod_rpaf/mod_rpaf.a\nlibtool: install: ranlib /root/fpm/tmp/mod_rpaf/mod_rpaf.a\nlibtool: install: warning: remember to run `libtool --finish /usr/local/libexec'\nchmod 755 /root/fpm/tmp/mod_rpaf/mod_rpaf.so</pre> \n\n\nBut there is only mod_rpaf.so in there, it does not create /usr/local/libexec inside my DESTDIR. Kinda lost after this point. Thanks for any info or help getting this to work with DESTDIR as I am trying to package this. \n"},"comment":{"url":"https://api.github.com/repos/gnif/mod_rpaf/issues/comments/263476064","html_url":"https://github.com/gnif/mod_rpaf/issues/8#issuecomment-263476064","issue_url":"https://api.github.com/repos/gnif/mod_rpaf/issues/8","id":263476064,"user":{"login":"gnif","id":351151,"avatar_url":"https://avatars.githubusercontent.com/u/351151?v=3","gravatar_id":"","url":"https://api.github.com/users/gnif","html_url":"https://github.com/gnif","followers_url":"https://api.github.com/users/gnif/followers","following_url":"https://api.github.com/users/gnif/following{/other_user}","gists_url":"https://api.github.com/users/gnif/gists{/gist_id}","starred_url":"https://api.github.com/users/gnif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnif/subscriptions","organizations_url":"https://api.github.com/users/gnif/orgs","repos_url":"https://api.github.com/users/gnif/repos","events_url":"https://api.github.com/users/gnif/events{/privacy}","received_events_url":"https://api.github.com/users/gnif/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T04:54:19Z","updated_at":"2016-11-29T04:54:19Z","body":"Closing this issue due to age, if this is still an issue feel free to comment."}}
{"actor":{"display_login":"gnif"}}