#1674: Freeze Exception request: gallery2 -----------------------------+---------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Keywords: | -----------------------------+---------------------------------------------- gallery2-2.3-8.fc11 fixes a pretrans symlink script. The previous, broken version requires user intervention to upgrade. No code or DB changes.
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by rdieter):
%pretrans is evil, and can easily cause failures on initial anaconda (or other) installs, where there is no "pretrans" environment. I'm not sure if that case can be gracefully handled or not.
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by limb):
So how do we drop a bundled library and use a Required system version? There have been a flurry of bugs requesting this in the last year and I've done things in %pre for gallery and moodle, and only recently have there been complaints.
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by limb):
Wouldn't doing this sort of thing in %pre with $1 conditionals break with cpio issues? https://bugzilla.redhat.com/show_bug.cgi?id=484240
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by rdieter):
%pre != %pretrans
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by rdieter):
Sorry, too brief, you may be able to use %pre here... heck, why not just do this in %post?
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by limb):
I originally tried to do this in %pre, and was told to use %pretrans instead, which I'd never heard of. See linked bug, comment #5.
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by rdieter):
Oh rats, of course, this is the "replace a dir with a symlink" problem here. ok.
I still think the %pretrans scriptlet as-is will fail if chosen for an initial install.
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by limb):
Would %pretrans as is and a $1 conditional in %pre do the trick?
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Resolution: | Keywords: ------------------------------+--------------------------------------------- Changes (by limb):
* cc: rdieter (added)
Comment:
I've got a -9 coming with another fix, for a dep that was missed. Rex, any further thoughts on this situation?
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by rdieter):
OK, confirmed with folks that %pretrans is to be avoided.
A solution I came up with under some testing, was to use in %files %ghost /path/to/symlink
and a scriptlet (something like) %post if [ -d /path/to/symlink -a ! -L /path/to/symlink ]; then mv /path/to/symlink /path/to/symlink.rpmbak && \ ln -s /path/to/symlink-target /path/to/symlink && \ rm -rf /path/to/symlink.rpmbak fi
I can help do a proof-of-concept implemation in gallery cvs if you want.
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by limb):
Sorry for the delay, was on medical AFK.
A POC in CS would be great.
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by limb):
I just committed a version implementing the above, and built in rawhide. It seems to work here, I'll build for 11 and 10 and post to the BZ to have others try it.
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by limb):
gallery2-2.3-9.fc11 Should be taggable.
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Resolution: | Keywords: ------------------------------+--------------------------------------------- Changes (by rdieter):
* cc: rdieter (removed)
Comment:
This incarnation is safer thanks, any testing/feedback yet?
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by limb):
Yeah, just ccd you on the BZ.
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: new Milestone: Fedora 11 Final | Component: koji Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by rdieter):
ok, +1
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: closed Milestone: Fedora 11 Final | Component: koji Resolution: fixed | Keywords: ------------------------------+--------------------------------------------- Changes (by jkeating):
* status: new => closed * resolution: => fixed
Comment:
Moving, tagging, signing.
#1674: Freeze Exception request: gallery2 ------------------------------+--------------------------------------------- Reporter: limb | Owner: rel-eng@lists.fedoraproject.org Type: task | Status: closed Milestone: Fedora 11 Final | Component: koji Resolution: fixed | Keywords: ------------------------------+--------------------------------------------- Comment (by limb):
Um, I got feedback, didn't say it was positive feedback, see https://bugzilla.redhat.com/show_bug.cgi?id=498334
rel-eng@lists.fedoraproject.org