Date: Thursday, June 18, 2020 @ 00:17:01
  Author: seblu
Revision: 389486

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

Added:
  
file/repos/core-x86_64/0001-Revert-Don-t-depend-on-the-execute-bit-to-determine-.patch
    (from rev 389485, 
file/repos/testing-x86_64/0001-Revert-Don-t-depend-on-the-execute-bit-to-determine-.patch)
  file/repos/core-x86_64/PKGBUILD
    (from rev 389485, file/repos/testing-x86_64/PKGBUILD)
  file/repos/core-x86_64/file-5.38-seccomp-tcgets.patch
    (from rev 389485, file/repos/testing-x86_64/file-5.38-seccomp-tcgets.patch)
Deleted:
  
file/repos/core-x86_64/0001-Revert-Don-t-depend-on-the-execute-bit-to-determine-.patch
  file/repos/core-x86_64/PKGBUILD
  file/repos/core-x86_64/file-5.38-seccomp-tcgets.patch
  file/repos/testing-x86_64/

-----------------------------------------------------------------------------+
 /0001-Revert-Don-t-depend-on-the-execute-bit-to-determine-.patch            |  
 30 ++++
 /PKGBUILD                                                                   |  
 59 +++++++++
 /file-5.38-seccomp-tcgets.patch                                             |  
 28 ++++
 core-x86_64/0001-Revert-Don-t-depend-on-the-execute-bit-to-determine-.patch |  
 30 ----
 core-x86_64/PKGBUILD                                                        |  
 63 ----------
 core-x86_64/file-5.38-seccomp-tcgets.patch                                  |  
 28 ----
 6 files changed, 117 insertions(+), 121 deletions(-)

Deleted: 
core-x86_64/0001-Revert-Don-t-depend-on-the-execute-bit-to-determine-.patch
===================================================================
--- core-x86_64/0001-Revert-Don-t-depend-on-the-execute-bit-to-determine-.patch 
2020-06-17 23:05:12 UTC (rev 389485)
+++ core-x86_64/0001-Revert-Don-t-depend-on-the-execute-bit-to-determine-.patch 
2020-06-18 00:17:01 UTC (rev 389486)
@@ -1,30 +0,0 @@
-From 84221b0370a8b49e0fa2dbd88c89fb6e87ec95bd Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= <se...@seblu.net>
-Date: Fri, 24 Jan 2020 17:07:11 +0100
-Subject: [PATCH] Revert "Don't depend on the execute bit to determine pie
- executable or shared object."
-
-This reverts commit d653309de04ed10fdeda79f2c6ca7a7e96e122f1.
----
- magic/Magdir/elf | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/magic/Magdir/elf b/magic/Magdir/elf
-index b5a2e00b..a35b615d 100644
---- a/magic/Magdir/elf
-+++ b/magic/Magdir/elf
-@@ -50,8 +50,9 @@
- !:mime        application/x-object
- >16   leshort         2               executable,
- !:mime        application/x-executable
-->16   leshort         3               shared object,
--!:mime        application/x-sharedlib
-+>16   leshort         3               ${x?pie executable:shared object},
-+
-+!:mime        application/x-${x?pie-executable:sharedlib}
- >16   leshort         4               core file,
- !:mime        application/x-coredump
- # OS-specific
--- 
-2.25.0
-

Copied: 
file/repos/core-x86_64/0001-Revert-Don-t-depend-on-the-execute-bit-to-determine-.patch
 (from rev 389485, 
file/repos/testing-x86_64/0001-Revert-Don-t-depend-on-the-execute-bit-to-determine-.patch)
===================================================================
--- core-x86_64/0001-Revert-Don-t-depend-on-the-execute-bit-to-determine-.patch 
                        (rev 0)
+++ core-x86_64/0001-Revert-Don-t-depend-on-the-execute-bit-to-determine-.patch 
2020-06-18 00:17:01 UTC (rev 389486)
@@ -0,0 +1,30 @@
+From 84221b0370a8b49e0fa2dbd88c89fb6e87ec95bd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= <se...@seblu.net>
+Date: Fri, 24 Jan 2020 17:07:11 +0100
+Subject: [PATCH] Revert "Don't depend on the execute bit to determine pie
+ executable or shared object."
+
+This reverts commit d653309de04ed10fdeda79f2c6ca7a7e96e122f1.
+---
+ magic/Magdir/elf | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/magic/Magdir/elf b/magic/Magdir/elf
+index b5a2e00b..a35b615d 100644
+--- a/magic/Magdir/elf
++++ b/magic/Magdir/elf
+@@ -50,8 +50,9 @@
+ !:mime        application/x-object
+ >16   leshort         2               executable,
+ !:mime        application/x-executable
+->16   leshort         3               shared object,
+-!:mime        application/x-sharedlib
++>16   leshort         3               ${x?pie executable:shared object},
++
++!:mime        application/x-${x?pie-executable:sharedlib}
+ >16   leshort         4               core file,
+ !:mime        application/x-coredump
+ # OS-specific
+-- 
+2.25.0
+

Deleted: core-x86_64/PKGBUILD
===================================================================
--- core-x86_64/PKGBUILD        2020-06-17 23:05:12 UTC (rev 389485)
+++ core-x86_64/PKGBUILD        2020-06-18 00:17:01 UTC (rev 389486)
@@ -1,63 +0,0 @@
-# Maintainer: Sébastien Luttringer <se...@archlinux.org>
-# Contributor: Allan McRae <al...@archlinux.org>
-# Contributor: Andreas Radke <andy...@archlinux.org>
-
-pkgname=file
-pkgver=5.38
-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=("ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz"{,.asc}
-        file-5.38-seccomp-tcgets.patch
-        0001-Revert-Don-t-depend-on-the-execute-bit-to-determine-.patch)
-validpgpkeys=('BE04995BA8F90ED0C0C176C471112AB16CB33B3A') # Christos Zoulas
-sha256sums=('593c2ffc2ab349c5aea0f55fedfe4d681737b6b62376a9b3ad1e77b2cc19fa34'
-            'SKIP'
-            'da6197e89ca53bd4f0d9009fa3a18c6fdb66dc07eb92e6bd77207eadb4548cfe'
-            '5636b444d147d6598c3defd0ce0a9b28056f2f64b09ef7f032337ed0308b8490')
-
-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"
-
-  ./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 389485, 
file/repos/testing-x86_64/PKGBUILD)
===================================================================
--- core-x86_64/PKGBUILD                                (rev 0)
+++ core-x86_64/PKGBUILD        2020-06-18 00:17:01 UTC (rev 389486)
@@ -0,0 +1,59 @@
+# Maintainer: Sébastien Luttringer <se...@archlinux.org>
+# Contributor: Allan McRae <al...@archlinux.org>
+# Contributor: Andreas Radke <andy...@archlinux.org>
+
+pkgname=file
+pkgver=5.39
+pkgrel=1
+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})
+validpgpkeys=('BE04995BA8F90ED0C0C176C471112AB16CB33B3A') # Christos Zoulas
+sha256sums=('f05d286a76d9556243d0cb05814929c2ecf3a5ba07963f8f70bfaaa70517fad1'
+            'SKIP')
+
+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:

Deleted: core-x86_64/file-5.38-seccomp-tcgets.patch
===================================================================
--- core-x86_64/file-5.38-seccomp-tcgets.patch  2020-06-17 23:05:12 UTC (rev 
389485)
+++ core-x86_64/file-5.38-seccomp-tcgets.patch  2020-06-18 00:17:01 UTC (rev 
389486)
@@ -1,28 +0,0 @@
-From 78573ec1c43346064661169c5c8df32e7c3bd6d6 Mon Sep 17 00:00:00 2001
-From: Christos Zoulas <chris...@zoulas.com>
-Date: Fri, 17 Jan 2020 17:12:58 +0000
-Subject: [PATCH] PR/130: tobias: adjust seccomp for ioctl on hardwired
- terminal
-
----
- src/seccomp.c | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/src/seccomp.c b/src/seccomp.c
-index ebf3ea1cb..0ba17233b 100644
---- a/src/seccomp.c
-+++ b/src/seccomp.c
-@@ -186,8 +186,12 @@ enable_sandbox_full(void)
-       ALLOW_IOCTL_RULE(FIONREAD);
- #endif
- #ifdef TIOCGWINSZ
--      // musl libc may call ioctl TIOCGWINSZ when calling stdout
-+      // musl libc may call ioctl TIOCGWINSZ on stdout
-       ALLOW_IOCTL_RULE(TIOCGWINSZ);
-+#endif
-+#ifdef TCGETS
-+      // glibc may call ioctl TCGETS on stdout on physical terminal
-+      ALLOW_IOCTL_RULE(TCGETS);
- #endif
-       ALLOW_RULE(lseek);
-       ALLOW_RULE(_llseek);

Copied: file/repos/core-x86_64/file-5.38-seccomp-tcgets.patch (from rev 389485, 
file/repos/testing-x86_64/file-5.38-seccomp-tcgets.patch)
===================================================================
--- core-x86_64/file-5.38-seccomp-tcgets.patch                          (rev 0)
+++ core-x86_64/file-5.38-seccomp-tcgets.patch  2020-06-18 00:17:01 UTC (rev 
389486)
@@ -0,0 +1,28 @@
+From 78573ec1c43346064661169c5c8df32e7c3bd6d6 Mon Sep 17 00:00:00 2001
+From: Christos Zoulas <chris...@zoulas.com>
+Date: Fri, 17 Jan 2020 17:12:58 +0000
+Subject: [PATCH] PR/130: tobias: adjust seccomp for ioctl on hardwired
+ terminal
+
+---
+ src/seccomp.c | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/src/seccomp.c b/src/seccomp.c
+index ebf3ea1cb..0ba17233b 100644
+--- a/src/seccomp.c
++++ b/src/seccomp.c
+@@ -186,8 +186,12 @@ enable_sandbox_full(void)
+       ALLOW_IOCTL_RULE(FIONREAD);
+ #endif
+ #ifdef TIOCGWINSZ
+-      // musl libc may call ioctl TIOCGWINSZ when calling stdout
++      // musl libc may call ioctl TIOCGWINSZ on stdout
+       ALLOW_IOCTL_RULE(TIOCGWINSZ);
++#endif
++#ifdef TCGETS
++      // glibc may call ioctl TCGETS on stdout on physical terminal
++      ALLOW_IOCTL_RULE(TCGETS);
+ #endif
+       ALLOW_RULE(lseek);
+       ALLOW_RULE(_llseek);

Reply via email to