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

Sébastien Luttringer seblu at archlinux.org
Tue May 11 01:47:01 UTC 2021


    Date: Tuesday, May 11, 2021 @ 01:47:00
  Author: seblu
Revision: 414962

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

Added:
  file/repos/core-x86_64/PKGBUILD
    (from rev 414961, file/repos/testing-x86_64/PKGBUILD)
Deleted:
  file/repos/core-x86_64/0001-Revert-Add-checksum-for-XZ.patch
  file/repos/core-x86_64/PKGBUILD
  file/repos/testing-x86_64/

---------------------------------------------------+
 /PKGBUILD                                         |   61 ++++++++++++++++++++
 core-x86_64/0001-Revert-Add-checksum-for-XZ.patch |   31 ----------
 core-x86_64/PKGBUILD                              |   61 --------------------
 3 files changed, 61 insertions(+), 92 deletions(-)

Deleted: core-x86_64/0001-Revert-Add-checksum-for-XZ.patch
===================================================================
--- core-x86_64/0001-Revert-Add-checksum-for-XZ.patch	2021-05-10 22:47:26 UTC (rev 414961)
+++ core-x86_64/0001-Revert-Add-checksum-for-XZ.patch	2021-05-11 01:47:00 UTC (rev 414962)
@@ -1,31 +0,0 @@
-From b258a4e460569678cd554236cb75027897a42858 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= <seblu at seblu.net>
-Date: Mon, 12 Apr 2021 18:15:33 +0200
-Subject: [PATCH] Revert "Add checksum for XZ"
-
-This reverts commit 3ebd747de661b244f1acec29495d676dd52e71d5.
----
- magic/Magdir/compress | 9 ++-------
- 1 file changed, 2 insertions(+), 7 deletions(-)
-
-diff --git a/magic/Magdir/compress b/magic/Magdir/compress
-index 64d11a73..a364a880 100644
---- a/magic/Magdir/compress
-+++ b/magic/Magdir/compress
-@@ -264,12 +264,7 @@
- >>5	lequad		!0xffffffffffffffff	non-streamed, size %lld
- 
- # http://tukaani.org/xz/xz-file-format.txt
--0	ustring		\xFD7zXZ\x00		XZ compressed data, checksum
-->7	byte&0xf	0x0			NONE
-->7	byte&0xf	0x1			CRC32
-->7	byte&0xf	0x4			CRC64
-->7	byte&0xf	0xa			SHA-256
--
-+0	ustring		\xFD7zXZ\x00		XZ compressed data
- !:strength * 2
- !:mime	application/x-xz
- 
--- 
-2.31.1
-

Deleted: core-x86_64/PKGBUILD
===================================================================
--- core-x86_64/PKGBUILD	2021-05-10 22:47:26 UTC (rev 414961)
+++ core-x86_64/PKGBUILD	2021-05-11 01:47:00 UTC (rev 414962)
@@ -1,61 +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.40
-pkgrel=2
-pkgdesc='File type identification utility'
-arch=('x86_64')
-license=('custom')
-groups=('base-devel')
-url='https://www.darwinsys.com/file/'
-depends=('glibc' 'zlib' 'xz' 'bzip2' 'libseccomp' 'libseccomp.so')
-provides=('libmagic.so')
-source=("https://astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz"{,.asc}
-        '0001-Revert-Add-checksum-for-XZ.patch')
-validpgpkeys=('BE04995BA8F90ED0C0C176C471112AB16CB33B3A') # Christos Zoulas
-sha256sums=('167321f43c148a553f68a0ea7f579821ef3b11c27b8cbe158e4df897e4a5dd57'
-            'SKIP'
-            'bd3633ffb41e4a8f9831bcda6e8e4589f67647ec33240d68d5a53bac4a82b594')
-
-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
-    echo "Applying patch $src..."
-    patch -Np1 < "../$src"
-  done
-}
-
-build() {
-  cd $pkgname-$pkgver
-
-  # Fix linking libmagic (vfork needs libpthread)
-  CFLAGS+=" -pthread"
-
-  ./configure \
-    --prefix=/usr \
-    --datadir=/usr/share/file \
-    --enable-fsect-man5 \
-    --enable-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 414961, file/repos/testing-x86_64/PKGBUILD)
===================================================================
--- core-x86_64/PKGBUILD	                        (rev 0)
+++ core-x86_64/PKGBUILD	2021-05-11 01:47:00 UTC (rev 414962)
@@ -0,0 +1,61 @@
+# 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.40
+pkgrel=3
+pkgdesc='File type identification utility'
+arch=('x86_64')
+license=('custom')
+groups=('base-devel')
+url='https://www.darwinsys.com/file/'
+depends=('glibc' 'zlib' 'xz' 'bzip2' 'libseccomp' 'libseccomp.so')
+provides=('libmagic.so')
+source=("https://astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz"{,.asc}
+        "https://github.com/file/file/commit/9b0459afab309a82aa4e46f73a4e50dd641f3d39.patch")
+validpgpkeys=('BE04995BA8F90ED0C0C176C471112AB16CB33B3A') # Christos Zoulas
+sha256sums=('167321f43c148a553f68a0ea7f579821ef3b11c27b8cbe158e4df897e4a5dd57'
+            'SKIP'
+            'f5d9c964233b75d6b5ac1b95fe4cc23143fbc6070d3b136e91b542021959e7dd')
+
+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
+    echo "Applying patch $src..."
+    patch -Np1 < "../$src"
+  done
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  # Fix linking libmagic (vfork needs libpthread)
+  CFLAGS+=" -pthread"
+
+  ./configure \
+    --prefix=/usr \
+    --datadir=/usr/share/file \
+    --enable-fsect-man5 \
+    --enable-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:



More information about the arch-commits mailing list