fontconfig: Work around archive created with patched files read-only.
authorRaymond Danks <raymond@edanks.com>
Tue, 18 Apr 2006 01:28:51 +0000 (01:28 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Tue, 18 Apr 2006 01:28:51 +0000 (01:28 +0000)
* 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
packages/fontconfig/fontconfig_2.2.95.bb

index bc988e0..b3d267b 100644 (file)
@@ -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
index 8419222..7ff731e 100644 (file)
@@ -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