Bug#1068685: tup: FTBFS on loong64

2024-04-08 Thread zhangdandan

Source: tup
Version: 0.7.11-4
Severity: wishlist
Tags: ftbfs patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the tup failed for loong64 in the Debian Package Auto-Building 
environment.

The error log is as follows,
```
../src/tup/platform.c:70:2: error: #error Unsupported cpu architecture. 
Please add support in tup/platform.c
   70 | #error Unsupported cpu architecture. Please add support in 
tup/platform.c

  |  ^
make[1]: *** [debian/rules:17: override_dh_auto_build] Error 1
```
The Full log can be found at 
https://buildd.debian.org/status/logs.php?pkg=tup&ver=0.7.11-4&arch=loong64.


I have added support for loongarch64 in tup package.
Please consider the patch I attached.
Your opinions are welcome.

Thanks,
Dandan Zhang

Description: Add support for LoongArch. 
Last-Update: 2024-04-09

--- tup-0.7.11.orig/src/tup/platform.c
+++ tup-0.7.11/src/tup/platform.c
@@ -66,6 +66,10 @@ const char *tup_arch = "hppa";
 const char *tup_arch = "riscv64";
 #elif (__riscv || __riscv__) && __riscv_xlen == 32
 const char *tup_arch = "riscv32";
+#elif __loongarch__ && __loongarch_grlen == 32
+const char *tup_arch = "loongarch32";
+#elif __loongarch__ && __loongarch_grlen == 64
+const char *tup_arch = "loongarch64";
 #else
 #error Unsupported cpu architecture. Please add support in tup/platform.c
 #endif
--- tup-0.7.11.orig/tup.1
+++ tup-0.7.11/tup.1
@@ -765,7 +765,7 @@ In this case, the @-variable "FOO" is ex
 TUP_PLATFORM is a special @-variable. If CONFIG_TUP_PLATFORM is not set in the tup.config file, it has a default value according to the platform that tup itself was compiled in. Currently the default value is one of "linux", "solaris", "macosx", "win32", "freebsd" or "netbsd".
 .TP
 .B @(TUP_ARCH)
-TUP_ARCH is another special @-variable. If CONFIG_TUP_ARCH is not set in the tup.config file, it has a default value according to the processor architecture that tup itself was compiled in. Currently the default value is one of "i386", "x86_64", "powerpc", "powerpc64", "ia64", "alpha", "sparc", "arm64", or "arm".
+TUP_ARCH is another special @-variable. If CONFIG_TUP_ARCH is not set in the tup.config file, it has a default value according to the processor architecture that tup itself was compiled in. Currently the default value is one of "i386", "x86_64", "powerpc", "powerpc64", "ia64", "alpha", "sparc", "loongarch32", "loongarch64", "arm64", or "arm".
 
 .SH "VARIANTS"
 Tup supports variants, which allow you to build your project multiple times with different configurations. Perhaps the most common case is to build a release and a debug configuration with different compiler flags, though any number of variants can be used to support whatever configurations you like. Each variant is built in its own directory distinct from each other and from the source tree. When building with variants, the in-tree build is disabled. To create a variant, make a new directory at the top of the tup hierarchy and create a "tup.config" file there. For example:


Bug#1072551: libextractor: Add build support for loongarch64

2024-06-03 Thread zhangdandan

Source: libextractor
Version: 1:1.13-4
Severity: wishlist
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the libextractor failed for loong64 in the Debian Package 
Auto-Building environment.
The reason is the lack of loongarch64 support in 
debian/libextractor-plugins-misc.install.

The error log is as follows,
```
..
  dh_missing -a
dh_missing: warning: 
usr/lib/loongarch64-linux-gnu/libextractor/libextractor_elf.so exists in 
debian/tmp but is not installed to anywhere

dh_missing: error: missing files, aborting
```
The full build log can be found at 
https://buildd.debian.org/status/logs.php?pkg=libextractor&ver=1%3A1.13-4&arch=loong64.


I have added the loongarch64 support to the libextractor source package. 
And built successfully on my local ENV.

Please consider the patch I attached.
If you have any questions, you can contact me at any time.

thanks,
Dandan Zhang

diff --git a/debian/libextractor-plugins-misc.install b/debian/libextractor-plugins-misc.install
index ac95e13..fc290c7 100755
--- a/debian/libextractor-plugins-misc.install
+++ b/debian/libextractor-plugins-misc.install
@@ -1,7 +1,7 @@
 #! /usr/bin/dh-exec
 usr/lib/*/*/libextractor_deb.so
 usr/lib/*/*/libextractor_dvi.so
-[any-amd64 any-i386 alpha arm64 armel armhf ia64 mips64el ppc64el riscv64 sh4] usr/lib/*/*/libextractor_elf.so
+[any-amd64 any-i386 alpha arm64 armel armhf ia64 loong64 mips64el ppc64el riscv64 sh4] usr/lib/*/*/libextractor_elf.so
 usr/lib/*/*/libextractor_it.so
 usr/lib/*/*/libextractor_man.so
 usr/lib/*/*/libextractor_mime.so


Bug#1073782: sigscheme: FTBFS: Add support for LoongArch

2024-06-18 Thread zhangdandan

Source: sigscheme
Version: 0.9.1-2
Severity: normal
Tags: FTBFS patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the sigscheme failed for loong64 in the Debian Package 
Auto-Building environment.

The build error log is as follows,
```
In file included from ./include/private/gc_priv.h:68,
 from mach_dep.c:16:
./include/private/gcconfig.h:496:5: error: #error "The collector has not 
been ported to this machine/OS combination."
  496 | #   error "The collector has not been ported to this machine/OS 
combination."

  | ^
..
```
The full log can be found at 
https://buildd.debian.org/status/logs.php?pkg=sigscheme&ver=0.9.1-2&arch=loong64.

Build failed 14 times.

Please consider the patch I attached.
I have built sigscheme successfully in my local ENV.
```
..
dpkg-deb: building package 'libgcroots-dev' in 
'../libgcroots-dev_0.9.1-2+loong64_loong64.deb'.

 dpkg-genbuildinfo -O../sigscheme_0.9.1-2+loong64_loong64.buildinfo
 dpkg-genchanges -O../sigscheme_0.9.1-2+loong64_loong64.changes
dpkg-genchanges: info: not including original source code in upload
 dpkg-source --after-build .
```
Your opinions are welcome.

Thanks,
Dandan Zhang

diff -Nru sigscheme-0.9.1/debian/changelog sigscheme-0.9.1/debian/changelog
--- sigscheme-0.9.1/debian/changelog2022-06-27 00:39:24.0 +
+++ sigscheme-0.9.1/debian/changelog2024-06-18 09:22:24.0 +
@@ -1,3 +1,9 @@
+sigscheme (0.9.1-2+loong64) unreleased; urgency=medium
+
+  * Add support for LoongArch.
+
+ -- Dandan Zhang   Tue, 18 Jun 2024 09:22:24 +
+
 sigscheme (0.9.1-2) unstable; urgency=medium
 
   * QA upload.
diff -Nru sigscheme-0.9.1/debian/patches/series 
sigscheme-0.9.1/debian/patches/series
--- sigscheme-0.9.1/debian/patches/series   2020-08-25 05:45:19.0 
+
+++ sigscheme-0.9.1/debian/patches/series   2024-06-18 09:22:24.0 
+
@@ -1,3 +1,4 @@
 test-gc-protect-coll-0.8.3
 test-storage-coll-0.8.3
 support-automake-test-log-driver
+sigscheme-add-LoongArch-support.patch
diff -Nru sigscheme-0.9.1/debian/patches/sigscheme-add-LoongArch-support.patch 
sigscheme-0.9.1/debian/patches/sigscheme-add-LoongArch-support.patch
--- sigscheme-0.9.1/debian/patches/sigscheme-add-LoongArch-support.patch
1970-01-01 00:00:00.0 +
+++ sigscheme-0.9.1/debian/patches/sigscheme-add-LoongArch-support.patch
2024-06-18 09:22:24.0 +
@@ -0,0 +1,43 @@
+Description: Add support for LoongArch 
+ .
+ sigscheme (0.9.1-2+loong64) unreleased; urgency=medium
+ .
+   * Add support for LoongArch.
+Author: Dandan Zhang 
+
+---
+Last-Update: 2024-06-18
+
+--- sigscheme-0.9.1.orig/libgcroots/include/private/gcconfig.h
 sigscheme-0.9.1/libgcroots/include/private/gcconfig.h
+@@ -483,6 +483,10 @@
+ #   define RISCV
+ #   define mach_type_known
+ # endif
++# if defined(__loongarch__) && defined(LINUX)
++#   define LOONGARCH
++#   define mach_type_known
++# endif
+ 
+ /* Feel free to add more clauses here */
+ 
+@@ -1336,6 +1340,19 @@
+ #   endif
+ # endif /* RISCV */
+ 
++# ifdef LOONGARCH
++#   define MACH_TYPE "LoongArch"
++#   define CPP_WORDSZ _LOONGARCH_SZPTR
++#   define ALIGNMENT (_LOONGARCH_SZPTR/8)
++#   ifdef LINUX
++# define OS_TYPE "LINUX"
++  extern int __data_start[];
++# define DATASTART ((ptr_t)__data_start)
++# define LINUX_STACKBOTTOM
++# define DYNAMIC_LOADING
++#   endif
++# endif /* LoongArch */
++
+ # ifdef NS32K
+ #   define MACH_TYPE "NS32K"
+ #   define ALIGNMENT 4


Bug#1072551: libextractor: Add build support for loongarch64

2024-07-15 Thread zhangdandan

Hi maintainer,

On Tue, 4 Jun 2024 10:47:10 +0800 zhangdandan wrote:

> Source: libextractor
> Version: 1:1.13-4
> Severity: wishlist
> Tags: patch
> User: debian-loonga...@lists.debian.org
> Usertags: loong64
>
> Dear maintainers,
>
> Compiling the libextractor failed for loong64 in the Debian Package
> Auto-Building environment.
> The reason is the lack of loongarch64 support in
> debian/libextractor-plugins-misc.install.
> The error log is as follows,
> ```
> ..
>   dh_missing -a
> dh_missing: warning:
> usr/lib/loongarch64-linux-gnu/libextractor/libextractor_elf.so exists in
> debian/tmp but is not installed to anywhere
> dh_missing: error: missing files, aborting
> ```
> The full build log can be found at
> 
https://buildd.debian.org/status/logs.php?pkg=libextractor&ver=1%3A1.13-4&arch=loong64.

>
> I have added the loongarch64 support to the libextractor source package.
> And built successfully on my local ENV.
> Please consider the patch I attached.
> If you have any questions, you can contact me at any time.

libextractor source package lacks loong64 support in 
debian/libextractor-plugins-misc.install.
Please take care of the patch I attached for loong64 in the 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1072551#5
The full build log can be found at 
https://buildd.debian.org/status/logs.php?pkg=libextractor&ver=1%3A1.13-4&arch=loong64.


Could you add loong64 support in the next upload?

Thanks
Dandan Zhang



Bug#1073782: sigscheme: FTBFS: Add support for LoongArch

2024-07-16 Thread zhangdandan

On Tue, 18 Jun 2024 17:56:36 +0800 zhangdandan wrote:
> Source: sigscheme
> Version: 0.9.1-2
> Severity: normal
> Tags: FTBFS patch
> User: debian-loonga...@lists.debian.org
> Usertags: loong64
>
> Dear maintainers,
>
> Compiling the sigscheme failed for loong64 in the Debian Package
> Auto-Building environment.
> The build error log is as follows,
> ```
> In file included from ./include/private/gc_priv.h:68,
>  from mach_dep.c:16:
> ./include/private/gcconfig.h:496:5: error: #error "The collector has not
> been ported to this machine/OS combination."
>   496 | #   error "The collector has not been ported to this machine/OS
> combination."
>   | ^
> ..
> ```
> The full log can be found at
> 
https://buildd.debian.org/status/logs.php?pkg=sigscheme&ver=0.9.1-2&arch=loong64.

> Build failed 14 times.
>
> Please consider the patch I attached.
> I have built sigscheme successfully in my local ENV.
>

Please take care of the patch I attached for loong64 in 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1073782#5.


For loong64, now sigscheme's support for loong64 has been uploaded to 
the unreleased repository of debian-ports.
Please check 
http://ftp.ports.debian.org/debian-ports/pool-loong64/main/s/sigscheme/.


Could you add loong64 support in the next upload?

Thanks
Dandan Zhang