Re: Bundled Flash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






On Fri, Aug 23, 2013 at 2:11 PM, Adam Williamson <awilliam@xxxxxxxxxx> wrote:
On Fri, 2013-08-23 at 13:57 -0500, Jon Ciesla wrote:


> Sorry, just noticed the gist of this thread.  Are you trying to
> replace a directory with a symlink?  Take a look at gallery2:
>
>
> Example.
>
>
> In %install:
> #remove bundled Smarty.
> rm -rf lib/smarty
> ln -s ../../php/Smarty2
> ${RPM_BUILD_ROOT}%{installprefix}/gallery2/lib/smarty
>
>
>
> Then in %post:
>
> if [ -L %{installprefix}/gallery2/lib/smarty ]; then
>   rm -f %{installprefix}/gallery2/lib/smarty
> fi
> if [ -d %{installprefix}/gallery2/lib/smarty -a ! -L
> %{installprefix}/gallery2/lib/smarty ]; then
>     mv %{installprefix}/gallery2/lib/smarty
> %{installprefix}/gallery2/lib/smarty.rpmbak && \
>     ln -s ../../php/Smarty2 %{installprefix}/gallery2/lib/smarty && \
>     rm -rf %{installprefix}/gallery2/lib/smarty.rpmbak
> fi
> if [ ! -L %{installprefix}/gallery2/lib/smarty ]; then
>   ln -s ../../php/Smarty2 %{installprefix}/gallery2/lib/smarty
> fi
>
>
>
> Then in %files
> %ghost %{installprefix}/gallery2/lib/smarty
>
>
> Pretty?  Nope.  Overkill?  Maybe?  Reliable?  So far.

Are you sure? Does it work since rpm started throwing file conflict
errors when you're trying to do this? That seems to be a fairly recent
innovation, and the changelog indicates this was written in 2008. Has it
actually been tested recently?

https://bugzilla.redhat.com/show_bug.cgi?id=447156#c22

The discussions I could find about this seem to be down on doing it in %
pre, so I can't see why %post would be any better. Ref
http://mm3test.fedoraproject.org/hyperkitty/list/devel@xxxxxxxxxxxxxxxxxxxxxxxxx/message/XRQUA2DOHNCFWWP2F7WLFW6L5GHPCERZ/ .


No, I've mostly left it as is since written, and adapted to additional bundled PHP libs as needed.  Testing was heavy at the time but has been mimimal since.  Conversely, it's been a long time since I've had a BZ on any of this, which is not necessarily good evidence that it works.  If you find a better way I'm more than happy to rip it off^H^H^H^H^H^H^H^H^H^Hlearn.

-J
 
--
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net

--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct



--
http://cecinestpasunefromage.wordpress.com/
------------------------------------------------
in your fear, seek only peace
in your fear, seek only love

-d. bowie
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux