Bug 193941 - www/mod_auth_mysql_another patch to work with apache24
Summary: www/mod_auth_mysql_another patch to work with apache24
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Philip M. Gollucci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-26 10:44 UTC by dan
Modified: 2015-07-15 17:52 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dan 2014-09-26 10:44:57 UTC
/usr/ports/www/mod_auth_mysql_another Makefile will not allow port to compile against apache24, following patch allows it to work with apache24

http://sourceforge.net/p/modauthmysql/patches/13/attachment/mod_auth_mysql_3.0.0_patch_apache2.4.diff
 
Proof of working(running fine on my system):

sunsaturn:/root # tar fvxz mod_auth_mysql-3.0.0.tar.gz                  
x mod_auth_mysql-3.0.0/BUILD
x mod_auth_mysql-3.0.0/CHANGES
x mod_auth_mysql-3.0.0/CONFIGURE
x mod_auth_mysql-3.0.0/README
x mod_auth_mysql-3.0.0/mod_auth_mysql.c
sunsaturn:/root # patch -p0 < mod_auth_mysql_3.0.0_patch_apache2.4.diff 
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- mod_auth_mysql-3.0.0/mod_auth_mysql.c      2005-06-22 12:17:45.000000000 -0400
|+++ mod_auth_mysql-3.0.0_patch_apache_2.4/mod_auth_mysql.c     2013-12-30 18:07:27.646704470 -0500
--------------------------
Patching file mod_auth_mysql-3.0.0/mod_auth_mysql.c using Plan A...
Hunk #1 succeeded at 206.
Hunk #2 succeeded at 237.
Hunk #3 succeeded at 589.
Hunk #4 succeeded at 905.
Hunk #5 succeeded at 1270.
done
sunsaturn:/root # cd mod_auth_mysql-3.0.0
sunsaturn:/root/mod_auth_mysql-3.0.0 # ls
BUILD  CHANGES  CONFIGURE  README  mod_auth_mysql.c  mod_auth_mysql.c.orig
sunsaturn:/root/mod_auth_mysql-3.0.0 # apxs -c -I/usr/local/include/mysql -L/usr/local/lib/mysql -lmysqlclient -lz -lm mod_auth_mysql.c
/usr/local/share/apr/build-1/libtool --silent --mode=compile cc -prefer-pic -O2 -pipe -I/usr/include -fno-strict-aliasing    -I/usr/local/include/apache24  -I/usr/local/include/apr-1   -I/usr/local/include/apr-1 -I/usr/include -I/usr/local/include -I/usr/local/include/db5 -I/usr/local/include/mysql  -c -o mod_auth_mysql.lo mod_auth_mysql.c && touch mod_auth_mysql.slo
mod_auth_mysql.c:892:9: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
                      pos-output, output);
                      ^~~~~~~~~~
mod_auth_mysql.c:228:53: note: expanded from macro 'LOG_ERROR_2'
          ap_log_rerror (APLOG_MARK, lvl, stat, rqst, msg, parm1, parm2)
                                                           ^
/usr/local/include/apache24/http_log.h:448:44: note: expanded from macro 'ap_log_rerror'
#define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__)
                                           ^
/usr/local/include/apache24/http_log.h:451:63: note: expanded from macro 'ap_log_rerror__'
             ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \
                                                              ^
1 warning generated.
/usr/local/share/apr/build-1/libtool --silent --mode=link cc -L/usr/lib -Wl,-rpath,/usr/lib:/usr/local/lib   -o mod_auth_mysql.la  -L/usr/local/lib/mysql -lmysqlclient -lz -lm -rpath /usr/local/libexec/apache24 -module -avoid-version    mod_auth_mysql.lo
sunsaturn:/root/mod_auth_mysql-3.0.0 # apxs -i mod_auth_mysql.la
/usr/local/share/apache24/build/instdso.sh SH_LIBTOOL='/usr/local/share/apr/build-1/libtool' mod_auth_mysql.la /usr/local/libexec/apache24
/usr/local/share/apr/build-1/libtool --mode=install install mod_auth_mysql.la /usr/local/libexec/apache24/
libtool: install: install .libs/mod_auth_mysql.so /usr/local/libexec/apache24/mod_auth_mysql.so
libtool: install: install .libs/mod_auth_mysql.lai /usr/local/libexec/apache24/mod_auth_mysql.la
libtool: install: install .libs/mod_auth_mysql.a /usr/local/libexec/apache24/mod_auth_mysql.a
libtool: install: chmod 644 /usr/local/libexec/apache24/mod_auth_mysql.a
libtool: install: ranlib /usr/local/libexec/apache24/mod_auth_mysql.a
chmod 755 /usr/local/libexec/apache24/mod_auth_mysql.so
sunsaturn:/root/mod_auth_mysql-3.0.0 #
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-09-26 10:44:57 UTC
Maintainers CC'd
Comment 2 Philip M. Gollucci freebsd_committer freebsd_triage 2015-07-14 21:48:55 UTC
Take.
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-07-15 17:52:01 UTC
A commit references this bug:

Author: pgollucci
Date: Wed Jul 15 17:51:27 UTC 2015
New revision: 392177
URL: https://svnweb.freebsd.org/changeset/ports/392177

Log:
  www/mod_auth_mysql_another: cleanup / apache24 fixes

  - Bump PortREVISION
  - Set LICENSE
  - Allow apache 22+
  - DAPACHE2 isn't needed anymore
  - consolidate post-patch and patches into one
  - unmute install command
  - remove unused files/Makefiel
  - handle remote_ip vs client_ip

  PR:                  193941
  Submitted by:        dan@sunsaturn.com (with mods)
  With Hat:            apache@

Changes:
  head/www/mod_auth_mysql_another/Makefile
  head/www/mod_auth_mysql_another/files/Makefile
  head/www/mod_auth_mysql_another/files/patch-mod__auth__mysql.c
  head/www/mod_auth_mysql_another/files/patch-strcat