Merge pull request #2974 from lazka/libffi-3.4.2-v2

libffi: Update to 3.4.2 (v2)
This commit is contained in:
Christoph Reiter
2022-05-08 18:37:45 +02:00
committed by GitHub
7 changed files with 10 additions and 66 deletions

View File

@@ -3,7 +3,7 @@
pkgbase=glib2
pkgname=(glib2 glib2-devel glib2-docs)
pkgver=2.72.1
pkgrel=1
pkgrel=2
pkgdesc="Common C routines used by GTK+ and other libs"
license=(LGPL2)
url="https://www.gtk.org/"

View File

@@ -3,12 +3,12 @@
pkgbase=guile
pkgname=("$pkgbase" "lib${pkgbase}" "lib${pkgbase}-devel")
pkgver=2.2.7
pkgrel=1
pkgrel=2
pkgdesc="a portable, embeddable Scheme implementation written in C"
url="https://www.gnu.org/software/guile/"
arch=(i686 x86_64)
license=('GPL')
makedepends=('libltdl' 'gmp-devel' 'ncurses-devel' 'libunistring-devel' 'libgc-devel' 'libffi-devel' 'texinfo' 'autotools')
makedepends=('libltdl' 'gmp-devel' 'ncurses-devel' 'libunistring-devel' 'libgc-devel' 'libffi-devel' 'texinfo' 'autotools' 'gcc' 'make')
source=("https://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz"
0002-Remove-version-in-file-name-of-dynamic-library-guile.patch
0101-In-tests-add-dynamic-link-to-msys-2.0-for-host-type-msys.patch

View File

@@ -2,7 +2,7 @@
pkgbase=libffi
pkgname=('libffi' 'libffi-devel')
pkgver=3.3
pkgver=3.4.2
pkgrel=1
pkgdesc="Portable, high level programming interface to various calling conventions"
arch=('i686' 'x86_64')
@@ -12,18 +12,16 @@ license=('MIT')
depends=()
checkdepends=('dejagnu')
makedepends=('autotools' 'gcc')
#options=('!strip' 'debug')
install=libffi.install
source=(https://sourceware.org/pub/libffi/libffi-${pkgver}.tar.gz
source=(https://github.com/libffi/libffi/releases/download/v$pkgver/libffi-$pkgver.tar.gz
libffi-3.3-msysize.patch)
sha256sums=('72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056'
'8fbdab06b3c42561060d73aae2c1cfdc535797e96f53411eab0fe44869203246')
sha256sums=('540fb721619a6aba3bdeef7d940d8e9e0e6d2c193595bc243241b77ff9e93620'
'75903de0b39311775e2d5d2f0d7f1b5935168698a54198e0f33ffb9e32c16c84')
prepare() {
cd ${pkgname}-${pkgver}
patch -p1 -i ${srcdir}/libffi-3.3-msysize.patch
autoreconf -fi
autoreconf -vfi
}
build() {

View File

@@ -1,37 +1,3 @@
diff -Naur libffi-3.3-orig/compile libffi-3.3/compile
--- libffi-3.3-orig/compile 2019-11-01 12:30:05.000000000 +0300
+++ libffi-3.3/compile 2020-04-15 11:28:38.782598900 +0300
@@ -53,7 +53,7 @@
MINGW*)
file_conv=mingw
;;
- CYGWIN*)
+ CYGWIN* | MSYS*)
file_conv=cygwin
;;
*)
@@ -67,7 +67,7 @@
mingw/*)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
- cygwin/*)
+ cygwin/* | msys/*)
file=`cygpath -m "$file" || echo "$file"`
;;
wine/*)
diff -Naur libffi-3.3-orig/config.guess libffi-3.3/config.guess
--- libffi-3.3-orig/config.guess 2019-10-31 17:49:54.000000000 +0300
+++ libffi-3.3/config.guess 2020-04-15 11:29:05.639223800 +0300
@@ -892,6 +892,9 @@
amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
echo x86_64-unknown-cygwin
exit ;;
+ amd64:MSYS*:*:* | x86_64:MSYS*:*:*)
+ echo x86_64-unknown-cygwin
+ exit ;;
p*:CYGWIN*:*)
echo powerpcle-unknown-cygwin
exit ;;
diff -Naur libffi-3.3-orig/configure.host libffi-3.3/configure.host
--- libffi-3.3-orig/configure.host 2019-11-23 02:55:36.000000000 +0300
+++ libffi-3.3/configure.host 2020-04-15 11:34:06.382013100 +0300

View File

@@ -1,20 +0,0 @@
infodir=usr/share/info
filelist=libffi.info.gz
post_install() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist}; do
install-info $infodir/$file $infodir/dir 2> /dev/null
done
}
post_upgrade() {
post_install $1
}
pre_remove() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist}; do
install-info --delete $infodir/$file $infodir/dir 2> /dev/null
done
}

View File

@@ -5,7 +5,7 @@
pkgbase=p11-kit
pkgname=('p11-kit' 'libp11-kit' 'libp11-kit-devel')
pkgver=0.24.1
pkgrel=2
pkgrel=3
pkgdesc="Library to work with PKCS#11 modules"
arch=('i686' 'x86_64')
url="https://p11-glue.freedesktop.org/p11-kit.html"

View File

@@ -4,7 +4,7 @@
pkgbase=python
pkgname=('python' 'python-devel')
pkgver=3.9.9
pkgrel=2
pkgrel=3
_pybasever=${pkgver%.*}
pkgdesc="Next generation of the python high-level scripting language"
arch=('i686' 'x86_64')