Héctor Orón Martínez pushed to branch debian-unstable at X Strike Force / app / xutils-dev
Commits: 64b07596 by Héctor Orón Martínez at 2023-08-08T13:48:12+02:00 add riscv64 support Signed-off-by: Héctor Orón Martínez <zu...@debian.org> - - - - - 3 changed files: - debian/changelog - + debian/patches/08_support_riscv64.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,8 +1,14 @@ xutils-dev (1:7.7+7) UNRELEASED; urgency=medium + [ Debian Janitor ] * Remove constraints unnecessary since buster: + Build-Depends: Drop versioned constraint on dpkg-dev. + [ Héctor Orón Martínez ] + * Add 08_support_riscv64.patch to support riscv64. Thanks to + Manuel A. Fernandez Montecelo (Closes: #897655, #1026002, #1035848) + and Bo YU (Closes: #1043221) + -- Debian Janitor <jani...@jelmer.uk> Sun, 24 Jul 2022 01:55:18 -0000 xutils-dev (1:7.7+6) unstable; urgency=medium ===================================== debian/patches/08_support_riscv64.patch ===================================== @@ -0,0 +1,69 @@ +Description: Add support for riscv64 + Upstream is not interested in adding these patches, they rejected changes when + proposed by people from Fedora. + . + They were already reluctant to add support back in 2014 for other arches, + e.g. OpenRISC or1k (I sent the support then). +Author: Manuel A. Fernandez Montecelo <m...@debian.org> +Last-Update: 2018-05-03 +--- a/xorg-cf-files/Imake.cf ++++ b/xorg-cf-files/Imake.cf +@@ -1037,6 +1037,10 @@ + # define AArch64Architecture + # undef __aarch64__ + # endif ++# if defined(__riscv) && (__riscv_xlen == 64) ++# define RISCV64Architecture ++# /* undef __riscv */ ++# endif + #endif /* linux || __GLIBC__ */ + + #if (defined(__Lynx__) || defined(Lynx)) && (defined(i386) || defined(__i386__) || defined(__x86__) || defined(__powerpc__) || defined(__sparc__) || defined(sparc)) +--- a/xorg-cf-files/linux.cf ++++ b/xorg-cf-files/linux.cf +@@ -1117,6 +1117,15 @@ + # define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64 + #endif /* AArch64Architecture */ + ++#ifdef RISCV64Architecture ++# ifndef OptimizedCDebugFlags ++# define OptimizedCDebugFlags DefaultGcc2RISCV64Opt DefaultGcc2OptimizeOpt GccAliasingArgs ++# endif ++# define LinuxMachineDefines -D__riscv ++# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME ++# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64 ++#endif /* RISCV64Architecture */ ++ + #ifndef StandardDefines + # ifdef __linux__ + # define StandardDefines -Dlinux LinuxMachineDefines LinuxSourceDefines +--- a/xorg-cf-files/xfree86.cf ++++ b/xorg-cf-files/xfree86.cf +@@ -2067,6 +2067,12 @@ + # endif + #endif + ++#if HasGcc2 && defined(RISCV64Architecture) ++# ifndef DefaultGcc2RISCV64Opt ++# define DefaultGcc2RISCV64Opt DefaultGcc2OptimizeOpt GccAliasingArgs ++# endif ++#endif ++ + #if HasGcc2 && defined(AlphaArchitecture) + # ifndef DefaultGcc2AxpOpt + # define DefaultGcc2AxpOpt DefaultGcc2OptimizeOpt GccAliasingArgs +--- a/xorg-cf-files/xorg.cf ++++ b/xorg-cf-files/xorg.cf +@@ -1584,6 +1584,12 @@ + # endif + #endif + ++#if HasGcc2 && defined(RISCV64Architecture) ++# ifndef DefaultGcc2RISCV64Opt ++# define DefaultGcc2RISCV64Opt DefaultGcc2OptimizeOpt GccAliasingArgs ++# endif ++#endif ++ + #if HasGcc2 && defined(AMD64Architecture) + # ifndef DefaultGcc2AMD64Opt + # define DefaultGcc2AMD64Opt DefaultGcc2OptimizeOpt GccAliasingArgs ===================================== debian/patches/series ===================================== @@ -3,3 +3,4 @@ 05_xaw_without_xp.diff 06_font_path.diff 07_gnu_manpath.diff +08_support_riscv64.patch View it on GitLab: https://salsa.debian.org/xorg-team/app/xutils-dev/-/commit/64b07596fbc43441cf555d9e4eeb8f2e35312967 -- View it on GitLab: https://salsa.debian.org/xorg-team/app/xutils-dev/-/commit/64b07596fbc43441cf555d9e4eeb8f2e35312967 You're receiving this email because of your account on salsa.debian.org.