LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Bug in Slackware64 version of yp-tools (https://www.linuxquestions.org/questions/slackware-14/bug-in-slackware64-version-of-yp-tools-890428/)

kikinovak 07-07-2011 08:48 AM

Bug in Slackware64 version of yp-tools
 
Hi,

The yp-tools have a bug in them in the 64bit-version. In the 32bit-version of Slackware, the various NIS tools are to be found in /usr/lib/yp/. In the 64bit-version, the tools are in /usr/lib64/yp, but some of the tools rely on other tools and try to find them in the wrong place, e. g. /usr/lib/yp.

A workaround is to create a /usr/lib/yp directory on the 64bit version and to symlink the tools from /usr/lib64/yp.

I don't know quite how to report this bug, so I post it here.

ponce 07-07-2011 09:36 AM

it could be useful if you post the names of the binaries/libraries that try to look for stuff in /usr/lib instead that /usr/lib64, or just post the full errors without the /ust/lib/yp symlink.

ponce 07-07-2011 11:44 PM

I got no NIS where to try this atm, but running this simple sed fixes things for you without the symlink?
Code:

sed -i -e "s|^YPBINDIR.*|YPBINDIR=/usr/lib64/yp|" /usr/lib64/yp/{ypinit,ypxfr_1perday,ypxfr_1perhour,ypxfr_2perday}
(found them with "grep usr\/lib /usr/lib64/yp/*", maybe naive, but should do ;) )

wildwizard 07-08-2011 03:30 AM

Looks like it can be fixed in the build by adding --libexecdir=/usr/lib64 to configure.

ponce 07-08-2011 04:09 AM

nice wildwizard :) I modified the slackbuild where it builds ypserv like this
Code:

--- yptools/yptools.SlackBuild.orig        2011-03-08 19:33:25.000000000 +0100
+++ yptools/yptools.SlackBuild        2011-07-08 09:10:19.928969470 +0200
@@ -201,6 +201,7 @@
 make clean
 ./configure \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
+  --libexecdir=/usr/lib${LIBDIRSUFFIX}/yp \
  --enable-fqdn \
  --enable-yppasswd \
  $ARCH-slackware-linux


wildwizard 07-08-2011 04:16 AM

Quote:

Originally Posted by ponce (Post 4408614)
nice wildwizard :) I modified the slackbuild where it builds ypserv like this

NB It is there twice, some bug with the build according to Pat's comments so you have to add it twice.

ponce 07-08-2011 04:28 AM

seems like in the second block it's enough: should be used by shell scripts for the YPBINDIR variable and the install location.

Alien Bob 07-08-2011 04:56 AM

I sent this patch to Pat earlier today:

Code:

--- yptools.SlackBuild.orig    2011-07-08 10:04:00.560251285 +0200
+++ yptools.SlackBuild  2011-07-08 10:05:14.891000923 +0200
@@ -190,6 +190,8 @@
 rm -rf ypserv-$YPSERV
 tar xvf $CWD/ypserv-$YPSERV.tar.bz2 || exit 1
 cd ypserv-$YPSERV || exit 1
+# Make it 64-bit clean:
+sed -i -e "s,lib/yp,lib${LIBDIRSUFFIX}/yp,g" configure
 # --with-ndbm=yes
 # Support for this was discontinued upstream
 # --enable-tcp-wrapper

That should fix it.

Eric

Edit: I think ponce's patch is cleaner... I did not see that before I wrote this.


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