Github messages for voidlinux
 help / color / mirror / Atom feed
From: anjandev <anjandev@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Libselinux
Date: Fri, 22 May 2020 03:41:39 +0200	[thread overview]
Message-ID: <20200522014139.-yBm_f5UlEuWRlsVWlFkdQZ1baQ2k64eS47MyasCIc4@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-22121@inbox.vuxu.org>

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

There is an updated 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

Libselinux
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: 4070 bytes --]

From ccdd1c284ac0ddbc54ce5eff8f39f55779911511 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-devel    |  1 +
 srcpkgs/libselinux/template | 27 +++++++++++++++++++++++++++
 3 files changed, 29 insertions(+)
 create mode 120000 srcpkgs/libselinux-devel
 create mode 100644 srcpkgs/libselinux/template

diff --git a/common/shlibs b/common/shlibs
index e2b782e80e8..831cd8ca2c1 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
+libselinux.so.1 libselinux-devel-3.0_1
diff --git a/srcpkgs/libselinux-devel b/srcpkgs/libselinux-devel
new file mode 120000
index 00000000000..b00302ecd8b
--- /dev/null
+++ b/srcpkgs/libselinux-devel
@@ -0,0 +1 @@
+libselinux
\ No newline at end of file
diff --git a/srcpkgs/libselinux/template b/srcpkgs/libselinux/template
new file mode 100644
index 00000000000..611999186c3
--- /dev/null
+++ b/srcpkgs/libselinux/template
@@ -0,0 +1,27 @@
+# Template file for 'libselinux'
+pkgname=libselinux
+version=3.0
+revision=1
+build_style=gnu-makefile
+make_install_args="SHLIBDIR=/usr/lib 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
+
+libselinux-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vmove usr/share/man/man3
+		vmove "usr/lib/*.so"
+		vmove usr/lib/pkgconfig
+	}
+}

From 6d9922c5ff01a574996a9da188006121dfc20ddc 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             |  2 ++
 srcpkgs/libsepol-devel    |  1 +
 srcpkgs/libsepol/template | 26 ++++++++++++++++++++++++++
 3 files changed, 29 insertions(+)
 create mode 120000 srcpkgs/libsepol-devel
 create mode 100644 srcpkgs/libsepol/template

diff --git a/common/shlibs b/common/shlibs
index 831cd8ca2c1..ff9cefd844d 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3890,3 +3890,5 @@ 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
 libselinux.so.1 libselinux-devel-3.0_1
+libsepol.so.1 libsepol-devel-3.0_1
+libselinux.so.1 libselinux-3.0_1
diff --git a/srcpkgs/libsepol-devel b/srcpkgs/libsepol-devel
new file mode 120000
index 00000000000..b1c6d1db03c
--- /dev/null
+++ b/srcpkgs/libsepol-devel
@@ -0,0 +1 @@
+libsepol
\ No newline at end of file
diff --git a/srcpkgs/libsepol/template b/srcpkgs/libsepol/template
new file mode 100644
index 00000000000..86ff2052b82
--- /dev/null
+++ b/srcpkgs/libsepol/template
@@ -0,0 +1,26 @@
+# Template file for 'libsepol'
+pkgname=libsepol
+version=3.0
+revision=1
+build_style=gnu-makefile
+make_install_args=SHLIBDIR=/usr/lib
+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
+
+libsepol-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.a"
+		vmove usr/share/man/man3
+		vmove "usr/lib/*.so"
+		vmove usr/lib/pkgconfig
+	}
+}

  parent reply	other threads:[~2020-05-22  1:41 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` anjandev [this message]
2020-05-22  1:43 ` [PR PATCH] [Updated] Libselinux 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

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=20200522014139.-yBm_f5UlEuWRlsVWlFkdQZ1baQ2k64eS47MyasCIc4@z \
    --to=anjandev@users.noreply.github.com \
    --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).