[Samba] Building NTP RPM Fails on CentOS 6.3

Stephen Jones lloydsystems at fastmail.com.au
Wed Dec 12 17:23:37 MST 2012


I built ntp-4.2.6p5 on CentOS 6.3 for my Samba4 server.  The
instructions in the HowTo are not quite right (at least for CentOS). 
Make only the following changes to the ntp.spec file:
1.  Update the version/release numbers
2.  Comment out all 'patch' lines
3.  Add the '--enable-ntp-signd' option after '--enable-linuxcaps'
4.  Add the line '%{_sbindir}/sntp' after the '%{_ntptime}' line

Ignore the suggested edits related to 'man' entries or it will not
compile, as you have found.  With the above changes rpmbuild will work.
It seems in the latest version of the HowTo they have removed the
rpmbuild instructions altogether.


Stephen Jones
Lloyd Systems Engineering

On Thu, Dec 13, 2012, at 06:50 AM, Thomas Simmons wrote:
> Hello,
> I am trying to build an NTP v4.2.6p5 RPM using the instructions in the S4
> how-to, however rpmbuild fails with the following error:
> error: File not found by glob:
> /home/thomas/rpmbuild/BUILDROOT/ntp-4.2.6p5-2.el6.x86_64/usr/share/man/man8/ntpdtime.8*
> RPM build errors:
>     File not found by glob:
> /home/thomas/rpmbuild/BUILDROOT/ntp-4.2.6p5-2.el6.x86_64/usr/share/man/man8/ntpdtime.8*
> I have updated my ntp.spec by updating the version and commenting out all
> lines that begin with %patch. I have also made the following changes, as
> directed in the how-to. I assume the error is coming from the line
> addition
> "%{_mandir}/man8/ntpdtime.8*", however I'm not sure of the fix. It seems
> like that should be included in the source RPM?
> <       --enable-linuxcaps
> ---
> >       --enable-linuxcaps --enable-ntp-signd
> 330a331
> > %{_sbindir}/sntp
> 348,349c349,350
> < %{_mandir}/man8/ntptime.8*
> < %{_mandir}/man8/tickadj.8*
> ---
> > %{_mandir}/man8/ntpdtime.8*
> > #%{_mandir}/man8/tickadj.8*
> 355c356
> < %{_mandir}/man8/ntp-wait.8*
> ---
> > #%{_mandir}/man8/ntp-wait.8*
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba

More information about the samba mailing list