Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: openbsd-file-6.2
@ 2020-01-30 14:37 voidlinux-github
  2020-01-30 15:04 ` [PR PATCH] [Updated] " voidlinux-github
  2020-01-30 15:31 ` [PR PATCH] [Merged]: " voidlinux-github
  0 siblings, 2 replies; 3+ messages in thread
From: voidlinux-github @ 2020-01-30 14:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 319 bytes --]

There is a new pull request by xtraeme against master on the void-packages repository

https://github.com/xtraeme/void-packages openbsd-file
https://github.com/void-linux/void-packages/pull/18663

New package: openbsd-file-6.2


A patch file from https://github.com/void-linux/void-packages/pull/18663.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-openbsd-file-18663.patch --]
[-- Type: text/x-diff, Size: 2894 bytes --]

From 71a281d760729dfbf25e9b489b99a37ecd32c4e6 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Thu, 30 Jan 2020 15:36:40 +0100
Subject: [PATCH] New package: openbsd-file-6.2

---
 srcpkgs/openbsd-file/patches/musl.patch       | 10 +++++++
 .../openbsd-file/patches/no-x86-seccomp.patch | 17 ++++++++++++
 srcpkgs/openbsd-file/template                 | 26 +++++++++++++++++++
 3 files changed, 53 insertions(+)
 create mode 100644 srcpkgs/openbsd-file/patches/musl.patch
 create mode 100644 srcpkgs/openbsd-file/patches/no-x86-seccomp.patch
 create mode 100644 srcpkgs/openbsd-file/template

diff --git a/srcpkgs/openbsd-file/patches/musl.patch b/srcpkgs/openbsd-file/patches/musl.patch
new file mode 100644
index 00000000000..8b485a3f600
--- /dev/null
+++ b/srcpkgs/openbsd-file/patches/musl.patch
@@ -0,0 +1,10 @@
+--- file.c.orig	2020-01-30 15:16:15.402746181 +0100
++++ file.c	2020-01-30 15:16:29.514898212 +0100
+@@ -19,6 +19,7 @@
+ #include <sys/types.h>
+ #include <sys/mman.h>
+ #include <sys/stat.h>
++#include <sys/sysmacros.h>
+ 
+ #include <err.h>
+ #include <errno.h>
diff --git a/srcpkgs/openbsd-file/patches/no-x86-seccomp.patch b/srcpkgs/openbsd-file/patches/no-x86-seccomp.patch
new file mode 100644
index 00000000000..22a2bac7a53
--- /dev/null
+++ b/srcpkgs/openbsd-file/patches/no-x86-seccomp.patch
@@ -0,0 +1,17 @@
+--- seccomp-sandbox.c.orig	2020-01-30 15:28:45.061751084 +0100
++++ seccomp-sandbox.c	2020-01-30 15:34:05.935174237 +0100
+@@ -40,6 +40,14 @@
+ #define SECCOMP_AUDIT_ARCH AUDIT_ARCH_I386
+ #elif defined __x86_64__ || defined __amd64__
+ #define SECCOMP_AUDIT_ARCH AUDIT_ARCH_X86_64
++#elif defined __arm__
++#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_ARM
++#elif defined __aarch64__
++#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_AARCH64
++#elif defined __ppc__
++#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC
++#elif defined __ppc64__
++#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64
+ #endif
+ #endif /* SECCOMP_AUDIT_ARCH */
+ 
diff --git a/srcpkgs/openbsd-file/template b/srcpkgs/openbsd-file/template
new file mode 100644
index 00000000000..13532c02fe0
--- /dev/null
+++ b/srcpkgs/openbsd-file/template
@@ -0,0 +1,26 @@
+# Template file for 'openbsd-file'
+pkgname=openbsd-file
+version=6.2
+revision=1
+wrksrc="file-${version}"
+build_style=gnu-configure
+configure_args="--program-prefix=openbsd-"
+hostmakedepends="automake libtool"
+short_desc="Portable version of OpenBSD's privsep/sandboxed file(1) utility"
+maintainer="Juan RP <xtraeme@gmail.com>"
+license="ISC"
+homepage="https://github.com/brynet/file/"
+distfiles="https://github.com/brynet/file/archive/v${version}.tar.gz"
+checksum=f6bf601f513bd83038e343bbd93b7982f373669a2ffa76dc52d48fa7251515b2
+
+if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
+	CFLAGS="-DREG_STARTEND=0"
+	makedepends+=" musl-legacy-compat"
+fi
+
+pre_configure() {
+	autoreconf -fi
+}
+post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Updated] New package: openbsd-file-6.2
  2020-01-30 14:37 [PR PATCH] New package: openbsd-file-6.2 voidlinux-github
@ 2020-01-30 15:04 ` voidlinux-github
  2020-01-30 15:31 ` [PR PATCH] [Merged]: " voidlinux-github
  1 sibling, 0 replies; 3+ messages in thread
From: voidlinux-github @ 2020-01-30 15:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

There is an updated pull request by xtraeme against master on the void-packages repository

https://github.com/xtraeme/void-packages openbsd-file
https://github.com/void-linux/void-packages/pull/18663

New package: openbsd-file-6.2


A patch file from https://github.com/void-linux/void-packages/pull/18663.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-openbsd-file-18663.patch --]
[-- Type: text/x-diff, Size: 3011 bytes --]

From f9ddfc416c31834651becdc9aee31d5ac3eaf23f Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Thu, 30 Jan 2020 16:04:01 +0100
Subject: [PATCH] New package: openbsd-file-6.2

---
 srcpkgs/openbsd-file/patches/musl.patch       | 10 +++++++
 .../openbsd-file/patches/no-x86-seccomp.patch | 19 ++++++++++++++
 srcpkgs/openbsd-file/template                 | 26 +++++++++++++++++++
 3 files changed, 55 insertions(+)
 create mode 100644 srcpkgs/openbsd-file/patches/musl.patch
 create mode 100644 srcpkgs/openbsd-file/patches/no-x86-seccomp.patch
 create mode 100644 srcpkgs/openbsd-file/template

diff --git a/srcpkgs/openbsd-file/patches/musl.patch b/srcpkgs/openbsd-file/patches/musl.patch
new file mode 100644
index 00000000000..8b485a3f600
--- /dev/null
+++ b/srcpkgs/openbsd-file/patches/musl.patch
@@ -0,0 +1,10 @@
+--- file.c.orig	2020-01-30 15:16:15.402746181 +0100
++++ file.c	2020-01-30 15:16:29.514898212 +0100
+@@ -19,6 +19,7 @@
+ #include <sys/types.h>
+ #include <sys/mman.h>
+ #include <sys/stat.h>
++#include <sys/sysmacros.h>
+ 
+ #include <err.h>
+ #include <errno.h>
diff --git a/srcpkgs/openbsd-file/patches/no-x86-seccomp.patch b/srcpkgs/openbsd-file/patches/no-x86-seccomp.patch
new file mode 100644
index 00000000000..7c055b84b26
--- /dev/null
+++ b/srcpkgs/openbsd-file/patches/no-x86-seccomp.patch
@@ -0,0 +1,19 @@
+--- seccomp-sandbox.c.orig	2020-01-30 15:59:29.517540311 +0100
++++ seccomp-sandbox.c	2020-01-30 16:03:43.046273793 +0100
+@@ -40,6 +40,16 @@
+ #define SECCOMP_AUDIT_ARCH AUDIT_ARCH_I386
+ #elif defined __x86_64__ || defined __amd64__
+ #define SECCOMP_AUDIT_ARCH AUDIT_ARCH_X86_64
++#elif defined __aarch64__
++#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_AARCH64
++#elif defined __arm__
++#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_ARM
++#elif defined __powerpc64__ && defined __LITTLE_ENDIAN__
++#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64LE
++#elif defined __powerpc64__
++#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64
++#elif defined __powerpc__
++#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC
+ #endif
+ #endif /* SECCOMP_AUDIT_ARCH */
+ 
diff --git a/srcpkgs/openbsd-file/template b/srcpkgs/openbsd-file/template
new file mode 100644
index 00000000000..13532c02fe0
--- /dev/null
+++ b/srcpkgs/openbsd-file/template
@@ -0,0 +1,26 @@
+# Template file for 'openbsd-file'
+pkgname=openbsd-file
+version=6.2
+revision=1
+wrksrc="file-${version}"
+build_style=gnu-configure
+configure_args="--program-prefix=openbsd-"
+hostmakedepends="automake libtool"
+short_desc="Portable version of OpenBSD's privsep/sandboxed file(1) utility"
+maintainer="Juan RP <xtraeme@gmail.com>"
+license="ISC"
+homepage="https://github.com/brynet/file/"
+distfiles="https://github.com/brynet/file/archive/v${version}.tar.gz"
+checksum=f6bf601f513bd83038e343bbd93b7982f373669a2ffa76dc52d48fa7251515b2
+
+if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
+	CFLAGS="-DREG_STARTEND=0"
+	makedepends+=" musl-legacy-compat"
+fi
+
+pre_configure() {
+	autoreconf -fi
+}
+post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Merged]: New package: openbsd-file-6.2
  2020-01-30 14:37 [PR PATCH] New package: openbsd-file-6.2 voidlinux-github
  2020-01-30 15:04 ` [PR PATCH] [Updated] " voidlinux-github
@ 2020-01-30 15:31 ` voidlinux-github
  1 sibling, 0 replies; 3+ messages in thread
From: voidlinux-github @ 2020-01-30 15:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

There's a merged pull request on the void-packages repository

New package: openbsd-file-6.2
https://github.com/void-linux/void-packages/pull/18663

Description:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-30 15:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-30 14:37 [PR PATCH] New package: openbsd-file-6.2 voidlinux-github
2020-01-30 15:04 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-30 15:31 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).