Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Sep 2014 10:44:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 193941] New: /usr/ports/www/mod_auth_mysql_another patch to work with apache24
Message-ID:  <bug-193941-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193941

            Bug ID: 193941
           Summary: /usr/ports/www/mod_auth_mysql_another patch to work
                    with apache24
           Product: Ports Tree
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: dan@sunsaturn.com
                CC: apache@FreeBSD.org
                CC: apache@FreeBSD.org

/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 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Maintainers CC'd

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193941-13>