[ntp:hackers] Problem with autogen on Pogo?

Harlan Stenn stenn at ntp.org
Tue May 24 02:06:44 UTC 2016


Brian Utterback writes:
> This is a multi-part message in MIME format.
> --------------090300020800050409000302
> Content-Type: text/plain; charset=windows-1252; format=flowed
> Content-Transfer-Encoding: 7bit
> 
> On 5/23/2016 2:47 AM, Harlan Stenn wrote:
> > Brian,
> >
> > Your repo on psp-deb1 is working now.
> >
> > Here's what I did.
> >
> > I ran ./bootstrap to get your changes to configure.ac installed.  This
> > touched all of the other generated files to make sure they would not
> > *need" to be rebuilt.
> >
> > But you do need to regenerate some things, so I then touched:
> >
> >   ntpd/keyword-gen.c
> >   ntpd/ntp.conf.def
> >   ntpd/ntp_parser.y
> >
> > which were the 3 files you wanted to update.
> >
> > I ran 'make' and there was a complaint that sntp-opts.h was missing.
> > This was because your earlier build "deleted" it when there was an
> > error.
> >
> > So I did: bk unedit sntp/sntp-opts.h
> >
> > Then I ran 'make' as you, and it all built.
> >
> > H
> 
> Okay, so assuming all of the tools are working, what are the steps to 
> make this kind of change? Ypu said you ran make, in what directory did 
> you run it?

What I do is to make changes to autoconf/automake separately from any
changes to things like .y or other generated files, including keygen or
.def files or ... .  This may not be strictly necessary, but I find it
saves trouble when things go sideways.

I will usually change cofigure.ac or the m4 files used to build first,
then change the code, and change the parser stuff after that.

I run "make" in whatever A.hostname subdirectory I'm doing my testing.

And if new generated files are created, that means potential changes to
the bootstrap script.

H
--
> -- 
> Oracle <http://www.oracle.com>
> Brian Utterback | Principal Software Engineer
> Phone: +1 6038973049 <tel:+1%206038973049>
> Oracle Systems/RPE Solaris Network
> 1 Oracle Dr. | Nashua, NH 03062
> ------------------------------------------------------------------------
> All working systems eventually show their own agendas.
> ------------------------------------------------------------------------
> Green Oracle <http://www.oracle.com/commitment> Oracle is committed to 
> developing practices and products that help protect the environment
> 
> --------------090300020800050409000302
> Content-Type: text/html; charset=windows-1252
> Content-Transfer-Encoding: 7bit
> 
> <html>
>   <head>
>     <meta content="text/html; charset=windows-1252"
>       http-equiv="Content-Type">
>   </head>
>   <body bgcolor="#FFFFFF" text="#000000">
>     <div class="moz-cite-prefix">On 5/23/2016 2:47 AM, Harlan Stenn
>       wrote:<br>
>     </div>
>     <blockquote cite="mid:E1b4jee-000O1D-Bm at stenn.ntp.org" type="cite">
>       <pre wrap="">Brian,
> 
> Your repo on psp-deb1 is working now.
> 
> Here's what I did.
> 
> I ran ./bootstrap to get your changes to configure.ac installed.  This
> touched all of the other generated files to make sure they would not
> *need" to be rebuilt.
> 
> But you do need to regenerate some things, so I then touched:
> 
>  ntpd/keyword-gen.c
>  ntpd/ntp.conf.def
>  ntpd/ntp_parser.y
> 
> which were the 3 files you wanted to update.
> 
> I ran 'make' and there was a complaint that sntp-opts.h was missing.
> This was because your earlier build "deleted" it when there was an
> error.
> 
> So I did: bk unedit sntp/sntp-opts.h
> 
> Then I ran 'make' as you, and it all built.
> 
> H
> </pre>
>     </blockquote>
>     <br>
>     Okay, so assuming all of the tools are working, what are the steps
>     to make this kind of change? Ypu said you ran make, in what
>     directory did you run it? <br>
>     <br>
>     <div class="moz-signature">-- <br>
>       <a href="http://www.oracle.com" target="_blank"> <img
>           src="http://www.oracle.com/us/design/oracle-email-sig-198324-355094
> .jpg"
>           moz-do-not-send="true" alt="Oracle" border="0" height="26"
>           width="114"> </a><br>
>       <font size="2" color="#666666" face="Verdana, Arial, Helvetica,
>         sans-serif">Brian Utterback | Principal Software Engineer<br>
>         Phone: <a href="tel:+1%206038973049" moz-do-not-send="true">+1
>           6038973049</a> <br>
>         <font color="#ff0000">Oracle</font> Systems/RPE Solaris Network<br>
>         1 Oracle Dr. | Nashua, NH 03062</font> <br>
>       <hr> All working systems eventually show their own agendas.
>       <hr> <a href="http://www.oracle.com/commitment" target="_blank">
>         <img
>           src="http://www.oracle.com/us/design/green-sig-275518-355092.jpg"
>           moz-do-not-send="true" alt="Green Oracle" align="absmiddle"
>           border="0" height="28" width="44"> </a> <font size="1"
>         color="#4B7D42" face="Verdana, Arial, Helvetica, sans-serif">Oracle
>         is committed to developing practices and products that help
>         protect the environment</font></div>
>   </body>
> </html>
> 
> --------------090300020800050409000302--
> 


More information about the hackers mailing list