serendipity expects directory /usr/share/php/smarty/libs

Bug #222771 reported by Toby Anderson on 2008-04-26
Affects Status Importance Assigned to Milestone
serendipity (Ubuntu)

Bug Description

Binary package hint: serendipity

without the directory /usr/share/php/smarty/libs/ Serendipity doesn't work. It looks for the file Smarty.class.php there. In Hardy this file is found in /usr/share/php/smarty/ so I put in a symbolic link called libs that links its parent directory and that fixed it.

Ubuntu 8.04
serendipity 1.2.1-1

Changed in serendipity:
status: New → Confirmed
Thijs Kinkhorst (kink) wrote :

This is a consequence of a Ubuntu specific change in smarty 2.6.18-1ubuntu1, see #118793. Maybe the better solution is that smarty would provide that libs symlink in order not to break any packages or local scripts depending on the old path.

Mekk (marcin-kasperski) wrote :

me too ;-)

$ file /usr/share/serendipity/www/bundled-libs/Smarty

/usr/share/serendipity/www/bundled-libs/Smarty: symbolic link to `../../../php/smarty'

$ ls /usr/share/serendipity/www/bundled-libs/Smarty/libs/


$ grep -2 SMARTY_DIR /usr/share/serendipity/www/include/

            // Default Smarty Engine will be used
            @define('SMARTY_DIR', S9Y_PEAR_PATH . 'Smarty/libs/');
            if (!class_exists('Smarty')) {
                include SMARTY_DIR . 'Smarty.class.php';

And obvious croak while trying to run.

What about moving SMARTY_DIR definition somewhere outside? Say, to /etc/serendipity/something

BTW, serendipity does not dpkg-depend on smarty at the moment. Maybe it should?

Thijs Kinkhorst (kink) wrote :

> BTW, serendipity does not dpkg-depend on smarty at the moment. Maybe it should?

It most certainly does:

Depends: apache2 | httpd, libapache2-mod-php5 | libapache-mod-php5 | php5 | php5-cgi | libapache2-mod-php4 | libapache-mod-php4 | php4-cgi | php4, php5-mysql | php4-mysql | php5-pgsql | php4-pgsql | php5-sqlite | php4-sqlite | php5-sqlite3 | php-sqlite3, dbconfig-common, mysql-client | postgresql-client | sqlite | sqlite3, php-pear, smarty, php-cache-lite, php-http-request, php-net-socket, php-net-url, php-net-checkip, debconf (>= 0.5) | debconf-2.0

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers