Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 94579

Summary: New package: sys-libs/nsvs-20050326
Product: Gentoo Linux Reporter: Anthony Gorecki <anthony>
Component: New packagesAssignee: Luca Longinotti (RETIRED) <chtekk>
Status: RESOLVED FIXED    
Severity: enhancement CC: christian.skarby, kit, vivo
Priority: High Keywords: EBUILD
Version: 2005.0   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: sys-libs/nsvs-20050326.ebuild
files/nsvsd.rc-init
nsvs-20050531.ebuild
files/nsvsd.rc-init
nsvsd-allow_public_shadow_access.patch
reconnect.patch
nsvs-20060915.ebuild

Description Anthony Gorecki 2005-05-30 22:22:38 UTC
This package was designed by the author to obsolete sys-libs/libnss-mysql (the same author created both programs); I've found it to be vastly more efficient, more scalable and much faster.

The ebuild was extracted from the fssos-users mailing list, where I found it in a contribution thread. I've since modified it for bug fixes and general sanity. This is tested and working on a production system.
Comment 1 Anthony Gorecki 2005-05-30 22:23:13 UTC
Created attachment 60241 [details]
sys-libs/nsvs-20050326.ebuild
Comment 2 Anthony Gorecki 2005-05-30 22:23:55 UTC
Created attachment 60242 [details]
files/nsvsd.rc-init
Comment 3 Anthony Gorecki 2005-06-02 21:55:12 UTC
Sorry, the "need mysql" in the init script obviously needs to be enclosed within
a depend function. That must have been an older version of the script.
Comment 4 Anthony Gorecki 2005-06-14 21:04:41 UTC
Created attachment 61242 [details]
nsvs-20050531.ebuild
Comment 5 Anthony Gorecki 2005-06-14 21:05:24 UTC
Created attachment 61243 [details]
files/nsvsd.rc-init
Comment 6 Anthony Gorecki 2005-06-14 21:05:47 UTC
Created attachment 61244 [details, diff]
nsvsd-allow_public_shadow_access.patch
Comment 7 Anthony Gorecki 2005-06-14 21:07:23 UTC
The above files update the ebuild, fix the problem in comment #3, and include a
patch to bypass the shadow access restrictions for systems that don't use a
shadow-based authentication system.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-02-11 03:32:43 UTC
Fixing OS field...
Comment 9 Christian Skarby 2006-02-11 05:41:00 UTC
Created attachment 79493 [details, diff]
reconnect.patch

The mysql API changed in mysql-5.0.3 from automatically trying to reconnect and to not do this. Explicitly setting the reconnect flag after connect should ensurce compliance with earlier behavior.
Comment 10 Luca Longinotti (RETIRED) gentoo-dev 2006-09-30 07:51:03 UTC
I'll take a look soon at this to substiute an existing libnss-mysql install myself... :)
Best regards, CHTEKK.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-11-11 02:10:02 UTC
*** Bug 154774 has been marked as a duplicate of this bug. ***
Comment 12 Anton S. Ustyuzhanin 2006-11-11 06:13:43 UTC
Created attachment 101676 [details]
nsvs-20060915.ebuild
Comment 13 Anton S. Ustyuzhanin 2006-11-11 19:52:34 UTC
Who know when nsvs will appear in portage tree?
Comment 14 Anton S. Ustyuzhanin 2006-11-12 05:32:53 UTC
may be better to place this ebuild to sys-auth category, like libnss-mysql?
Comment 15 Luca Longinotti (RETIRED) gentoo-dev 2007-12-30 02:53:17 UTC
nsvs-20070407 is in the tree, that's the latest CVS snapshot (I made that one myself). I tested it and it seems to compile and work on amd64 and x86.
Best regards, CHTEKK.