Source: termshark
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruil...@loongson.cn

Dear Maintainer,

The termshark software compiles incorrectly on the loong64 architecture, 
the attached patch has resolved the issue.

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 termshark (2.4.0-1) unstable; urgency=medium
 .
   * Team upload
   * New upstream release (Closes: #1019201)
   * Bump standards version to 4.6.1.0
   * Fix FTBFS from an updated dependency (Closes: #1020140)
Author: Stephen Gelman <ssg...@debian.org>
Bug-Debian: https://bugs.debian.org/1019201
Bug-Debian: https://bugs.debian.org/1020140

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>
Last-Update: 2024-04-29

--- termshark-2.4.0.orig/pkg/system/dup.go
+++ termshark-2.4.0/pkg/system/dup.go
@@ -5,6 +5,7 @@
 // +build !windows
 // +build !linux !arm64
 // +build !linux !riscv64
+// +build !linux !loong64
 
 package system
 
--- /dev/null
+++ termshark-2.4.0/pkg/system/dup_linux_loong64.go
@@ -0,0 +1,11 @@
+// Copyright 2019-2022 Graham Clark. All rights reserved.  Use of this source
+// code is governed by the MIT license that can be found in the LICENSE
+// file.
+
+package system
+
+import "syscall"
+
+func Dup2(fd int, fd2 int) error {
+       return syscall.Dup3(fd, fd2, 0)
+}

Reply via email to