Your message dated Sun, 08 Dec 2024 13:34:09 +0000
with message-id <e1tkhqh-00dsgq...@fasolo.debian.org>
and subject line Bug#1089230: fixed in pcre2 10.44-5
has caused the Debian Bug report #1089230,
regarding pcre2: Please enable JIT on loong64
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1089230: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1089230
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: pcre2
Version: 10.44-4
Severity: wishlist
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the pcre2 10.44-4 successed for loong64 in the Debian Package Auto-Building environment.
But pcre2 source package do not enable JIT on loong64.

Without enable JIT on loong64 in pcre2 source package, the phenomenon caused is python-pcre2 build failure.
The error(test cases fail) log of python-pcre2 is as follows,
```
=========================== short test summary info ============================ FAILED tests/test_pattern.py::test_pattern_jit_compile_success[a+b+c*d*-0-SUCCESS0] FAILED tests/test_pattern.py::test_pattern_jit_compile_success[(?<foo>a+b+)c*d*-0-SUCCESS0] FAILED tests/test_pattern.py::test_pattern_jit_compile_success[\xc3\xa5+\xe2\x88\xab+\xc3\xa7*\xe2\x88\x82*-0-SUCCESS] FAILED tests/test_pattern.py::test_pattern_jit_compile_success[a+b+c*d*-0-SUCCESS1] FAILED tests/test_pattern.py::test_pattern_jit_compile_success[(?<foo>a+b+)c*d*-0-SUCCESS1] FAILED tests/test_pattern.py::test_pattern_jit_compile_success[(?<foo>a+b+)c*d*(?<foo>a+b+)-64-SUCCESS] FAILED tests/test_pattern.py::test_pattern_jit_compile_success[\xe5+\u222b+\xe7*\u2202*-0-SUCCESS] FAILED tests/test_pattern.py::test_pattern_jit_compile_success[(?<\u0192\xf8\xf8>a+b+)c*d*-0-SUCCESS] FAILED tests/test_pattern.py::test_pattern_jit_findall - pcre2.exceptions.Lib... FAILED tests/test_pattern.py::test_pattern_jit_split - pcre2.exceptions.Libra... ======================== 10 failed, 52 passed in 0.37s =========================

```
The error log can be found at https://buildd.debian.org/status/logs.php?pkg=python-pcre2&ver=0.4.0%2Bds-1&arch=loong64.

Pleason consider the patch I attached for pcre2.
1. I have built pcre2 successfully in locally.
```
......
dpkg-deb: building package 'libpcre2-dev' in '../libpcre2-dev_10.44-4+loong64_loong64.deb'. dpkg-deb: building package 'pcre2-utils-dbgsym' in '../pcre2-utils-dbgsym_10.44-4+loong64_loong64.deb'. dpkg-deb: building package 'libpcre2-8-0-udeb' in 'debian/.debhelper/scratch-space/build-libpcre2-8-0-udeb/libpcre2-8-0-udeb_10.44-4+loong64_loong64.deb'.     Renaming libpcre2-8-0-udeb_10.44-4+loong64_loong64.deb to libpcre2-8-0-udeb_10.44-4+loong64_loong64.udeb
 dpkg-genbuildinfo -O../pcre2_10.44-4+loong64_loong64.buildinfo
 dpkg-genchanges -O../pcre2_10.44-4+loong64_loong64.changes

```

2. Base on local libpcre2-dev_10.44-4+loong64_loong64.deb, I have built python-pcre2 successfully in locally.
```
===== 62 passed in 0.49s =====
......
dpkg-deb: building package 'python3-pcre2' in '../python3-pcre2_0.4.0+ds-1_loong64.deb'. dpkg-deb: building package 'python3-pcre2-dbgsym' in '../python3-pcre2-dbgsym_0.4.0+ds-1_loong64.deb'.
 dpkg-genbuildinfo -O../python-pcre2_0.4.0+ds-1_loong64.buildinfo
 dpkg-genchanges -O../python-pcre2_0.4.0+ds-1_loong64.changes
```

Please enable JIT on loong64 in pcre2 source package.

Best Regards,
Dandan Zhang

diff -u pcre2-10.44/debian/changelog pcre2-10.44/debian/changelog
--- pcre2-10.44/debian/changelog
+++ pcre2-10.44/debian/changelog
@@ -1,3 +1,9 @@
+pcre2 (10.44-4+loong64) unreleased; urgency=medium
+
+  * Enable JIT on loong64.
+
+ -- Dandan Zhang <zhangdan...@loongson.cn>  Sat, 07 Dec 2024 21:21:28 +0800
+
 pcre2 (10.44-4) unstable; urgency=medium
 
   * Disable JIT on armel (it requires v7) (Closes: 1087563)
diff -u pcre2-10.44/debian/rules pcre2-10.44/debian/rules
--- pcre2-10.44/debian/rules
+++ pcre2-10.44/debian/rules
@@ -13,7 +13,7 @@
 
 deb_maint_conf_args = --enable-pcre2-16 --enable-pcre2-32 
--disable-pcre2grep-callout
 #enable JIT only on architectures that support it (see pcre2jit.3)
-ifneq ($(filter amd64 armhf arm64 i386 mips mipsel mips64el powerpc ppc64 
ppc64el riscv64 s390x, $(DEB_HOST_ARCH)),)
+ifneq ($(filter amd64 armhf arm64 i386 loong64 mips mipsel mips64el powerpc 
ppc64 ppc64el riscv64 s390x, $(DEB_HOST_ARCH)),)
 deb_maint_conf_args +=--enable-jit
 else
 deb_maint_conf_args +=--disable-jit

--- End Message ---
--- Begin Message ---
Source: pcre2
Source-Version: 10.44-5
Done: Matthew Vernon <matt...@debian.org>

We believe that the bug you reported is fixed in the latest version of
pcre2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1089...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthew Vernon <matt...@debian.org> (supplier of updated pcre2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 08 Dec 2024 13:05:09 +0000
Source: pcre2
Architecture: source
Version: 10.44-5
Distribution: unstable
Urgency: medium
Maintainer: Matthew Vernon <matt...@debian.org>
Changed-By: Matthew Vernon <matt...@debian.org>
Closes: 1089230
Changes:
 pcre2 (10.44-5) unstable; urgency=medium
 .
   * Enable JIT on loong64 (Closes: #1089230)
Checksums-Sha1:
 5e6c404e00fa83acd5bef11fb8ad6432c55a6de9 2340 pcre2_10.44-5.dsc
 c42cd391a11f3b6f6ac5f8286c001a7c2dd490f9 16032 pcre2_10.44-5.diff.gz
Checksums-Sha256:
 6c27cbc1f6d00a5465b1f312363cec6a35a624a670475d13df21cc7cc8d54923 2340 
pcre2_10.44-5.dsc
 6077896df1f7fff961a3ee82ff29d571694f7fd85f030fc60d67f9bc326c395e 16032 
pcre2_10.44-5.diff.gz
Files:
 ce01d3f85390234369cbf515ac1b3a62 2340 libs optional pcre2_10.44-5.dsc
 45e3f5752186beb8be4dc6acaf9929c1 16032 libs optional pcre2_10.44-5.diff.gz

-----BEGIN PGP SIGNATURE-----

iQJHBAEBCgAxFiEEuk75yE35bTfYoeLUEvTSHI9qY8gFAmdVms0THG1hdHRoZXdA
ZGViaWFuLm9yZwAKCRAS9NIcj2pjyNYGEACaXSL7d4kaPvfH9O8mX6M2kHHXeRk4
5L2acTw5eh7xqoGouNa5X4t+uijvrVJZut+WmvQ54FNP9zKUJDQbBwfWfNtRh0cB
a/s9FD7QRjP7AvQMcmbDjJGtrFNmkL/JM08vg5AonzXRZMTxJ8gOrMacn+EOZ/Ot
GhHCZfGbrx2aXnnEDIflZRDnIsur/N7TiDtkHQpdHXmghxlqBJZXYtV/I1tyHUYo
i0Xy5GHEyF9unb/1SZEE5Wn64+iNkOHB3UU3DDqrHgDvGSPfz+95yr+Y3nPuF0q5
NN1KtWUbQHCsv/SZKySpLuWCedIg5HoiQVsrsJ8XcYqQbuSxCxOedL3d36KMHbJ7
o8JUPbRFjwaRpON9apMVfSSEopKFOF9kaCIKa0MpSkYI6W2ssjBE0P/PQZckUK1i
v2RbkylFUqf77GkEl5/UBSVWX7UM3lYqqZpQwCjIgNLdrEvdFG+Jm065vofwBCU3
lKgcPhwZKNf/UxGteVHDT54jr3fO/yX0z+LOe0aCWZlxJg/8o0rkCQW8+2LT4M2V
+BRemyv0OMDtkuvgZc49fHMdHJVDjNCjVrBFeShvQY+Dn4+9GIesl8Z4Cl1yJ83Q
n1pkDw6iZtV0sV5WIlTbIWsM83wdnZdZWz+LEbSm3KzCxokuQnJ3BYvS1UaJ25IA
ULJQUDIYfrk0hA==
=bMwq
-----END PGP SIGNATURE-----

Attachment: pgp3Igp0X3G68.pgp
Description: PGP signature


--- End Message ---

Reply via email to