Skip to contentSkip to conversation

cpupower: Bump soname version

PATCH In review Ben Hutchings 3 participants 6 messages Jun 10, 2016 – May 17, 2023 CPU power monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpupower: Bump soname version

Several functions in the libcpupower API are renamed or removed in Linux 4.7. This is an backward-incompatible ABI change, so the library soname should change from libcpupower.so.0 to libcpupower.so.1.

Fixes ac5a181d065d ("cpupower: Add cpuidle parts into library")

---
I have to say the choice of variable names here is rather confusing. LIB_MIN is used for the soname version, which would normally be the *major* part of the version.

I'll send a second patch that switches to more conventional library versioning.

Ben.

 tools/power/cpupower/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/power/cpupower/Makefile +1 -1
index 8358863259c5..0b85f5915ce8 100644
@@ -64,7 +64,7 @@ DESTDIR ?=
 
 VERSION=			$(shell ./utils/version-gen.sh)
 LIB_MAJ=			0.0.1
-LIB_MIN=			0
+LIB_MIN=			1
 
 PACKAGE =			cpupower
 PACKAGE_BUGREPORT =		[email protected]
#1 lore raw

Hi Thomas,

Quoted 25 lines · Ben Hutchings

Several functions in the libcpupower API are renamed or removed in Linux 4.7. This is an backward-incompatible ABI change, so the library soname should change from libcpupower.so.0 to libcpupower.so.1.

Fixes ac5a181d065d ("cpupower: Add cpuidle parts into library")

---
I have to say the choice of variable names here is rather confusing. LIB_MIN is used for the soname version, which would normally be the *major* part of the version.

I'll send a second patch that switches to more conventional library versioning.

Ben.

 tools/power/cpupower/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/power/cpupower/Makefile +0 -0
index 8358863259c5..0b85f5915ce8 100644

tools/power/cpupower/Makefile DESTDIR ?= · line 70

Quoted 8 lines
tools/power/cpupower/Makefile +1 -1
@@ -64,7 +64,7 @@ DESTDIR ?=
 
 VERSION=			$(shell ./utils/version-gen.sh)
 LIB_MAJ=			0.0.1
-LIB_MIN=			0
+LIB_MIN=			1
 
 PACKAGE =			cpupower
 PACKAGE_BUGREPORT =		[email protected]

Repinging this patch. Thomas, we are shipping it in Debian since, and I'm wondering if the patch did just felt trough the cracks.

Regards,
Salvatore

maintainer
#2 lore raw
Quoted 34 lines · Salvatore Bonaccorso

Hi Thomas,

Quoted 31 lines · Ben Hutchings

Several functions in the libcpupower API are renamed or removed in Linux 4.7. This is an backward-incompatible ABI change, so the library soname should change from libcpupower.so.0 to libcpupower.so.1.

Fixes ac5a181d065d ("cpupower: Add cpuidle parts into library")

---
I have to say the choice of variable names here is rather confusing. LIB_MIN is used for the soname version, which would normally be the *major* part of the version.

I'll send a second patch that switches to more conventional library versioning.

Ben.

  tools/power/cpupower/Makefile | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tools/power/cpupower/Makefile +1 -1
index 8358863259c5..0b85f5915ce8 100644
@@ -64,7 +64,7 @@ DESTDIR ?=
 
  VERSION=			$(shell ./utils/version-gen.sh)
  LIB_MAJ=			0.0.1
-LIB_MIN=			0
+LIB_MIN=			1
 
Quoted 6 lines

tools/power/cpupower/Makefile DESTDIR ?= · line 70

Quoted 2 lines
tools/power/cpupower/Makefile +0 -0
  PACKAGE =			cpupower
  PACKAGE_BUGREPORT =		[email protected]

Repinging this patch. Thomas, we are shipping it in Debian since, and I'm wondering if the patch did just felt trough the cracks.

Please resend the patch for review.

thanks,
-- Shuah

#3 lore raw

Hi Shuah,

Apologies for the delay!

Quoted 40 lines · Shuah Khan
Quoted 23 lines · Salvatore Bonaccorso

Hi Thomas,

Quoted 20 lines · Ben Hutchings

Several functions in the libcpupower API are renamed or removed in Linux 4.7. This is an backward-incompatible ABI change, so the library soname should change from libcpupower.so.0 to libcpupower.so.1.

Fixes ac5a181d065d ("cpupower: Add cpuidle parts into library")

---
I have to say the choice of variable names here is rather confusing. LIB_MIN is used for the soname version, which would normally be the *major* part of the version.

I'll send a second patch that switches to more conventional library versioning.

Ben.

  tools/power/cpupower/Makefile | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines

tools/power/cpupower/Makefile DESTDIR ?= · line 68

Quoted 11 lines
tools/power/cpupower/Makefile +1 -1
index 8358863259c5..0b85f5915ce8 100644
@@ -64,7 +64,7 @@ DESTDIR ?=
  VERSION=			$(shell ./utils/version-gen.sh)
  LIB_MAJ=			0.0.1
-LIB_MIN=			0
+LIB_MIN=			1
  PACKAGE =			cpupower
  PACKAGE_BUGREPORT =		[email protected]

Repinging this patch. Thomas, we are shipping it in Debian since, and I'm wondering if the patch did just felt trough the cracks.

Quoted 1 line

Please resend the patch for review.

Here is the patch again for a fresh review on it. If you want me to send it standalone with '[RESEND PATCH]' I can do that as well.

Regards,
Salvatore

From 9091eb3294bad8f7d79eaff8f52ebeb02cc7d210 Mon Sep 17 00:00:00 2001
From: Ben Hutchings <[email protected]>
Date: Thu, 9 Jun 2016 23:35:08 +0100
Subject: [PATCH] cpupower: Bump soname version

Several functions in the libcpupower API are renamed or removed in Linux 4.7. This is an backward-incompatible ABI change, so the library soname should change from libcpupower.so.0 to libcpupower.so.1.

Fixes ac5a181d065d ("cpupower: Add cpuidle parts into library")
---
 tools/power/cpupower/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/power/cpupower/Makefile +1 -1
index 59bfa05dec5d..dc531805a570 100644
@@ -53,7 +53,7 @@ DESTDIR ?=
 
 VERSION:=			$(shell ./utils/version-gen.sh)
 LIB_MAJ=			0.0.1
-LIB_MIN=			0
+LIB_MIN=			1
 
 PACKAGE =			cpupower
 PACKAGE_BUGREPORT =		[email protected]
Signature · 1 line
2.40.1
maintainer
#4 lore raw
Quoted 45 lines · Salvatore Bonaccorso

Hi Shuah,

Apologies for the delay!

Quoted 40 lines · Shuah Khan
Quoted 38 lines · Salvatore Bonaccorso

Hi Thomas,

Quoted 25 lines · Ben Hutchings

Several functions in the libcpupower API are renamed or removed in Linux 4.7. This is an backward-incompatible ABI change, so the library soname should change from libcpupower.so.0 to libcpupower.so.1.

Fixes ac5a181d065d ("cpupower: Add cpuidle parts into library")

---
I have to say the choice of variable names here is rather confusing. LIB_MIN is used for the soname version, which would normally be the *major* part of the version.

I'll send a second patch that switches to more conventional library versioning.

Ben.

   tools/power/cpupower/Makefile | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
tools/power/cpupower/Makefile +0 -0
index 8358863259c5..0b85f5915ce8 100644

tools/power/cpupower/Makefile DESTDIR ?= · line 68

Quoted 6 lines
tools/power/cpupower/Makefile +1 -1
@@ -64,7 +64,7 @@ DESTDIR ?=
   VERSION=			$(shell ./utils/version-gen.sh)
   LIB_MAJ=			0.0.1
-LIB_MIN=			0
+LIB_MIN=			1
   PACKAGE =			cpupower
   PACKAGE_BUGREPORT =		[email protected]

Repinging this patch. Thomas, we are shipping it in Debian since, and I'm wondering if the patch did just felt trough the cracks.

Quoted 5 lines
Quoted 1 line

Please resend the patch for review.

Here is the patch again for a fresh review on it. If you want me to send it standalone with '[RESEND PATCH]' I can do that as well.

Yes please resend with RESEND tag. I won't be able to apply the patch when it is included in the reply.

thanks,
-- Shuah

#5 lore raw

Hi,

Quoted 46 lines · Shuah Khan
Quoted 45 lines · Salvatore Bonaccorso

Hi Shuah,

Apologies for the delay!

Quoted 40 lines · Shuah Khan
Quoted 38 lines · Salvatore Bonaccorso

Hi Thomas,

Quoted 25 lines · Ben Hutchings

Several functions in the libcpupower API are renamed or removed in Linux 4.7. This is an backward-incompatible ABI change, so the library soname should change from libcpupower.so.0 to libcpupower.so.1.

Fixes ac5a181d065d ("cpupower: Add cpuidle parts into library")

---
I have to say the choice of variable names here is rather confusing. LIB_MIN is used for the soname version, which would normally be the *major* part of the version.

I'll send a second patch that switches to more conventional library versioning.

Ben.

   tools/power/cpupower/Makefile | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
tools/power/cpupower/Makefile +0 -0
index 8358863259c5..0b85f5915ce8 100644

tools/power/cpupower/Makefile DESTDIR ?= · line 68

Quoted 6 lines
tools/power/cpupower/Makefile +1 -1
@@ -64,7 +64,7 @@ DESTDIR ?=
   VERSION=			$(shell ./utils/version-gen.sh)
   LIB_MAJ=			0.0.1
-LIB_MIN=			0
+LIB_MIN=			1
   PACKAGE =			cpupower
   PACKAGE_BUGREPORT =		[email protected]

Repinging this patch. Thomas, we are shipping it in Debian since, and I'm wondering if the patch did just felt trough the cracks.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Please resend the patch for review.

Here is the patch again for a fresh review on it. If you want me to send it standalone with '[RESEND PATCH]' I can do that as well.

Yes please resend with RESEND tag. I won't be able to apply the patch when it is included in the reply.

Thanks for your patience! Just resent the patch as requested:
https://lore.kernel.org/linux-pm/[email protected]/

Regards,
Salvatore