Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 626052 - net-nds/ypbind version bump required
Summary: net-nds/ypbind version bump required
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major with 1 vote (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: http://www.linux-nis.org/nis/ypbind-mt/
Whiteboard: Pending removal: 2018-02-04
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2017-07-24 15:27 UTC by peteru
Modified: 2018-03-11 10:43 UTC (History)
5 users (show)

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


Attachments
ypbind-2.4.ebuild (ypbind-2.4.ebuild,1.40 KB, text/plain)
2017-07-24 16:19 UTC, Pacho Ramos
Details
ypbind-2.4-systemd.patch (ypbind-2.4-systemd.patch,827 bytes, patch)
2017-07-24 16:20 UTC, Pacho Ramos
Details | Diff
ypbind-2.4-systemd.patch (ypbind-2.4-systemd.patch,758 bytes, patch)
2018-01-07 04:54 UTC, Matt Whitlock
Details | Diff
Corrected patch file (ypbind-2.4-systemd.patch,846 bytes, patch)
2018-01-09 21:16 UTC, Preston Crow
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description peteru 2017-07-24 15:27:46 UTC
Bug #595838 resulted in a major upgrade to yp-tools. Unfortunately that version is not compatible with the old version of ypbind and as a result this leaves Gentoo installations with broken NIS implementations.

I suggest that either all NIS packages (yp-tools, ypbind and ypserv) are updated at the same time or the new (and incompatible) yp-tools is masked for the time being.
Comment 1 peteru 2017-07-24 15:30:05 UTC
Upstream lists 2.4 as the current version: http://www.linux-nis.org/nis/ypbind-mt
Comment 2 Pacho Ramos gentoo-dev 2017-07-24 16:19:25 UTC
And this needs a new library :S
Comment 3 Pacho Ramos gentoo-dev 2017-07-24 16:19:47 UTC
Created attachment 486678 [details]
ypbind-2.4.ebuild
Comment 4 Pacho Ramos gentoo-dev 2017-07-24 16:20:05 UTC
Created attachment 486680 [details, diff]
ypbind-2.4-systemd.patch
Comment 5 Pacho Ramos gentoo-dev 2017-11-09 16:13:54 UTC
newer yp-tools went to stable because of glibc stabilization... and this is without maintainer and hard to bump... I would treeclean it then
Comment 6 Nick Bowler 2018-01-04 16:03:46 UTC
The current version of ypbind and ypserv in the tree are perfectly fine if we bring back yp-tools 2.x.  They don't need to be punted.

We only needed an update to yp-tools 2.14 to build against current glibc.  All that is required is to resurrect (and rename) the 2.12 ebuild and adjust SRC_URI to point to the new homepage.
Comment 7 Matt Whitlock 2018-01-07 04:54:58 UTC
Created attachment 513578 [details, diff]
ypbind-2.4-systemd.patch

@Pacho: Could you explain why you say this package is "hard to bump"? With a small fix in your systemd patch to support GCC 7 (by which "#if FOO" is invalid if FOO is undefined), your ypbind-2.4.ebuild builds fine on my system (USE=-systemd).
Comment 8 Preston Crow 2018-01-09 21:16:53 UTC
Created attachment 514024 [details, diff]
Corrected patch file

I was able to build and install with the ebuild attached to this bug, but the patch needed a tweak to work correctly without systemd.  I also needed to copy the three files:

/usr/portage/net-nds/ypbind/files/{ypbind.confd-r1,ypbind.initd,ypbind.service}

since I am building this from /usr/local/portage.

Of course, I also had to add a line to /etc/portage/package.unmask/package.unmask
=net-nds/ypbind-2.4

I see no reason not to put this in portage and unmask it, but I'm not an expert on such things.  As it is now, Gentoo simply doesn't work with NIS, which isn't really a good answer.
Comment 9 Preston Crow 2018-01-09 21:20:16 UTC
I'm running ypbind-2.4 with yp-tools-4.2.2-r1, and I'm not seeing any problems with the version differences between the two, so the version differences shouldn't be a blocking issue.
Comment 10 Nick Bowler 2018-01-09 22:40:02 UTC
(In reply to Preston Crow from comment #9)
> I'm running ypbind-2.4 with yp-tools-4.2.2-r1, and I'm not seeing any
> problems with the version differences between the two, so the version
> differences shouldn't be a blocking issue.

Well, those versions will work together, as they both support ypbind
protocol V3.

The only version incompatibility is self-inflicted by Gentoo's decision
to package yp-tools-4.x together with ypbind-1.x (the latter does not
support protocol V3).
Comment 11 Matt Whitlock 2018-01-10 00:02:48 UTC
(In reply to Preston Crow from comment #8)
> Created attachment 514024 [details, diff] [details, diff]
> Corrected patch file
> 
> I was able to build and install with the ebuild attached to this bug, but
> the patch needed a tweak to work correctly without systemd.

You forgot to call AC_SUBST(USE_SD_NOTIFY) in the "else" case of your AS_IF. Please see my corrected patch (attachment 513578 [details, diff]) for a version that handles this properly.
Comment 12 Konstantin Münning 2018-01-12 20:28:36 UTC
The new version of ypbind would also solve bug # 637502.

If a proxy maintainer is needed to expedite this, I could step in.
Comment 13 Pacho Ramos gentoo-dev 2018-01-13 19:44:44 UTC
CCing them then (for the three affected packages, that need to be coordinated)
Comment 14 Pacho Ramos gentoo-dev 2018-03-11 10:43:53 UTC
Removed from the tree