Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 480918 - www-plugins/adobe-flash: please consider reusing abi_x86_* flags
Summary: www-plugins/adobe-flash: please consider reusing abi_x86_* flags
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
: 485770 (view as bug list)
Depends on:
Blocks: gx86-multilib
  Show dependency tree
 
Reported: 2013-08-13 20:35 UTC by Michał Górny
Modified: 2013-09-27 19:35 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
adobe-flash-11.2.202.310.ebuild.diff (adobe-flash-11.2.202.310.ebuild.diff,8.68 KB, patch)
2013-09-23 18:33 UTC, Michael Mair-Keimberger (iamnr3)
Details | Diff
Ebuild r1 (adobe-flash-11.2.202.310-r1.ebuild,6.69 KB, text/plain)
2013-09-24 18:38 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-08-13 20:35:15 UTC
Since the abi_x86_{32,64} flags are getting well-known, and properly controlled in profiles, I think adobe-flash would benefit from reusing them. If you need, I can try to wrap up a patch for the current ebuild.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-13 22:56:24 UTC
Patches are welcome! :)
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-08-25 14:14:21 UTC
I find it hard to read adobe-flash deps.

1. is emul-linux-x86-baselibs omitted because it is a dep of gtklibs/soundlibs? I see nspr, nss & curl in native deps which AFAIR are part of that.

2. same for -xlibs? that would count fontconfig.

3. why is -soundlibs in emul dep and no sound library in native deps?

While changing the flags, I would like to replace the deps to support multilib ebuilds as well. Then emul deps would look like || ( emul-linux... ( package1[abi_x86_32(-)] ... ) ).
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-25 14:54:57 UTC
(In reply to Michał Górny from comment #2)
> I find it hard to read adobe-flash deps.

Two things I should probably point out: I have no systems that support multilib, and I only recently took over adobe-flash maintenance. If you find anything wrong with its multilib support dependencies, then start fixing those right now (particularly in -r1, but in the stable ebuild as well if you think it's safe) before you even begin to improve the ebuilds as per this bug report.

> While changing the flags, I would like to replace the deps to support
> multilib ebuilds as well. Then emul deps would look like || ( emul-linux...
> ( package1[abi_x86_32(-)] ... ) ).

Sure.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-08-25 14:58:46 UTC
(In reply to Jeroen Roovers from comment #3)
> (In reply to Michał Górny from comment #2)
> > I find it hard to read adobe-flash deps.
> 
> Two things I should probably point out: I have no systems that support
> multilib, and I only recently took over adobe-flash maintenance. If you find
> anything wrong with its multilib support dependencies, then start fixing
> those right now (particularly in -r1, but in the stable ebuild as well if
> you think it's safe) before you even begin to improve the ebuilds as per
> this bug report.

Depends on what you call wrong. It technically works but per our QA standards, I think the deps could be improved. Specifically, since this is a binary package, I think every dependency should be listed. Do we agree in this?
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-25 15:46:35 UTC
(In reply to Michał Górny from comment #4)
> Depends on what you call wrong. It technically works but per our QA
> standards, I think the deps could be improved. Specifically, since this is a
> binary package, I think every dependency should be listed. Do we agree in
> this?

Yes.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2013-09-23 18:23:42 UTC
*** Bug 485770 has been marked as a duplicate of this bug. ***
Comment 7 Michael Mair-Keimberger (iamnr3) 2013-09-23 18:33:54 UTC
Created attachment 359314 [details, diff]
adobe-flash-11.2.202.310.ebuild.diff

As from my duplicate:

This patch updates the latest adobe-flash ebuild which adds missing deps, adds the possibility using pure multilib ebuild's and also enhance the ebuild in general.
Major credit also goes to _AxS_!
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-09-23 21:19:17 UTC
I will probably fiddle with the ebuild a bit more and try to get it a bit cleaner.

@jer, would you mind if I removed the /opt/Adobe... invention and just put stuff in /usr/lib64/nsplugins and /usr/bin? This wouldn't trigger the original bug and make the code a bit simpler.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2013-09-23 22:58:41 UTC
(In reply to Michał Górny from comment #8)
> I will probably fiddle with the ebuild a bit more and try to get it a bit
> cleaner.

The attached patch, you mean? AFAICT the run-time dependencies should have [abi_...] stuff suffixed.

> @jer, would you mind if I removed the /opt/Adobe... invention and just put
> stuff in /usr/lib64/nsplugins and /usr/bin? This wouldn't trigger the
> original bug and make the code a bit simpler.

It's not quite an invention. acroread uses the same convenient /opt/Adobe prefix. Why is /usr/$libdir necessary, again (except for a different kind of convenience)? Maybe it's worth looking at previous gentoo-dev@ discussions about why *not* using /opt is so terribly important. Some people are quite adamant about that...
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2013-09-23 23:04:57 UTC
(In reply to Jeroen Roovers from comment #9)
> > @jer, would you mind if I removed the /opt/Adobe... invention and just put
> about why *not* using /opt is so terribly important. Some people are quite

s|*not*||

That is to say, if you can come up with a more convenient ebuild, then I'm all for it.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2013-09-24 02:04:43 UTC
Tell you what. If you just plonk something that works for you into the tree as a revision bump, we will get enough time to work out the kinks before the next security bump & stabilisation occurs.
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-09-24 18:38:55 UTC
Created attachment 359388 [details]
Ebuild r1

Not attaching a diff since it's almost completely different ebuild :). Work of me, AxS and iamnr3.

The build process is completely ABI-oriented. I was able to scrap up src_unpack() that does filtering on filenames in ${A}, therefore not having to manually handle USE=debug.

The install locations have been changed so that everything is installed in /usr. Alike in the current ebuild, on amd64 the programs are only installed when 64-bit ABI is enabled. However, I'm wondering if the -settings thingie shouldn't be installed unconditionally -- and if in 32-bit version when 64-bit ABI is disabled, or 64-bit in both cases.

Also, AxS did some fixes to nspluginwrapper code.
Comment 13 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-09-27 19:35:31 UTC
Committed.