From d4cf4c1565049d53009ea27f378589293f251f6d Mon Sep 17 00:00:00 2001 From: Raymond Danks Date: Tue, 18 Apr 2006 01:28:51 +0000 Subject: fontconfig: Work around archive created with patched files read-only. * Fontconfig-native should use freetype-config-native if it exists; not freetype-config which is for non-native packages. --- packages/fontconfig/fontconfig-native_2.2.95.bb | 1 + packages/fontconfig/fontconfig_2.2.95.bb | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/fontconfig/fontconfig-native_2.2.95.bb b/packages/fontconfig/fontconfig-native_2.2.95.bb index bc988e0ee2..b3d267b798 100644 --- a/packages/fontconfig/fontconfig-native_2.2.95.bb +++ b/packages/fontconfig/fontconfig-native_2.2.95.bb @@ -6,6 +6,7 @@ DEPENDS = "freetype-native expat-native zlib-native" FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/fontconfig-${PV}" EXTRA_OEMAKE = "" +EXTRA_OECONF = "${@[' --disable-docs',' --disable-docs --with-freetype-config=%s/freetype-config-native' % bb.data.getVar('STAGING_BINDIR', d, 1)][os.path.isfile('%s/freetype-config-native' % bb.data.getVar('STAGING_BINDIR', d, 1))]}" do_stage () { oe_runmake install diff --git a/packages/fontconfig/fontconfig_2.2.95.bb b/packages/fontconfig/fontconfig_2.2.95.bb index 841922206c..7ff731ebe8 100644 --- a/packages/fontconfig/fontconfig_2.2.95.bb +++ b/packages/fontconfig/fontconfig_2.2.95.bb @@ -8,7 +8,7 @@ SRC_URI = "http://freedesktop.org/fontconfig/release/fontconfig-${PV}.tar.gz \ file://fc-lang.patch;patch=1" PR = "r6" -PACKAGES =+ "fontconfig-utils" +PACKAGES =+ "fontconfig-utils " FILES_fontconfig-utils = "${bindir}/*" # Work around past breakage in debian.bbclass @@ -26,6 +26,18 @@ export HASDOCBOOK="no" EXTRA_OECONF = " --disable-docs " EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname" +# The tarball has some of the patched files as read only, which +# patch doesn't like at all + +fontconfig_do_unpack() { + chmod -R u+rw ${S} +} + +python do_unpack () { + bb.build.exec_func('base_do_unpack', d) + bb.build.exec_func('fontconfig_do_unpack', d) +} + do_stage () { oe_libinstall -so -a -C src libfontconfig ${STAGING_LIBDIR} install -d ${STAGING_INCDIR}/fontconfig -- cgit v1.2.3