Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Stefan Fröberg" <stefan.froberg@petroprogram.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] libpng: bump version and add apng support (required by firefox)
Date: Wed, 22 Aug 2012 01:01:48 +0300	[thread overview]
Message-ID: <5034054C.6050807@petroprogram.com> (raw)
In-Reply-To: <5033FDFF.7090704@mind.be>

22.8.2012 0:30, Arnout Vandecappelle kirjoitti:
> On 08/10/12 11:47, Stefan Fr?berg wrote:
>> Good morning Thomas
>>
>> 10.8.2012 10:02, Thomas Petazzoni kirjoitti:
>
> [snip]
>>>   (3) Is this apng feature something that is being integrated in the
>>>       upstream version of libpng? In Buildroot, we don't like carrying
>>>       patches that add features to packages. Imagine we later want to
>>>       bump libpng to version 1.5.10 or 1.5.11, we'd have to refresh the
>>>       patch, which becomes complicated if we accumulate many large
>>>       patches.
>>
>> That's a good guestion.
>>
>> I had to check from http://en.wikipedia.org/wiki/APNG
>> and it says the following:
>>
>> "The PNG group officially rejected APNG as an official extension on
>> April 20, 2007.[3]
>> There have been several subsequent proposals for a simple animated
>> graphics format based on PNG using several different approaches.[4]
>>
>> Mozilla Firefox added support for APNG in version 3 trunk builds on
>> March 23, 2007.[5]
>> However, because libpng is the PNG Group's reference implementation of
>> the official specification,
>> APNG support can never be supported in the main libpng distribution so
>> long as it remains
>> unratified by the Group. Iceweasel 3 now supports APNG by using
>> Mozilla's unofficial variant of libpng."
>
>  The most logical solution for me seems to be to add a libapng package
> that uses the Mozilla code base.  Of course, that introduces the same
> variants mess we have for expat/libxml2 and lua/luajit.
>

Yes and it would still duplicate libpng code in the target (having
system-wide libpng and libapng package with private  Mozilla libpng +
apng stuff).

I forgotted to mention Thomas that that APNG patch is steadily updated
in http://sourceforge.net/projects/libpng-apng/

So keeping it updated between libpng versions is really not an issue.

It is even less issue if that patch can be made optional.

What I have now in mind is something like this:

################################
ifeq ($(BR2_PACKAGE_LIBPNG_APNG_SUPPORT),y)

define    LIBPNG_ADD_APNG
        cp package/libpng/patches/libpng-apng.patch package/libpng/
endif

LIBPNG_PRE_PATCH_HOOKS += LIBPNG_ADD_APNG

else

    if [ -f package/libpng/libpng-apng.patch ]; then
        rm package/libpng/libpng-apng.patch
    fi

endif
################################

That way apng patch could be switched on and off
and the duplicate code bloat of having two copies of libpng could be
avoided.

Im not even sure if there is a PRE_PATCH_HOOKS.
At least http://buildroot.org/downloads/buildroot.html#add_packages does
not mention it
But I think I saw it somewhere.


Stefan

>  Regards,
>  Arnout

  reply	other threads:[~2012-08-21 22:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-09 19:22 [Buildroot] [PATCH] libpng: bump version and add apng support (required by firefox) Stefan Fröberg
2012-08-10  7:02 ` Thomas Petazzoni
2012-08-10  9:47   ` Stefan Fröberg
2012-08-10 20:00     ` Thomas Petazzoni
2012-08-10 23:22       ` Stefan Fröberg
2012-08-11  6:50         ` Thomas Petazzoni
2012-08-11 10:54           ` Stefan Fröberg
2012-08-11 11:29           ` Stefan Fröberg
2012-08-21 21:30     ` Arnout Vandecappelle
2012-08-21 22:01       ` Stefan Fröberg [this message]
2012-08-26 21:35         ` Arnout Vandecappelle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5034054C.6050807@petroprogram.com \
    --to=stefan.froberg@petroprogram.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox