Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
baselayout-1.9.4-r6 failes to patch (SOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
chaosboy
n00b
n00b


Joined: 14 Nov 2003
Posts: 11

PostPosted: Thu Mar 31, 2005 10:17 pm    Post subject: baselayout-1.9.4-r6 failes to patch (SOLVED) Reply with quote

When I try to emerge baselayout-1.9.4-r6, i receive the below:
Code:

>>> md5 src_uri ;-) sysvinit-2.84.tar.gz
>>> md5 src_uri ;-) rc-scripts-1.4.16.tar.bz2
>>> Unpacking source...
>>> Unpacking sysvinit-2.84.tar.gz to /var/tmp/portage/baselayout-1.9.4-r6/work
>>> Unpacking rc-scripts-1.4.16.tar.bz2 to /var/tmp/portage/baselayout-1.9.4-r6/work
 * Applying rc-scripts-1.4.16-splash.patch ...                                                      [ ok ]
 * Applying rc-scripts-1.4.16-livecd.patch ...                                                      [ ok ]
 * Applying rc-scripts-1.4.16-livecd-hvc.patch ...

 * Failed Patch: rc-scripts-1.4.16-livecd-hvc.patch !
 *  ( /usr/portage/sys-apps/baselayout/files/rc-scripts-1.4.16-livecd-hvc.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/baselayout-1.9.4-r6/temp/rc-scripts-1.4.16-livecd-hvc.patch-15992.out


!!! ERROR: sys-apps/baselayout-1.9.4-r6 failed.
!!! Function epatch, Line 401, Exitcode 0
!!! Failed Patch: rc-scripts-1.4.16-livecd-hvc.patch!
!!! If you need support, post the topmost build error, NOT this status message.


Anybody have any ideas?
_________________
~robert


Last edited by chaosboy on Fri Apr 01, 2005 2:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
geekporn
n00b
n00b


Joined: 17 Jan 2004
Posts: 17

PostPosted: Thu Mar 31, 2005 11:06 pm    Post subject: Reply with quote

I don't have any ideas but I am having the same problem!

Code:

--- rc-scripts-1.4.16/sbin/livecd-functions.sh.orig     2005-03-22 20:40:25.912265336 -0600
+++ rc-scripts-1.4.16/sbin/livecd-functions.sh  2005-03-22 20:43:08.497311240 -0600
@@ -150,7 +150,7 @@
        sed -i -e '/^c[0-9]/ s/^/#/' /etc/inittab

        # SPARC & HPPA console magic
-       if [ "${HOSTTYPE}" = "sparc" -o "${HOSTTYPE}" = "hppa" ]
+       if [ "${HOSTTYPE}" = "sparc" -o "${HOSTTYPE}" = "hppa" -o "${HOSTTYPE}" = "ppc64" ]
        then
                # Mount openprom tree for user debugging purposes
                if [ "${HOSTTYPE}" = "sparc" ]
@@ -179,6 +179,11 @@
                                echo "c${x}:12345:respawn:/sbin/mingetty --noclear --autologin root tty${x}" >> /etc/inittab
                        done
                fi
+               if [ -c "/dev/hvc/0" ]
+               then
+                       ln -s /dev/hvc/0 /dev/hvc0
+                       echo "c0:12345:respawn:/sbin/agetty -nl /bin/bashlogin 9600 hvc0 vt320" >> /etc/inittab
+               fi
        # The rest...
        else
                if [ "${LIVECD_CONSOLE}" = "tty0" -o "${LIVECD_CONSOLE}" = "" ]
@@ -188,7 +193,13 @@
                                echo "c${x}:12345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty${x} linux" >> /etc/inittab
                        done
                else
-                       echo "c1:12345:respawn:/sbin/agetty -nl /bin/bashlogin ${LIVECD_CONSOLE_BAUD} ${LIVECD_CONSOLE} vt100" >> /etc/inittab
+                       if [ -c "/dev/hvc/0" ]
+                       then
+                               ln -s /dev/hvc/0 /dev/hvc0
+                               echo "c1:12345:respawn:/sbin/agetty -nl /bin/bashlogin 9600 hvc0 vt320" >> /etc/inittab
+                       else
+                               echo "c1:12345:respawn:/sbin/agetty -nl /bin/bashlogin ${LIVECD_CONSOLE_BAUD} ${LIVECD_CONSOLE} vt100" >> /etc/inittab
+                       fi
                fi
        fi
        return 0


but here is the script and now the .out for it

Code:

PATCH COMMAND:  patch -p4 -g0 < /usr/portage/sys-apps/baselayout/files/rc-scripts-1.4.16-livecd-hvc.patch

===============================================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- rc-scripts-1.4.16/sbin/livecd-functions.sh.orig    2005-03-22 20:40:25.912265336 -0600
|+++ rc-scripts-1.4.16/sbin/livecd-functions.sh 2005-03-22 20:43:08.497311240 -0600
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored


Is it missing a diff line at the beginning of the file??????
Back to top
View user's profile Send private message
Flash243
n00b
n00b


Joined: 29 Mar 2005
Posts: 5
Location: USA, NC

PostPosted: Thu Mar 31, 2005 11:54 pm    Post subject: Reply with quote

I am getting this error, too. Here is the part of the output file that I am seeing an error in...
Code:

PATCH COMMAND:  patch -p1 -g0 < /usr/portage/sys-apps/baselayout/files/rc-scripts-1.4.16-livecd-hvc.patch

==============================================
patching file sbin/livecd-functions.sh
Hunk #1 FAILED at 150.
Hunk #2 succeeded at 184 with fuzz 2 (offset 5 lines).
Hunk #3 FAILED at 198.
2 out of 3 hunks FAILED -- saving rejects to file sbin/livecd-functions.sh.rej
==============================================


Last edited by Flash243 on Fri Apr 01, 2005 4:50 am; edited 2 times in total
Back to top
View user's profile Send private message
aschueler
Tux's lil' helper
Tux's lil' helper


Joined: 09 Apr 2004
Posts: 119

PostPosted: Fri Apr 01, 2005 12:29 am    Post subject: Reply with quote

me four.

I posted a bug report on bugzilla. Since we all got this within a couple of hours, it may be a brand new one, eh? I couldn't find anything else searching the gentoo site.
Back to top
View user's profile Send private message
aschueler
Tux's lil' helper
Tux's lil' helper


Joined: 09 Apr 2004
Posts: 119

PostPosted: Fri Apr 01, 2005 2:08 am    Post subject: Reply with quote

Here's some more info on my error (seems same as above) to see if it helps with any ideas from the gurus.

I started with a 2004.3 install, and wanted to update the system ... did emerge sync, then did emerge --update --deep --newuse world

Unable to patch baselayout-1.9.4-r6....contents of the error file it references are as follows:

Code:
***** rc-scripts-1.4.16-livecd-hvc.patch *****

==============================================

PATCH COMMAND:  patch -p0 -g0 < /usr/portage/sys-apps/baselayout/files/rc-script
s-1.4.16-livecd-hvc.patch

==============================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- rc-scripts-1.4.16/sbin/livecd-functions.sh.orig    2005-03-22 20:40:25.9122
65336 -0600
|+++ rc-scripts-1.4.16/sbin/livecd-functions.sh 2005-03-22 20:43:08.497311240 -0
600
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
==============================================

PATCH COMMAND:  patch -p1 -g0 < /usr/portage/sys-apps/baselayout/files/rc-script
s-1.4.16-livecd-hvc.patch

==============================================
patching file sbin/livecd-functions.sh
Hunk #1 FAILED at 150.
Hunk #2 succeeded at 184 with fuzz 2 (offset 5 lines).
Hunk #3 FAILED at 198.
2 out of 3 hunks FAILED -- saving rejects to file sbin/livecd-functions.sh.rej
==============================================

PATCH COMMAND:  patch -p2 -g0 < /usr/portage/sys-apps/baselayout/files/rc-script
s-1.4.16-livecd-hvc.patch

==============================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- rc-scripts-1.4.16/sbin/livecd-functions.sh.orig    2005-03-22 20:40:25.9122
65336 -0600
|+++ rc-scripts-1.4.16/sbin/livecd-functions.sh 2005-03-22 20:43:08.497311240 -0
600
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
==============================================

PATCH COMMAND:  patch -p3 -g0 < /usr/portage/sys-apps/baselayout/files/rc-script
s-1.4.16-livecd-hvc.patch

==============================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- rc-scripts-1.4.16/sbin/livecd-functions.sh.orig    2005-03-22 20:40:25.9122
65336 -0600
|+++ rc-scripts-1.4.16/sbin/livecd-functions.sh 2005-03-22 20:43:08.497311240 -0
600
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
==============================================

PATCH COMMAND:  patch -p4 -g0 < /usr/portage/sys-apps/baselayout/files/rc-script
s-1.4.16-livecd-hvc.patch
|+++ rc-scripts-1.4.16/sbin/livecd-functions.sh 2005-03-22 20:43:08.497311240 -0
600
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
==============================================

PATCH COMMAND:  patch -p4 -g0 < /usr/portage/sys-apps/baselayout/files/rc-script
s-1.4.16-livecd-hvc.patch

==============================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- rc-scripts-1.4.16/sbin/livecd-functions.sh.orig    2005-03-22 20:40:25.9122
65336 -0600
|+++ rc-scripts-1.4.16/sbin/livecd-functions.sh 2005-03-22 20:43:08.497311240 -0
600
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored


Kernel is 2.6.11

Any ideas/help? You guys have kicked butt in the past and I am sure you can help again!
Back to top
View user's profile Send private message
geekporn
n00b
n00b


Joined: 17 Jan 2004
Posts: 17

PostPosted: Fri Apr 01, 2005 7:24 am    Post subject: Reply with quote

One of our German brethren said to go into the ebuild and comment out this part

Code:

        # Patch rc-scripts to bring splash stuff up to snuff until 1.11.x is
        # available (not soon enough for 2004.3)
        cd ${S}
        epatch ${FILESDIR}/rc-scripts-1.4.16-splash.patch
        epatch ${FILESDIR}/rc-scripts-1.4.16-livecd.patch
        epatch ${FILESDIR}/rc-scripts-1.4.16-livecd-hvc.patch


to

Code:

        # Patch rc-scripts to bring splash stuff up to snuff until 1.11.x is
        # available (not soon enough for 2004.3)
        cd ${S}
        epatch ${FILESDIR}/rc-scripts-1.4.16-splash.patch
        epatch ${FILESDIR}/rc-scripts-1.4.16-livecd.patch
        #epatch ${FILESDIR}/rc-scripts-1.4.16-livecd-hvc.patch


check out:
https://forums.gentoo.org/viewtopic-t-316973-highlight-baselayout.html

Well I am going to test it right now to see if it works, although if it does I do not know what effect it will have later!
no waranty for this!

[edit]
Okay baselayout-1.9.4-r6 finally went through without a hitch.
I am still not sure what effect this will have not having that patch done but I think it had more to do with other archs like HPPA and stuff.
who nows. I hope this helps out and I hope they either fix it or tell us that this is the way to do it!
[/edit]
Back to top
View user's profile Send private message
kineticist
n00b
n00b


Joined: 01 Apr 2005
Posts: 1
Location: Chicago

PostPosted: Fri Apr 01, 2005 8:42 am    Post subject: baselayout emerges Reply with quote

Well, banging out that third patch did it for me... Thank-you Deutschland. I emerged baselayout and am now starting over on my --emptytree world.

--Cheers
Back to top
View user's profile Send private message
jbburks
n00b
n00b


Joined: 23 Jan 2005
Posts: 5

PostPosted: Fri Apr 01, 2005 12:01 pm    Post subject: Same error off 2005.0 livecd Reply with quote

I get the same error trying to load the 2005.0 livecd.

This is going to bug a lot of new people trying to load Gentoo.
Back to top
View user's profile Send private message
Kyrra
n00b
n00b


Joined: 15 Jan 2003
Posts: 53
Location: Kansas

PostPosted: Fri Apr 01, 2005 1:47 pm    Post subject: Reply with quote

I'm getting this also. Anyone know the fix yet beside commenting out the one patch?
Also, I'm getting this on the 2005.0 live CD starting from stage 1.
_________________
It's not what it is, it's something else.
-Kyrra
Back to top
View user's profile Send private message
Phrollux
n00b
n00b


Joined: 04 Jan 2005
Posts: 11

PostPosted: Fri Apr 01, 2005 2:25 pm    Post subject: Reply with quote

I'm guessing anyone performing emerge sync and doing a new install with --emptytree or bootstap.sh is going to be suffering.

I've just got hit with 2004.3 on PPC :(

The bug is reported, I guess we'll just have to sit and wait or live dangerously with the above.
I've had an install issue before and it was resolved within 3-6 hours, so fingers crossed.
Back to top
View user's profile Send private message
firedoctor
n00b
n00b


Joined: 13 Jun 2002
Posts: 5

PostPosted: Fri Apr 01, 2005 2:45 pm    Post subject: Patch is not needed Reply with quote

Bug 87482 Comment 8 says this patch is not needed. It had already been rolled into the livecd.patch and it failed because it was attempting to apply the same patch out twice. Comment it out.
Back to top
View user's profile Send private message
Phrollux
n00b
n00b


Joined: 04 Jan 2005
Posts: 11

PostPosted: Fri Apr 01, 2005 2:49 pm    Post subject: Reply with quote

That'll do for me :)

Thanks fd
Back to top
View user's profile Send private message
bertaboy
l33t
l33t


Joined: 05 Nov 2004
Posts: 604

PostPosted: Fri Apr 01, 2005 5:33 pm    Post subject: Reply with quote

Dankeschön!!!
Back to top
View user's profile Send private message
aschueler
Tux's lil' helper
Tux's lil' helper


Joined: 09 Apr 2004
Posts: 119

PostPosted: Fri Apr 01, 2005 10:20 pm    Post subject: Reply with quote

You guys kick butt. Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum