Your message dated Sun, 01 Mar 2026 16:55:39 +0000
with message-id <[email protected]>
and subject line Bug#1076135: fixed in reptyr 0.10.0-0.1
has caused the Debian Bug report #1076135,
regarding reptyr: FTBFS: add support for loongarch64
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 [email protected]
immediately.)


-- 
1076135: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1076135
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: reptyr
Version: 0.9.0-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: loong64

Dear maintainers,

The reptyr source package lacks LoongArch64 architecture support.
I have added support for loongarch64 in reptyr package and built successfully on my local ENV.
Please consider the patch I attached.

The support for loongarch64 since python3.* in the Debian Package Auto-Building environment.
I modify the PYTHON_CMD version in Makefile locally.
```
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ BINDIR=$(PREFIX)/bin
 MANDIR=$(PREFIX)/share/man

 PKG_CONFIG ?= pkg-config
-PYTHON_CMD ?= python2
+PYTHON_CMD ?= python3  //Local modify
```
Please consider to update the PYTHON_CMD version in reptyr source package.

Could you add loongarch64 support in the next upload?
Your opinions are welcome.

Thanks
Dandan Zhang

diff -Nru reptyr-0.9.0/debian/control reptyr-0.9.0/debian/control
--- reptyr-0.9.0/debian/control 2022-06-15 23:11:19.000000000 +0000
+++ reptyr-0.9.0/debian/control 2022-06-15 23:11:19.000000000 +0000
@@ -13,7 +13,7 @@
 Vcs-Browser: https://github.com/nelhage/reptyr/tree/debian
 
 Package: reptyr
-Architecture: i386 amd64 armel armhf arm64 powerpc ppc64el riscv64
+Architecture: i386 amd64 armel armhf arm64 powerpc ppc64el riscv64 loong64
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Tool for moving running programs between ptys
  reptyr is a utility for taking an existing running program and
diff -Nru reptyr-0.9.0/debian/patches/reptyr-add-loongarch64-support.patch 
reptyr-0.9.0/debian/patches/reptyr-add-loongarch64-support.patch
--- reptyr-0.9.0/debian/patches/reptyr-add-loongarch64-support.patch    
1970-01-01 00:00:00.000000000 +0000
+++ reptyr-0.9.0/debian/patches/reptyr-add-loongarch64-support.patch    
2022-06-15 23:11:19.000000000 +0000
@@ -0,0 +1,104 @@
+Description: Add loongarch64 support 
+Last-Update: 2024-07-11
+
+--- reptyr-0.9.0.orig/Makefile
++++ reptyr-0.9.0/Makefile
+@@ -18,7 +18,7 @@ BINDIR=$(PREFIX)/bin
+ MANDIR=$(PREFIX)/share/man
+ 
+ PKG_CONFIG ?= pkg-config
+-PYTHON_CMD ?= python2
++PYTHON_CMD ?= python3  //Local modify
+ 
+ all: reptyr
+ 
+--- /dev/null
++++ reptyr-0.9.0/platform/linux/arch/loongarch64.h
+@@ -0,0 +1,64 @@
++/*
++ * Copyright (C) 2023 by Nelson Elhage
++ *
++ * Permission is hereby granted, free of charge, to any person obtaining a 
copy
++ * of this software and associated documentation files (the "Software"), to 
deal
++ * in the Software without restriction, including without limitation the 
rights
++ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
++ * copies of the Software, and to permit persons to whom the Software is
++ * furnished to do so, subject to the following conditions:
++ *
++ * The above copyright notice and this permission notice shall be included in
++ * all copies or substantial portions of the Software.
++ *
++ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
++ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
++ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
++ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
++ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
++ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
++ * THE SOFTWARE.
++ */
++static struct ptrace_personality arch_personality[1] = {
++    {
++        offsetof(struct user_regs_struct, regs[4]),
++        offsetof(struct user_regs_struct, regs[4]),
++        offsetof(struct user_regs_struct, regs[5]),
++        offsetof(struct user_regs_struct, regs[6]),
++        offsetof(struct user_regs_struct, regs[7]),
++        offsetof(struct user_regs_struct, regs[8]),
++        offsetof(struct user_regs_struct, regs[9]),
++      offsetof(struct user_regs_struct, csr_era),
++    }
++};
++
++static inline void arch_fixup_regs(struct ptrace_child *child) {
++      child->regs.csr_era -= 4;
++}
++
++static inline int arch_set_syscall(struct ptrace_child *child,
++                                   unsigned long sysno) {
++    unsigned long syscall_reg = sysno;
++    struct iovec reg_iovec = {
++        .iov_base = &syscall_reg,
++        .iov_len = sizeof(syscall_reg)
++    };
++    return ptrace_command(child, PTRACE_SETREGSET, NT_PRSTATUS, &reg_iovec);
++}
++
++static inline int arch_save_syscall(struct ptrace_child *child) {
++    unsigned long syscall_reg;
++    struct iovec reg_iovec = {
++        .iov_base = &syscall_reg,
++        .iov_len = sizeof(syscall_reg)
++    };
++    if (ptrace_command(child, PTRACE_GETREGSET, NT_PRSTATUS, &reg_iovec) < 0)
++        return -1;
++
++    child->saved_syscall = syscall_reg;
++    return 0;
++}
++
++static inline int arch_restore_syscall(struct ptrace_child *child) {
++    return arch_set_syscall(child, child->saved_syscall);
++}
+--- reptyr-0.9.0.orig/platform/linux/linux_ptrace.c
++++ reptyr-0.9.0/platform/linux/linux_ptrace.c
+@@ -86,6 +86,8 @@ static struct ptrace_personality *person
+ #include "arch/powerpc.h"
+ #elif defined(__riscv) && __riscv_xlen == 64
+ #include "arch/riscv64.h"
++#elif defined(__loongarch64)
++#include "arch/loongarch64.h"
+ #else
+ #error Unsupported architecture.
+ #endif
+--- reptyr-0.9.0.orig/ptrace.h
++++ reptyr-0.9.0/ptrace.h
+@@ -28,6 +28,9 @@
+ #ifdef __riscv
+ #include <asm/ptrace.h>
+ #endif
++#ifdef __loongarch64
++#include <asm/ptrace.h>
++#endif
+ #include <sys/ptrace.h>
+ #include <sys/types.h>
+ #include <sys/user.h>
diff -Nru reptyr-0.9.0/debian/patches/series reptyr-0.9.0/debian/patches/series
--- reptyr-0.9.0/debian/patches/series  1970-01-01 00:00:00.000000000 +0000
+++ reptyr-0.9.0/debian/patches/series  2022-06-15 23:11:19.000000000 +0000
@@ -0,0 +1 @@
+reptyr-add-loongarch64-support.patch

--- End Message ---
--- Begin Message ---
Source: reptyr
Source-Version: 0.10.0-0.1
Done: Andreas Tille <[email protected]>

We believe that the bug you reported is fixed in the latest version of
reptyr, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <[email protected]> (supplier of updated reptyr 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 [email protected])


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

Format: 1.8
Date: Thu, 19 Feb 2026 17:01:00 +0100
Source: reptyr
Architecture: source
Version: 0.10.0-0.1
Distribution: unstable
Urgency: medium
Maintainer: Evan Broder <[email protected]>
Changed-By: Andreas Tille <[email protected]>
Closes: 1064463 1076135
Changes:
 reptyr (0.10.0-0.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
 .
   [ Debian Janitor ]
   * Use secure copyright file specification URI.
   * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
     Repository-Browse.
 .
   [ Andreas Tille ]
   * New upstream version
     Closes: #1064463
   * Maintain package in Debian team on Salsa
   * d/watch: version=5
   * Standards-Version: 4.7.3 (routine-update)
   * Remove Priority field to comply with Debian Policy 4.7.3 (routine-
     update)
   * Replace transitional package pkg-config by pkgconf in Build-Depends
     (routine-update)
   * d/copyright: Align license name
 .
   [ zhangdandan ]
   * Add support for loongarch64
     Closes: #1076135
Checksums-Sha1:
 6e11b4723ca4107b63c5a41702ca6c7d075ea6d4 1998 reptyr_0.10.0-0.1.dsc
 6c43bea1f57f0552de47df46e941f3a5719214d4 33222 reptyr_0.10.0.orig.tar.gz
 2e2b6bbe84c65c3a92341b6320a9e999a87d8f96 5392 reptyr_0.10.0-0.1.debian.tar.xz
 036cf1cc67d599d20c7a4c19601321734337bf33 6496 reptyr_0.10.0-0.1_amd64.buildinfo
Checksums-Sha256:
 7deed120197ea9a54b5f7f24dd630b49c655c3069df3b86e166bb4929953c397 1998 
reptyr_0.10.0-0.1.dsc
 140051ca273d806279598c087ebdbf426ca90af3ab80279082db3a25d1d5120b 33222 
reptyr_0.10.0.orig.tar.gz
 7b102eb81700ba5201332d9da767a52677190b85bafafb920aaad353c5f370c7 5392 
reptyr_0.10.0-0.1.debian.tar.xz
 f749b60ae8d14e38a0bf4d620a0ac4b7e0867eb310f6c99edd568adbb6e2a682 6496 
reptyr_0.10.0-0.1_amd64.buildinfo
Files:
 cef2af0fd779b021483c6197a595b94e 1998 misc optional reptyr_0.10.0-0.1.dsc
 2a09e6555c6e0b455c232ab841281d31 33222 misc optional reptyr_0.10.0.orig.tar.gz
 99bb97aa4760be5d795971de8b21d3cd 5392 misc optional 
reptyr_0.10.0-0.1.debian.tar.xz
 21ddcf4321253b76538a34d82f567abe 6496 misc optional 
reptyr_0.10.0-0.1_amd64.buildinfo

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

iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmmXNNgRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtE9vw/+PnJZBbaM5sxURSFSsQtyMidcW4thDrdC
aHxLHKtodmQmFZiOjnbdEBhdldx3GVVmCIcNbqd4I8D7RBZnV0Mu3KrgYmM2PUGA
XmzdvUU/xiAcjJeOKOrK4gNq35A9AOnDgDYLg/4/bKhWASCMHiuM/JH9XZSLGqHl
f6JJrvp5gckV73AnHrBUsYHvGu85/RxTNh9SKlVmNVMU0l89BkcUsd+a8OC3gLHo
JbUkZA93D8dOQvyn12YZ0b/qv0z1xpg3vdxVhccDdlVKDhX4bWKYSjqIWlThKc68
GCIAA1Lxi0eHfUm5AvKcXGHA5DOJTSJytYuH4kpBqbW6/F+3AN8uAAHukOTDv1Tv
Qyes29+hg7xsLveUzBICU6aOW2JzHT7pL+qEo8p2C2Z/QLa5SP7PBu7bhmBhA12H
oXKiv90Dr1vB5ve/FCrO+UetrpZ9enESCuNuUoKfuwKme8rWXl6JH7I8bDM5Rp8f
y9DUQ02FDr4BRYZtM4N4zlU4TWGNxc8sqOVjhfaOE7tY6MFC+A7AjiMAxDPKdPCV
LJROEdqumOJl0Gsg/GRTqMlPdFGSBWOZuAPGVIwGWLBsoZUwlrQesiRJLh1LqwJz
pjHlzbHfOBIsiDWttzc5oaYOG1GDFy9yHNl5fpR/4XEs/i7yGcuEoNXHSvqGaj1k
CU6UYrT2hvY=
=sa0x
-----END PGP SIGNATURE-----

Attachment: pgp0oQETEaGy6.pgp
Description: PGP signature


--- End Message ---

Reply via email to