Github messages for voidlinux
 help / color / 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

* Re: WIP: Libselinux (help needed)
  2020-05-19  6:50 [PR PATCH] WIP: Libselinux (help needed) anjandev
@ 2020-05-19 16:31 ` abenson
  2020-05-19 22:46 ` anjandev
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: abenson @ 2020-05-19 16:31 UTC (permalink / raw)
  To: ml


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

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/22121#issuecomment-630934561

Comment:
That's just saying it doesn't need to find the shlib in another package since it is already in this package. 

For matlab to detect it, you'll need to add it to `common/shlibs`. 

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

* Re: WIP: Libselinux (help needed)
  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
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: anjandev @ 2020-05-19 22:46 UTC (permalink / raw)
  To: ml


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

New comment by anjandev on void-packages repository

https://github.com/void-linux/void-packages/pull/22121#issuecomment-631126906

Comment:
@abenson okay. Thank you. Do you know why matlab doesnt detect it even though I added it to `common/shlibs`?

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

* Re: WIP: Libselinux (help needed)
  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
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: abenson @ 2020-05-20  0:09 UTC (permalink / raw)
  To: ml


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

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/22121#issuecomment-631156717

Comment:
No, I don't. Is there a template for matlab?

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

* Re: WIP: Libselinux (help needed)
  2020-05-19  6:50 [PR PATCH] WIP: Libselinux (help needed) anjandev
                   ` (2 preceding siblings ...)
  2020-05-20  0:09 ` abenson
@ 2020-05-20  2:30 ` anjandev
  2020-05-20  2:37 ` abenson
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: anjandev @ 2020-05-20  2:30 UTC (permalink / raw)
  To: ml


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

New comment by anjandev on void-packages repository

https://github.com/void-linux/void-packages/pull/22121#issuecomment-631196812

Comment:
@abenson matlab is a proprietary application. If I make a matlab meta package and add libselinux as a dependancy, will it copy the required shlib to /lib?

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

* Re: WIP: Libselinux (help needed)
  2020-05-19  6:50 [PR PATCH] WIP: Libselinux (help needed) anjandev
                   ` (3 preceding siblings ...)
  2020-05-20  2:30 ` anjandev
@ 2020-05-20  2:37 ` abenson
  2020-05-20 21:27 ` anjandev
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: abenson @ 2020-05-20  2:37 UTC (permalink / raw)
  To: ml


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

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/22121#issuecomment-631198999

Comment:
I don't understand what you mean about meta package. If you're installing matlab directly, make sure the libselinux package is installed. If its still says its missing, then make sure you have the right version of libselinux.

Without seeing how its detecting it or not detecting it, I'm not sure how to help

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

* Re: WIP: Libselinux (help needed)
  2020-05-19  6:50 [PR PATCH] WIP: Libselinux (help needed) anjandev
                   ` (4 preceding siblings ...)
  2020-05-20  2:37 ` abenson
@ 2020-05-20 21:27 ` anjandev
  2020-05-21  3:21 ` [PR PATCH] [Updated] " anjandev
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: anjandev @ 2020-05-20 21:27 UTC (permalink / raw)
  To: ml


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

New comment by anjandev on void-packages repository

https://github.com/void-linux/void-packages/pull/22121#issuecomment-631736262

Comment:
@abenson I just copied `libselinux.so.1` generated in my chroot to my host system's `/lib` directory and matlab works now.

matlab detects libselinux if `libselinux.so.1` is in `/lib`. However, when I install the packages generated by these templates, there is no `libselinux.so.1` in `/lib`.

Any idea on fixing my template so that `libselinux.so.1` is placed in `/lib` on the system I install these packages?

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

* Re: [PR PATCH] [Updated] WIP: Libselinux (help needed)
  2020-05-19  6:50 [PR PATCH] WIP: Libselinux (help needed) anjandev
                   ` (5 preceding siblings ...)
  2020-05-20 21:27 ` anjandev
@ 2020-05-21  3:21 ` anjandev
  2020-05-22  1:41 ` [PR PATCH] [Updated] Libselinux anjandev
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: anjandev @ 2020-05-21  3:21 UTC (permalink / raw)
  To: ml


[-- Attachment #1: Type: text/plain, Size: 920 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

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: 2877 bytes --]

From 4babf4df57f169763a724b861119bc27a4c84620 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 | 15 +++++++++++++++
 2 files changed, 16 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..11759f235ff
--- /dev/null
+++ b/srcpkgs/libselinux/template
@@ -0,0 +1,15 @@
+# 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

From 42966afe5192f48b8fb642cc51ee72743e242ae5 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 | 14 ++++++++++++++
 2 files changed, 15 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..194cb9d80be
--- /dev/null
+++ b/srcpkgs/libsepol/template
@@ -0,0 +1,14 @@
+# 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

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

* Re: [PR PATCH] [Updated] Libselinux
  2020-05-19  6:50 [PR PATCH] WIP: Libselinux (help needed) anjandev
                   ` (6 preceding siblings ...)
  2020-05-21  3:21 ` [PR PATCH] [Updated] " anjandev
@ 2020-05-22  1:41 ` anjandev
  2020-05-22  1:43 ` anjandev
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: anjandev @ 2020-05-22  1:41 UTC (permalink / raw)
  To: ml


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

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

* Re: [PR PATCH] [Updated] Libselinux
  2020-05-19  6:50 [PR PATCH] WIP: Libselinux (help needed) anjandev
                   ` (7 preceding siblings ...)
  2020-05-22  1:41 ` [PR PATCH] [Updated] Libselinux anjandev
@ 2020-05-22  1:43 ` anjandev
  2020-05-22  1:48 ` anjandev
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: anjandev @ 2020-05-22  1:43 UTC (permalink / raw)
  To: ml


[-- 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: 4035 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 37dbe07da9727e9d0bcd3eaf2899c2456fadd7ad 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-devel    |  1 +
 srcpkgs/libsepol/template | 26 ++++++++++++++++++++++++++
 3 files changed, 28 insertions(+)
 create mode 120000 srcpkgs/libsepol-devel
 create mode 100644 srcpkgs/libsepol/template

diff --git a/common/shlibs b/common/shlibs
index 831cd8ca2c1..8e93122bc26 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
 libselinux.so.1 libselinux-devel-3.0_1
+libsepol.so.1 libsepol-devel-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
+	}
+}

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

* Re: [PR PATCH] [Updated] Libselinux
  2020-05-19  6:50 [PR PATCH] WIP: Libselinux (help needed) anjandev
                   ` (8 preceding siblings ...)
  2020-05-22  1:43 ` anjandev
@ 2020-05-22  1:48 ` anjandev
  2020-05-22  1:58 ` anjandev
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: anjandev @ 2020-05-22  1:48 UTC (permalink / raw)
  To: ml


[-- 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: 4041 bytes --]

From d2d4f7a6d3cf9f959eb95702ce6721b68981438e 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..1515b5ee58e
--- /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-devel 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 844c17d534d083d1dae004187b286852c8517942 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-devel    |  1 +
 srcpkgs/libsepol/template | 26 ++++++++++++++++++++++++++
 3 files changed, 28 insertions(+)
 create mode 120000 srcpkgs/libsepol-devel
 create mode 100644 srcpkgs/libsepol/template

diff --git a/common/shlibs b/common/shlibs
index 831cd8ca2c1..8e93122bc26 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
 libselinux.so.1 libselinux-devel-3.0_1
+libsepol.so.1 libsepol-devel-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
+	}
+}

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

* Re: [PR PATCH] [Updated] Libselinux
  2020-05-19  6:50 [PR PATCH] WIP: Libselinux (help needed) anjandev
                   ` (9 preceding siblings ...)
  2020-05-22  1:48 ` anjandev
@ 2020-05-22  1:58 ` anjandev
  2020-05-22  2:06 ` anjandev
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: anjandev @ 2020-05-22  1:58 UTC (permalink / raw)
  To: ml


[-- 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: 4064 bytes --]

From f7dc4707888586d362cdb8ca0ae37f838c3f593a 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..96ecead3ff1 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-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..1515b5ee58e
--- /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-devel 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 a7f17ea220d2b04cce86802b3d50d49955bb2953 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 96ecead3ff1..a210c63fbb5 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-3.0_1
+libselinux.so.1 libselinux-devel-3.0_1
+libsepol.so.1 libsepol-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
+	}
+}

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

* Re: [PR PATCH] [Updated] Libselinux
  2020-05-19  6:50 [PR PATCH] WIP: Libselinux (help needed) anjandev
                   ` (10 preceding siblings ...)
  2020-05-22  1:58 ` anjandev
@ 2020-05-22  2:06 ` anjandev
  2020-05-22  2:07 ` anjandev
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: anjandev @ 2020-05-22  2:06 UTC (permalink / raw)
  To: ml


[-- 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: 4064 bytes --]

From f7dc4707888586d362cdb8ca0ae37f838c3f593a 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..96ecead3ff1 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-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..1515b5ee58e
--- /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-devel 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 7079b15bce80c9f66f5e5a8fd87f2bf0f54c9934 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 96ecead3ff1..a210c63fbb5 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-3.0_1
+libselinux.so.1 libselinux-devel-3.0_1
+libsepol.so.1 libsepol-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
+	}
+}

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

* Re: [PR PATCH] [Updated] Libselinux
  2020-05-19  6:50 [PR PATCH] WIP: Libselinux (help needed) anjandev
                   ` (11 preceding siblings ...)
  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
  14 siblings, 0 replies; 16+ messages in thread
From: anjandev @ 2020-05-22  2:07 UTC (permalink / raw)
  To: ml


[-- 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: 4023 bytes --]

From f7dc4707888586d362cdb8ca0ae37f838c3f593a 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..96ecead3ff1 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-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..1515b5ee58e
--- /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-devel 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 ddecd69ffe88dc1b02db8afd3a1a6a772bf85e82 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-devel    |  1 +
 srcpkgs/libsepol/template | 26 ++++++++++++++++++++++++++
 3 files changed, 28 insertions(+)
 create mode 120000 srcpkgs/libsepol-devel
 create mode 100644 srcpkgs/libsepol/template

diff --git a/common/shlibs b/common/shlibs
index 96ecead3ff1..46dcca4ad55 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
 libselinux.so.1 libselinux-3.0_1
+libsepol.so.1 libsepol-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
+	}
+}

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

* Re: [PR PATCH] [Closed]: Libselinux
  2020-05-19  6:50 [PR PATCH] WIP: Libselinux (help needed) anjandev
                   ` (12 preceding siblings ...)
  2020-05-22  2:07 ` anjandev
@ 2020-05-22  5:01 ` sgn
  2020-05-22  5:15 ` Libselinux anjandev
  14 siblings, 0 replies; 16+ messages in thread
From: sgn @ 2020-05-22  5:01 UTC (permalink / raw)
  To: ml


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

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

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

Description:
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.

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

* Re: Libselinux
  2020-05-19  6:50 [PR PATCH] WIP: Libselinux (help needed) anjandev
                   ` (13 preceding siblings ...)
  2020-05-22  5:01 ` [PR PATCH] [Closed]: Libselinux sgn
@ 2020-05-22  5:15 ` anjandev
  14 siblings, 0 replies; 16+ messages in thread
From: anjandev @ 2020-05-22  5:15 UTC (permalink / raw)
  To: ml


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

New comment by anjandev on void-packages repository

https://github.com/void-linux/void-packages/pull/22121#issuecomment-632486072

Comment:
> I pushed without this, feel free to correct me if I messed up.

Okay thank you. I am testing right now and it seems fine.


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

end of thread, back to index

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

Github messages for voidlinux

Archives are clonable: git clone --mirror http://inbox.vuxu.org/voidlinux-github

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.github.voidlinux


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git