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 01-10-2014, 09:35 AM   #1
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
[Request] Update dhcpcd


There is an update to dhcpcd and fixed the issue that makes it (dhcpcd) exit when a bonded ethernet link loses carrier even when the "-K (--nolink)" option is present. There are also other changes in this update.

See:

http://roy.marples.name/downloads/dh...-6.2.0.tar.bz2

http://www.linuxquestions.org/questi...on-4175485139/
 
Old 01-10-2014, 10:23 AM   #2
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
Quote:
Originally Posted by guanx View Post
There is an update to dhcpcd and fixed the issue that makes it (dhcpcd) exit when a bonded ethernet link loses carrier even when the "-K (--nolink)" option is present. There are also other changes in this update.

See:

http://roy.marples.name/downloads/dh...-6.2.0.tar.bz2

http://www.linuxquestions.org/questi...on-4175485139/
If you don't want to wait for the official update from Pat V, here's a little trick I learned a while back, and it'll at least get you up to date:

Let's use dhcpcd as an example.

I made a Downloads/ directory under /home, and in the Downloads directory, I made a SlackBuilds. Here I put all of my program subdirectories, either from an official slackware repository (I use http://slackware.osuosl.org), or from http://slackbuilds.org.

Make a 'dhcpcd' subdirectory under 'SlackBuilds', and then go here. If you use Firefox, go down the list (exclude the 'patches/' subdirectory, as the patches are already applied to 6.2.0), right-click on the file, and select 'Save Link As...'. In the dialog box that appears, navigate to the dhcpcd directory, and save it there. Repeat for every file.

Save (or move the file if you've already downloaded the file) to this directory as well. Run the following command to make the dhcpcd.SlackBuild file executable:

Code:
chmod +x dhcpcd.SlackBuild
Run this command also:

Code:
pico dhcpcd.SlackBuild
and comment out these commands:

Code:
#patch -p1 < $CWD/patches/Actually-validate-the-search-list.patch || exit 1
#patch -p1 < $CWD/patches/dhcpcd.conf-Don-t-invoke-wpa_supplicant-by-default.patch || exit 1
(As you can see, I've already commented them out).

Run the SlackBuild:

Code:
./dhcpcd.SlackBuild
and it will compile the new package.

You probably already know this, but for the sake of completeness (and for anyone else reading this post), I'll include it here. Issue this command to upgrade the resulting package:

Code:
upgradepkg /tmp/dhcpcd-6.2.0-x86_64-2.txz
And now you have the new package.

You can apply this method for any upgrades you wish to perform, and -current doesn't already have.

Hope this helps.

Regards,

Matt
 
Old 01-10-2014, 07:33 PM   #3
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Original Poster
Rep: Reputation: 233Reputation: 233Reputation: 233
Thanks Matt!

Yes I did this when discussing over this bug with the author of dhcpcd and, as mentioned in the second link in my original post, had the problem solved.
 
Old 01-10-2014, 11:32 PM   #4
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
Quote:
Originally Posted by guanx View Post
Thanks Matt!

Yes I did this when discussing over this bug with the author of dhcpcd and, as mentioned in the second link in my original post, had the problem solved.
You're welcome. I'm glad I could be of assistance.

Regards,

Matt
 
Old 01-10-2014, 11:44 PM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Quote:
#patch -p1 < $CWD/patches/dhcpcd.conf-Don-t-invoke-wpa_supplicant-by-default.patch || exit 1
That patch was added by rworkman so that dhcpcd-6.0.5 would not start wpa_supplicant. It needs updating to apply cleanly to dhcpcd-6.2.0.

I am also wondering whether there are other hook scripts in dhcpcd-6.2.0 that should not be run by default in Slackware.
Looking at the hook scripts in dhcpcd-5.6.6 (that I am currently using) there is:
Quote:
01-test
02-dump
10-mtu
20-resolv.conf
29-lookup-hostname
30-hostname
50-ntp.conf
50-yp.conf
and in dhcpcd-6.2.0 (new additions in bold) there is:
Quote:
01-test
02-dump
10-mtu
10-wpa_supplicant
15-timezone
20-resolv.conf
29-lookup-hostname
30-hostname
50-dhcpcd-compat
50-ntp.conf
50-yp.conf
50-ypbind
 
Old 01-11-2014, 08:33 AM   #6
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
You make a good point about wpa_supplicant. Perhaps that's why I couldn't browse the Internet after upgrading to 6.2.0 (and went back to the previous version, 6.0.5).
 
  


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
Package update request? alekow Gentoo 7 07-18-2012 08:40 AM
DDclient slack13 dhcpcd.sh vs dhcpcd.eth0.exe question nl1at Slackware 3 10-27-2010 01:51 PM
dhclient and dhcpcd broken after latest - current update em21701 Slackware 2 03-06-2010 10:02 AM
dhcpcd wireless problems. dhcpcd wlan0 removes essid entry in iwconfig. Romanus81 Slackware 3 08-25-2008 10:34 PM
Help request regarding update packages slackraz Linux - Newbie 3 04-02-2008 06:25 AM

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

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