summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2011-01-22 12:25:21 +0000
committerRaúl Porcel <armin76@gentoo.org>2011-01-22 12:25:21 +0000
commit767c700cc7b4bee9a87a77b6d6d6c87becca91b5 (patch)
treeee238484c00bb6c119c5156c726f16a26c1aecee /sys-boot/silo
parentold (diff)
downloadhistorical-767c700cc7b4bee9a87a77b6d6d6c87becca91b5.tar.gz
historical-767c700cc7b4bee9a87a77b6d6d6c87becca91b5.tar.bz2
historical-767c700cc7b4bee9a87a77b6d6d6c87becca91b5.zip
sparc stable, remove old and add patch to fix build with >=e2fsprogs-1.4.14 from upstream, bug #350677
Package-Manager: portage-2.1.9.25/cvs/Linux ia64
Diffstat (limited to 'sys-boot/silo')
-rw-r--r--sys-boot/silo/ChangeLog9
-rw-r--r--sys-boot/silo/Manifest21
-rw-r--r--sys-boot/silo/files/gcc-4.3-compile.patch121
-rw-r--r--sys-boot/silo/files/qa-no-strip.patch11
-rw-r--r--sys-boot/silo/files/sanitized-linuxheaders.patch13
-rw-r--r--sys-boot/silo/files/silo-1.4.x-noglibc_time.patch12
-rw-r--r--sys-boot/silo/files/silo-e2fsprogs-1.4.14.patch54
-rw-r--r--sys-boot/silo/silo-1.4.14.ebuild72
-rw-r--r--sys-boot/silo/silo-1.4.14_p20100228.ebuild10
9 files changed, 69 insertions, 254 deletions
diff --git a/sys-boot/silo/ChangeLog b/sys-boot/silo/ChangeLog
index 1b068f2dce33..b88caca20388 100644
--- a/sys-boot/silo/ChangeLog
+++ b/sys-boot/silo/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-boot/silo
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-boot/silo/ChangeLog,v 1.45 2011/01/09 03:25:11 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-boot/silo/ChangeLog,v 1.46 2011/01/22 12:25:20 armin76 Exp $
+
+ 22 Jan 2011; Raúl Porcel <armin76@gentoo.org> -silo-1.4.14.ebuild,
+ silo-1.4.14_p20100228.ebuild, +files/silo-e2fsprogs-1.4.14.patch,
+ -files/silo-1.4.x-noglibc_time.patch, -files/gcc-4.3-compile.patch,
+ -files/qa-no-strip.patch, -files/sanitized-linuxheaders.patch:
+ sparc stable, remove old and add patch to fix build with >=e2fsprogs-1.4.14
+ from upstream, bug #350677
09 Jan 2011; Mike Frysinger <vapier@gentoo.org> silo-1.4.14.ebuild,
silo-1.4.14_p20100228.ebuild:
diff --git a/sys-boot/silo/Manifest b/sys-boot/silo/Manifest
index 778aa01ccc9f..88f396c7b4a7 100644
--- a/sys-boot/silo/Manifest
+++ b/sys-boot/silo/Manifest
@@ -1,21 +1,6 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
-AUX gcc-4.3-compile.patch 3384 RMD160 01ff2be06946b07ccc9b844740d471fccba8380b SHA1 04b7947eebe9e722b6617b0690d5b066b4716ae2 SHA256 3de0d67c0baabeecba80cdb8422a94d2b03d792f7008cc2da5e99a8224a987aa
-AUX qa-no-strip.patch 164 RMD160 f84a426b416692871750165464c73a1c9fc41ece SHA1 d43fc3463b5b54eef0c60a4bb4f2ad30cb7ab672 SHA256 1e33d17cea41f04b02426fb6b1b98a37694eeffc1efaedb2c7d4eade4120d796
-AUX sanitized-linuxheaders.patch 389 RMD160 20b04c20112674143c030a00e22be5d52f8a631c SHA1 434d18f9931fce362724e624607c02252923dbda SHA256 a58f7eeb5f4017b1f8d3d6f984dfe616d197e71d84f218de48cf5c7a4eac91b2
-AUX silo-1.4.x-noglibc_time.patch 407 RMD160 db46932d4ad90965b4cfb43e095e7bbfefc5c030 SHA1 3172e91e0741f64cc511a1d0a47c4b724eed1ac0 SHA256 de656cc0b9bb6a1a852aebd702ee9e90fa7a9f050603b32eed2e5a2100988c5a
+AUX silo-e2fsprogs-1.4.14.patch 1349 RMD160 924d9c4e17c3e1be222913f72b9972a6352c5bf7 SHA1 a26019c69e3f7ca9bf10280d512132239cf17039 SHA256 8d8f7a88bda1b2b739a0fcbbe66d16a70492e34b7d62f21ed55fefd22da2e19a
DIST silo_1.4.14+git20100228-1.diff.gz 10143 RMD160 499cade0bad6aaa1c688b54afced9306a9c32edf SHA1 613ddcd0379ab3b5eb6003de047041d645696c56 SHA256 e62e5be033f72f0bf948aa6538742b0647b9716302de7b553f45be234604ecb9
DIST silo_1.4.14+git20100228.orig.tar.gz 738325 RMD160 9b318207270f3deb49fc9bc8339dde8aa40604fc SHA1 c04eb92e0a81d117e71f143e86528a30b7f88058 SHA256 3ed377c7ec122736655e49cdfdff193e9eed122807e4705a423d036223c9caa4
-DIST silo_1.4.14.orig.tar.gz 181510 RMD160 88d835d695b26fd10f00d66ed94e33175f9b1c25 SHA1 9572835d9f6addae2287b400b55d6220006895ef SHA256 1f17faa150039faf7b2944098f358ee5bf4145969cad678cc53a2f8bb5d4d2dd
-EBUILD silo-1.4.14.ebuild 1897 RMD160 40146ef242fca963949fa3ff26e4cf097c405e7c SHA1 9b8ebcfa4743d5065f5eabfe1b399bf25f58703e SHA256 d28e3e13bcdbc8a1c3186733f769a0b1853f48f12126268fef988cb125d658be
-EBUILD silo-1.4.14_p20100228.ebuild 1881 RMD160 bc743fe44e6533f58e25d010d556dadb9c7c6d73 SHA1 4e37dde73bad2ac65a914f34908e1dd9213ff50c SHA256 302b2274aa23c0c1b1147acc72419d26c47fd13ad7ade1bb77f5a9c8fd5d8adc
-MISC ChangeLog 8947 RMD160 72dfa88bea19385dc0397dca59eb03a1b8afd53d SHA1 02e12d0eb6207a9b8ea0791823c781903876c5b1 SHA256 68744faace1d6c0ed268adc84b95622819935c65981e8481d1e7e5fb0d73ddb8
+EBUILD silo-1.4.14_p20100228.ebuild 1859 RMD160 ea64cb1305f2cf234474cb73c48c1ec1881697d6 SHA1 4642065a393937dd4d3db8f807c7003c77a4f5e1 SHA256 6669b43d65811d14ab587925708239400efa99bdf8f396da2e845549cbe3b2cb
+MISC ChangeLog 9329 RMD160 965c638d36fdb8f4f923cdf4a239052b56fe54f1 SHA1 d9cc96b67103cbe2d6e0d8553c2b804aab542e9c SHA256 ad7a790b7c6588684661423298f50c113bb2f04a09504705a1b55a95275dba66
MISC metadata.xml 282 RMD160 8eda0577518bd9d63fffd12838529c4a90635e03 SHA1 a85093a86ad24fe08b02cf3d33f6a98193924004 SHA256 cb00fd9fed9bb03fc750aa7fdf8232e1f5b8d46e65a14e4f6629a91c2120423f
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.16 (GNU/Linux)
-
-iF4EAREIAAYFAk0pKqIACgkQaC/OocHi7JY+PQD+M5aCLW3NnvqE6ecxKEYT9kOg
-IEWG2n5R2Mx6lTnQ6DoBAIMsRoDUwBN474JcorWum1q+yqDUjPeYDG+3OZHZBY1A
-=mFLo
------END PGP SIGNATURE-----
diff --git a/sys-boot/silo/files/gcc-4.3-compile.patch b/sys-boot/silo/files/gcc-4.3-compile.patch
deleted file mode 100644
index d7fa3ea07bfc..000000000000
--- a/sys-boot/silo/files/gcc-4.3-compile.patch
+++ /dev/null
@@ -1,121 +0,0 @@
-diff --git a/common/printf.c b/common/printf.c
---- a/common/printf.c
-+++ b/common/printf.c
-@@ -21,6 +21,7 @@
- USA. */
-
- #include "promlib.h"
-+#include <stringops.h>
-
- /*
- * This part is rewritten by Igor Timkin <ivt@msu.su>. Than I
-@@ -147,3 +148,88 @@ void prom_printf (char *fmt,...)
- vprintf (fmt, x1);
- va_end (x1);
- }
-+
-+static int sprintn (char *str, long long n, int b)
-+{
-+ static char prbuf[33];
-+ register char *cp;
-+ int count = 0;
-+
-+ if (b == 10 && n < 0) {
-+ memset (str + count, '-', 1);
-+ count++;
-+ n = -n;
-+ }
-+ cp = prbuf;
-+ do
-+ *cp++ = "0123456789ABCDEF"[(unsigned int) (((unsigned long)n) % b)];
-+ while ((n = ((unsigned long long)n) / b & 0x0FFFFFFFFFFFFFFFULL));
-+ do {
-+ memset (str + count, *--cp, 1);
-+ count++;
-+ } while (cp > prbuf);
-+
-+ return count;
-+}
-+
-+int vsprintf (char *str, char *fmt, va_list adx)
-+{
-+ register int c;
-+ char *s;
-+ int count = 0;
-+
-+ for (;;) {
-+ while ((c = *fmt++) != '%') {
-+ memset (str + count, c, 1);
-+ if (c == '\0') {
-+ return count;
-+ }
-+ }
-+ c = *fmt++;
-+ if (c == 'd' || c == 'o' || c == 'x' || c == 'X') {
-+ count += sprintn (str + count, (long long) va_arg (adx, unsigned),
-+ c == 'o' ? 8 : (c == 'd' ? 10 : 16));
-+ } else if (c == 'c') {
-+ memset (str + count, va_arg (adx, unsigned), 1);
-+ count++;
-+ } else if (c == 's') {
-+ if ((s = va_arg (adx, char *)) == NULL)
-+ s = (char *)"(null)";
-+ while ((c = *s++)) {
-+ memset (str + count, c, 1);
-+ count++;
-+ }
-+ } else if (c == 'l' || c == 'O') {
-+ count += sprintn (str + count, (long long) va_arg (adx, long), c == 'l' ? 10 : 8);
-+ } else if (c == 'L') {
-+ int hex = 0;
-+ if (*fmt == 'x') {
-+ fmt++;
-+ hex = 1;
-+ }
-+ count += sprintn (str + count, (long long) va_arg (adx, long long), hex ? 16 : 10);
-+ } else {
-+ /* This is basically what libc's printf does */
-+ memset (str + count, '%', 1);
-+ count++;
-+ memset (str + count, c, 1);
-+ count++;
-+ }
-+ }
-+
-+ return count;
-+}
-+
-+/* Write formatted output into S, according to the format string FORMAT. */
-+/* VARARGS2 */
-+int sprintf (char *s, const char *format, ...)
-+{
-+ va_list arg;
-+ int done;
-+
-+ va_start (arg, format);
-+ done = vsprintf (s, format, arg);
-+ va_end (arg);
-+
-+ return done;
-+}
-diff --git a/second/Makefile b/second/Makefile
---- a/second/Makefile
-+++ b/second/Makefile
-@@ -58,13 +58,13 @@ fs/libfs.a: $(FS_OBJS)
- $(AR) rc $@ $(FS_OBJS)
-
- second: $(OBJS) mark.o
-- $(LD) $(LDFLAGS_SMALL) -Bstatic -o second $(OBJS) -lext2fs mark.o
-- $(LD) $(LDFLAGS_LARGE) -Bstatic -o second2 $(OBJS) -lext2fs mark.o
-+ $(LD) $(LDFLAGS_SMALL) -Bstatic -o second $(OBJS) -lext2fs mark.o `$(CC) -print-libgcc-file-name`
-+ $(LD) $(LDFLAGS_LARGE) -Bstatic -o second2 $(OBJS) -lext2fs mark.o `$(CC) -print-libgcc-file-name`
- $(NM) second | grep -v '*ABS*' | sort > second.map
-
- silotftp: $(OBJSNET) mark.o
-- $(LD) $(LDFLAGS_SMALL) -Bstatic -o silotftp $(OBJSNET) -lext2fs mark.o
-- $(LD) $(LDFLAGS_LARGE) -Bstatic -o silotftp2 $(OBJSNET) -lext2fs mark.o
-+ $(LD) $(LDFLAGS_SMALL) -Bstatic -o silotftp $(OBJSNET) -lext2fs mark.o `$(CC) -print-libgcc-file-name`
-+ $(LD) $(LDFLAGS_LARGE) -Bstatic -o silotftp2 $(OBJSNET) -lext2fs mark.o `$(CC) -print-libgcc-file-name`
- $(NM) silotftp | grep -v '*ABS*' | sort > silotftp.map
-
- second.l: second
diff --git a/sys-boot/silo/files/qa-no-strip.patch b/sys-boot/silo/files/qa-no-strip.patch
deleted file mode 100644
index ea01e2ed10b7..000000000000
--- a/sys-boot/silo/files/qa-no-strip.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- Rules.make
-+++ Rules.make
-@@ -6,7 +6,7 @@
- CC=gcc -m32
- LD=ld -m elf32_sparc
- AS=as
--STRIP=strip
-+STRIP=true
- NM=nm
- ELFTOAOUT=elftoaout
- BIN2H=../common/bin2h
diff --git a/sys-boot/silo/files/sanitized-linuxheaders.patch b/sys-boot/silo/files/sanitized-linuxheaders.patch
deleted file mode 100644
index 3de1c0331e0b..000000000000
--- a/sys-boot/silo/files/sanitized-linuxheaders.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff -ur silo.orig/second/main.c silo/second/main.c
---- silo.orig/second/main.c 2008-05-04 20:44:35.493619781 +0000
-+++ silo/second/main.c 2008-05-04 20:44:50.113166947 +0000
-@@ -25,8 +25,7 @@
- /* TODO: This file is a good candidate for rewrite from scratch. */
-
- #include <silo.h>
--#include <asm/page.h>
--#include <linux/elf.h>
-+#include <elf.h>
- #include <stringops.h>
-
- #ifndef NULL
diff --git a/sys-boot/silo/files/silo-1.4.x-noglibc_time.patch b/sys-boot/silo/files/silo-1.4.x-noglibc_time.patch
deleted file mode 100644
index a77c9a9db983..000000000000
--- a/sys-boot/silo/files/silo-1.4.x-noglibc_time.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- silo-1.4.9/second/fs/ext2.c.orig 2005-04-05 22:39:41.000000000 -0700
-+++ silo-1.4.9/second/fs/ext2.c 2005-04-05 22:58:17.000000000 -0700
-@@ -19,6 +19,9 @@
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
- USA. */
-
-+/* Prevent usersparce time.h from being included and messing up our time() */
-+#define _TIME_H
-+
- #include <sys/types.h>
- #include <silo.h>
- #include <file.h>
diff --git a/sys-boot/silo/files/silo-e2fsprogs-1.4.14.patch b/sys-boot/silo/files/silo-e2fsprogs-1.4.14.patch
new file mode 100644
index 000000000000..afcfc462ea87
--- /dev/null
+++ b/sys-boot/silo/files/silo-e2fsprogs-1.4.14.patch
@@ -0,0 +1,54 @@
+# Patch to make silo compile and work with >=e2fsprogs-1.4.14
+# http://bugs.gentoo.org/show_bug.cgi?id=350677
+# http://marc.info/?l=linux-sparc&m=129468771631829&w=2
+--- silo.orig/common/malloc.c 2010-02-28 12:11:51.000000000 +0100
++++ silo/common/malloc.c 2011-01-22 12:06:42.849946213 +0100
+@@ -27,6 +27,12 @@
+
+ static char *last_alloc = 0;
+
++static char *align_ptr_to(char *ptr, unsigned long align)
++{
++ return (char *) ((((unsigned long) ptr) + (align - 1UL)) &
++ ~(align - 1UL));
++}
++
+ void *malloc (int size)
+ {
+ char *caddr;
+@@ -34,10 +40,34 @@
+ caddr = malloc_ptr;
+ malloc_ptr += size;
+ last_alloc = caddr;
+- malloc_ptr = (char *) ((((unsigned long) malloc_ptr) + 7) & (~7));
++ malloc_ptr = align_ptr_to(malloc_ptr, 8UL);
+ return caddr;
+ }
+
++int posix_memalign(void **memptr, unsigned long alignment, unsigned long size)
++{
++ char *caddr;
++
++ if (alignment & (alignment - 1UL))
++ return -1;
++ if (alignment & (sizeof(void *) - 1UL))
++ return -1;
++
++ if (size == 0) {
++ *memptr = (void *) 0;
++ return 0;
++ }
++
++ caddr = align_ptr_to(malloc_ptr, alignment);
++ malloc_ptr = (caddr + size);
++ last_alloc = caddr;
++ malloc_ptr = align_ptr_to(malloc_ptr, 8UL);
++
++ *memptr = caddr;
++
++ return 0;
++}
++
+ void free (void *m)
+ {
+ if (m == last_alloc)
diff --git a/sys-boot/silo/silo-1.4.14.ebuild b/sys-boot/silo/silo-1.4.14.ebuild
deleted file mode 100644
index e132c337b171..000000000000
--- a/sys-boot/silo/silo-1.4.14.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-boot/silo/silo-1.4.14.ebuild,v 1.4 2011/01/09 03:25:11 vapier Exp $
-
-inherit mount-boot flag-o-matic toolchain-funcs
-
-DESCRIPTION="SPARC/UltraSPARC Improved Loader, a boot loader for sparc"
-SRC_URI="mirror://ubuntu/pool/main/s/${PN}/${PN}_${PV}.orig.tar.gz"
-
-# the sourceforge project is dead. there is no homepage other than gitweb :(
-HOMEPAGE="http://git.kernel.org/?p=linux/kernel/git/bcollins/silo.git;a=summary"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="-* sparc"
-IUSE="hardened"
-
-PROVIDE="virtual/bootloader"
-
-DEPEND="sys-fs/e2fsprogs
- sys-apps/sparc-utils"
-
-ABI_ALLOW="sparc32"
-
-src_unpack() {
- unpack ${A}
-
- cd "${S}"
-
- # Sanitized headers bug #162537
- epatch "${FILESDIR}"/sanitized-linuxheaders.patch
-
- epatch "${FILESDIR}"/silo-1.4.x-noglibc_time.patch
-
- # make it compile with gcc 4.3
- epatch "${FILESDIR}"/gcc-4.3-compile.patch
-
- # don't strip binaries, let portage handle it!
- epatch "${FILESDIR}"/qa-no-strip.patch
-
- # Fix build failure
- sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -U_FORTIFY_SOURCE/g" Rules.make
-
-}
-
-src_compile() {
- filter-flags "-fstack-protector"
-
- if use hardened
- then
- make ${MAKEOPTS} CC="$(tc-getCC) -fno-stack-protector -fno-pic"
- else
- make ${MAKEOPTS} CC="$(tc-getCC)" || die
- fi
-}
-
-src_install() {
- make DESTDIR="${D}" install || die
- dodoc first-isofs/README.SILO_ISOFS docs/README*
-
- # Fix maketilo manpage
- rm "${D}"/usr/share/man/man1/maketilo.1
- dosym /usr/share/man/man1/tilo.1 /usr/share/man/man1/maketilo.1
-}
-
-pkg_postinst() {
- mount-boot_pkg_postinst
- ewarn "NOTE: If this is an upgrade to an existing SILO install,"
- ewarn " you will need to re-run silo as the /boot/second.b"
- ewarn " file has changed, else the system will fail to load"
- ewarn " SILO at the next boot."
-}
diff --git a/sys-boot/silo/silo-1.4.14_p20100228.ebuild b/sys-boot/silo/silo-1.4.14_p20100228.ebuild
index f3075ad8a591..ca501c60e854 100644
--- a/sys-boot/silo/silo-1.4.14_p20100228.ebuild
+++ b/sys-boot/silo/silo-1.4.14_p20100228.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-boot/silo/silo-1.4.14_p20100228.ebuild,v 1.3 2011/01/09 03:25:12 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-boot/silo/silo-1.4.14_p20100228.ebuild,v 1.4 2011/01/22 12:25:20 armin76 Exp $
inherit mount-boot flag-o-matic toolchain-funcs
@@ -17,7 +17,7 @@ HOMEPAGE="http://git.kernel.org/?p=linux/kernel/git/davem/silo.git;a=summary"
SLOT="0"
LICENSE="GPL-2"
-KEYWORDS="-* ~sparc"
+KEYWORDS="-* sparc"
IUSE="hardened"
PROVIDE="virtual/bootloader"
@@ -31,11 +31,7 @@ S="${WORKDIR}/${PN}"
src_unpack() {
unpack ${A}
-
-# epatch ${MY_P}-${DEB_PL}.diff
-
cd "${S}"
-# epatch "${WORKDIR}"/${MY_P/_/-}/debian/patches/*.patch
#Set the correct version
sed -i -e "s/1.4.14/1.4.14_git2010228_p1/g" Rules.make
@@ -43,6 +39,8 @@ src_unpack() {
# Fix build failure
sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -U_FORTIFY_SOURCE/g" Rules.make
+ # Fix bug #350677
+ epatch "${FILESDIR}"/silo-e2fsprogs-1.4.14.patch
}
src_compile() {