LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-20-2017, 08:00 PM   #1
tazza
Member
 
Registered: Jul 2005
Distribution: Slackware64 -current
Posts: 114

Rep: Reputation: 31
Stuck compiling libc++ - how to apply patch?


After a bit of searching, I found the following: https://www.linuxquestions.org/quest...ng-4175612648/

stating that xlocale.h has been removed and that there is a commit found at: https://github.com/llvm-mirror/libcx...57563164dd327e

The thing is, how do I use it? I've tried searching how to use a patch and found things like "patch -p0 <patchname>' but when I run it the system just sits there doing nothing.

I need it to get discord running, and after seeing the dependency list for libc++ am using sbopkg for the first time ever. Pretty happy so far
 
Old 12-20-2017, 08:51 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
You should be using ponce's repo if you're using -current. Regular SBo only is tested against the latest stable (14.2 right now), but ponce maintains a custom repo that tries to keep up with -current. He has a patch for libc++ to deal with xlocale.h up there.

See his thread for details on how to use it. (Hint: this is how to use it with sbopkg.)
 
1 members found this post helpful.
Old 12-20-2017, 09:09 PM   #3
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
While bassmadrigal is right here, to answer the original question...

Any commit or pull request at github can be turned into a patch by adding '.diff' or '.patch' at the end of the url. For example.

https://github.com/llvm-mirror/libcx...164dd327e.diff
https://github.com/llvm-mirror/libcx...64dd327e.patch

This then can be then applied to the source tree with.
Code:
patch -p1 -i /path/to/foo.patch
Or the commit can be reversed.
Code:
patch -R -p1 -i /path/to/foo.patch
Additionally the repo can be cloned and you can use git to do these and much more.

Last edited by orbea; 12-20-2017 at 09:14 PM.
 
2 members found this post helpful.
Old 12-20-2017, 09:32 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I didn't need a patch when I built it (version 5.0.0) on -current three weeks ago.

Last edited by dugan; 12-20-2017 at 09:39 PM.
 
1 members found this post helpful.
Old 12-21-2017, 02:47 AM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by dugan View Post
I didn't need a patch when I built it (version 5.0.0) on -current three weeks ago.
thanks for this: I had switched to 4.0.1 when I updated it on august because it wasn't building on current but I'll move to 5.0.0 now.
 
Old 12-21-2017, 03:51 AM   #6
tazza
Member
 
Registered: Jul 2005
Distribution: Slackware64 -current
Posts: 114

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by dugan View Post
I didn't need a patch when I built it (version 5.0.0) on -current three weeks ago.
Well it doesn't work now I also lost my VPN connection today and random mac address, I've seen this addressed in other questions and will deal with it when I get time.

Code:
3 warnings and 1 error generated.
make[3]: *** [projects/libcxx/lib/CMakeFiles/cxx.dir/build.make:63: projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/algorithm.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:12277: projects/libcxx/lib/CMakeFiles/cxx.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:12252: projects/libcxx/lib/CMakeFiles/install-libcxx.dir/rule] Error 2
make: *** [Makefile:3618: install-libcxx] Error 2

libc++:
Would you like to continue processing the rest of the
queue or would you like to abort?  If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

(Y)es to continue, (N)o to abort, (R)etry the build?: y

+++++++++++++++++++++++++++++++++++++++++++
SUMMARY LOG
Using the SBo repository for Slackware 14.2
Queue Process:  Download, build, and install

libc++:
  MD5SUM check for llvm-3.8.0.src.tar.xz ... OK
  MD5SUM check for libcxx-3.8.0.src.tar.xz ... OK
  MD5SUM check for libcxxabi-3.8.0.src.tar.xz ... OK
  Error occurred with build.  Please check the log.

+++++++++++++++++++++++++++++++++++++++++++

###########################################
          Queue process complete!
###########################################

Press any key to continue:
I'll look into the other recommendations in this thread and report back.
 
Old 12-21-2017, 04:22 AM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by tazza View Post
Well it doesn't work now
it cannot because you are still using the 14.2 repository with sbopkg (and it looks like you are on current): see the first answer you got in this topic
Quote:
Originally Posted by bassmadrigal View Post
You should be using ponce's repo if you're using -current. Regular SBo only is tested against the latest stable (14.2 right now), but ponce maintains a custom repo that tries to keep up with -current. He has a patch for libc++ to deal with xlocale.h up there.

See his thread for details on how to use it. (Hint: this is how to use it with sbopkg.)

Last edited by ponce; 12-21-2017 at 04:26 AM.
 
Old 12-21-2017, 04:31 AM   #8
tazza
Member
 
Registered: Jul 2005
Distribution: Slackware64 -current
Posts: 114

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by ponce View Post
it cannot because you are still using the 14.2 repository with sbopkg (and it looks like you are on current): see the first answer you got in this topic
Thanks, I know and I will.. as I said in my prior message.. "I'll look into the other recommendations in this thread and report back." Other things going on at the moment.
 
Old 12-21-2017, 06:44 AM   #9
tazza
Member
 
Registered: Jul 2005
Distribution: Slackware64 -current
Posts: 114

Original Poster
Rep: Reputation: 31
Ok. All sorted.

Special thanks to Orbea in explaining how things actually work.

Also thanks to Bass for the links. I didn't do it that way but have upgraded my sbopkg.conf accordingly, so in the future it will be referencing current. As I mentioned, sbopkg is new to me (normally grabbing a few dependencies is no big deal) but great to know some of the larger packages can be handled automagically.

Cheers.
 
Old 12-22-2017, 12:52 PM   #10
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
From today's changelog:

Code:
Fri Dec 22 07:09:35 UTC 2017
d/llvm-5.0.1-i586-1.txz: Upgraded.
       Added libcxx and libcxxabi.
 
  


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
patch -Np1 -i ../perl-5.16.2-libc-1.patch AkiraMizuki Linux From Scratch 3 05-07-2013 03:21 AM
[SOLVED] How to Apply a patch vikas027 Linux - Software 5 01-27-2011 08:32 AM
how to apply patch kool_kid Red Hat 4 08-25-2007 04:09 PM
how to apply patch? greythorne Fedora 1 03-09-2005 04:38 AM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:45 AM.

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