Skip to contentSkip to conversation

Please,

lm-sensors Applied Didier Roche 3 participants 5 messages Apr 27, 2009 – Apr 28, 2009

lore
Share & tools
lore
#0 lore raw

Hi lm-sensors developer,

It would be great if lm-sensors can take into account distribution LDFLAGS so that exported variables change linker behavior.

For instance, ubuntu uses -Wl,-Bsymbolic-functions. Taking this patch will enable us to just sync from debian on this package.

In Ubuntu, we've applied the attached patch to achieve the following:

* handle default ubuntu LDFLAGS for linking option (LP: #321632)
- Remove the old hack directly pushed in lib/Module.mk (now lib/Module.mk if from pristine source)
- add debian/patches/07-use-LDFLAGS.patch to take LDFLAGS into account

Debian and Ubuntu thought you might be interested to handle this directly upstream.

--- lm-sensors-3-3.0.2.orig/lib/Module.mk 2008-05-18
8:07:48.000000000 +0200
+++ lm-sensors-3-3.0.2/lib/Module.mk 2009-01-26 22:15:02.000000000 +0100
@@ -60,7 +60,7 @@

# How to create the shared library
$(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS)
- $(CC) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm
+ $(CC) -shared $(LDFLAGS) -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm

$(MODULE_DIR)/$(LIBSHSONAME): $(MODULE_DIR)/$(LIBSHLIBNAME)

       $(RM) $@

Thanks in advance. Please CC me as I'm not subscribed to the mailing list. Didier

Ubuntu bug: https://bugs.edge.launchpad.net/debian/+source/lm-sensors-3/+bug/321632
Debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bugQ3171

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw
Quoted 25 lines · Didier Roche

Hi lm-sensors developer,

It would be great if lm-sensors can take into account distribution LDFLAGS so that exported variables change linker behavior.

For instance, ubuntu uses -Wl,-Bsymbolic-functions. Taking this patch will enable us to just sync from debian on this package.

In Ubuntu, we've applied the attached patch to achieve the following:

* handle default ubuntu LDFLAGS for linking option (LP: #321632)
- Remove the old hack directly pushed in lib/Module.mk (now lib/Module.mk if from pristine source)
- add debian/patches/07-use-LDFLAGS.patch to take LDFLAGS into account

Debian and Ubuntu thought you might be interested to handle this directly upstream.

--- lm-sensors-3-3.0.2.orig/lib/Module.mk 2008-05-18
8:07:48.000000000 +0200
+++ lm-sensors-3-3.0.2/lib/Module.mk 2009-01-26 22:15:02.000000000 +0100

Review line 66

Quoted 8 lines
(quoted diff) +1 -1
@@ -60,7 +60,7 @@
 
 # How to create the shared library
 $(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS)
-      $(CC) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm
+      $(CC) -shared $(LDFLAGS) -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm
 
 $(MODULE_DIR)/$(LIBSHSONAME): $(MODULE_DIR)/$(LIBSHLIBNAME)
       $(RM) $@

Jean, your'e more familiar with the build system. Any objections? If no, I will apply this patch.

Andre

Quoted 10 lines

Thanks in advance. Please CC me as I'm not subscribed to the mailing list. Didier

Ubuntu bug: https://bugs.edge.launchpad.net/debian/+source/lm-sensors-3/+bug/321632
Debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bugQ3171

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Didier Roche

Hi Andre, Didier,

Quoted 30 lines · Andre Prendel
Quoted 29 lines · Didier Roche

Hi lm-sensors developer,

It would be great if lm-sensors can take into account distribution LDFLAGS so that exported variables change linker behavior.

For instance, ubuntu uses -Wl,-Bsymbolic-functions. Taking this patch will enable us to just sync from debian on this package.

In Ubuntu, we've applied the attached patch to achieve the following:

* handle default ubuntu LDFLAGS for linking option (LP: #321632)
- Remove the old hack directly pushed in lib/Module.mk (now lib/Module.mk if from pristine source)
- add debian/patches/07-use-LDFLAGS.patch to take LDFLAGS into account

Debian and Ubuntu thought you might be interested to handle this directly upstream.

--- lm-sensors-3-3.0.2.orig/lib/Module.mk 2008-05-18
8:07:48.000000000 +0200
+++ lm-sensors-3-3.0.2/lib/Module.mk 2009-01-26 22:15:02.000000000 +0100

(quoted diff) +1 -1
@@ -60,7 +60,7 @@
 
 # How to create the shared library
 $(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS)
-      $(CC) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm
+      $(CC) -shared $(LDFLAGS) -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm
 
Quoted 7 lines

Review line 66

Quoted 4 lines
(quoted diff) +0 -0
 $(MODULE_DIR)/$(LIBSHSONAME): $(MODULE_DIR)/$(LIBSHLIBNAME)
       $(RM) $@

Jean, your'e more familiar with the build system. Any objections? If no, I will apply this patch.

No objection, if distributions need this, this doesn't cost us a thing, so just go ahead.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#3 lore raw
In reply to Didier Roche
Quoted 33 lines · Didier Roche

Hi lm-sensors developer,

It would be great if lm-sensors can take into account distribution LDFLAGS so that exported variables change linker behavior.

For instance, ubuntu uses -Wl,-Bsymbolic-functions. Taking this patch will enable us to just sync from debian on this package.

In Ubuntu, we've applied the attached patch to achieve the following:

* handle default ubuntu LDFLAGS for linking option (LP: #321632)
- Remove the old hack directly pushed in lib/Module.mk (now lib/Module.mk if from pristine source)
- add debian/patches/07-use-LDFLAGS.patch to take LDFLAGS into account

Debian and Ubuntu thought you might be interested to handle this directly upstream.

--- lm-sensors-3-3.0.2.orig/lib/Module.mk 2008-05-18
8:07:48.000000000 +0200
+++ lm-sensors-3-3.0.2/lib/Module.mk 2009-01-26 22:15:02.000000000 +0100

(quoted diff) +1 -1
@@ -60,7 +60,7 @@
 
 # How to create the shared library
 $(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS)
-      $(CC) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm
+      $(CC) -shared $(LDFLAGS) -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm
 
 $(MODULE_DIR)/$(LIBSHSONAME): $(MODULE_DIR)/$(LIBSHLIBNAME)
       $(RM) $@
Quoted 6 lines

Thanks in advance. Please CC me as I'm not subscribed to the mailing list. Didier

Ubuntu bug: https://bugs.edge.launchpad.net/debian/+source/lm-sensors-3/+bug/321632
Debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bugQ3171

Applied, thanks.

Andre

Quoted 4 lines

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#4 lore raw
In reply to Didier Roche
Quoted 34 lines · Andre Prendel
Quoted 33 lines · Didier Roche

Hi lm-sensors developer,

It would be great if lm-sensors can take into account distribution LDFLAGS so that exported variables change linker behavior.

For instance, ubuntu uses -Wl,-Bsymbolic-functions. Taking this patch will enable us to just sync from debian on this package.

In Ubuntu, we've applied the attached patch to achieve the following:

  * handle default ubuntu LDFLAGS for linking option (LP: #321632)
    - Remove the old hack directly pushed in lib/Module.mk (now lib/Module.mk if from pristine source)
    - add debian/patches/07-use-LDFLAGS.patch to take LDFLAGS into account

Debian and Ubuntu thought you might be interested to handle this directly upstream.

--- lm-sensors-3-3.0.2.orig/lib/Module.mk      2008-05-18 8:07:48.000000000 +0200
+++ lm-sensors-3-3.0.2/lib/Module.mk   2009-01-26 22:15:02.000000000 +0100

(quoted diff) +1 -1
@@ -60,7 +60,7 @@
 
  # How to create the shared library
  $(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS)
-      $(CC) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm
+      $(CC) -shared $(LDFLAGS) -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm
 
  $(MODULE_DIR)/$(LIBSHSONAME): $(MODULE_DIR)/$(LIBSHLIBNAME)

       $(RM) $@

Quoted 8 lines
Quoted 6 lines

Thanks in advance. Please CC me as I'm not subscribed to the mailing list. Didier

Ubuntu bug: https://bugs.edge.launchpad.net/debian/+source/lm-sensors-3/+bug/321632
Debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bugQ3171

Applied, thanks.

Thanks to YOU :)
It's a pleasure to work with a responsive upstream!

Didier

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors