LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-26-2016, 09:40 PM   #1
alex14641
Member
 
Registered: Feb 2016
Distribution: Slackware64_14.2, Slackware 15.0, Slackware64_current
Posts: 321

Rep: Reputation: Disabled
executables in yptools package installed in different directory from what's specified in /var/yp/Makefile


The executables are installed in /usr/lib64/yp, but the make file expects them to be in /usr/lib/yp. I noticed this when I tried to build the NIS databases. Any reason for the directory mismatch?
 
Old 04-27-2016, 01:10 AM   #2
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
This is a bug in Slackware64 that's been around for ages. I've reported it a long time ago, and I don't know why it hasn't been fixed yet. Here's a workaround:

Code:
# cd /usr/lib
# ln -s /usr/lib64/yp .
Cheers,

Niki
 
1 members found this post helpful.
Old 04-27-2016, 07:51 AM   #3
slacker1337
Member
 
Registered: Jun 2012
Location: Connecticut, USA
Distribution: Slackware
Posts: 148

Rep: Reputation: 40
I've seen the same issue and just modified /var/yp/Makefile at line 66 to read "YPBINDDIR = /usr/lib64/yp", but I've never been successful at actually getting yp to work, so take my advice at your own risk :P
 
Old 04-27-2016, 11:32 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
This is fixed in the latest update in current
 
Old 05-04-2016, 09:01 AM   #5
alex14641
Member
 
Registered: Feb 2016
Distribution: Slackware64_14.2, Slackware 15.0, Slackware64_current
Posts: 321

Original Poster
Rep: Reputation: Disabled
When upgrading yptools using slackpkg, I was not offered the option to overwrite the existing files with the .new files. Shouldn't I have been given that option?
 
Old 05-04-2016, 09:24 AM   #6
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
Quote:
Originally Posted by alex14641 View Post
When upgrading yptools using slackpkg, I was not offered the option to overwrite the existing files with the .new files. Shouldn't I have been given that option?
If the files have the same MD5 hash, doinst.sh will automatically delete the .new versions during the upgradepkg process. It will check the following new files to see if they match with the existing files. If they don't match, then the .new files will remain in place.

Code:
/etc/nsswitch.conf-nis.new
/etc/netgroup.new
/etc/yp.conf.new
/etc/rc.d/rc.yp.new
/var/yp/nicknames.new
/var/yp/Makefile.new
/var/yp/securenets.new
I am not familiar enough with slackpkg to know when it will prompt for config files. It might occur on any slackpkg upgrade [package-name] or it might only occur when running slackpkg upgrade-all.

Either way, you can verify whether those .new files exist by running slackpkg new-config at any time.
 
Old 05-04-2016, 08:06 PM   #7
alex14641
Member
 
Registered: Feb 2016
Distribution: Slackware64_14.2, Slackware 15.0, Slackware64_current
Posts: 321

Original Poster
Rep: Reputation: Disabled
I checked the file /usr/libexec/slackpkg/functions.d/post-functions.sh, which is run by slackpkg --new-config, and I noticed that only the /etc directory is searched for .new files: if I change the find command on line 125 from '... find /etc ..' to '... find /etc /var/yp ...', install-new then sees all the .new files in the yptools package.
 
1 members found this post helpful.
Old 05-05-2016, 12:23 PM   #8
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
Quote:
Originally Posted by alex14641 View Post
I checked the file /usr/libexec/slackpkg/functions.d/post-functions.sh, which is run by slackpkg --new-config, and I noticed that only the /etc directory is searched for .new files: if I change the find command on line 125 from '... find /etc ..' to '... find /etc /var/yp ...', install-new then sees all the .new files in the yptools package.
Good catch! Might be worth mentioning on the stickied "Requests for -current" thread. Otherwise these might be missed if people do the upgrades with slackpkg or just assume that all .new files only occur within /etc.
 
Old 05-09-2016, 07:50 PM   #9
alex14641
Member
 
Registered: Feb 2016
Distribution: Slackware64_14.2, Slackware 15.0, Slackware64_current
Posts: 321

Original Poster
Rep: Reputation: Disabled
The original issue in this thread has been resolved: YP/NIS is working. Marking this issue as Solved. Thanks all for the help.
 
  


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
Find which packages are installed when /var directory is deleted. RealUseR Linux - Desktop 3 02-03-2012 09:09 AM
No List of Package Database Installed in /var/log/packages - Slackware 13.37 Jimjax Slackware 21 12-31-2011 04:49 AM
automake, makefile.am, binary directory, both 32 bit and 64 bit executables? MrUmunhum Linux - Kernel 0 12-26-2011 04:47 PM
What to delete in /var dir if size of /var directory is 98%? manalisharmabe Linux - Newbie 6 10-15-2011 12:20 PM
How to patch some executables that are part of the binary rpm package ? sultf Linux - Newbie 1 03-03-2009 01:24 PM

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

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