Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Conditional patches (php package)
Date: Mon, 7 Mar 2011 21:02:40 +0100	[thread overview]
Message-ID: <20110307210240.66796e0b@surf> (raw)
In-Reply-To: <4D753524.5050306@daccii.it>

On Mon, 07 Mar 2011 20:42:28 +0100
Daniele Salvatore Albano - Lavoro <info@daccii.it> wrote:

> i'm trying to add support for php 5.3(.5), mantaining the ability to 
> compile php 5.2(.17) for compatibility reasons.
> 
> The main problem is a patch that is in php 5.3.5 sources but not in 
> 5.2.17 sources so it needed to be applied conditionally.
> 
> The, only one, patch is 
> php-5.2.16-fix-build-when-__GMP_BITS_PER_MP_LIMB-is-not-defined.patch 
> and it seems related to an extension (gmp in the name).
> 
> Can someone give me an hint?

The package infrastructure has the following behaviour :

 *) If there are patches named <pkg>-<pkgversion>*.patch, then they are
    applied, and only those are applied.

 *) Otherwise, patches named <pkg>*.patch are applied, as well as
    <pkg>-<pkgversion>/*.patch if the <pkg>-<pkgversion> directory
    exists.

See the $(BUILD_DIR)/%/.stamp_patched: target in
package/Makefile.package.in for more details.

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2011-03-07 20:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-07 19:42 [Buildroot] Conditional patches (php package) Daniele Salvatore Albano - Lavoro
2011-03-07 20:02 ` Thomas Petazzoni [this message]
2011-04-12 17:03 ` Gustavo Zacarias
2011-04-12 17:22   ` Daniele Salvatore Albano

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=20110307210240.66796e0b@surf \
    --to=thomas.petazzoni@free-electrons.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