Bug 168005

Summary: mail/roundcube sqlite support broken due to removal of databases/php5-sqlite
Product: Ports & Packages Reporter: Stas Verberkt <legolas>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch.txt none

Description Stas Verberkt 2012-05-17 11:00:08 UTC
Due to the removal of databases/php5-sqlite, the WITH_SQLITE switch on mail/roundcube results into the following error:


Unknown extension sqlite for PHP 5.
*** Error code 1

Stop in /usr/ports/mail/roundcube.
*** Error code 1

Stop in /usr/ports/mail/roundcube.

How-To-Repeat: Try to install mail/roundcube, thereby making sure that SQLite is selected.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-05-17 11:00:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2012-05-17 11:48:54 UTC
State Changed
From-To: open->closed

You cannot use sqlite2 support with php 5.4. 
Switch to php 5.3 if you need it.
Comment 3 vhaisman 2012-07-22 11:21:25 UTC
> You cannot use sqlite2 support with php 5.4.
> Switch to php 5.3 if you need it.
This is non-answer. This is mail/roundcube port problem, not our
configuration problem.

Either the mail/roundcube option for SQLITE should be removed, as it is
broken now, or such version of roundcube port that works with Sqlite3
should be provided. Thank you.

-- 
VZ
Comment 4 Chris Rees 2012-07-22 14:08:05 UTC
This at least gives a more meaningful error.

Alex, what do you think?

Chris
Comment 5 Tilman Keskinoz freebsd_committer freebsd_triage 2012-07-22 16:09:03 UTC
The Bug-ID on roundcube trac is:

http://trac.roundcube.net/ticket/1488332
Comment 6 Tilman Keskinoz freebsd_committer freebsd_triage 2012-07-22 16:11:52 UTC
State Changed
From-To: closed->open

crees posted a patch to get a meaningful error message.
Comment 7 Alex Dupre freebsd_committer freebsd_triage 2012-08-08 16:37:08 UTC
State Changed
From-To: open->closed

Clarified.
Comment 8 Chris Rees freebsd_committer freebsd_triage 2012-08-10 15:25:29 UTC
---------- Forwarded message ----------
From: Alex Dupre <ale@freebsd.org>
Date: 8 August 2012 16:36
Subject: svn commit: r302297 - head/mail/roundcube
To: ports-committers@freebsd.org, svn-ports-all@freebsd.org,
svn-ports-head@freebsd.org


Author: ale
Date: Wed Aug  8 15:36:56 2012
New Revision: 302297
URL: http://svn.freebsd.org/changeset/ports/302297

Log:
  Make clear that sqlite support needs php 5.3.

Modified:
  head/mail/roundcube/Makefile

Modified: head/mail/roundcube/Makefile
==============================================================================
--- head/mail/roundcube/Makefile        Wed Aug  8 15:24:14 2012
 (r302296)
+++ head/mail/roundcube/Makefile        Wed Aug  8 15:36:56 2012
 (r302297)
@@ -41,13 +41,13 @@ PLIST_SUB+= MAIL=${MAIL}

 OPTIONS=       MYSQL "Use MySQL backend" on \
                PGSQL "Use PostgreSQL backend" off \
-               SQLITE "Use SQLite backend" off \
+               SQLITE "Use SQLite backend (needs PHP 5.3 or below)" off \
                SSL "Enable SSL support (imaps or google spellcheck)" off \
                LDAP "Enable LDAP support (address book)" off \
                PSPELL "Enable PSpell support (internal spellcheck)" off \
                NSC "Install network spellchecker" off

-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>

 .if defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL) && !defined(WITH_SQLITE)
 IGNORE=                needs a database backend
@@ -154,4 +154,4 @@ do-install:
 post-install:
        @${CAT} ${PKGMESSAGE}

-.include <bsd.port.post.mk>
+.include <bsd.port.mk>