diff mbox

configure: disconnect API version with SO version

Message ID 1459364898-22876-1-git-send-email-anders.roxell@linaro.org
State Accepted
Commit 972f47f4672cb30f0cb50a3ddfc0ced69eb27729
Headers show

Commit Message

Anders Roxell March 30, 2016, 7:08 p.m. UTC
We used to force applications to rebuild when a ODP released a new
version that changed one of the first two digits. That shouldn't be
needed if we use the SO-verson as it is intended to be used.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 .so_version      | 1 +
 Makefile.am      | 2 +-
 configure.ac     | 3 +--
 scripts/builddeb | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
 create mode 100644 .so_version

Comments

Ricardo Salveti March 30, 2016, 7:26 p.m. UTC | #1
On Wed, Mar 30, 2016 at 4:08 PM, Anders Roxell <anders.roxell@linaro.org> wrote:
> We used to force applications to rebuild when a ODP released a new
> version that changed one of the first two digits. That shouldn't be
> needed if we use the SO-verson as it is intended to be used.

Disconnecting the project version/releases with the SO-version is
probably a good thing to do as we have monthly releases for ODP.

Not expecting the disconnection so soon because the ABI is constantly
changed, but this will at least allow consumers to avoid rebuilding
their software when it's not really required.

We just need to be a bit more careful when doing releases if this gets
merged, since it is one more thing to check and update.

> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
>  .so_version      | 1 +
>  Makefile.am      | 2 +-
>  configure.ac     | 3 +--
>  scripts/builddeb | 2 +-
>  4 files changed, 4 insertions(+), 4 deletions(-)
>  create mode 100644 .so_version
>
> diff --git a/.so_version b/.so_version
> new file mode 100644
> index 0000000..dfa6588
> --- /dev/null
> +++ b/.so_version
> @@ -0,0 +1 @@
> +108:0:0
> diff --git a/Makefile.am b/Makefile.am
> index 2129472..a90eb91 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -17,4 +17,4 @@ SUBDIRS = @platform_with_platform@ \
>
>  @DX_RULES@
>
> -EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README .scmversion
> +EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README .scmversion .so_version
> diff --git a/configure.ac b/configure.ac
> index c8fb91e..e2e18e8 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -63,8 +63,7 @@ AC_SUBST([ARCH])
>  ##########################################################################
>  # Set correct platform library version
>  ##########################################################################
> -AGE=0
> -ODP_LIBSO_VERSION=$(echo $VERSION.$AGE | awk -F . '{printf("%d:%d:%d\n", (($1 * 100) + $2), $3, $4)}')
> +ODP_LIBSO_VERSION=$(cat ./.so_version)
>  AC_SUBST(ODP_LIBSO_VERSION)
>
>  ##########################################################################
> diff --git a/scripts/builddeb b/scripts/builddeb
> index 8bde7cf..b832df6 100755
> --- a/scripts/builddeb
> +++ b/scripts/builddeb
> @@ -20,7 +20,7 @@ fi
>  pushd ${ROOT_DIR}/${package}-${version}
>  cp -r ${ROOT_DIR}/pkg/debian .
>
> -current=$(echo ${version} | awk -F . '{printf("%d\n", (($1 * 100) + $2))}')
> +current=$(cat .so_version |awk -F : '{print $1}')
>  rename 's,(.*linux)(.*),${1}'"${current}"'${2},' debian/*odp*-linux.install
>
>  sed -i "s:\(libodp[a-zA-Z\-]\+linux\)\(-dbg\|$\| \):\1${current}\2:g" debian/control
> --
> 2.1.4

Should we break this into 2 separated patches? Might be probably good
to change builddeb in a separated patch.

Thanks,
Anders Roxell March 30, 2016, 7:38 p.m. UTC | #2
On 30 March 2016 at 21:26, Ricardo Salveti <ricardo.salveti@linaro.org> wrote:
> On Wed, Mar 30, 2016 at 4:08 PM, Anders Roxell <anders.roxell@linaro.org> wrote:
>> We used to force applications to rebuild when a ODP released a new
>> version that changed one of the first two digits. That shouldn't be
>> needed if we use the SO-verson as it is intended to be used.
>
> Disconnecting the project version/releases with the SO-version is
> probably a good thing to do as we have monthly releases for ODP.
>
> Not expecting the disconnection so soon because the ABI is constantly
> changed, but this will at least allow consumers to avoid rebuilding
> their software when it's not really required.
>
> We just need to be a bit more careful when doing releases if this gets
> merged, since it is one more thing to check and update.

Yes, but we should already be careful when doing releases. =)

>
>> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
>> ---
>>  .so_version      | 1 +
>>  Makefile.am      | 2 +-
>>  configure.ac     | 3 +--
>>  scripts/builddeb | 2 +-
>>  4 files changed, 4 insertions(+), 4 deletions(-)
>>  create mode 100644 .so_version
>>
>> diff --git a/.so_version b/.so_version
>> new file mode 100644
>> index 0000000..dfa6588
>> --- /dev/null
>> +++ b/.so_version
>> @@ -0,0 +1 @@
>> +108:0:0
>> diff --git a/Makefile.am b/Makefile.am
>> index 2129472..a90eb91 100644
>> --- a/Makefile.am
>> +++ b/Makefile.am
>> @@ -17,4 +17,4 @@ SUBDIRS = @platform_with_platform@ \
>>
>>  @DX_RULES@
>>
>> -EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README .scmversion
>> +EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README .scmversion .so_version
>> diff --git a/configure.ac b/configure.ac
>> index c8fb91e..e2e18e8 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -63,8 +63,7 @@ AC_SUBST([ARCH])
>>  ##########################################################################
>>  # Set correct platform library version
>>  ##########################################################################
>> -AGE=0
>> -ODP_LIBSO_VERSION=$(echo $VERSION.$AGE | awk -F . '{printf("%d:%d:%d\n", (($1 * 100) + $2), $3, $4)}')
>> +ODP_LIBSO_VERSION=$(cat ./.so_version)
>>  AC_SUBST(ODP_LIBSO_VERSION)
>>
>>  ##########################################################################
>> diff --git a/scripts/builddeb b/scripts/builddeb
>> index 8bde7cf..b832df6 100755
>> --- a/scripts/builddeb
>> +++ b/scripts/builddeb
>> @@ -20,7 +20,7 @@ fi
>>  pushd ${ROOT_DIR}/${package}-${version}
>>  cp -r ${ROOT_DIR}/pkg/debian .
>>
>> -current=$(echo ${version} | awk -F . '{printf("%d\n", (($1 * 100) + $2))}')
>> +current=$(cat .so_version |awk -F : '{print $1}')
>>  rename 's,(.*linux)(.*),${1}'"${current}"'${2},' debian/*odp*-linux.install
>>
>>  sed -i "s:\(libodp[a-zA-Z\-]\+linux\)\(-dbg\|$\| \):\1${current}\2:g" debian/control
>> --
>> 2.1.4
>
> Should we break this into 2 separated patches? Might be probably good
> to change builddeb in a separated patch.

if we break it into two patches we can't guarantee to be "debian bisectable"

Cheers,
Anders
Bill Fischofer March 30, 2016, 9:14 p.m. UTC | #3
This would seem to have the same level of impact as the planned rename of
linux-generic to odp-linux. Can we stage this so that it is effective with
the official Monarch release since that's our first intended Long Term
Stable (LTS) release?

On Wed, Mar 30, 2016 at 2:38 PM, Anders Roxell <anders.roxell@linaro.org>
wrote:

> On 30 March 2016 at 21:26, Ricardo Salveti <ricardo.salveti@linaro.org>

> wrote:

> > On Wed, Mar 30, 2016 at 4:08 PM, Anders Roxell <anders.roxell@linaro.org>

> wrote:

> >> We used to force applications to rebuild when a ODP released a new

> >> version that changed one of the first two digits. That shouldn't be

> >> needed if we use the SO-verson as it is intended to be used.

> >

> > Disconnecting the project version/releases with the SO-version is

> > probably a good thing to do as we have monthly releases for ODP.

> >

> > Not expecting the disconnection so soon because the ABI is constantly

> > changed, but this will at least allow consumers to avoid rebuilding

> > their software when it's not really required.

> >

> > We just need to be a bit more careful when doing releases if this gets

> > merged, since it is one more thing to check and update.

>

> Yes, but we should already be careful when doing releases. =)

>

> >

> >> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

> >> ---

> >>  .so_version      | 1 +

> >>  Makefile.am      | 2 +-

> >>  configure.ac     | 3 +--

> >>  scripts/builddeb | 2 +-

> >>  4 files changed, 4 insertions(+), 4 deletions(-)

> >>  create mode 100644 .so_version

> >>

> >> diff --git a/.so_version b/.so_version

> >> new file mode 100644

> >> index 0000000..dfa6588

> >> --- /dev/null

> >> +++ b/.so_version

> >> @@ -0,0 +1 @@

> >> +108:0:0

> >> diff --git a/Makefile.am b/Makefile.am

> >> index 2129472..a90eb91 100644

> >> --- a/Makefile.am

> >> +++ b/Makefile.am

> >> @@ -17,4 +17,4 @@ SUBDIRS = @platform_with_platform@ \

> >>

> >>  @DX_RULES@

> >>

> >> -EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README .scmversion

> >> +EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README

> .scmversion .so_version

> >> diff --git a/configure.ac b/configure.ac

> >> index c8fb91e..e2e18e8 100644

> >> --- a/configure.ac

> >> +++ b/configure.ac

> >> @@ -63,8 +63,7 @@ AC_SUBST([ARCH])

> >>

> ##########################################################################

> >>  # Set correct platform library version

> >>

> ##########################################################################

> >> -AGE=0

> >> -ODP_LIBSO_VERSION=$(echo $VERSION.$AGE | awk -F .

> '{printf("%d:%d:%d\n", (($1 * 100) + $2), $3, $4)}')

> >> +ODP_LIBSO_VERSION=$(cat ./.so_version)

> >>  AC_SUBST(ODP_LIBSO_VERSION)

> >>

> >>

> ##########################################################################

> >> diff --git a/scripts/builddeb b/scripts/builddeb

> >> index 8bde7cf..b832df6 100755

> >> --- a/scripts/builddeb

> >> +++ b/scripts/builddeb

> >> @@ -20,7 +20,7 @@ fi

> >>  pushd ${ROOT_DIR}/${package}-${version}

> >>  cp -r ${ROOT_DIR}/pkg/debian .

> >>

> >> -current=$(echo ${version} | awk -F . '{printf("%d\n", (($1 * 100) +

> $2))}')

> >> +current=$(cat .so_version |awk -F : '{print $1}')

> >>  rename 's,(.*linux)(.*),${1}'"${current}"'${2},'

> debian/*odp*-linux.install

> >>

> >>  sed -i "s:\(libodp[a-zA-Z\-]\+linux\)\(-dbg\|$\| \):\1${current}\2:g"

> debian/control

> >> --

> >> 2.1.4

> >

> > Should we break this into 2 separated patches? Might be probably good

> > to change builddeb in a separated patch.

>

> if we break it into two patches we can't guarantee to be "debian

> bisectable"

>

> Cheers,

> Anders

> _______________________________________________

> lng-odp mailing list

> lng-odp@lists.linaro.org

> https://lists.linaro.org/mailman/listinfo/lng-odp

>
Ricardo Salveti March 31, 2016, 3:15 a.m. UTC | #4
On Wed, Mar 30, 2016 at 4:38 PM, Anders Roxell <anders.roxell@linaro.org> wrote:
> On 30 March 2016 at 21:26, Ricardo Salveti <ricardo.salveti@linaro.org> wrote:
>> On Wed, Mar 30, 2016 at 4:08 PM, Anders Roxell <anders.roxell@linaro.org> wrote:
>>> We used to force applications to rebuild when a ODP released a new
>>> version that changed one of the first two digits. That shouldn't be
>>> needed if we use the SO-verson as it is intended to be used.
>>
>> Disconnecting the project version/releases with the SO-version is
>> probably a good thing to do as we have monthly releases for ODP.
>>
>> Not expecting the disconnection so soon because the ABI is constantly
>> changed, but this will at least allow consumers to avoid rebuilding
>> their software when it's not really required.
>>
>> We just need to be a bit more careful when doing releases if this gets
>> merged, since it is one more thing to check and update.
>
> Yes, but we should already be careful when doing releases. =)
>
>>
>>> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
>>> ---
>>>  .so_version      | 1 +
>>>  Makefile.am      | 2 +-
>>>  configure.ac     | 3 +--
>>>  scripts/builddeb | 2 +-
>>>  4 files changed, 4 insertions(+), 4 deletions(-)
>>>  create mode 100644 .so_version
>>>
>>> diff --git a/.so_version b/.so_version
>>> new file mode 100644
>>> index 0000000..dfa6588
>>> --- /dev/null
>>> +++ b/.so_version
>>> @@ -0,0 +1 @@
>>> +108:0:0
>>> diff --git a/Makefile.am b/Makefile.am
>>> index 2129472..a90eb91 100644
>>> --- a/Makefile.am
>>> +++ b/Makefile.am
>>> @@ -17,4 +17,4 @@ SUBDIRS = @platform_with_platform@ \
>>>
>>>  @DX_RULES@
>>>
>>> -EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README .scmversion
>>> +EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README .scmversion .so_version
>>> diff --git a/configure.ac b/configure.ac
>>> index c8fb91e..e2e18e8 100644
>>> --- a/configure.ac
>>> +++ b/configure.ac
>>> @@ -63,8 +63,7 @@ AC_SUBST([ARCH])
>>>  ##########################################################################
>>>  # Set correct platform library version
>>>  ##########################################################################
>>> -AGE=0
>>> -ODP_LIBSO_VERSION=$(echo $VERSION.$AGE | awk -F . '{printf("%d:%d:%d\n", (($1 * 100) + $2), $3, $4)}')
>>> +ODP_LIBSO_VERSION=$(cat ./.so_version)
>>>  AC_SUBST(ODP_LIBSO_VERSION)
>>>
>>>  ##########################################################################
>>> diff --git a/scripts/builddeb b/scripts/builddeb
>>> index 8bde7cf..b832df6 100755
>>> --- a/scripts/builddeb
>>> +++ b/scripts/builddeb
>>> @@ -20,7 +20,7 @@ fi
>>>  pushd ${ROOT_DIR}/${package}-${version}
>>>  cp -r ${ROOT_DIR}/pkg/debian .
>>>
>>> -current=$(echo ${version} | awk -F . '{printf("%d\n", (($1 * 100) + $2))}')
>>> +current=$(cat .so_version |awk -F : '{print $1}')
>>>  rename 's,(.*linux)(.*),${1}'"${current}"'${2},' debian/*odp*-linux.install
>>>
>>>  sed -i "s:\(libodp[a-zA-Z\-]\+linux\)\(-dbg\|$\| \):\1${current}\2:g" debian/control
>>> --
>>> 2.1.4
>>
>> Should we break this into 2 separated patches? Might be probably good
>> to change builddeb in a separated patch.
>
> if we break it into two patches we can't guarantee to be "debian bisectable"

Indeed, +1 from my side then.

Reviewed-by: Ricardo Salveti <ricardo.salveti@linaro.org>
Maxim Uvarov March 31, 2016, 1:43 p.m. UTC | #5
Merged,
Maxim.


On 03/31/16 06:15, Ricardo Salveti wrote:
> On Wed, Mar 30, 2016 at 4:38 PM, Anders Roxell <anders.roxell@linaro.org> wrote:
>> On 30 March 2016 at 21:26, Ricardo Salveti <ricardo.salveti@linaro.org> wrote:
>>> On Wed, Mar 30, 2016 at 4:08 PM, Anders Roxell <anders.roxell@linaro.org> wrote:
>>>> We used to force applications to rebuild when a ODP released a new
>>>> version that changed one of the first two digits. That shouldn't be
>>>> needed if we use the SO-verson as it is intended to be used.
>>> Disconnecting the project version/releases with the SO-version is
>>> probably a good thing to do as we have monthly releases for ODP.
>>>
>>> Not expecting the disconnection so soon because the ABI is constantly
>>> changed, but this will at least allow consumers to avoid rebuilding
>>> their software when it's not really required.
>>>
>>> We just need to be a bit more careful when doing releases if this gets
>>> merged, since it is one more thing to check and update.
>> Yes, but we should already be careful when doing releases. =)
>>
>>>> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
>>>> ---
>>>>   .so_version      | 1 +
>>>>   Makefile.am      | 2 +-
>>>>   configure.ac     | 3 +--
>>>>   scripts/builddeb | 2 +-
>>>>   4 files changed, 4 insertions(+), 4 deletions(-)
>>>>   create mode 100644 .so_version
>>>>
>>>> diff --git a/.so_version b/.so_version
>>>> new file mode 100644
>>>> index 0000000..dfa6588
>>>> --- /dev/null
>>>> +++ b/.so_version
>>>> @@ -0,0 +1 @@
>>>> +108:0:0
>>>> diff --git a/Makefile.am b/Makefile.am
>>>> index 2129472..a90eb91 100644
>>>> --- a/Makefile.am
>>>> +++ b/Makefile.am
>>>> @@ -17,4 +17,4 @@ SUBDIRS = @platform_with_platform@ \
>>>>
>>>>   @DX_RULES@
>>>>
>>>> -EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README .scmversion
>>>> +EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README .scmversion .so_version
>>>> diff --git a/configure.ac b/configure.ac
>>>> index c8fb91e..e2e18e8 100644
>>>> --- a/configure.ac
>>>> +++ b/configure.ac
>>>> @@ -63,8 +63,7 @@ AC_SUBST([ARCH])
>>>>   ##########################################################################
>>>>   # Set correct platform library version
>>>>   ##########################################################################
>>>> -AGE=0
>>>> -ODP_LIBSO_VERSION=$(echo $VERSION.$AGE | awk -F . '{printf("%d:%d:%d\n", (($1 * 100) + $2), $3, $4)}')
>>>> +ODP_LIBSO_VERSION=$(cat ./.so_version)
>>>>   AC_SUBST(ODP_LIBSO_VERSION)
>>>>
>>>>   ##########################################################################
>>>> diff --git a/scripts/builddeb b/scripts/builddeb
>>>> index 8bde7cf..b832df6 100755
>>>> --- a/scripts/builddeb
>>>> +++ b/scripts/builddeb
>>>> @@ -20,7 +20,7 @@ fi
>>>>   pushd ${ROOT_DIR}/${package}-${version}
>>>>   cp -r ${ROOT_DIR}/pkg/debian .
>>>>
>>>> -current=$(echo ${version} | awk -F . '{printf("%d\n", (($1 * 100) + $2))}')
>>>> +current=$(cat .so_version |awk -F : '{print $1}')
>>>>   rename 's,(.*linux)(.*),${1}'"${current}"'${2},' debian/*odp*-linux.install
>>>>
>>>>   sed -i "s:\(libodp[a-zA-Z\-]\+linux\)\(-dbg\|$\| \):\1${current}\2:g" debian/control
>>>> --
>>>> 2.1.4
>>> Should we break this into 2 separated patches? Might be probably good
>>> to change builddeb in a separated patch.
>> if we break it into two patches we can't guarantee to be "debian bisectable"
> Indeed, +1 from my side then.
>
> Reviewed-by: Ricardo Salveti <ricardo.salveti@linaro.org>
>
diff mbox

Patch

diff --git a/.so_version b/.so_version
new file mode 100644
index 0000000..dfa6588
--- /dev/null
+++ b/.so_version
@@ -0,0 +1 @@ 
+108:0:0
diff --git a/Makefile.am b/Makefile.am
index 2129472..a90eb91 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -17,4 +17,4 @@  SUBDIRS = @platform_with_platform@ \
 
 @DX_RULES@
 
-EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README .scmversion
+EXTRA_DIST = bootstrap $(DX_CONFIG) CHANGELOG config/README .scmversion .so_version
diff --git a/configure.ac b/configure.ac
index c8fb91e..e2e18e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,8 +63,7 @@  AC_SUBST([ARCH])
 ##########################################################################
 # Set correct platform library version
 ##########################################################################
-AGE=0
-ODP_LIBSO_VERSION=$(echo $VERSION.$AGE | awk -F . '{printf("%d:%d:%d\n", (($1 * 100) + $2), $3, $4)}')
+ODP_LIBSO_VERSION=$(cat ./.so_version)
 AC_SUBST(ODP_LIBSO_VERSION)
 
 ##########################################################################
diff --git a/scripts/builddeb b/scripts/builddeb
index 8bde7cf..b832df6 100755
--- a/scripts/builddeb
+++ b/scripts/builddeb
@@ -20,7 +20,7 @@  fi
 pushd ${ROOT_DIR}/${package}-${version}
 cp -r ${ROOT_DIR}/pkg/debian .
 
-current=$(echo ${version} | awk -F . '{printf("%d\n", (($1 * 100) + $2))}')
+current=$(cat .so_version |awk -F : '{print $1}')
 rename 's,(.*linux)(.*),${1}'"${current}"'${2},' debian/*odp*-linux.install
 
 sed -i "s:\(libodp[a-zA-Z\-]\+linux\)\(-dbg\|$\| \):\1${current}\2:g" debian/control