sys-boot/yaboot: make patches appliable with 'patch -p1'
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 16 Jan 2019 07:12:12 +0000 (07:12 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Wed, 16 Jan 2019 07:15:21 +0000 (07:15 +0000)
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
sys-boot/yaboot/files/chrpfix.patch
sys-boot/yaboot/files/new-ofpath-devspec.patch
sys-boot/yaboot/files/yaboot-stubfuncs.patch

index e64369ba899a9bcce2e82a3cd28d800a3604d0a7..59ea7a0726332c357d9c0b9624e9c035da24a2ed 100644 (file)
@@ -1,5 +1,5 @@
---- Makefile.orig      2004-03-22 12:04:32.056149336 -0600
-+++ Makefile   2004-03-22 12:05:51.824138328 -0600
+--- a/Makefile.orig    2004-03-22 12:04:32.056149336 -0600
++++ b/Makefile 2004-03-22 12:05:51.824138328 -0600
 @@ -103,9 +103,11 @@
  
  all: yaboot addnote mkofboot
index ac03c15d8dd7f9ad8498d531e436f961051ec24f..e9ad749d8f06d26aeb4bd78b0257a740772e0fef 100644 (file)
@@ -1,5 +1,5 @@
---- ybin/ofpath.bak    2012-05-09 12:24:51.709911981 -0400
-+++ ybin/ofpath        2012-05-09 12:32:19.661560544 -0400
+--- a/ybin/ofpath.bak  2012-05-09 12:24:51.709911981 -0400
++++ b/ybin/ofpath      2012-05-09 12:32:19.661560544 -0400
 @@ -85,11 +85,20 @@
  [ "$DEBUG" = 1 ] && echo "Devpath is: $DEVPATH"
  
index 8ae522b7d4eb00698402fecea787096dab4b178c..ba6fcc7b36069961961d13104b12014a5e351b7b 100644 (file)
@@ -1,7 +1,7 @@
 Stub out some functions that are not provided (and unneeded)
 
---- lib/malloc.c
-+++ lib/malloc.c
+--- a/lib/malloc.c
++++ b/lib/malloc.c
 @@ -64,6 +64,15 @@ void *malloc (unsigned int size)
      return caddr;
  }
@@ -18,8 +18,8 @@ Stub out some functions that are not provided (and unneeded)
  /* Do not fall back to the malloc above as posix_memalign is needed by
   * external libraries not yaboot */
  int posix_memalign(void **memptr, size_t alignment, size_t size)
---- lib/nonstd.c
-+++ lib/nonstd.c
+--- a/lib/nonstd.c
++++ b/lib/nonstd.c
 @@ -65,3 +65,208 @@
  {
        return NULL;