[arch-commits] Commit in file/repos (4 files)

Sébastien Luttringer seblu at archlinux.org
Mon Dec 2 00:33:11 UTC 2019


    Date: Monday, December 2, 2019 @ 00:33:08
  Author: seblu
Revision: 370197

db-move: moved file from [testing] to [core] (x86_64)

Added:
  file/repos/core-x86_64/PKGBUILD
    (from rev 370196, file/repos/testing-x86_64/PKGBUILD)
  file/repos/core-x86_64/d3132f65594e8ad27b74643786a786cd3e60c715.patch
    (from rev 370196, file/repos/testing-x86_64/d3132f65594e8ad27b74643786a786cd3e60c715.patch)
Deleted:
  file/repos/core-x86_64/PKGBUILD
  file/repos/testing-x86_64/

------------------------------------------------------------+
 /PKGBUILD                                                  |   64 +++++++++++
 core-x86_64/PKGBUILD                                       |   62 ----------
 core-x86_64/d3132f65594e8ad27b74643786a786cd3e60c715.patch |   27 ++++
 3 files changed, 91 insertions(+), 62 deletions(-)

Deleted: core-x86_64/PKGBUILD
===================================================================
--- core-x86_64/PKGBUILD	2019-12-01 18:24:24 UTC (rev 370196)
+++ core-x86_64/PKGBUILD	2019-12-02 00:33:08 UTC (rev 370197)
@@ -1,62 +0,0 @@
-# Maintainer: Sébastien Luttringer <seblu at archlinux.org>
-# Contributor: Allan McRae <allan at archlinux.org>
-# Contributor: Andreas Radke <andyrtr at archlinux.org>
-
-pkgname=file
-pkgver=5.37
-pkgrel=4
-pkgdesc='File type identification utility'
-arch=('x86_64')
-license=('custom')
-groups=('base-devel')
-url='https://www.darwinsys.com/file/'
-depends=('glibc' 'zlib')
-source=("ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz"{,.asc})
-validpgpkeys=('BE04995BA8F90ED0C0C176C471112AB16CB33B3A') # Christos Zoulas
-md5sums=('80c29aca745466c6c24d11f059329075'
-         'SKIP')
-
-prepare() {
-  cd $pkgname-$pkgver
-  # apply patch from the source array (should be a pacman feature)
-  local filename
-  for filename in "${source[@]}"; do
-    if [[ "$filename" =~ \.patch$ ]]; then
-      msg2 "Applying patch ${filename##*/}"
-      patch -p1 -N -i "$srcdir/${filename##*/}"
-    fi
-  done
-  :
-}
-
-build() {
-  cd $pkgname-$pkgver
-
-  # Fix linking libmagic (vfork needs libpthread)
-  CFLAGS+=" -pthread"
-
-  # seccomp breaks file -z foo.xz
-  # does a whole pipe-fork-exec dance with /bin/xz, so difficult to fix
-  # this breaks makepkg, specifically on the linux PKGBUILD's patch-*.xz
-
-  ./configure \
-    --prefix=/usr \
-    --datadir=/usr/share/file \
-    --enable-fsect-man5 \
-    --disable-libseccomp
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-  make
-}
-
-check() {
-  cd $pkgname-$pkgver
-  make check
-}
-
-package() {
-  cd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: file/repos/core-x86_64/PKGBUILD (from rev 370196, file/repos/testing-x86_64/PKGBUILD)
===================================================================
--- core-x86_64/PKGBUILD	                        (rev 0)
+++ core-x86_64/PKGBUILD	2019-12-02 00:33:08 UTC (rev 370197)
@@ -0,0 +1,64 @@
+# Maintainer: Sébastien Luttringer <seblu at archlinux.org>
+# Contributor: Allan McRae <allan at archlinux.org>
+# Contributor: Andreas Radke <andyrtr at archlinux.org>
+
+pkgname=file
+pkgver=5.37
+pkgrel=5
+pkgdesc='File type identification utility'
+arch=('x86_64')
+license=('custom')
+groups=('base-devel')
+url='https://www.darwinsys.com/file/'
+depends=('glibc' 'zlib')
+source=("ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz"{,.asc}
+  d3132f65594e8ad27b74643786a786cd3e60c715.patch)
+validpgpkeys=('BE04995BA8F90ED0C0C176C471112AB16CB33B3A') # Christos Zoulas
+sha256sums=('e9c13967f7dd339a3c241b7710ba093560b9a33013491318e88e6b8b57bae07f'
+            'SKIP'
+            '2ef553d3d4c68fe3e3850bc6151e66ce5714d774536deb9b8401425e73214ea7')
+
+prepare() {
+  cd $pkgname-$pkgver
+  # apply patch from the source array (should be a pacman feature)
+  local src
+  for src in "${source[@]}"; do
+    src="${src%%::*}"
+    src="${src##*/}"
+    [[ $src = *.patch ]] || continue
+    msg2 "Applying patch $src..."
+    patch -Np1 < "../$src"
+  done
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  # Fix linking libmagic (vfork needs libpthread)
+  CFLAGS+=" -pthread"
+
+  # seccomp breaks file -z foo.xz
+  # does a whole pipe-fork-exec dance with /bin/xz, so difficult to fix
+  # this breaks makepkg, specifically on the linux PKGBUILD's patch-*.xz
+
+  ./configure \
+    --prefix=/usr \
+    --datadir=/usr/share/file \
+    --enable-fsect-man5 \
+    --disable-libseccomp
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver
+  make check
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: file/repos/core-x86_64/d3132f65594e8ad27b74643786a786cd3e60c715.patch (from rev 370196, file/repos/testing-x86_64/d3132f65594e8ad27b74643786a786cd3e60c715.patch)
===================================================================
--- core-x86_64/d3132f65594e8ad27b74643786a786cd3e60c715.patch	                        (rev 0)
+++ core-x86_64/d3132f65594e8ad27b74643786a786cd3e60c715.patch	2019-12-02 00:33:08 UTC (rev 370197)
@@ -0,0 +1,27 @@
+From d3132f65594e8ad27b74643786a786cd3e60c715 Mon Sep 17 00:00:00 2001
+From: Christos Zoulas <christos at zoulas.com>
+Date: Tue, 8 Oct 2019 20:25:13 +0000
+Subject: [PATCH] PR/112: connesc: move mime magic higher so that it always
+ takes effect.
+
+---
+ magic/Magdir/compress | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/magic/Magdir/compress b/magic/Magdir/compress
+index 600d216b7..c700b5a45 100644
+--- a/magic/Magdir/compress
++++ b/magic/Magdir/compress
+@@ -58,11 +58,11 @@
+ >>>13	string		09			\b, version 9
+ # other gzipped binary like gzipped tar, VirtualBox extension package,...
+ >>10	default		x		gzip compressed data
++!:mime	application/gzip
+ >>>0	use	gzip-info
+ # size of the original (uncompressed) input data modulo 2^32
+ >>>-4	ulelong		x		\b, original size modulo 2^32 %u
+ # gzipped TAR or VirtualBox extension package
+-!:mime	application/gzip
+ #!:mime	application/x-compressed-tar
+ #!:mime	application/x-virtualbox-vbox-extpack
+ # https://www.w3.org/TR/SVG/mimereg.html


More information about the arch-commits mailing list