ports/111307: [PATCH] ftp/proftpd can't build with both mysql and postgresql
Dmitry A Grigorovich
odip at bionet.nsc.ru
Fri Apr 6 06:30:11 UTC 2007
>Number: 111307
>Category: ports
>Synopsis: [PATCH] ftp/proftpd can't build with both mysql and postgresql
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Fri Apr 06 06:30:06 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Dmitry A Grigorovich
>Release: FreeBSD 6.2-RELEASE-p3 i386
>Organization:
ICiG SB RAS, Russia
>Environment:
FreeBSD monk.bionet.nsc.ru 6.2-RELEASE-p3 FreeBSD 6.2-RELEASE-p3
>Description:
ftp/proftpd can't build when both options selected: MYSQL and POSTGRESQL
FreeBSD port generate following list of proftpd modules:
mod_ratio:mod_readme:mod_rewrite:mod_wrap2:mod_sql:mod_sql_mysql:
mod_sql:mod_sql_postgres:mod_ifsession
But configure from proftpd don't allow using mod_sql twice - it's abort !
>How-To-Repeat:
cd /usr/ports/ftp/proftpd
make rmconfig # default config
make config
# Select both MYSQL and POSTGRESQL !
make configure
Output:
root at monk# cd /usr/ports/ftp/proftpd
root at monk# make configure
===> Found saved configuration for proftpd-1.3.1.r2_3
===> Extracting for proftpd-1.3.1.r2_3
=> MD5 Checksum OK for proftpd-1.3.1rc2.tar.bz2.
=> SHA256 Checksum OK for proftpd-1.3.1rc2.tar.bz2.
===> Patching for proftpd-1.3.1.r2_3
===> Applying FreeBSD patches for proftpd-1.3.1.r2_3
===> proftpd-1.3.1.r2_3 depends on executable in : gmake - found
===> proftpd-1.3.1.r2_3 depends on file: /usr/local/bin/autoconf259 - found
===> proftpd-1.3.1.r2_3 depends on shared library: mysqlclient.15 - found
===> proftpd-1.3.1.r2_3 depends on shared library: pq.4 - found
===> Configuring for proftpd-1.3.1.r2_3
==> Configuring with mod_ratio:mod_readme:mod_rewrite:mod_wrap2:mod_sql:mod_sql_mysql:mod_sql:mod_sql_postgres:mod_ifsession
configure: WARNING: you should use --build, --host, --target
...
...
...
checking whether printf supports %llu format... yes
checking for default transfer buffer sizes... 32768
checking checking for duplicate module requests... yes
configure: error: duplicate build request for mod_sql -- aborting
===> Script "configure" failed unexpectedly.
Please report the problem to beech at alaskaparadise.com [maintainer] and attach
the "/usr/ports/ftp/proftpd/work/proftpd-1.3.1rc2/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. an s
/var/db/pkg).
*** Error code 1
Stop in /usr/ports/ftp/proftpd.
*** Error code 1
Stop in /usr/ports/ftp/proftpd.
>Fix:
Apply following patch
Reinstall ftp/proftpd
In fix we are avoid duplication mod_sql in ${MODULES}
--- patch-proftpd begins here ---
diff -urN proftpd/Makefile proftpd.new/Makefile
--- proftpd/Makefile Sun Mar 25 08:33:59 2007
+++ proftpd.new/Makefile Fri Apr 6 13:09:04 2007
@@ -65,6 +65,7 @@
CODECONV "Use charset conversion (mod_codeconv)" off
MODULES?=
+MODULE_MOD_SQL?=
LIBDIRS?=
INCLUDEDIRS?=
@@ -155,7 +156,8 @@
.if defined(WITH_MYSQL)
USE_MYSQL= yes
-MODULES:=${MODULES}:mod_sql:mod_sql_mysql
+MODULES:=${MODULES}:mod_sql_mysql
+MODULE_MOD_SQL:=mod_sql
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include:${LOCALBASE}/include/mysql
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib/mysql
PLIST_SUB+= MYSQL=""
@@ -165,7 +167,8 @@
.if defined(WITH_POSTGRESQL)
USE_PGSQL= yes
-MODULES:=${MODULES}:mod_sql:mod_sql_postgres
+MODULES:=${MODULES}:mod_sql_postgres
+MODULE_MOD_SQL:=mod_sql
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
.endif
@@ -213,6 +216,9 @@
# Keep this here below, in case similar constructs need to be made
CONFIGURE_ENV+= "LIBS=${PROFTPD_LIBS}"
+
+# Avoid duplication for mod_sql
+MODULES:=${MODULES}:${MODULE_MOD_SQL}
.if !empty(MODULES)
CONFIGURE_ARGS+= --with-modules=${MODULES}
--- patch-proftpd ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list