Bug 16036 - Build time paths get into smb.conf
Summary: Build time paths get into smb.conf
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.22.6
Hardware: All Solaris
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-18 12:06 UTC by Martin Rehak
Modified: 2026-03-18 12:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Rehak 2026-03-18 12:06:40 UTC
Hello,

I am getting 4 lines on Solaris into smb.conf.5:

$ grep mrehak usr/share/man/man5/smb.conf.5
\fI\fIdns update command\fR\fR\fI = \fR\fI/builds/mrehak/samba/components/samba/build/amd64/source4/scripting/bin/samba_dnsupdate\fR\fI \fR
\fI\fIgpo update command\fR\fR\fI = \fR\fI/builds/mrehak/samba/components/samba/build/amd64/source4/scripting/bin/samba\-gpupdate\fR\fI \fR
\fI\fIsamba kcc command\fR\fR\fI = \fR\fI/builds/mrehak/samba/components/samba/build/amd64/source4/scripting/bin/samba_kcc\fR\fI \fR
\fI\fIspn update command\fR\fR\fI = \fR\fI/builds/mrehak/samba/components/samba/build/amd64/source4/scripting/bin/samba_spnupdate\fR\fI \fR

The grep was run in prototype directory where samba is instructed to perform 'make install'.

This is the line I see in the build log:
Note: Writing smb.conf.5
...
make[1]: Leaving directory '/builds/mrehak/samba/components/samba/build/amd64'                                         
/usr/bin/touch /builds/mrehak/samba/components/samba/build/amd64/.built                                                
(cd /builds/mrehak/samba/components/samba/build/amd64 ; /usr/bin/env LD_OPTIONS="-M /usr/lib/ld/map.noexdata -M /usr/lib/ld/map.pagealign -Bdirect -zignore -zstrip-class=comment" LD_EXEC_OPTIONS="-ztype=pie -zsx=aslr=enable -zsx=nxstack=e
nable -zsx=nxheap=enable  -zctf=compress,ignore-non-c " LD_PIE_OPTIONS="-zsx=aslr=enable -zsx=nxstack=enable -zsx=nxhea
p=enable  -zctf=compress,ignore-non-c " LD_SHARED_OPTIONS="-ztext  -zctf=compress,ignore-non-c "  http_proxy= https_pro
xy= ftp_proxy= /usr/gnu/bin/make \                                                                                     
                 DESTDIR=/builds/mrehak/samba/components/samba/build/prototype/i386 install)                           make[1]: Entering directory '/builds/mrehak/samba/components/samba/build/amd64'                                        
PYTHONHASHSEED=1 WAF_MAKE=1  ./buildtools/bin/waf install                                                              
Waf: Entering directory `/builds/mrehak/samba/components/samba/build/amd64/bin/default'
...
+ install /builds/mrehak/samba/components/samba/build/prototype/i386/usr/share/man/man5/smb.conf.5 (from bin/default/docs-xml/manpages/smb.conf.5)

I have found some effort around this in Debian few years ago:
https://bugzilla.samba.org/show_bug.cgi?id=13198

I have commented out the SCRIPTSBINDIR in dynconfig/wscript and it works well now, but I think this is not a fix. Also I see the get_override() mechanism through which the build environment is getting there. So I assume the man page is either not get updated during install phase or there is something else wrong in the logic.

What am I doing wrong? What do you need from me to help you debug the issue and find the root cause, please?

Thank you,
m.