public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] Get back to gbp buildpackage command to prepare gbp source
@ 2023-01-05  6:07 Uladzimir Bely
  2023-01-05 11:27 ` Henning Schild
  2023-01-11  5:20 ` Uladzimir Bely
  0 siblings, 2 replies; 4+ messages in thread
From: Uladzimir Bely @ 2023-01-05  6:07 UTC (permalink / raw)
  To: isar-users

With removing stretch support we switched to `gbp export-orig` command
instead of `gbp buildpackage --git-ignore-new --git-builder=/bin/true`
one, since gbp versions in >= buster support this.

Unfortunately, this change makes other downstream layers change their
`GBP_EXTRA_OPTIONS` values in multiple recipes, e.g.:

`--git-(no-)pristine-tar` => `--(no-)pristine-tar`
`--git-upstream-branch=master` => `--upstream-branch=master`.

This creates too much inconvenience - we need to mention it in
RECIPE-API-CHANGELOG, use a different variable for `export-orig`
options, warn user if they still use old variable and, finally,
support both vars in Isar until all downstreams stop using old case.

It is not worth implementing all this stuff just for switching from
long 'buildpackage ...' to shorter 'export-orig ...' gbp subcommand

So, it's better to just revert a piece of "stretch removal" patch.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
 meta/classes/dpkg-gbp.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/dpkg-gbp.bbclass b/meta/classes/dpkg-gbp.bbclass
index f765eb9a..b1d7b240 100644
--- a/meta/classes/dpkg-gbp.bbclass
+++ b/meta/classes/dpkg-gbp.bbclass
@@ -9,13 +9,13 @@ S = "${WORKDIR}/git"
 
 PATCHTOOL ?= "git"
 
-GBP_EXTRA_OPTIONS ?= "--pristine-tar"
+GBP_EXTRA_OPTIONS ?= "--git-pristine-tar"
 
 SCHROOT_MOUNTS = "${WORKDIR}:${PP} ${GITDIR}:/home/.git-downloads"
 
 dpkg_runbuild_prepend() {
     sh -c "
         cd ${WORKDIR}/${PPS}
-        gbp export-orig ${GBP_EXTRA_OPTIONS}
+        gbp buildpackage --git-ignore-new --git-builder=/bin/true ${GBP_EXTRA_OPTIONS}
     "
 }
-- 
2.20.1

This replaces `Use GBP_EXPORT_ORIG_OPTIONS for dpg-gbp export command`
by switching to previous `gbp buildpackage` functionality.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Get back to gbp buildpackage command to prepare gbp source
  2023-01-05  6:07 [PATCH] Get back to gbp buildpackage command to prepare gbp source Uladzimir Bely
@ 2023-01-05 11:27 ` Henning Schild
  2023-01-06 12:20   ` Uladzimir Bely
  2023-01-11  5:20 ` Uladzimir Bely
  1 sibling, 1 reply; 4+ messages in thread
From: Henning Schild @ 2023-01-05 11:27 UTC (permalink / raw)
  To: Uladzimir Bely; +Cc: isar-users

LGTM

Am Thu,  5 Jan 2023 07:07:57 +0100
schrieb Uladzimir Bely <ubely@ilbers.de>:

> With removing stretch support we switched to `gbp export-orig` command
> instead of `gbp buildpackage --git-ignore-new --git-builder=/bin/true`
> one, since gbp versions in >= buster support this.
> 
> Unfortunately, this change makes other downstream layers change their
> `GBP_EXTRA_OPTIONS` values in multiple recipes, e.g.:
> 
> `--git-(no-)pristine-tar` => `--(no-)pristine-tar`
> `--git-upstream-branch=master` => `--upstream-branch=master`.
> 
> This creates too much inconvenience - we need to mention it in
> RECIPE-API-CHANGELOG, use a different variable for `export-orig`
> options, warn user if they still use old variable and, finally,
> support both vars in Isar until all downstreams stop using old case.
> 
> It is not worth implementing all this stuff just for switching from
> long 'buildpackage ...' to shorter 'export-orig ...' gbp subcommand
> 
> So, it's better to just revert a piece of "stretch removal" patch.
> 
> Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
> ---
>  meta/classes/dpkg-gbp.bbclass | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/classes/dpkg-gbp.bbclass
> b/meta/classes/dpkg-gbp.bbclass index f765eb9a..b1d7b240 100644
> --- a/meta/classes/dpkg-gbp.bbclass
> +++ b/meta/classes/dpkg-gbp.bbclass
> @@ -9,13 +9,13 @@ S = "${WORKDIR}/git"
>  
>  PATCHTOOL ?= "git"
>  
> -GBP_EXTRA_OPTIONS ?= "--pristine-tar"
> +GBP_EXTRA_OPTIONS ?= "--git-pristine-tar"
>  
>  SCHROOT_MOUNTS = "${WORKDIR}:${PP} ${GITDIR}:/home/.git-downloads"
>  
>  dpkg_runbuild_prepend() {
>      sh -c "
>          cd ${WORKDIR}/${PPS}
> -        gbp export-orig ${GBP_EXTRA_OPTIONS}
> +        gbp buildpackage --git-ignore-new --git-builder=/bin/true
> ${GBP_EXTRA_OPTIONS} "
>  }


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Get back to gbp buildpackage command to prepare gbp source
  2023-01-05 11:27 ` Henning Schild
@ 2023-01-06 12:20   ` Uladzimir Bely
  0 siblings, 0 replies; 4+ messages in thread
From: Uladzimir Bely @ 2023-01-06 12:20 UTC (permalink / raw)
  To: Henning Schild; +Cc: isar-users

[-- Attachment #1: Type: text/plain, Size: 2227 bytes --]

In the email from Thursday, 5 January 2023 14:27:14 +03 user Henning Schild 
wrote:
> LGTM
> 

Since this patch is a hotfix for previous patch and it is unlikely to break 
something, I would prefer to merge it to 'next' a bit faster than usually. 

What about Tue, 10 Jan, for example?

> Am Thu,  5 Jan 2023 07:07:57 +0100
> 
> schrieb Uladzimir Bely <ubely@ilbers.de>:
> > With removing stretch support we switched to `gbp export-orig` command
> > instead of `gbp buildpackage --git-ignore-new --git-builder=/bin/true`
> > one, since gbp versions in >= buster support this.
> > 
> > Unfortunately, this change makes other downstream layers change their
> > `GBP_EXTRA_OPTIONS` values in multiple recipes, e.g.:
> > 
> > `--git-(no-)pristine-tar` => `--(no-)pristine-tar`
> > `--git-upstream-branch=master` => `--upstream-branch=master`.
> > 
> > This creates too much inconvenience - we need to mention it in
> > RECIPE-API-CHANGELOG, use a different variable for `export-orig`
> > options, warn user if they still use old variable and, finally,
> > support both vars in Isar until all downstreams stop using old case.
> > 
> > It is not worth implementing all this stuff just for switching from
> > long 'buildpackage ...' to shorter 'export-orig ...' gbp subcommand
> > 
> > So, it's better to just revert a piece of "stretch removal" patch.
> > 
> > Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
> > ---
> > 
> >  meta/classes/dpkg-gbp.bbclass | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/meta/classes/dpkg-gbp.bbclass
> > b/meta/classes/dpkg-gbp.bbclass index f765eb9a..b1d7b240 100644
> > --- a/meta/classes/dpkg-gbp.bbclass
> > +++ b/meta/classes/dpkg-gbp.bbclass
> > @@ -9,13 +9,13 @@ S = "${WORKDIR}/git"
> > 
> >  PATCHTOOL ?= "git"
> > 
> > -GBP_EXTRA_OPTIONS ?= "--pristine-tar"
> > +GBP_EXTRA_OPTIONS ?= "--git-pristine-tar"
> > 
> >  SCHROOT_MOUNTS = "${WORKDIR}:${PP} ${GITDIR}:/home/.git-downloads"
> >  
> >  dpkg_runbuild_prepend() {
> >  
> >      sh -c "
> >      
> >          cd ${WORKDIR}/${PPS}
> > 
> > -        gbp export-orig ${GBP_EXTRA_OPTIONS}
> > +        gbp buildpackage --git-ignore-new --git-builder=/bin/true
> > ${GBP_EXTRA_OPTIONS} "
> > 
> >  }


[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Get back to gbp buildpackage command to prepare gbp source
  2023-01-05  6:07 [PATCH] Get back to gbp buildpackage command to prepare gbp source Uladzimir Bely
  2023-01-05 11:27 ` Henning Schild
@ 2023-01-11  5:20 ` Uladzimir Bely
  1 sibling, 0 replies; 4+ messages in thread
From: Uladzimir Bely @ 2023-01-11  5:20 UTC (permalink / raw)
  To: isar-users

In the email from Thursday, 5 January 2023 09:07:57 +03 user Uladzimir Bely 
wrote:
> With removing stretch support we switched to `gbp export-orig` command
> instead of `gbp buildpackage --git-ignore-new --git-builder=/bin/true`
> one, since gbp versions in >= buster support this.
> 
> Unfortunately, this change makes other downstream layers change their
> `GBP_EXTRA_OPTIONS` values in multiple recipes, e.g.:
> 
> `--git-(no-)pristine-tar` => `--(no-)pristine-tar`
> `--git-upstream-branch=master` => `--upstream-branch=master`.
> 
> This creates too much inconvenience - we need to mention it in
> RECIPE-API-CHANGELOG, use a different variable for `export-orig`
> options, warn user if they still use old variable and, finally,
> support both vars in Isar until all downstreams stop using old case.
> 
> It is not worth implementing all this stuff just for switching from
> long 'buildpackage ...' to shorter 'export-orig ...' gbp subcommand
> 
> So, it's better to just revert a piece of "stretch removal" patch.
> 
> Signed-off-by: Uladzimir Bely <ubely@ilbers.de>

Applied to next.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-01-11  5:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-05  6:07 [PATCH] Get back to gbp buildpackage command to prepare gbp source Uladzimir Bely
2023-01-05 11:27 ` Henning Schild
2023-01-06 12:20   ` Uladzimir Bely
2023-01-11  5:20 ` Uladzimir Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox