* [PATCH] scripts: Make the crosstool-NG version an optional part of pkgversion @ 2011-10-17 3:40 Michael Hope 2011-10-18 16:20 ` Yann E. MORIN 0 siblings, 1 reply; 5+ messages in thread From: Michael Hope @ 2011-10-17 3:40 UTC (permalink / raw) To: Yann E. MORIN; +Cc: crossgcc # HG changeset patch # User Michael Hope <michael.hope@linaro.org> # Date 1317709748 -46800 # Node ID 931a96c7b84610c33a5535f574adf01df63d1a89 # Parent 5b157f46a3ab4830e4117811e9338e7d74d3a55d scripts: Make the crosstool-NG version an optional part of pkgversion. We use the pkgversion for the Linaro release name. This patch lets you turn off the automatic crosstool-NG@revno and just use the configured package version. Signed-off-by: Michael Hope <michael.hope@linaro.org> diff -r 5b157f46a3ab -r 931a96c7b846 config/toolchain.in --- a/config/toolchain.in Tue Oct 04 11:47:39 2011 +1300 +++ b/config/toolchain.in Tue Oct 04 19:29:08 2011 +1300 @@ -93,6 +93,13 @@ This is passed to the configure flag --with-pkgversion. +config TOOLCHAIN_PKGVERSION_WITH_CROSSTOOL + bool + prompt "Include the crosstool-NG version in the ID string" + default y + help + Include the crosstool-NG version in the package version string. + config TOOLCHAIN_BUGURL string prompt "Toolchain bug URL" diff -r 5b157f46a3ab -r 931a96c7b846 scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Tue Oct 04 11:47:39 2011 +1300 +++ b/scripts/crosstool-NG.sh.in Tue Oct 04 19:29:08 2011 +1300 @@ -154,7 +154,11 @@ CT_CC_EXTRA_CONFIG_ARRAY=( ${CT_ARCH_CC_EXTRA_CONFIG} "${CT_CC_EXTRA_CONFIG_ARRAY[@]}" ) # Compute the package version string -CT_PKGVERSION="crosstool-NG ${CT_VERSION}${CT_TOOLCHAIN_PKGVERSION:+ - ${CT_TOOLCHAIN_PKGVERSION}}" +if [ "${CT_TOOLCHAIN_PKGVERSION_WITH_CROSSTOOL}" = "y" ]; then + CT_PKGVERSION="crosstool-NG ${CT_VERSION}${CT_TOOLCHAIN_PKGVERSION:+ - ${CT_TOOLCHAIN_PKGVERSION}}" +else + CT_PKGVERSION="${CT_TOOLCHAIN_PKGVERSION}" +fi # Compute the working directories names CT_TARBALLS_DIR="${CT_WORK_DIR}/tarballs" -- For unsubscribe information see http://sourceware.org/lists.html#faq ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] scripts: Make the crosstool-NG version an optional part of pkgversion 2011-10-17 3:40 [PATCH] scripts: Make the crosstool-NG version an optional part of pkgversion Michael Hope @ 2011-10-18 16:20 ` Yann E. MORIN 2011-10-18 19:43 ` Michael Hope 0 siblings, 1 reply; 5+ messages in thread From: Yann E. MORIN @ 2011-10-18 16:20 UTC (permalink / raw) To: crossgcc; +Cc: Michael Hope Michael, All, On Monday 17 October 2011 05:39:47 Michael Hope wrote: > # HG changeset patch > # User Michael Hope <michael.hope@linaro.org> > # Date 1317709748 -46800 > # Node ID 931a96c7b84610c33a5535f574adf01df63d1a89 > # Parent 5b157f46a3ab4830e4117811e9338e7d74d3a55d > scripts: Make the crosstool-NG version an optional part of pkgversion. If I may ask, what is the reason you (Linaro) would not want to identify crosstool-NG in the pkgversion string? Would it be better if the crosstool-NG ID string was placed _after_ the custom string? > We use the pkgversion for the Linaro release name. This patch lets you > turn off the automatic crosstool-NG@revno and just use the configured > package version. Note that, for release, the 'revno' is replaced by the version string, so it is much shorter; that is, something like: crosstool-NG 1.12.4 > +config TOOLCHAIN_PKGVERSION_WITH_CROSSTOOL > + bool > + prompt "Include the crosstool-NG version in the ID string" > + default y > + help > + Include the crosstool-NG version in the package version string. If this was to make it in, I would add: depends on TOOLCHAIN_PKGVERSION != "" So there's at least one pkgversion string: - the crosstool-NG ID string - the crosstool-NG + the custom ID strings - the custom ID string OK for you? Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' -- For unsubscribe information see http://sourceware.org/lists.html#faq ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] scripts: Make the crosstool-NG version an optional part of pkgversion 2011-10-18 16:20 ` Yann E. MORIN @ 2011-10-18 19:43 ` Michael Hope 2011-10-18 21:02 ` Yann E. MORIN 0 siblings, 1 reply; 5+ messages in thread From: Michael Hope @ 2011-10-18 19:43 UTC (permalink / raw) To: Yann E. MORIN; +Cc: crossgcc On Wed, Oct 19, 2011 at 5:20 AM, Yann E. MORIN <yann.morin.1998@anciens.enib.fr> wrote: > Michael, All, > > On Monday 17 October 2011 05:39:47 Michael Hope wrote: >> # HG changeset patch >> # User Michael Hope <michael.hope@linaro.org> >> # Date 1317709748 -46800 >> # Node ID 931a96c7b84610c33a5535f574adf01df63d1a89 >> # Parent 5b157f46a3ab4830e4117811e9338e7d74d3a55d >> scripts: Make the crosstool-NG version an optional part of pkgversion. > > If I may ask, what is the reason you (Linaro) would not want to identify > crosstool-NG in the pkgversion string? Just brevity. We set the Linaro release as the default package version, so for source builds you get a string like: gcc (Linaro GCC 4.6-2011.09) 4.6.2 20110908 (prerelease) For binary builds I was planning on using a pkgversion like 'Linaro GCC 4.6-2011.09+bin1' to show the particular build script release used to make the binary. We need to identify the build scripts to fully meet the terms of the GPL. > Would it be better if the crosstool-NG ID string was placed _after_ the > custom string? Yeah, that would be fine. >> We use the pkgversion for the Linaro release name. This patch lets you >> turn off the automatic crosstool-NG@revno and just use the configured >> package version. > > Note that, for release, the 'revno' is replaced by the version string, > so it is much shorter; that is, something like: > crosstool-NG 1.12.4 > >> +config TOOLCHAIN_PKGVERSION_WITH_CROSSTOOL >> + bool >> + prompt "Include the crosstool-NG version in the ID string" >> + default y >> + help >> + Include the crosstool-NG version in the package version string. > > If this was to make it in, I would add: > depends on TOOLCHAIN_PKGVERSION != "" > > So there's at least one pkgversion string: > - the crosstool-NG ID string > - the crosstool-NG + the custom ID strings > - the custom ID string > > OK for you? I'd like to withdraw the patch for now and think about it some more. Linaro work upstream, but no matter what we'll end up with a branch for patches that aren't upstreamable. Therefore a name like 'Linaro GCC yyyy.mm + crosstool-NG r12345' isn't true as it's not crosstool-NG r12345, but r12345 of our branch. -- Michael -- For unsubscribe information see http://sourceware.org/lists.html#faq ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] scripts: Make the crosstool-NG version an optional part of pkgversion 2011-10-18 19:43 ` Michael Hope @ 2011-10-18 21:02 ` Yann E. MORIN 2011-10-18 22:46 ` Michael Hope 0 siblings, 1 reply; 5+ messages in thread From: Yann E. MORIN @ 2011-10-18 21:02 UTC (permalink / raw) To: crossgcc; +Cc: Michael Hope Michael, All, On Tuesday 18 October 2011 21:43:19 Michael Hope wrote: > On Wed, Oct 19, 2011 at 5:20 AM, Yann E. MORIN > <yann.morin.1998@anciens.enib.fr> wrote: > > Michael, All, > > > > On Monday 17 October 2011 05:39:47 Michael Hope wrote: > >> # HG changeset patch > >> # User Michael Hope <michael.hope@linaro.org> > >> # Date 1317709748 -46800 > >> # Node ID 931a96c7b84610c33a5535f574adf01df63d1a89 > >> # Parent 5b157f46a3ab4830e4117811e9338e7d74d3a55d > >> scripts: Make the crosstool-NG version an optional part of pkgversion. > > > > If I may ask, what is the reason you (Linaro) would not want to identify > > crosstool-NG in the pkgversion string? > > Just brevity. We set the Linaro release as the default package > version, so for source builds you get a string like: > gcc (Linaro GCC 4.6-2011.09) 4.6.2 20110908 (prerelease) > > For binary builds I was planning on using a pkgversion like 'Linaro > GCC 4.6-2011.09+bin1' to show the particular build script release used > to make the binary. We need to identify the build scripts to fully > meet the terms of the GPL. > > > Would it be better if the crosstool-NG ID string was placed _after_ the > > custom string? > > Yeah, that would be fine. > > >> We use the pkgversion for the Linaro release name. This patch lets you > >> turn off the automatic crosstool-NG@revno and just use the configured > >> package version. > > > > Note that, for release, the 'revno' is replaced by the version string, > > so it is much shorter; that is, something like: > > crosstool-NG 1.12.4 > > > >> +config TOOLCHAIN_PKGVERSION_WITH_CROSSTOOL > >> + bool > >> + prompt "Include the crosstool-NG version in the ID string" > >> + default y > >> + help > >> + Include the crosstool-NG version in the package version string. > > > > If this was to make it in, I would add: > > depends on TOOLCHAIN_PKGVERSION != "" > > > > So there's at least one pkgversion string: > > - the crosstool-NG ID string > > - the crosstool-NG + the custom ID strings > > - the custom ID string > > > > OK for you? > > I'd like to withdraw the patch for now and think about it some more. > Linaro work upstream, but no matter what we'll end up with a branch > for patches that aren't upstreamable. Therefore a name like 'Linaro > GCC yyyy.mm + crosstool-NG r12345' isn't true as it's not crosstool-NG > r12345, but r12345 of our branch. OK, after a little talk on IRC, it seems there may have been some confusion in what I said above. IANAL and all, what follows is not legal advice, but I'll try to make it clear: There is *no* requirement that "crosstool-NG" appears in the pkgversion. I never said that. That would be a restriction, and thus a violation of the GPL, and crosstool-NG is GPLv2. So, it is *absolutely not* mandatory to include "crosstool-NG" in the pkgversion. I just said that I would prefer that the _stock_ crosstool-NG, as released on the crosstool-ng.org website, always incorporate "crosstool-NG" in the pkgversion string. But, anyone who downloads crosstool-NG, is free to tweak it so that the pkgversion doe not include "crosstool-NG", _provided_ the licenses, of crosstool-NG itself, and the other tools used in the toolchain, are complied with. Again, the above is not legal advice. Talk to your lawyers! ;-) I just wanted to make that clear. Sorry for the noise... Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' -- For unsubscribe information see http://sourceware.org/lists.html#faq ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] scripts: Make the crosstool-NG version an optional part of pkgversion 2011-10-18 21:02 ` Yann E. MORIN @ 2011-10-18 22:46 ` Michael Hope 0 siblings, 0 replies; 5+ messages in thread From: Michael Hope @ 2011-10-18 22:46 UTC (permalink / raw) To: Yann E. MORIN; +Cc: crossgcc On Wed, Oct 19, 2011 at 10:02 AM, Yann E. MORIN <yann.morin.1998@anciens.enib.fr> wrote: > Michael, All, > > On Tuesday 18 October 2011 21:43:19 Michael Hope wrote: >> On Wed, Oct 19, 2011 at 5:20 AM, Yann E. MORIN >> <yann.morin.1998@anciens.enib.fr> wrote: >> > Michael, All, >> > >> > On Monday 17 October 2011 05:39:47 Michael Hope wrote: >> >> # HG changeset patch >> >> # User Michael Hope <michael.hope@linaro.org> >> >> # Date 1317709748 -46800 >> >> # Node ID 931a96c7b84610c33a5535f574adf01df63d1a89 >> >> # Parent 5b157f46a3ab4830e4117811e9338e7d74d3a55d >> >> scripts: Make the crosstool-NG version an optional part of pkgversion. >> > >> > If I may ask, what is the reason you (Linaro) would not want to identify >> > crosstool-NG in the pkgversion string? >> >> Just brevity. We set the Linaro release as the default package >> version, so for source builds you get a string like: >> gcc (Linaro GCC 4.6-2011.09) 4.6.2 20110908 (prerelease) >> >> For binary builds I was planning on using a pkgversion like 'Linaro >> GCC 4.6-2011.09+bin1' to show the particular build script release used >> to make the binary. We need to identify the build scripts to fully >> meet the terms of the GPL. >> >> > Would it be better if the crosstool-NG ID string was placed _after_ the >> > custom string? >> >> Yeah, that would be fine. >> >> >> We use the pkgversion for the Linaro release name. This patch lets you >> >> turn off the automatic crosstool-NG@revno and just use the configured >> >> package version. >> > >> > Note that, for release, the 'revno' is replaced by the version string, >> > so it is much shorter; that is, something like: >> > crosstool-NG 1.12.4 >> > >> >> +config TOOLCHAIN_PKGVERSION_WITH_CROSSTOOL >> >> + bool >> >> + prompt "Include the crosstool-NG version in the ID string" >> >> + default y >> >> + help >> >> + Include the crosstool-NG version in the package version string. >> > >> > If this was to make it in, I would add: >> > depends on TOOLCHAIN_PKGVERSION != "" >> > >> > So there's at least one pkgversion string: >> > - the crosstool-NG ID string >> > - the crosstool-NG + the custom ID strings >> > - the custom ID string >> > >> > OK for you? >> >> I'd like to withdraw the patch for now and think about it some more. >> Linaro work upstream, but no matter what we'll end up with a branch >> for patches that aren't upstreamable. Therefore a name like 'Linaro >> GCC yyyy.mm + crosstool-NG r12345' isn't true as it's not crosstool-NG >> r12345, but r12345 of our branch. > > OK, after a little talk on IRC, it seems there may have been some > confusion in what I said above. > > IANAL and all, what follows is not legal advice, but I'll try to make it > clear: > > There is *no* requirement that "crosstool-NG" appears in the pkgversion. > I never said that. That would be a restriction, and thus a violation of > the GPL, and crosstool-NG is GPLv2. So, it is *absolutely not* mandatory > to include "crosstool-NG" in the pkgversion. > > I just said that I would prefer that the _stock_ crosstool-NG, as released > on the crosstool-ng.org website, always incorporate "crosstool-NG" in the > pkgversion string. > > But, anyone who downloads crosstool-NG, is free to tweak it so that the > pkgversion doe not include "crosstool-NG", _provided_ the licenses, of > crosstool-NG itself, and the other tools used in the toolchain, are > complied with. > > Again, the above is not legal advice. Talk to your lawyers! ;-) > > I just wanted to make that clear. Sorry for the noise... Agreed. The GPLv2 includes the phrase "plus the scripts used to control compilation and installation of the executable". This can be read as "if you distribute a binary build of GCC then you also have to make the build scripts available". Having 'crosstool' in the pkgversion is a nice reminder of the obligation. -- Michael -- For unsubscribe information see http://sourceware.org/lists.html#faq ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-10-18 22:46 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-10-17 3:40 [PATCH] scripts: Make the crosstool-NG version an optional part of pkgversion Michael Hope 2011-10-18 16:20 ` Yann E. MORIN 2011-10-18 19:43 ` Michael Hope 2011-10-18 21:02 ` Yann E. MORIN 2011-10-18 22:46 ` Michael Hope
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).