package/libxml2: fix breakage due to unordered patches
PATCH 1/2 package/libxml2: fix breakage due to unordered patches
Depending on the locale, the patches may get sorted in different order because they are not numbered. Also, even with the C locale (LC_ALL=C), the second patch that gets applied is error-xpath.patch, but it depends on other xpath patches to be applied first.
Rename the patches so they are numbered and they get applied in order. Even then, some patches apply with offsets.
--- ....8-000-allocation-error-copying-entities.patch} | 0 ....patch => libxml2-2.7.8-010-xpath-memory.patch} | 0 ...patch => libxml2-2.7.8-020-xpath-freeing.patch} | 0 ...atch => libxml2-2.7.8-021-xpath-freeing2.patch} | 0 ... libxml2-2.7.8-030-reallocation-failures.patch} | 0 ...tch => libxml2-2.7.8-040-hardening-xpath.patch} | 0 ...h.patch => libxml2-2.7.8-050-error-xpath.patch} | 0 ... => libxml2-2.7.8-060-hash-randomization.patch} | 0 8 files changed, 0 insertions(+), 0 deletions(-)
package/libxml2/libxml2-2.7.8-000-allocation-error-copying-entities.patch renamed from package/libxml2/libxml2-2.7.8-allocation-error-copying-entities.patch +0 -0
package/libxml2/libxml2-2.7.8-010-xpath-memory.patch renamed from package/libxml2/libxml2-2.7.8-xpath-memory.patch +0 -0
package/libxml2/libxml2-2.7.8-020-xpath-freeing.patch renamed from package/libxml2/libxml2-2.7.8-xpath-freeing.patch +0 -0
package/libxml2/libxml2-2.7.8-021-xpath-freeing2.patch renamed from package/libxml2/libxml2-2.7.8-xpath-freeing2.patch +0 -0
package/libxml2/libxml2-2.7.8-030-reallocation-failures.patch renamed from package/libxml2/libxml2-2.7.8-reallocation-failures.patch +0 -0
package/libxml2/libxml2-2.7.8-040-hardening-xpath.patch renamed from package/libxml2/libxml2-2.7.8-hardening-xpath.patch +0 -0
package/libxml2/libxml2-2.7.8-050-error-xpath.patch renamed from package/libxml2/libxml2-2.7.8-error-xpath.patch +0 -0
package/libxml2/libxml2-2.7.8-060-hash-randomization.patch renamed from package/libxml2/libxml2-2.7.8-hash-randomization.patch +0 -0
Signature · 1 line
1.7.2.5
PATCH 2/2 package/giblib: fix breakage
Fix two things in the giblib package:
1- fix prefix breakage
- s/STAGING/STAGING_DIR/ (Thomas)
- prefix is .../usr, not .../usr/lib or .../usr/bin
2- fix the imlib2 breakage
- imlib2 sets IMLIB2_(LIBS|CFLAGS), not IMLIB_(LIBS|CFLAGS)
- autoreconf the package, install missing files
Note that both configure.ac and configure.in are present in the package, so both are fixed, although only configure.ac is used (configure.in is the legacy name).
--- package/giblib/giblib.mk | 6 ++- package/giblib/giblib.patch | 119 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 123 insertions(+), 2 deletions(-)
package/giblib/giblib.mk +4 -2
@@ -8,7 +8,9 @@ GIBLIB_SOURCE = giblib-$(GIBLIB_VERSION).tar.gz GIBLIB_SITE = http://linuxbrit.co.uk/downloads/ GIBLIB_INSTALL_STAGING = YES GIBLIB_DEPENDENCIES = imlib2 -GIBLIB_CONF_OPT = --with-imlib2-prefix=$(STAGING)/usr/lib \ - --with-imlib2-exec-prefix=$(STAGING)/usr/bin +GIBLIB_AUTORECONF = YES +GIBLIB_AUTORECONF_OPT = --install +GIBLIB_CONF_OPT = --with-imlib2-prefix=$(STAGING_DIR)/usr \ + --with-imlib2-exec-prefix=$(STAGING_DIR)/usr $(eval $(call AUTOTARGETS))
package/giblib/giblib.patch new file +119 -0
119 lines not on this page · raw message
Signature · 1 line
1.7.2.5
PATCH 2/2 package/giblib: fix breakage
Le Wed, 14 Mar 2012 23:08:21 +0100,
"Yann E. MORIN" <[email protected]> a ?crit :
package/giblib/giblib.patch
Quoted 1 line
package/giblib/giblib.patch +0
-0
Probably needs a better name, and a header with a description + Signed-off-by.
Otherwise, looks good.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/2 package/libxml2: fix breakage due to unordered patches
In reply to Yann E. MORINQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
Yann> Depending on the locale, the patches may get sorted in different order Yann> because they are not numbered. Also, even with the C locale (LC_ALL=C), Yann> the second patch that gets applied is error-xpath.patch, but it depends Yann> on other xpath patches to be applied first.
Yann> Rename the patches so they are numbered and they get applied in order. Yann> Even then, some patches apply with offsets.
Sorry, I already fixed that locally and pushed - Thanks.
Signature · 1 line
Bye, Peter Korsgaard