Bug#738760: libav: Add proper raspberry pi CPU detection

Sebastian Ramacher sramacher at debian.org
Tue Jan 6 13:16:51 UTC 2015


Control: tags -1 + patch

Hi Peter

On 2015-01-03 22:36:13, peter green wrote:
> Sebastian Ramacher wrote:
> >there was a request to change the handling of the Raspberry Pi in the
> >libav package. Could you please explain the changes applied to the
> >Raspbian version?
> In raspbian we have a checker that runs after all our autobuilds (and I
> manually run a similar check when I do manual builds) that looks for files
> tagged as armv7 (note: it seems using neon compiler options causes files to
> be tagged as armv7 even if the CPU options aren't changed) and prevents the
> autobuilder from uploading them.
> 
> In general i've been adopting the principle that having armv7 code in
> raspbian is at best a pointless waste of space (if the code in question is
> correctly guarded behind runtime CPU detection) and at worst a serious
> problem (if it isn't). Therefore I have been responding to cases like this
> by simply disabling the armv7/neon code. The raspbian libav package got this
> treatment.
> 
> It's possible that I dodn't selct the best combination of flags, I'm no
> libav expert.
> 
> I have not tested whether an unodified debian libav package built in a
> raspbian chroot actually works on the Pi or not.

Thank you for the explanation. What about the attached patch? [1]

I've looked through the code and the only place where --enable-runtime-cpudetect
makes a difference is on powerpc (libavutil/ppc/cpu.c). Special handling for
Raspbian should not make a difference. Reinhard, is my reading of the code
correct?

Cheers

[1] Is this the right vendor in dpkg-vendor's terms?
-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-special-handling-of-Raspbian.patch
Type: text/x-diff
Size: 2048 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20150106/8be80fb1/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20150106/8be80fb1/attachment.sig>


More information about the pkg-multimedia-maintainers mailing list