Updating libopts

warning NOTE WELL: If autogen is upgraded on whimsy and another release of -stable is planned, that tarball will be using the new autogen! (Also note that this means that upgrading libopts means there will be a relatively short validation cycle, as we would tend to want to do this just before a new release of -stable, at the end of a -dev cycle.) I may have a solution to this - on whimsy I'll just run ../configure --prefix=/usr/local/gnu/autogen-X.Y.Z and if I need to use the older autogen for a -stable tarball we should be OK.

Fetch, build, and install the target version of autogen.

  • See if any of the following need to be updated:
  • Reconcile any autogen file overrides we have placed in sntp/ag-tpl/* .
  • cd sntp
  • tar xvzf `autoopts-config libsrc`
  • diff -ur libopts*  | grep '^Only' and look for things other than or SCCS.
  • bk rm -f any files that are no longer needed
  • copy over and bk add ... any new files
  • diff -ur libopts-* libopts | grep '^diff' and use that output to copy the updated files from libopts-whatever to libopts
  • Add the following to any updated libopts/


libopts.c:              $(BUILT_SOURCES)
  • bk ci -y'Updated to libopts-whatever' (is this the right place?)
  • run :run-autogen (this script is in ntp-dev as that's the only place we would ordinarily be updating libopts)
  • Make a note in the ChangeLog and check that in.

check it out, then:

  • ./build
  • cd A.whatever && make distcheck

Once any problems have been fixed and any changes have been checked in:

  • bk commit -y'Updated to AutoGen-1.2.3 and libopts-4.5.6'

Watch some of the perms on the generated files. This should not be a problem because the :run-autogen scripts does a chmod u+w . (Now that autogen supports the --writable option this should not be a problem at all.)

N.B.: If libopts is being updated the snapshot roll will need a make clean before it runs. ntp_configure_cache_version in may not do this for us...

This topic: Dev > WebHome > UpdatingLibopts
Topic revision: r18 - 2020-09-16 - 08:54:48 - HarlanStenn
SSL security by CAcert
Get the CAcert Root Certificate
This site is powered by the TWiki collaboration platform
IPv6 Ready
Copyright & 1999-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding the site? Send feedback