LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 12-03-2012, 11:53 PM   #1
Z038
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 767

Rep: Reputation: 154Reputation: 154
Install a vanilla SlackBuild and a patched one into two locations?


I installed a SlackBuild as written by the maintainer, and now I'd like to install a separate copy of the package into a different set of output directories with some patches applied.

What would be the best way to approach this?

The original SlackBuild installs elements of the package into fairly standard locations, like /usr/bin, /usr/doc, /usr/lib, /usr/share, etc. There are a lot of patches. I think they mainly go against sources for modules that end up in /usr/bin.
 
Old 12-04-2012, 12:02 AM   #2
Z038
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 767

Original Poster
Rep: Reputation: 154Reputation: 154
To be clear, I want to end up with two separate executable versions of the package, the standard one, and the one with the patches applied. I prefer the standard one to be in the normal PATH, but I want to be able to run the patched version from its installed location as needed.
 
Old 12-04-2012, 06:10 AM   #3
tuxbg
Member
 
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 239

Rep: Reputation: Disabled
Why don't you make two different slackbuilds,one for normal package,and other one for patch version?
 
Old 12-04-2012, 07:49 AM   #4
Z038
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 767

Original Poster
Rep: Reputation: 154Reputation: 154
I've started doing that. I'm not adept at creating SlackBuilds, so I'm not sure what all I need to change. I've looked at the templates and read the wiki, but in this case, I'll be modifying a copy of one that someone else built.

The final package name has to be different, or I won't be able to install both packages. So I need to change the name of the SlackBuild script, the names of desktop and png elements that were supplied with it, some of the directories on the configure statement. I think I will need to repackage the tarball so it has a different name and extracts to a differently named directory during the build, since a number of things in the SlackBuild depend on the $PRGNAM variable. There are some directories listed on the configure statement in the script that seem obvious to change, like prefix=, libdir=, sysconfdir=, mandir=, docdir=, localstatedir=.

Once I get the package built, how can I inspect it to ensure that it won't overlay any of the original package once installed?

Is another SlackBuild necessary or even helpful? Would it be better to just extract the tarball, patch it, and do a ./configure and a make and make install? If I do that, how do I control where it installs to?
 
Old 12-04-2012, 08:03 AM   #5
tuxbg
Member
 
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 239

Rep: Reputation: Disabled
--prefix=/opt ? on a patch one
 
Old 12-04-2012, 08:23 AM   #6
Z038
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 767

Original Poster
Rep: Reputation: 154Reputation: 154
ok. I think the SlackBuild route is overkill. I am going to try going simple with something like ./configure --prefix=$HOME/test && make && make install. And I'll run it as non-root first so I can see where it tries to install stuff and hopefully not clobber something important.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Install SolusOS Patched Nautilus In Ubuntu 12.04 LXer Syndicated Linux News 0 08-08-2012 03:20 PM
[SOLVED] Getting a list of file install locations with make install? R00ts Programming 8 12-22-2010 01:12 PM
Getting a list of file install locations with make install? R00ts Linux - General 3 12-22-2010 03:48 AM
how do you keep packages that you install up to date and patched? Unregistered Slackware 7 07-27-2008 10:15 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration