Bug 497098
Summary: | gallery2-2.3-5.fc11 breaks due to php-Smarty changes | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Daniel McNamara <daniel> |
Component: | gallery2 | Assignee: | Gwyn Ciesla <gwync> |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | crow, gwync, mike, vchepkov |
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: | 2009-04-27 14:32:31 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
Daniel McNamara
2009-04-22 11:13:37 UTC
How does -7 work for you? *** This bug has been marked as a duplicate of bug 484240 *** I'm not exactly sure how I got into this state, but this morning after the gallery2-2.3-7.fc10.noarch upgrade was installed via yum updates, I did not have a "smarty" link or directory in /usr/share/gallery2/modules. Force re-installing the rpm did not fix it because the logic to create the symlink looks like if [ -d /usr/share/gallery2/lib/smarty ]; then rm -rf /usr/share/gallery2/lib/smarty ln -s ../../php/Smarty /usr/share/gallery2/lib/smarty fi Since the directory did not exist, no symlink was created. Seeing the logic, I was able to create the symlink and am off and running, but thought I should report this for posterity and others trying to resolve this problem. *** Bug 498019 has been marked as a duplicate of this bug. *** I see the flaw, I should move the link creation out of the loop. Be careful. If the symlink already exists and the ln command currently in the script is run again, a symlink will get created in the link destination (i.e. /usr/share/php/Smarty). New version I'm building is the following: %pretrans #symlink to system smarty if [ -d /usr/share/gallery2/lib/smarty ]; then rm -rf /usr/share/gallery2/lib/smarty fi if [ ! -e /usr/share/gallery2/lib/smarty ]; then ln -s ../../php/Smarty /usr/share/gallery2/lib/smarty fi This should prevent that eventuality. |