On a system built without NIS support, with no net-libs/libnsl & net-libs/rpcsvc-proto merged, samba is currently unable to build. The proposal is then to add a nis USE option to samba. Reproducible: Always Steps to Reproduce: 1. Build without NIS support, masking net-libs/libnsl and net-libs/rpcsvc-proto 2. Try to build net-fs/samba 3. Build fails Actual Results: samba is not able to build without USE nis set Expected Results: samba should be able to build without need of NIS
Created attachment 824577 [details] output from emerge --info =net-fs/samba-4.15.9-r1
Created attachment 824579 [details, diff] Ebuild patch to add a nis USE flag
Created attachment 824581 [details, diff] Patch adding a nis option to samba build system
(In reply to Jocelyn Mayer from comment #3) > Created attachment 824581 [details, diff] [details, diff] > Patch adding a nis option to samba build system Can you send it upstream please & link the MR here? Thanks.
Created attachment 824653 [details, diff] Updated patch for version 4.15.9 Since net-libs/libtirpc dependency has been added to this ebuild (long ago but after I first did patch the samba ebuild...), the configure system will use its headers from /usr/include/tirpc/rpcsvc to build when /usr/include/rpcsvc is not available without the need of a new option. Thus, the patch can be greatly simplified as the only need is to have rpcgen tool available, either by net-libs/rpcsvc-proto, old glibc or net-fs/nfs-utils.