1 |
As a possibly relevant side note, I've observed how api changes are handled |
2 |
in the linux kernel: |
3 |
|
4 |
You can change whatever you want if it's a good idea, but as part of |
5 |
proving it, you have to be willing to take over the warranty for anything |
6 |
you break. |
7 |
|
8 |
So basically you change what you please ONLY if you also take the burden of |
9 |
fixing everything that depended on what you screwed with. |
10 |
|
11 |
Is this how things are handled by gentoo as well? |
12 |
|
13 |
On Mon, Nov 16, 2015 at 11:19 PM, Michał Górny <mgorny@g.o> wrote: |
14 |
|
15 |
> On Mon, 16 Nov 2015 23:38:08 +0000 (UTC) |
16 |
> "Mike Pagano" <mpagano@g.o> wrote: |
17 |
> |
18 |
> > commit: aac24917ebe254a23990f0d7fff9f6f570b99d15 |
19 |
> > Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
20 |
> > AuthorDate: Mon Nov 16 23:37:55 2015 +0000 |
21 |
> > Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
22 |
> > CommitDate: Mon Nov 16 23:37:55 2015 +0000 |
23 |
> > URL: |
24 |
> https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aac24917 |
25 |
> > |
26 |
> > kernel-2.eclass: Fix for git-sources 4.4_rcX |
27 |
> > |
28 |
> > eclass/kernel-2.eclass | 4 ++-- |
29 |
> > 1 file changed, 2 insertions(+), 2 deletions(-) |
30 |
> > |
31 |
> > diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass |
32 |
> > index 0f47b8c..5a9ea9f 100644 |
33 |
> > --- a/eclass/kernel-2.eclass |
34 |
> > +++ b/eclass/kernel-2.eclass |
35 |
> > @@ -1079,9 +1079,9 @@ unipatch() { |
36 |
> > # https://bugs.gentoo.org/show_bug.cgi?id=507656 |
37 |
> # |
38 |
> > |
39 |
> #################################################################### |
40 |
> > if [[ ${PN} == "git-sources" ]] ; then |
41 |
> > - if [[ ${KV_MAJOR}${KV_PATCH} -ge 315 && |
42 |
> ${RELEASETYPE} == -rc ]] ; then |
43 |
> > + if [[ ${KV_MAJOR}.${KV_PATCH} > 3.15 && |
44 |
> ${RELEASETYPE} == -rc ]] ; then |
45 |
> |
46 |
> Don't do string comparison on numbers. It can fail randomly, |
47 |
> and teaches others who read it bad practices. For example, it would |
48 |
> fail when kernel reaches version 10 ;-P. |
49 |
> |
50 |
> Instead: |
51 |
> |
52 |
> [[ ${KV_MAJOR} -gt 3 || ( ${KV_MAJOR} -eq 3 && ${KV_PATCH} -gt 15 ) ]] |
53 |
> |
54 |
> > ebegin "Applying ${i/*\//} (-p1)" |
55 |
> > - if [ $(patch -p1 |
56 |
> --no-backup-if-mismatch -f < ${i} >> ${STDERR_T}) "$?" -eq 0 ]; then |
57 |
> > + if [ $(patch -p1 |
58 |
> --no-backup-if-mismatch -f < ${i} >> ${STDERR_T}) "$?" -le 2 ]; then |
59 |
> > eend 0 |
60 |
> > rm ${STDERR_T} |
61 |
> > break |
62 |
> > |
63 |
> |
64 |
> |
65 |
> |
66 |
> -- |
67 |
> Best regards, |
68 |
> Michał Górny |
69 |
> <http://dev.gentoo.org/~mgorny/> |
70 |
> |