[DSE-Dev] Bug#913921: Please consider linking against prce2

Michael Biebl biebl at debian.org
Sat Nov 17 01:22:59 GMT 2018


Source: libselinux
Version: 2.8-1+b1
Severity: normal
Tags: patch

Hi,

pcre2 is the successor of pcre.
Afaics, libselinux allows linking against pcre2 instead of pcre.
Please consider switching it over to the newer version of the library.

Build-tested patch is attached.

Regards,
Michael


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
diff -Nru libselinux-2.8/debian/changelog libselinux-2.8/debian/changelog
--- libselinux-2.8/debian/changelog	2018-05-28 20:50:31.000000000 +0200
+++ libselinux-2.8/debian/changelog	2018-11-17 02:17:10.000000000 +0100
@@ -1,3 +1,10 @@
+libselinux (2.8-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Build against PCRE2.
+
+ -- Michael Biebl <biebl at debian.org>  Sat, 17 Nov 2018 02:17:10 +0100
+
 libselinux (2.8-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru libselinux-2.8/debian/control libselinux-2.8/debian/control
--- libselinux-2.8/debian/control	2018-05-28 20:50:31.000000000 +0200
+++ libselinux-2.8/debian/control	2018-11-17 02:13:41.000000000 +0100
@@ -12,7 +12,7 @@
                file,
                gem2deb (>= 0.5.0~) <!noruby>,
                libsepol1-dev (>= 2.8),
-               libpcre3-dev,
+               libpcre2-dev,
                pkg-config,
                python-all-dev (>= 2.6.6-3~) <!nopython>,
                python3-all-dev <!nopython>,
diff -Nru libselinux-2.8/debian/rules libselinux-2.8/debian/rules
--- libselinux-2.8/debian/rules	2018-05-28 20:50:31.000000000 +0200
+++ libselinux-2.8/debian/rules	2018-11-17 02:17:03.000000000 +0100
@@ -53,6 +53,7 @@
 extra_make_args = ARCH=$(DEB_HOST_GNU_CPU)
 extra_make_args += CC=$(DEB_HOST_GNU_TYPE)-gcc
 extra_make_args += PKG_CONFIG=$(PKG_CONFIG)
+extra_make_args += USE_PCRE2=y
 override_dh_auto_build: FORCE
 	+$(MAKE) $(extra_make_args) all
 


More information about the SELinux-devel mailing list