Subject: Re: pkg/35508: ap2-auth-external installation error
To: None <pkgsrc-users@NetBSD.org>
From: OBATA Akio <obata@lins.jp>
List: pkgsrc-users
Date: 02/03/2007 00:12:20
> make can't find the file mod_auth_external.so and therefore can't install it.
> The file is in work/mod_auth_external-2.2.11/.libs and make try to find it in work/mod_auth_external-2.2.11
> 
> Here's my "make update" which give me the same results as "make install".
> 
> [essen@ahobaka] % sudo /usr/bin/make update
> ===> Deinstalling for ap2-auth-external-2.2.11nb1
> Running /usr/sbin/pkg_delete -K /var/db/pkg -r ap2-auth-external-2.2.11nb1
> => Required installed package digest>=20010302: digest-20060826 found
> ===> Checking for vulnerabilities in ap2-auth-external-2.2.11nb1
> => Checksum SHA1 OK for mod_auth_external-2.2.11.tar.gz
> => Checksum RMD160 OK for mod_auth_external-2.2.11.tar.gz
> ===> Installing for ap2-auth-external-2.2.11nb1
> /usr/pkg/share/httpd/build/instdso.sh SH_LIBTOOL='/usr/pkg/libexec/apr/libtool' mod_auth_external.so /usr/pkg/lib/httpd
> /usr/pkg/libexec/apr/libtool --mode=install cp mod_auth_external.so /usr/pkg/lib/httpd/
> cp mod_auth_external.so /usr/pkg/lib/httpd/mod_auth_external.so
> cp: mod_auth_external.so: No such file or directory
> apxs:Error: Command failed with rc=65536

In www/apache/module.mk:
# APACHE_MODULE_NAME    the name of this module, including the .so suffix.

But for apache2, should pass to apxs "module_name.la" instead of "module_name.so".

All www/ap2-* package's Makefile call apxs directly (or use own cofigure & makefile),
instead of include www/apache/module.mk.

How to handle this?

(1) Allow apache2 module to set "module_name.la" to APACHE_MODULE_NAME.

  All ap2 modules calling apxs directly became to use module.mk framework.
  (But www/ap-auth-external can install both ap13 and ap2 module, need if...else)

(2) Set "module_name" (exclude suffix) to APACHE_MODULE_NAME, and append suffix
    in module.mk.

  I feel 'APACHE_MODULE_NAME' isn't mean file name, so completely natural.
  (but must change ALL package using this variable.)

(3) Other
   what?

I think (2) is good, but need some packages change and test.
If select (1), only one package change and can close this PR soon.

--
"Of course I love NetBSD":-)
OBATA Akio / obata@lins.jp / obache@NetBSD.org