1 |
On Mon, 2021-09-27 at 19:25 +0200, Ulrich Mueller wrote: |
2 |
> > > > > > On Sat, 25 Sep 2021, Michał Górny wrote: |
3 |
> |
4 |
> > > +EBZR="bzr.eclass" |
5 |
> |
6 |
> > Why do we need this? It seems as if someone is reinventing |
7 |
> > ${ECLASS}. |
8 |
> |
9 |
> Replaced by ${ECLASS}. |
10 |
> |
11 |
> > > +# @ECLASS-VARIABLE: EBZR_STORE_DIR |
12 |
> |
13 |
> > @USER_VARIABLE? |
14 |
> |
15 |
> Added. |
16 |
> |
17 |
> > > +# @DESCRIPTION: |
18 |
> > > +# The directory to store all fetched Bazaar live sources. |
19 |
> > > +: ${EBZR_STORE_DIR:=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/bzr- |
20 |
> > > src} |
21 |
> > > + |
22 |
> > > +# @ECLASS-VARIABLE: EBZR_UNPACK_DIR |
23 |
> > > +# @DESCRIPTION: |
24 |
> > > +# The working directory where the sources are copied to. |
25 |
> > > +: ${EBZR_UNPACK_DIR:=${WORKDIR}/${P}} |
26 |
> > > + |
27 |
> > > +# @ECLASS-VARIABLE: EBZR_INIT_REPO_CMD |
28 |
> > > +# @DESCRIPTION: |
29 |
> > > +# The Bazaar command to initialise a shared repository. |
30 |
> > > +: ${EBZR_INIT_REPO_CMD:="bzr init-repository --no-trees"} |
31 |
> > > + |
32 |
> > > +# @ECLASS-VARIABLE: EBZR_FETCH_CMD |
33 |
> > > +# @DESCRIPTION: |
34 |
> > > +# The Bazaar command to fetch the sources. |
35 |
> > > +: ${EBZR_FETCH_CMD:="bzr branch --no-tree"} |
36 |
> > > + |
37 |
> > > +# @ECLASS-VARIABLE: EBZR_UPDATE_CMD |
38 |
> > > +# @DESCRIPTION: |
39 |
> > > +# The Bazaar command to update the sources. |
40 |
> > > +: ${EBZR_UPDATE_CMD:="bzr pull --overwrite-tags"} |
41 |
> > > + |
42 |
> > > +# @ECLASS-VARIABLE: EBZR_EXPORT_CMD |
43 |
> > > +# @DESCRIPTION: |
44 |
> > > +# The Bazaar command to export a branch. |
45 |
> > > +: ${EBZR_EXPORT_CMD:="bzr export"} |
46 |
> > > + |
47 |
> > > +# @ECLASS-VARIABLE: EBZR_CHECKOUT_CMD |
48 |
> > > +# @DESCRIPTION: |
49 |
> > > +# The Bazaar command to checkout a branch. |
50 |
> > > +: ${EBZR_CHECKOUT_CMD:="bzr checkout --lightweight -q"} |
51 |
> > > + |
52 |
> > > +# @ECLASS-VARIABLE: EBZR_REVNO_CMD |
53 |
> > > +# @DESCRIPTION: |
54 |
> > > +# The Bazaar command to list a revision number of the branch. |
55 |
> > > +: ${EBZR_REVNO_CMD:="bzr revno"} |
56 |
> |
57 |
> > Are you sure that having these overrides is a good idea? |
58 |
> |
59 |
> Yes. Ebuilds had used them in the past. |
60 |
> |
61 |
> > Your followup patch pretty much proves that every ebuild redefining |
62 |
> > them would get broken by switch to breezy. |
63 |
> |
64 |
> The only one where syntax has changed is EBZR_INIT_REPO_CMD (which has |
65 |
> init-shared-repository instead of init-repository). |
66 |
|
67 |
You seem to be missing the fact that all of them hardcode "bzr". |
68 |
|
69 |
|
70 |
-- |
71 |
Best regards, |
72 |
Michał Górny |