Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 877429 - net-fs/samba-4.15.9-r1: make it able to build without NIS support
Summary: net-fs/samba-4.15.9-r1: make it able to build without NIS support
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-10-17 11:35 UTC by Jocelyn Mayer
Modified: 2022-10-18 05:33 UTC (History)
2 users (show)

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


Attachments
output from emerge --info =net-fs/samba-4.15.9-r1 (emerge_infos,25.11 KB, text/plain)
2022-10-17 11:36 UTC, Jocelyn Mayer
Details
Ebuild patch to add a nis USE flag (file_877429.txt,1.93 KB, patch)
2022-10-17 11:39 UTC, Jocelyn Mayer
Details | Diff
Patch adding a nis option to samba build system (file_877429.txt,1.25 KB, patch)
2022-10-17 11:41 UTC, Jocelyn Mayer
Details | Diff
Updated patch for version 4.15.9 (net-fs_samba_samba-4.15.9-r1.ebuild.patch,1.09 KB, patch)
2022-10-18 05:33 UTC, Jocelyn Mayer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jocelyn Mayer 2022-10-17 11:35:09 UTC
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
Comment 1 Jocelyn Mayer 2022-10-17 11:36:37 UTC
Created attachment 824577 [details]
output from emerge --info =net-fs/samba-4.15.9-r1
Comment 2 Jocelyn Mayer 2022-10-17 11:39:58 UTC
Created attachment 824579 [details, diff]
Ebuild patch to add a nis USE flag
Comment 3 Jocelyn Mayer 2022-10-17 11:41:18 UTC
Created attachment 824581 [details, diff]
Patch adding a nis option to samba build system
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-17 19:26:24 UTC
(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.
Comment 5 Jocelyn Mayer 2022-10-18 05:33:07 UTC
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.