LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-22-2018, 09:20 AM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
BLFS 8.3: patch fails in libxml2


So I was attemtping to compile libxml2 in my BLFS 8.3 system. I entered this command from the book:
Code:
patch -Np1 -i ../libxml2-2.9.8-python3_hack-1.patch
which resulted in:
Code:
can't find file to patch at input line 12
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Submitted By: Pierre Labastie <pierre dot labastie at neuf dot fr>
|Date: 2017-11-23
|Initial Package Version: 2.9.7
|Upstream Status: Bug reported (https://bugzilla.gnome.org/show_bug.cgi?id=789714)
|Origin: Jan Majetek/OpenSuse (https://bugzilla.opensuse.org/show_bug.cgi?id=1065270)
|Description: Fix a segfault in the Python 3 module. It is only a hack.
|
|Index: libxml2-2.9.5/python/libxml.c
|===================================================================
|--- libxml2-2.9.5.orig/python/libxml.c
|+++ libxml2-2.9.5/python/libxml.c
--------------------------
File to patch:
It froze at the "Files to patch:" prompt. So i finally hit enter. Got this:
Code:
Skip this patch? [y]
Hit enter.
Code:
Skipping patch.
2 out of 2 hunks ignored
Then it returned me to my bash prompt.

I was using the version of patch program compiled into my 8.3 system, as specified in the 8.3 book. I was building the version of libxml2 linked from the 8.3 book, and the patch file was the one linked by the book.

Has anyone else run into this problem? Conversely, has anyone actually compiled that version of libxml2 in that version of [B]LFS?
 
Old 11-22-2018, 11:15 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I do it everytime
xml2-config --version = 2.9.8
/usr/lib/python3.7/site-packages/libxml2mod.so

Never had an issue
 
Old 11-22-2018, 03:27 PM   #3
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651

Original Poster
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
I do not understand. Are you saying that I should replace my attempt at patching,
Code:
patch -Np1 -i ../libxml2-2.9.8-python3_hack-1.patch
with
Code:
xml2-config --version = 2.9.8
???
 
Old 11-22-2018, 03:37 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
No thats just showing which version of libxml2 I have, sorry to confuse you.
It builds fine everytime.

Code:
"libxml2-2.9.8$ patch -Np1 -i ../libxml2-2.9.8-python3_hack-1.patch
patching file python/libxml.c"
You are in libxml2-2.9.8 dir, sorry to ask that

Last edited by spiky0011; 11-22-2018 at 03:41 PM.
 
Old 11-23-2018, 09:54 PM   #5
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651

Original Poster
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
Well, turns out I am a dope. I was detaring the xmlts20130923.tar.gz file when I thought I was detaring libxml2-2.9.8.tar.gz. No wonder the patch was failing: the file it wanted to patch wasn't there. D'oh!

Have since built the package and installed it successfully.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
teTeX fails to compile in BLFS corbis_demon Linux From Scratch 2 10-22-2009 10:41 AM
downloading patch files blfs jmaron Linux From Scratch 4 05-06-2008 01:38 PM
BLFS Libxml2-2.6.20 compile error hbinded Linux From Scratch 1 05-31-2006 10:13 AM
installation problems with libxml2-2.2.66.tar.gz and libxml2-devel2-2.6.20-3.tar.gz g-string 3 Linux - Software 6 11-24-2005 11:39 AM
BLFS 5.0 dpkg build fails (ncurses-related error) bhaskie Linux From Scratch 2 02-07-2004 04:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration