Bug 457886

Summary: RFE: moodle: consider switching to using system Smarty if possible
Product: [Fedora] Fedora Reporter: Tomas Hoger <thoger>
Component: moodleAssignee: Gwyn Ciesla <gwync>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-09 19:14:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomas Hoger 2008-08-05 08:08:20 UTC
Description of problem:
Current moodle packages contain a private copy of Smarty, which is also packaged in Fedora as php-Smarty.  Any bug (or security issue) in Smarty now requires update of both php-Smarty and all applications having own copy.

Please investigate if moodle can be used with system Smarty, or depends on some project-specific customizations.

Possible straight forward way to use system smarty is to do something like:
  rm -rf /var/www/moodle/web/lib/smarty
  ln -s /usr/share/php/Smarty/ /var/www/moodle/web/lib/smarty

+ depends on php-Smarty

Ideally, there may be a way to use system smarty without exposing it in the directory served by web server, as was done in php-pear-PhpDocumentor:
http://cvs.fedoraproject.org/viewcvs/rpms/php-pear-PhpDocumentor/devel/php-pear-PhpDocumentor.spec?r1=1.4&r2=1.5


Version-Release number of selected component (if applicable):
moodle-1.9.1-2.fc10


Additional info:
Other libraries with local copies in lib/ may also have system package counterpart.

Comment 1 Gwyn Ciesla 2008-08-06 16:27:52 UTC
Smarty dep fixed with symlink in rawhide.  Looking into others, please document here if found. . .

Comment 2 Gwyn Ciesla 2008-08-06 17:01:41 UTC
Working on adodb.  Noticed that the symlink approach fails on upgrade, testing a %pre script to remedy this.

Comment 3 Gwyn Ciesla 2008-08-06 19:35:29 UTC
Built in rawhide using system adodb and magpierss.

Comment 4 Gwyn Ciesla 2008-09-09 19:14:30 UTC
Not finding similarly droppable deps.  Fulfilled scope of initial request. Closing.