Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: openbsd-file-6.2
Date: Thu, 30 Jan 2020 15:37:03 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18663@inbox.vuxu.org> (raw)

[-- 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
+}

             reply	other threads:[~2020-01-30 14:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-30 14:37 voidlinux-github [this message]
2020-01-30 15:04 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-30 15:31 ` [PR PATCH] [Merged]: " voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18663@inbox.vuxu.org \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).