Re: texlive-bin: test builds on your architectures

Bo YU <[email protected]> Mon, 25 Sep 2023 20:43:00 +0800
Newsgroups gmane.linux.debian.ports.arm,gmane.linux.debian.ports.mips
Message-ID <20230925124300.67mt6zsp5oroft7r@debian>
Hi!

Sorry for late reply.

On Fri, Sep 22, 2023 at 11:51:38PM +0200, Preuße, Hilmar wrote:
>Dear porters,
>
>the CPU support of luajit has extended in the last years (see [1]), 
>hence I'd like to know if the package texlive-binaries-sse2 can be 
>built on arm64, mips64el and riscv64. Unfortunately I don't have all 
>CPU's available to test a build. Would you be so kind to do the task 
>for me?
>
>Simply download the source package of texlive-bin, unpack it and 
>append your arch to the line containing "amd64 armel armhf hurd-i386 
>i386 powerpc" in d/rules and d/control; then rebuild. The build 
>executes some kind of test suite at the end.

I did this as your hint but unfortunately it fail to build. The log is
here[0] and debdiff is attached.

```
...
checking for _LARGEFILE_SOURCE value needed for large files... (cached) no
checking how to run the C preprocessor... (cached) gcc -E
configure: error: Sorry, can not preprocess <lj_arch.h>
=== configuring in luajit failed
make[3]: *** [Makefile:868: recurse] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/Work/libs'
make[2]: *** [Makefile:439: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/Work/libs'
make[1]: *** [Makefile:534: all-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>/Work'
dh_auto_build: error: cd Work && make -j4 returned exit code 2
make: *** [debian/rules:69: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2023-09-25T11:29:20Z

```

For luajit on Debian riscv64, I opened a issue[1] some time ago and hope
this helps.

Please let me know if any issues.

BR, 
Bo

[0]: https://drive.google.com/file/d/1vohK1uHAsYJJheh6s2l_FY_HH_fn1FpS/view?usp=sharing
[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1034484
>
>I would be very glad, to get some test results.
>
>Thanks,
>  Hilmar
>
>[1] https://luajit.org/status.html
>-- 
>sigfault
>




-- 
Regards,
--
   Bo YU
texlive-bin_enable_riscv64.debdiff (text/plain, 2.5 KB)
diff -Nru texlive-bin-2023.20230311.66589/debian/control texlive-bin-2023.20230311.66589/debian/control
--- texlive-bin-2023.20230311.66589/debian/control	2023-09-14 21:24:22.000000000 +0000
+++ texlive-bin-2023.20230311.66589/debian/control	2023-09-14 21:27:32.000000000 +0000
@@ -68,7 +68,7 @@
  texlive-latex-recommended or context
 
 Package: texlive-binaries-sse2
-Architecture: amd64 armel armhf hurd-i386 i386 powerpc
+Architecture: amd64 armel armhf hurd-i386 i386 powerpc riscv64
 Multi-Arch: same
 Depends: libptexenc1 (>= ${source:Version}),
   libptexenc1 (<< ${source:Version}.1~),
@@ -78,8 +78,8 @@
   libsynctex2 (<< ${source:Version}.1~),
   libtexlua53-5 (>= ${source:Version}),
   libtexlua53-5 (<< ${source:Version}.1~),
-  libtexluajit2 (>= ${source:Version}) [amd64 armel armhf hurd-i386 i386 powerpc],
-  libtexluajit2 (<< ${source:Version}.1~) [amd64 armel armhf hurd-i386 i386 powerpc],
+  libtexluajit2 (>= ${source:Version}) [amd64 armel armhf hurd-i386 i386 powerpci riscv64],
+  libtexluajit2 (<< ${source:Version}.1~) [amd64 armel armhf hurd-i386 i386 powerpc riscv64],
   sse2-support [i386],
   t1utils, tex-common, perl:any,
   ${shlibs:Depends}, ${misc:Depends}, texlive-binaries
@@ -191,7 +191,7 @@
 
 Package: libtexluajit2
 Section: libs
-Architecture: amd64 armel armhf hurd-i386 i386 powerpc
+Architecture: amd64 armel armhf hurd-i386 i386 powerpc riscv64
 Multi-Arch: same
 Depends: ${misc:Depends}, ${shlibs:Depends}
 Pre-Depends: ${misc:Pre-Depends}
@@ -200,7 +200,7 @@
 
 Package: libtexluajit-dev
 Section: libdevel
-Architecture: amd64 armel armhf hurd-i386 i386 powerpc
+Architecture: amd64 armel armhf hurd-i386 i386 powerpc riscv64
 Multi-Arch: same
 Depends: ${misc:Depends}, libtexluajit2 (= ${binary:Version})
 Description: TeX Live: LuaJIT, modified for use with LuaJITTeX (development part)
diff -Nru texlive-bin-2023.20230311.66589/debian/rules texlive-bin-2023.20230311.66589/debian/rules
--- texlive-bin-2023.20230311.66589/debian/rules	2023-09-13 08:59:57.000000000 +0000
+++ texlive-bin-2023.20230311.66589/debian/rules	2023-09-14 21:27:32.000000000 +0000
@@ -14,7 +14,7 @@
 # all cases. We have now two ways to test for where to build.
 # One by disabling on the other platforms, one by whitelisting
 # and building only on some platforms.
-LUAJIT_GOOD_ARCHS := amd64 armel armhf hurd-i386 i386 powerpc
+LUAJIT_GOOD_ARCHS := amd64 armel armhf hurd-i386 i386 powerpc riscv64
 
 # In case one wants to build with old automake (<< 1.13.1), the following
 # variable has to be set. By default the debian/control requires high
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEIcmhjYVTlmab0tjp+RVP3hQ+S68FAmURgE4ACgkQ+RVP3hQ+
S68NihAAgn48X9vsf3FEPssoRuOHrrOfPdqITobO9Owg1yq0v1YonN96iulUc/eg
7lbcBFng7sRTnpWHvXyEehRqzmgsJOU4JISyYIayFkH3w/0LeHwr1xxeMlBjk+y0
ot5+zjV/f+pkaqFKwcPkwYu5cLsSLEuvyT3+GBSDp9hd4el0ti9pHFaZKXrUOjdR
gj9B2P+1V2vevFlVzHFeKXD9nL68qdUVlLYEt0pATk2lHy2QhIBU1WfYjBtXydaZ
mwP1Wlq8SIRlxxbLw8W5AMuQ+oTQc1ilnITSvWchhejCm9b1oBZZkl6gI8LkoaHC
cEUZsV/8ZEp+V49+SuCwuwij6+b6yWn7W51p6S07WipToqLo4TzwNGYPD21WLlxC
nQ5riVk9ZIht0AlB7LdWItDF5BzSUmeOQfMZeanj2apRIOgqBJxElrM+dUjMP8O9
ph076WKjkknGOv9fNiT0n8a/wnCZyo+Ba+8GkISFBJpSLf6G6GjwflNnaWRfqDRK
AjCw+stGicdwMXxzj3rnNJZhcDN/cgvhxS+W+m3PgV2XBemOXBhkN0fcEEa0KmKa
ZGgO+JAE94v62AkR+QtiHGh0aKYs9fS3EnXEv1a/hy7ZYfU9Ji1t2oYsJD+m+lfd
v2Ko2N+iFEoGZDO9GbcLeKrSYg/aQM1kFP3fhZP023oOYP+E01U=
=umjP
-----END PGP SIGNATURE-----