LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-19-2014, 05:18 AM   #1
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
[SUGGESTION] - Small modification to slackpkg


I use the stable version of Slackware rather than current, and all update are put in patches.

In slackpkg.conf I have changed this section to read
Quote:
# PRIORITY sets the download priority. slackpkg will try to found the
# package first in the first value, then the second one, through all
# values in list.
#
# Default value: patches %PKGMAIN extra pasture testing
PRIORITY=( patches )
This works fine for stable but would not work for current. It also saves time and bandwidth whilst doing a slackpkg update.

My suggestion is this:

Would it be possible to do a conditional statement that says

if slackware current
then
priority = %PKGMAIN extra pasture testing
else
priority = patches
fi

samac

Last edited by samac; 01-19-2014 at 06:48 AM.
 
Old 01-19-2014, 05:21 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
There are no "patches" in slackware-current.

Eric
 
Old 01-19-2014, 06:49 AM   #3
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Original Poster
Rep: Reputation: 139Reputation: 139
Eric

Modified per your comment. I still think it would be a good modification for those that use stable versions of slackware, as it would save them both time and bandwidth.

samac
 
Old 01-19-2014, 07:18 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You are considering only a limoted use-case samac: using slackpkg to keep an already installed Slackware up to date with patches.
However, slacpkg is also used for installing packages from the core repository. Something like "slackpkg install partitionmanager", or even "slackpkg install kde" would not work if you only point slackpkg to the /patches directory.

Eric
 
Old 01-19-2014, 09:50 AM   #5
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by samac View Post
Eric

Modified per your comment. I still think it would be a good modification for those that use stable versions of slackware, as it would save them both time and bandwidth.

samac
the patches are applied to SOURCE CODE EVERY THING PATCHED WOULD NEED TO BE REBUILT !!!!
source code can be as much as 10 times larger than executablies so that would use more bandwidth
building from source tacks about 1000 times more time than installing a package

it would save nothing
 
Old 01-19-2014, 10:56 AM   #6
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Original Poster
Rep: Reputation: 139Reputation: 139
@ Alien Bob

You're right, I was only considering part of the problem. Consider this suggestion as sent to /dev/null.

@ rob.rice

Not patches to the source code patches as in the directory.

samac
 
Old 01-19-2014, 11:58 AM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by rob.rice View Post
the patches are applied to SOURCE CODE EVERY THING PATCHED WOULD NEED TO BE REBUILT !!!!
source code can be as much as 10 times larger than executablies so that would use more bandwidth
building from source tacks about 1000 times more time than installing a package

it would save nothing
Perhaps you were a bit too quick in answering here... Apparently you have no idea what we are talking about.
The /patches directory in Slackware contains packages which have been upgraded after an official release, mostly security fixes. This has nothing to do with patches to source code.

Eric
 
  


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
Small grammatical correction to slackpkg script Gerard Lally Slackware 4 07-31-2013 08:05 AM
Need help with small C code modification beli0135 Programming 7 07-23-2010 06:20 AM
Suggestion: Modify /etc/slackpkg/blacklist samac Slackware 2 01-09-2010 03:36 PM
OS help / suggestion on a DSL (damn small linux) sir-lancealot Linux - General 0 11-19-2007 12:31 PM
Small network setup suggestion needed imag Linux - Networking 5 01-20-2006 05:28 AM

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

All times are GMT -5. The time now is 11:45 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