Il giorno dom, 19/02/2017 alle 21.17 -0700, Jeff Sadowski via samba ha scritto:> I was never able to build it in a wayI have rebuild samba from rpm source on Centos 7 (samba 4.4.4) and Fedora (samba 4.5.5) with this procedure:> > [lesca at dodo rpmbuild]$ cat rebuild.txt > # > > # Install Development ... > sudo yum -y groupinstall 'Development Tools' > # sudo dnf -y groupinstall 'Development Tools' # Fedora > > # Install yum/dnf utilitiy > sudo yum -y install rpm-build yum-utils createrepo > # sudo dnf -y install rpm-build yum-utils createrepo # Fedora > > # Download last samba source > # or download froma a centos mirror if vault don't work: http://bay.uchicago.edu/centos-vault/7.3.1611/ > yumdownloader --source samba > # dnf download --source samba # Fedora > > # Install samba source > rpm -ivh samba-4.*.src.rpm > > # Modify .spec file > sed -i \ > -e 's/%define main_release .*/&.1/' \ > -e 's/%global with_mitkrb5 1/%global with_mitkrb5 0/' \ > -e 's/%global with_dc 0/%global with_dc 1/' \ > /home/lesca/rpmbuild/SPECS/samba.spec > > # samba 4.5.x (Fedora) do also this.... > sed -i \ > -e 's|^%.*libntvfs-samba4.so|# &\n%{_libdir}/samba/bind9/dlz_bind9_11.so\n%{_libdir}/samba/ldb/dsdb_notification.so\n%{_libdir}/samba/ldb/vlv.so|' \ > /home/lesca/rpmbuild/SPECS/samba.spec > > # Install Build dependence > sudo yum install -y gnutls-devel > sudo yum-builddep -y ./rpmbuild/SPECS/samba.spec > # sudo dnf builddep -y ./rpmbuild/SPECS/samba.spec # Fedora > > # Rebuild samba ... > rpmbuild --without clustering -ba ./rpmbuild/SPECS/samba.spec > > # Create repository ... > createrepo ./rpmbuild/RPMS > > # Copy all in some public place ... > rsync -avzR --delete ./rpmbuild/./{RPMS,SRPMS} 10.11.12.1:/var/www/html/samba4/rpmbuild/ > > # Follow HowTo for deploy... >hope this help -- Dario Lesca (inviato dal mio Linux Fedora 25 Workstation)
On Mon, Feb 20, 2017 at 1:50 AM, Dario Lesca via samba < samba at lists.samba.org> wrote:> Il giorno dom, 19/02/2017 alle 21.17 -0700, Jeff Sadowski via samba ha > scritto: > > I was never able to build it in a way > > I have rebuild samba from rpm source on Centos 7 (samba 4.4.4) and > Fedora (samba 4.5.5) with this procedure: > > > > [lesca at dodo rpmbuild]$ cat rebuild.txt > > # > > > > # Install Development ... > > sudo yum -y groupinstall 'Development Tools' > > # sudo dnf -y groupinstall 'Development Tools' # Fedora > > > > # Install yum/dnf utilitiy > > sudo yum -y install rpm-build yum-utils createrepo > > # sudo dnf -y install rpm-build yum-utils createrepo # Fedora > > > > # Download last samba source > > # or download froma a centos mirror if vault don't work: > http://bay.uchicago.edu/centos-vault/7.3.1611/ > > yumdownloader --source samba > > # dnf download --source samba # Fedora > > > > # Install samba source > > rpm -ivh samba-4.*.src.rpm > > > > # Modify .spec file > > sed -i \ > > -e 's/%define main_release .*/&.1/' \ > > -e 's/%global with_mitkrb5 1/%global with_mitkrb5 0/' \ > > -e 's/%global with_dc 0/%global with_dc 1/' \ > > /home/lesca/rpmbuild/SPECS/samba.spec > > > > # samba 4.5.x (Fedora) do also this.... > > sed -i \ > > -e 's|^%.*libntvfs-samba4.so|# &\n%{_libdir}/samba/bind9/dlz_ > bind9_11.so\n%{_libdir}/samba/ldb/dsdb_notification.so\n%{_libdir}/samba/ldb/vlv.so|' > \ > > /home/lesca/rpmbuild/SPECS/samba.spec > > >Thank you. I think this was the part I was having the most issues with. It will also be helpful having everything I need installed like the rest of what you sent me has. Would rawhide be the best place to try this or should I back off to 25 or 26 (I think rawhide is beyond the breakpoint for 26)?> > # Install Build dependence > > sudo yum install -y gnutls-devel > > sudo yum-builddep -y ./rpmbuild/SPECS/samba.spec > > # sudo dnf builddep -y ./rpmbuild/SPECS/samba.spec # Fedora > > > > # Rebuild samba ... > > rpmbuild --without clustering -ba ./rpmbuild/SPECS/samba.spec > > > > # Create repository ... > > createrepo ./rpmbuild/RPMS > > > > # Copy all in some public place ... > > rsync -avzR --delete ./rpmbuild/./{RPMS,SRPMS} 10.11.12.1:/var/www/html/ > samba4/rpmbuild/ > > > > # Follow HowTo for deploy... > > > > hope this help > > -- > Dario Lesca > (inviato dal mio Linux Fedora 25 Workstation) > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Il giorno lun, 20/02/2017 alle 07.09 -0700, Jeff Sadowski via samba ha scritto:> > > sed -i \ > > > -e 's|^%.*libntvfs-samba4.so|# > > > &\n%{_libdir}/samba/bind9/dlz_ > > > > bind9_11.so\n%{_libdir}/samba/ldb/dsdb_notification.so\n%{_libdir}/ > > samba/ldb/vlv.so|' > > \ > > > /home/lesca/rpmbuild/SPECS/samba.spec > > > > > Thank you. I think this was the part I was having the most issues > with. > It will also be helpful having everything I need installed like the > rest of what you sent me has. > Would rawhide be the best place to try this or should I back off to > 25 or 26 (I think rawhide is beyond the breakpoint for 26)?This kind of change (add some new files to files session) comes from some my humble attempts to rebuild the package. I think this type of rebuild (with_mitkrb5 0 + with_dc 1) is not fully tested, and consequently the samba.spec files some times is non set property and aligned with the new feature included by samba team. Then I do not know which is the best place to put these changes, you can rebuild it on a your machine it would be helpful if the maintainer of samba.spec put into it an 'if dc' (or something like that) so the people do not have to edit the spec file every time but simply use, for example, a '--with_dc' option IMHO: If samba support Heimdal, samba must rebuilt in this way. Then, when the porting to MIT will be finished, People will decide if use Heimdal or MIT. In most cases, a samba server lives its own life and must not be integrated with other services or servers using MIT But this is my humble opinion Thanks. -- Dario Lesca (inviato dal mio Linux Fedora 25 Workstation)