Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] WIP: Libselinux (help needed)
@ 2020-05-19  6:50 anjandev
  2020-05-19 16:31 ` abenson
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: anjandev @ 2020-05-19  6:50 UTC (permalink / raw)
  To: ml

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

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

https://github.com/anjandev/void-packages libselinux
https://github.com/void-linux/void-packages/pull/22121

WIP: Libselinux (help needed)
libselinux.so.1 is required for matlab according to: https://wiki.archlinux.org/index.php/MATLAB#Blackscreen_in_help_browser_and_livescripts

As such, Im trying to port this aur package: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=libselinux

Unfortunately Im having trouble with including `libselinux.so.1` in my package as it says xbps-src is ignoring this file:

```
=> libselinux-3.0_1: running pre-pkg hook: 04-generate-runtime-deps ...
   SONAME: libselinux.so.1 <-> libselinux-3.0_1 (ignored)
```

shlibs are hard. Please let me know what I am doing wrong. Thank you.

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

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

From c3524a73c68c8ae9125f015b766c5b41b13d29f5 Mon Sep 17 00:00:00 2001
From: Anjandev Momi <anjan@momi.ca>
Date: Mon, 18 May 2020 23:34:45 -0700
Subject: [PATCH 1/2] New package: libselinux-3.0

---
 common/shlibs               |  1 +
 srcpkgs/libselinux/template | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 srcpkgs/libselinux/template

diff --git a/common/shlibs b/common/shlibs
index e2b782e80e8..aad463b36a3 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3889,3 +3889,4 @@ libjcat.so.1 libjcat-0.1.2_1
 libmatio.so.9 matio-1.5.17_2
 libvips.so.42 libvips-8.9.2_1
 libvips-cpp.so.42 libvips-8.9.2_1
+libsepol.so.1 libsepol-3.0_1
diff --git a/srcpkgs/libselinux/template b/srcpkgs/libselinux/template
new file mode 100644
index 00000000000..c38dc7d824f
--- /dev/null
+++ b/srcpkgs/libselinux/template
@@ -0,0 +1,19 @@
+# Template file for 'libselinux'
+pkgname=libselinux
+version=3.0
+revision=1
+build_style=gnu-makefile
+make_install_args=SBINDIR=/usr/bin
+hostmakedepends="pkgconf python ruby xz swig"
+makedepends="libsepol pcre-devel"
+depends="libsepol pcre"
+short_desc="SELinux library and simple utilities"
+maintainer="Anjandev Momi <anjan@momi.ca>"
+license="GPL-2.0-only"
+homepage="https://www.nsa.gov/what-we-do/research/selinux/"
+distfiles="https://github.com/SELinuxProject/selinux/releases/download/20191204/${pkgname}-${version}.tar.gz"
+checksum=2ea2b30f671dae9d6b1391cbe8fb2ce5d36a3ee4fb1cd3c32f0d933c31b82433
+
+post_install() {
+	rm -rf ${DESTDIR}/lib/*
+}

From f7177cf0ada05bdd19abda1afdd67e544fbe7373 Mon Sep 17 00:00:00 2001
From: Anjandev Momi <anjan@momi.ca>
Date: Mon, 18 May 2020 23:35:01 -0700
Subject: [PATCH 2/2] New package: libsepol-3.0

---
 common/shlibs             |  1 +
 srcpkgs/libsepol/template | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)
 create mode 100644 srcpkgs/libsepol/template

diff --git a/common/shlibs b/common/shlibs
index aad463b36a3..55d94cd1673 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3890,3 +3890,4 @@ libmatio.so.9 matio-1.5.17_2
 libvips.so.42 libvips-8.9.2_1
 libvips-cpp.so.42 libvips-8.9.2_1
 libsepol.so.1 libsepol-3.0_1
+libselinux.so.1 libselinux-3.0_1
diff --git a/srcpkgs/libsepol/template b/srcpkgs/libsepol/template
new file mode 100644
index 00000000000..fdf1010310b
--- /dev/null
+++ b/srcpkgs/libsepol/template
@@ -0,0 +1,17 @@
+# Template file for 'libsepol'
+pkgname=libsepol
+version=3.0
+revision=1
+build_style=gnu-makefile
+hostmakedepends="flex"
+depends="glibc"
+short_desc="SELinux binary policy manipulation library"
+maintainer="Anjandev Momi <anjan@momi.ca>"
+license="LGPL-2.1-or-later"
+homepage="http://userspace.selinuxproject.org"
+distfiles="https://github.com/SELinuxProject/selinux/releases/download/20191204/${pkgname}-${version}.tar.gz"
+checksum=5b7ae1881909f1048b06f7a0c364c5c8a86ec12e0ec76e740fe9595a6033eb79
+
+post_install() {
+	rm -rf ${DESTDIR}/lib
+}

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

end of thread, other threads:[~2020-05-22  5:15 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-19  6:50 [PR PATCH] WIP: Libselinux (help needed) anjandev
2020-05-19 16:31 ` abenson
2020-05-19 22:46 ` anjandev
2020-05-20  0:09 ` abenson
2020-05-20  2:30 ` anjandev
2020-05-20  2:37 ` abenson
2020-05-20 21:27 ` anjandev
2020-05-21  3:21 ` [PR PATCH] [Updated] " anjandev
2020-05-22  1:41 ` [PR PATCH] [Updated] Libselinux anjandev
2020-05-22  1:43 ` anjandev
2020-05-22  1:48 ` anjandev
2020-05-22  1:58 ` anjandev
2020-05-22  2:06 ` anjandev
2020-05-22  2:07 ` anjandev
2020-05-22  5:01 ` [PR PATCH] [Closed]: Libselinux sgn
2020-05-22  5:15 ` Libselinux anjandev

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).