Bug 111307 - [PATCH] ftp/proftpd can't build with both mysql and postgresql
Summary: [PATCH] ftp/proftpd can't build with both mysql and postgresql
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: sat
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-06 07:30 UTC by Dmitry A Grigorovich
Modified: 2007-04-06 11:00 UTC (History)
0 users

See Also:


Attachments
patch-proftpd (1.10 KB, text/plain)
2007-04-06 07:30 UTC, Dmitry A Grigorovich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry A Grigorovich 2007-04-06 07:30:06 UTC
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 !

Fix: Apply following patch
Reinstall ftp/proftpd

In fix we are avoid duplication mod_sql in ${MODULES}
How-To-Repeat: 
cd /usr/ports/ftp/proftpd
make rmconfig # default config
make config
# Select both MYSQL and POSTGRESQL !
make configure

Output:

root@monk# cd /usr/ports/ftp/proftpd
root@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@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.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-04-06 07:30:28 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Beech Rintoul 2007-04-06 08:27:52 UTC
Patch approved.

Please assign to sat@

Beech Rintoul (Maintainer)
-- 
---------------------------------------------------------------------------------------
Beech Rintoul - Port Maintainer - beech@alaskaparadise.com
/"\   ASCII Ribbon Campaign  | FreeBSD Since 4.x
\ / - NO HTML/RTF in e-mail   | http://www.freebsd.org
 X  - NO Word docs in e-mail | Latest Release:
/ \  - http://www.freebsd.org/releases/6.2R/announce.html
---------------------------------------------------------------------------------------
Comment 3 sat freebsd_committer freebsd_triage 2007-04-06 08:45:05 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sat

Eat.
Comment 4 Edwin Groothuis freebsd_committer freebsd_triage 2007-04-06 08:57:59 UTC
State Changed
From-To: feedback->open

maintainer approved
Comment 5 dfilter service freebsd_committer freebsd_triage 2007-04-06 10:59:29 UTC
sat         2007-04-06 09:59:20 UTC

  FreeBSD ports repository

  Modified files:
    ftp/proftpd          Makefile 
  Log:
  - Allow support for MYSQL and PGSQL to be selected simultaneously
  
  PR:             ports/111307 (based on)
  Submitted by:   Dmitry A Grigorovich <odip@bionet.nsc.ru>
  Approved by:    Beech Rintoul <beech@alaskaparadise.com> (maintainer)
  
  Revision  Changes    Path
  1.106     +9 -5      ports/ftp/proftpd/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 sat freebsd_committer freebsd_triage 2007-04-06 10:59:33 UTC
State Changed
From-To: open->closed

Committed, thanks!