[26453] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r25583 - in trunk/debathena/debathena: . ldso1-stub ldso1-stub/debian

daemon@ATHENA.MIT.EDU (Geoffrey Thomas)
Fri Jun 8 19:58:06 2012

Date: Fri, 8 Jun 2012 19:58:04 -0400
From: Geoffrey Thomas <geofft@MIT.EDU>
Message-Id: <201206082358.q58Nw4uG021883@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: geofft
Date: 2012-06-08 19:58:04 -0400 (Fri, 08 Jun 2012)
New Revision: 25583

Added:
   trunk/debathena/debathena/ldso1-stub/
   trunk/debathena/debathena/ldso1-stub/Makefile
   trunk/debathena/debathena/ldso1-stub/debian/
   trunk/debathena/debathena/ldso1-stub/debian/changelog
   trunk/debathena/debathena/ldso1-stub/debian/compat
   trunk/debathena/debathena/ldso1-stub/debian/control.in
   trunk/debathena/debathena/ldso1-stub/debian/copyright
   trunk/debathena/debathena/ldso1-stub/debian/debathena-ldso1-stub.lintian-overrides
   trunk/debathena/debathena/ldso1-stub/debian/rules
   trunk/debathena/debathena/ldso1-stub/ld-linux-1.c
Log:
In ldso1-stub:
  * Initial release. (Trac: #476)


Added: trunk/debathena/debathena/ldso1-stub/Makefile
===================================================================
--- trunk/debathena/debathena/ldso1-stub/Makefile	                        (rev 0)
+++ trunk/debathena/debathena/ldso1-stub/Makefile	2012-06-08 23:58:04 UTC (rev 25583)
@@ -0,0 +1,13 @@
+all: ld-linux-1
+
+ld-linux-1: ld-linux-1.c
+	$(CC) -static -fPIC -m32 -o ld-linux-1 ld-linux-1.c
+
+install: all
+	install -d $(DESTDIR)/lib
+	install -m755 ld-linux-1 $(DESTDIR)/lib/ld-linux.so.1
+
+clean:
+	-rm ld-linux-1
+
+.PHONY: clean all

Added: trunk/debathena/debathena/ldso1-stub/debian/changelog
===================================================================
--- trunk/debathena/debathena/ldso1-stub/debian/changelog	                        (rev 0)
+++ trunk/debathena/debathena/ldso1-stub/debian/changelog	2012-06-08 23:58:04 UTC (rev 25583)
@@ -0,0 +1,5 @@
+debathena-ldso1-stub (1.0) unstable; urgency=low
+
+  * Initial release. (Trac: #476)
+
+ -- Geoffrey Thomas <geofft@mit.edu>  Fri, 08 Jun 2012 12:45:09 -0700

Added: trunk/debathena/debathena/ldso1-stub/debian/compat
===================================================================
--- trunk/debathena/debathena/ldso1-stub/debian/compat	                        (rev 0)
+++ trunk/debathena/debathena/ldso1-stub/debian/compat	2012-06-08 23:58:04 UTC (rev 25583)
@@ -0,0 +1 @@
+6

Added: trunk/debathena/debathena/ldso1-stub/debian/control.in
===================================================================
--- trunk/debathena/debathena/ldso1-stub/debian/control.in	                        (rev 0)
+++ trunk/debathena/debathena/ldso1-stub/debian/control.in	2012-06-08 23:58:04 UTC (rev 25583)
@@ -0,0 +1,18 @@
+Source: debathena-ldso1-stub
+Section: debathena/libs
+Priority: extra
+Maintainer: Debathena Project <debathena@mit.edu>
+Build-Depends: @cdbs@, gcc-multilib [amd64]
+Standards-Version: 3.9.1
+
+Package: debathena-ldso1-stub
+Architecture: i386 amd64
+Depends: ${misc:Depends}
+Provides: ldso
+Conflicts: ldso
+Replaces: ldso
+Description: Stub program interpreter (ld-linux.so.1) for old binaries
+ There's a good amount of old Linux software in Athena lockers
+ compiled against libc5, which uses /lib/ld-linux.so.1 as its program
+ interpreter. This package provides a stub version of that interpreter
+ that prints a helpful error message and exits.

Added: trunk/debathena/debathena/ldso1-stub/debian/copyright
===================================================================
--- trunk/debathena/debathena/ldso1-stub/debian/copyright	                        (rev 0)
+++ trunk/debathena/debathena/ldso1-stub/debian/copyright	2012-06-08 23:58:04 UTC (rev 25583)
@@ -0,0 +1,32 @@
+This package was created as part of the Debathena Project
+<http://debathena.mit.edu/> of the MIT Student Information Processing
+Board.
+
+The source code was obtained from the Athena SVN repository at
+<svn://debathena.mit.edu/athena/trunk/debathena/debathena>, and is
+licensed as follows:
+
+  Copyright © 2009, 2012  Geoffrey Thomas <geofft@mit.edu>
+
+  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.
+
+The Debian packaging is Copyright © 2012 Geoffrey Thomas, and has the same
+license as the original software.

Added: trunk/debathena/debathena/ldso1-stub/debian/debathena-ldso1-stub.lintian-overrides
===================================================================
--- trunk/debathena/debathena/ldso1-stub/debian/debathena-ldso1-stub.lintian-overrides	                        (rev 0)
+++ trunk/debathena/debathena/ldso1-stub/debian/debathena-ldso1-stub.lintian-overrides	2012-06-08 23:58:04 UTC (rev 25583)
@@ -0,0 +1,2 @@
+# That's the point.
+statically-linked-binary ./lib/ld-linux.so.1

Added: trunk/debathena/debathena/ldso1-stub/debian/rules
===================================================================
--- trunk/debathena/debathena/ldso1-stub/debian/rules	                        (rev 0)
+++ trunk/debathena/debathena/ldso1-stub/debian/rules	2012-06-08 23:58:04 UTC (rev 25583)
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+DEB_MAKE_CLEAN_TARGET   = clean
+DEB_MAKE_BUILD_TARGET   = all
+DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(DEB_DESTDIR)
+
+DEB_DH_FIXPERMS_ARGS   := -Xld-linux.so.1
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/makefile.mk


Property changes on: trunk/debathena/debathena/ldso1-stub/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/debathena/debathena/ldso1-stub/ld-linux-1.c
===================================================================
--- trunk/debathena/debathena/ldso1-stub/ld-linux-1.c	                        (rev 0)
+++ trunk/debathena/debathena/ldso1-stub/ld-linux-1.c	2012-06-08 23:58:04 UTC (rev 25583)
@@ -0,0 +1,13 @@
+#include <unistd.h>
+
+int main() {
+#define PRINT(x) write(2, x, sizeof(x))
+  PRINT(
+"Error:\n"
+"  The software you are trying to run is too old for this system. Please\n"
+"  ask its maintainer to compile a newer version of the software for\n"
+"  Debathena (amd64_deb60). If you have questions, contact <debathena@mit.edu>.\n\n"
+"  (ld-linux.so.1 has not been supported on Ubuntu since 2006 or\n"
+"  Debian since 2007.)\n");
+  return 72; //EX_OSFILE "Some system file does not exist..." from FreeBSD
+}


home help back first fref pref prev next nref lref last post