expat: bump to 2.2.6, add debuginfo, enable x86_gcc2.

This commit is contained in:
fbrosson
2018-08-15 15:20:26 +00:00
parent 5236757cb7
commit bdf70b175c
2 changed files with 46 additions and 13 deletions

View File

@@ -4,23 +4,28 @@ stream-oriented parser in which an application registers handlers for things \
the parser might find in the XML document (like start tags)."
HOMEPAGE="http://expat.sourceforge.net/"
COPYRIGHT="1998-2000 Thai Open Source Software Center Ltd and Clark Cooper
2001-2017 Expat maintainers."
2001-2018 Expat maintainers."
LICENSE="MIT"
REVISION="1"
SOURCE_URI="http://downloads.sf.net/expat/expat-$portVersion.tar.bz2"
CHECKSUM_SHA256="d9dc32efba7e74f788fcc4f212a43216fc37cf5f23f4c2339664d473353aedf6"
SOURCE_URI="https://downloads.sourceforge.net/expat/expat-$portVersion.tar.bz2"
CHECKSUM_SHA256="17b43c2716d521369f82fc2dc70f359860e90fa440bea65b3b85f0b246ea81f2"
PATCHES="expat-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64 ?arm"
SECONDARY_ARCHITECTURES="x86"
ARCHITECTURES="x86_gcc2 x86 x86_64 ?arm"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
libVersion=1.6.8
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
portVersionCompat="$portVersion compat >= 2.2"
PROVIDES="
expat$secondaryArchSuffix = $portVersion compat >= 2.2
lib:libexpat$secondaryArchSuffix = 1.6.7 compat >= 1
expat$secondaryArchSuffix = $portVersionCompat
lib:libexpat$secondaryArchSuffix = $libVersionCompat
"
if [ -z "$secondaryArchSuffix" ]; then
PROVIDES="$PROVIDES
cmd:xmlwf = $portVersion compat >= 2.2
"
PROVIDES="$PROVIDES
cmd:xmlwf = $portVersionCompat
"
fi
REQUIRES="
@@ -29,7 +34,7 @@ REQUIRES="
PROVIDES_devel="
expat${secondaryArchSuffix}_devel = $portVersion
devel:libexpat$secondaryArchSuffix = 1.6.7 compat >= 1
devel:libexpat$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
expat$secondaryArchSuffix == $portVersion base
@@ -44,13 +49,19 @@ BUILD_PREREQUIRES="
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
debugList=(
"$libDir"/libexpat.so.$libVersion
)
if [ -z "$secondaryArchSuffix" ]; then
debugList+=("$binDir"/xmlwf)
fi
defineDebugInfoPackage expat$secondaryArchSuffix "${debugList[@]}"
BUILD()
{
autoreconf -fi
runConfigure ./configure
make $jobArgs
}

View File

@@ -0,0 +1,22 @@
From da46f5dd038f637854a72276e90b081d1456189b Mon Sep 17 00:00:00 2001
From: fbrosson <fbrosson@localhost>
Date: Wed, 15 Aug 2018 14:31:29 +0000
Subject: Do not use __attribute__((__unused__)) with gcc2.
diff --git a/lib/internal.h b/lib/internal.h
index e33fdcb..b52dbea 100644
--- a/lib/internal.h
+++ b/lib/internal.h
@@ -102,7 +102,7 @@
#endif
#ifndef UNUSED_P
-# ifdef __GNUC__
+# if defined(__GNUC__) && __GNUC__ >= 3
# define UNUSED_P(p) UNUSED_ ## p __attribute__((__unused__))
# else
# define UNUSED_P(p) UNUSED_ ## p
--
2.18.0