Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637502 - net-nds/yp-tools-4.2.2-r1 and net-nds/ypbind-1.37.2-r1 fails because the latter lacks protocol version 3 support
Summary: net-nds/yp-tools-4.2.2-r1 and net-nds/ypbind-1.37.2-r1 fails because the lat...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: Pending removal: 2018-02-04
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2017-11-14 16:52 UTC by Arth
Modified: 2018-03-11 10:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arth 2017-11-14 16:52:41 UTC
(See bug #371387.  This is *not* a dupe of this, but is a new bug caused by the fix for 371387.)

Summary:
net-nds/yp-tools >4.0.0 defaults to ypbind protocol v3.
The latest net-nds/ypbind available from Gentoo only supports v1 and v2.

This causes problems calling yptools utilities.
One example is that /etc/init.d/ypbind script fails if yp-tools is upgraded, because it attempts to do "ypwhich" for ten seconds or until it succeeds.  With the new yp-tools, ypwhich will fail with:
Error: unsupported version (-1) from ypbind on 'localhost'

(Or other server if not localhost)

This causes the init scripts to incorrectly believe that ypbind is not started, and e.g. a restart will not restart it.

I suggest either:
1: destabilize or mask >=net-nds/yp-tools-4.0.0 until a new and compatible net-nds/ypbind is made available.  Preferably mask, because this breaks existing systems because they won't be able to downgrade to 2.12 if upgrading, due to bug #371387.
2a: make <=net-nds/yp-tools-4.0.0 a prerequisite for net-nds/ypbind-2.12
2b: patch net-nds/ypbind-2.12 to comment out the #include <bits/libc-lock.h> line that prevents it from building with newer glibc.  

A quick-fix bandaid is to insert "-V 2" on the ypwhich line in /etc/init.d/ypbind, but that won't fix any other scripts that may call ypwhich or related utilities that now expect v3.  But at least it may help someone who runs ypbind and need to run restart on it.

Reproducible: Always

Steps to Reproduce:
1. emerge net-nds/ypbind net-nds/yp-tools
2. point /etc/yp.conf to a valid yp server
3. /etc/init.d/ypbind start

Actual Results:  
 * Starting ypbind ...
 * No NIS server found                                                    [ !! ]
 * ERROR: ypbind failed to start


Expected Results:  
 * Starting ypbind ...                                                    [ ok ]
Comment 1 Nick Bowler 2018-01-03 16:42:54 UTC
In the meantime please re-add yp-tools 2.x to the tree.  The latest 2.14 version builds fine on current stable glibc, and unlike the currently-stable yp-tools-4.2.2 the 2.x versions actually work as expected with current stable ypbind.
Comment 2 Konstantin Münning 2018-01-12 20:26:25 UTC
Same problem here. Please implement suggested changes and/or consider bug # 626052 which gives ebuild of current ypbind version.
Comment 3 Pacho Ramos gentoo-dev 2018-03-11 10:44:02 UTC
Removed from the tree