xxgdb: remove

Failing Hydra build: https://hydra.nixos.org/build/308374102

Considering how old this package seems to be according to the
changelog[1], I'm not going to bother with patching it.

[1] https://metadata.ftp-master.debian.org/changelogs//main/x/xxgdb/xxgdb_1.12-17_changelog
This commit is contained in:
Maximilian Bosch
2026-01-03 20:39:43 +01:00
parent 96a5f202c4
commit 5d1a18dd0b
3 changed files with 1 additions and 151 deletions
-67
View File
@@ -1,67 +0,0 @@
{
lib,
stdenv,
fetchurl,
imake,
gccmakedep,
libX11,
libXaw,
libXext,
libXmu,
libXt,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xxgdb";
version = "1.12";
src = fetchurl {
url = "http://deb.debian.org/debian/pool/main/x/xxgdb/xxgdb_${finalAttrs.version}.orig.tar.gz";
sha256 = "0jwazg99wk2l7r390ggw0yr8xipl07bp0qynni141xss530i6d1a";
};
patches = [
# http://zhu-qy.blogspot.com.es/2012/11/slackware-14-i-still-got-xxgdb-all-ptys.html
./xxgdb-pty.patch
];
env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration -Wno-error=implicit-int";
nativeBuildInputs = [
imake
gccmakedep
];
buildInputs = [
libX11
libXaw
libXext
libXmu
libXt
];
preConfigure = ''
mkdir build
xmkmf
'';
makeFlags = [
"DESTDIR=build"
];
postInstall = ''
# Fix up install paths
shopt -s globstar
mv build/**/bin $out/bin
install -D xxgdb.1 $out/share/man/man1/xxgdb.1
'';
meta = {
broken = stdenv.hostPlatform.isDarwin;
description = "Simple but powerful graphical interface to gdb";
mainProgram = "xxgdb";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ emilytrau ];
platforms = lib.platforms.all;
};
})
-84
View File
@@ -1,84 +0,0 @@
--- xxgdb-1.12-org/calldbx.c 2012-10-26 17:17:49.810750909 -0700
+++ xxgdb-1.12/calldbx.c 2012-10-26 17:53:59.209918816 -0700
@@ -69,6 +69,12 @@
* create_io_window(): create an io window for gdb to use
*/
+#ifdef linux
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -126,6 +132,13 @@
{
int master;
+#ifdef _POSIX_SOURCE
+ if ((master = posix_openpt (O_RDWR|O_NOCTTY)) < 0) {
+ perror("posix_openpt failed:");
+ } else {
+ return master;
+ }
+#else
#ifdef SVR4 /* (MJH) Use STREAMS */
if((master = open(MASTER_CLONE, O_RDWR)) < 0)
@@ -152,6 +165,7 @@
}
#endif
#endif /* SVR4 */
+#endif /* _POSIX_SOURCE */
#ifdef GDB
fprintf(stderr, "xxgdb: all ptys in use\n");
@@ -167,7 +181,28 @@
{
int slave;
-#ifdef SVR4 /* (MJH) */
+#ifdef _POSIX_SOURCE
+ char *slave_name = ptsname (master);
+ if (slave_name == NULL) {
+ perror ("Pseudo-tty slave");
+ exit (2);
+ } // end if
+ if (grantpt (master) < 0) {
+ perror ("grantpt error");
+ exit (3);
+ }
+ if (unlockpt (master) < 0) {
+ perror ("unlockpt error");
+ exit (4);
+ }
+ if ((slave = open (slave_name, O_RDWR)) < 0) {
+ perror (slave_name);
+ exit (5);
+ } // end if
+ return slave;
+#else
+#ifdef SVR4
+ /* (MJH) */
char *slave_name = "unknown";
extern char *ptsname(int master);
void (*handler)();
@@ -194,6 +229,7 @@
}
return slave;
#endif /* SVR4 */
+#endif /* _POSIX_SOURCE */
}
#ifdef CREATE_IO_WINDOW
@@ -230,7 +266,7 @@
{
/* child */
/* printf("xterm xterm -l -e xxgdbiowin\n");*/
- if (execlp("xterm", "xterm", "-e", "xxgdbiowin", 0))
+ if (execlp("xterm", "xterm", "-e", "xxgdbiowin", NULL))
{
printf("exec of 'xterm -e xxgdbiowin' fails\n");
unlink("/tmp/iowindowtty");
+1
View File
@@ -1755,6 +1755,7 @@ mapAliases {
xorg-autoconf = util-macros; # Added 2025-08-18
xsw = throw "'xsw' has been removed due to lack of upstream maintenance"; # Added 2025-08-22
xulrunner = throw "'xulrunner' has been renamed to/replaced by 'firefox-unwrapped'"; # Converted to throw 2025-10-27
xxgdb = throw "'xxgdb' seems inactive and doesn't compile with glibc 2.42"; # Added 2025-09-28
yabar = throw "'yabar' has been removed as the upstream project was archived"; # Added 2025-06-10
yabar-unstable = throw "'yabar' has been removed as the upstream project was archived"; # Added 2025-06-10
yafaray-core = throw "'yafaray-core' has been renamed to/replaced by 'libyafaray'"; # Converted to throw 2025-10-27