Re: [PATCH] build: enable maintainer mode
Mike Frysinger <[email protected]>
| Newsgroups | gmane.editors.nano.devel |
|---|---|
| Message-ID | <Yh7ML/7MpftbCMFi@vapier> |
On 01 Mar 2022 10:55, Benno Schulenberg wrote: > Op 26-02-2022 om 08:10 schreef Mike Frysinger: > > This disable regeneration of autotools by default (e.g. autoconf & > > automake) when running `make`. The few maintainers that want this > > can re-enable with `./configure --enable-maintainer-mode`. > > > +AM_MAINTAINER_MODE > > If I apply this patch, run make, and then apply your next patch and > run make, then nano gets miscompiled, because configure does not get > rebuilt and rerun, and thus HAVE_CHOWN and HAVE_FORK and such do not > get defined in config.h, so that several pieces of code do not get > included in the binary. I think this is wrong. I think the build > rules should do the right thing by default. Only if someone wants to > take shortcuts (to reduce the build time and risk misbuilds), they > should be able to run ./configure with --disable-maintainer-mode. this model makes sense when building from git, but can get into trouble when using releases when hitting timestamp skew. in general, forcing autotools to run from a release tarball is not a good default. > So would adding 'AM_MAINTAINER_MODE([enable])' work for you? if you want -mike
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmIezC8ACgkQQWM7n+g3 9YHvsxAAmZZmeMDDYRNrA0qk7YWUTFNP1IfCrhzv/aFzh0+8c44eVsWlybDlh5Ay 6kLJQ2F928b4Xg1GlgRbkWbxvBsgy3ZxHw66KPe1Z/V0x7drkJAinwE8Sf8HtMVn bNGaugDLksGbnC2hLpw7XGqSxCtrUx8SzBWI5baM38xIAc4KpvUnAW9j9YtFhlh7 xPzrLgb3BmHJ/LN8d4BeWdepZ3qgDgJx21NqV6Vl8gWXek3q1tzoArnZG55RDzrz XWs4qQYMELxJGNo5E8B6thotnR7+AIByb++KwTLCPlXKuIXDiI2jmenG/wLHCbNh wmkcO2HgfvKdPXdGR6sAZ8fFB9xaB/djku9E+CDgX94nqAPF+Z4iqelwEYwOjNr7 0iwPFDeZa44C9SfIAScVAgqVJUAQH+ryxeWOePofEARVsAOtfiyZDMB3ia6/P6Ao y2Qj20RO/1LnYtO2iy9wBvs9MFruP0OByJNCFvxhcRPhtldNxf5OzjINQCdghC7y RtEokvB8uJehAQHj2EdzxFWRFrbB8nUEyN5HjXuDN8P9roF8CCjNsN9SsycY+Pfi 4diX8sy0IZi6ncoreLYWumCFHSRVtkMtxmSAwTFbG4f0vdrTsZAZetOmHDXMo9PS VZeqQVMmSmtrLoVHvGBsqR5S82jAJ033SGbQduexzdHyLeZZXIw= =y2zI -----END PGP SIGNATURE-----