Neelakantan Kannappa (nkannapp)
2023-Mar-01 09:27 UTC
[Samba] How to build samba-debuginfo rpm from samaba source
Hi Samba team, Is there a command or a way to build samba-debuginfo rpm from the samba source. I have been through wiki.samba.org, but failed to find out. Explored the Makefile targets, even there I did not find the make target to build debuginfo package or RPM. Thanks in advance for your help. https://wiki.samba.org/index.php/Writing_a_Samba_VFS_Module -> this page mentions to install samba-debuginfo RPM, so I am trying to find the way to build that from samba source. Regards, Neelakantan K
Rowland Penny
2023-Mar-01 09:56 UTC
[Samba] How to build samba-debuginfo rpm from samaba source
On 01/03/2023 09:27, Neelakantan Kannappa (nkannapp) via samba wrote:> Hi Samba team, > > Is there a command or a way to build samba-debuginfo rpm from the samba source.I think you may be asking the wrong question, or asking in the wrong place. Samba does not produce any packages (rpm, deb etc) it just produces a tarball that can be compiled (by default into /usr/local/samba) and, if I remember correctly, you have to turn on the developer options at configure to get debug symbols. If you require instructions on how to build RPM's from the Samba code, then I suggest you ask your distro. Having said all that, why do you need them ? Perhaps if you explain why, we may be able to help in another way.> > I have been through wiki.samba.org, but failed to find out. > > Explored the Makefile targets, even there I did not find the make target to build debuginfo package or RPM.Samba uses WAF to build.> > Thanks in advance for your help. > > https://wiki.samba.org/index.php/Writing_a_Samba_VFS_Module -> this page mentions to install samba-debuginfo RPM, so I am trying to find the way to build that from samba source. > > Regards, > Neelakantan KRowland
Robert Marcano
2023-Mar-01 12:56 UTC
[Samba] How to build samba-debuginfo rpm from samaba source
On 3/1/23 5:27 AM, Neelakantan Kannappa (nkannapp) via samba wrote:> Hi Samba team, > > Is there a command or a way to build samba-debuginfo rpm from the samba source. > > I have been through wiki.samba.org, but failed to find out. > > Explored the Makefile targets, even there I did not find the make target to build debuginfo package or RPM. > > Thanks in advance for your help. > > https://wiki.samba.org/index.php/Writing_a_Samba_VFS_Module -> this page mentions to install samba-debuginfo RPM, so I am trying to find the way to build that from samba source. > > Regards, > Neelakantan KThe debuginfo packages are not a product of a Samba build scripts. It is built by rpmbuild (in modern distros by default) when you build an RPM. If you build Samba outside rpmbuild with debug information, that information remains attached to the resulting binaries. debuginfo packages are a a way to extract that debug information from the binaries and optionally install them in case of debugging a problem instead of having large binaries with all that information attached. If you use a Samba package from the distribution the debuginfo package should be on the repository.