question about uname on sparc
(Please cc, I'm not on debian-sparc)
shellutils currently applies this patch to uname:
--- shellutils-2.0.11.orig/src/uname.c
+++ shellutils-2.0.11/src/uname.c
@@ -119,6 +119,9 @@
struct utsname name;
int c;
char processor[256];
+#if defined(__sparc__) && defined(__linux__)
+ char *fake_sparc = getenv ("FAKE_SPARC");
+#endif
program_name = argv[0];
setlocale (LC_ALL, "");
@@ -188,6 +191,11 @@
error (1, errno, _("cannot get processor type"));
#else
strcpy (processor, "unknown");
+#endif
+
+#if defined(__sparc__) && defined(__linux__)
+ if (fake_sparc != NULL && (fake_sparc[0] == 'y' || fake_sparc[0] ==
'y'))
+ strcpy(name.machine, "sparc");
#endif
print_element (PRINT_SYSNAME, name.sysname);
It's something I inherited, and I have no idea why it's there. Is there
any need for it currently on the sparc port? If not, I'd like to get rid
of it in sid.
Mike Stone
--
To UNSUBSCRIBE, email to debian-sparc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: