Accepting request 54108 from home:elvigia:branches:Base:System
OBS-URL: https://build.opensuse.org/request/show/54108 OBS-URL: https://build.opensuse.org/package/show/Base:System/sensors?expand=0&rev=30
This commit is contained in:
parent
90c4401d54
commit
18bbc13128
34
libsensors-visibility.patch
Normal file
34
libsensors-visibility.patch
Normal file
@ -0,0 +1,34 @@
|
||||
--- /dev/null
|
||||
+++ lib/libsensors.map
|
||||
@@ -0,0 +1,20 @@
|
||||
+{
|
||||
+global:
|
||||
+ libsensors_version;
|
||||
+ sensors_cleanup;
|
||||
+ sensors_do_chip_sets;
|
||||
+ sensors_free_chip_name;
|
||||
+ sensors_get_adapter_name;
|
||||
+ sensors_get_all_subfeatures;
|
||||
+ sensors_get_detected_chips;
|
||||
+ sensors_get_features;
|
||||
+ sensors_get_label;
|
||||
+ sensors_get_subfeature;
|
||||
+ sensors_get_value;
|
||||
+ sensors_init;
|
||||
+ sensors_parse_chip_name;
|
||||
+ sensors_set_value;
|
||||
+ sensors_snprintf_chip_name;
|
||||
+ sensors_strerror;
|
||||
+local: *;
|
||||
+ };
|
||||
--- lib/Module.mk.orig
|
||||
+++ lib/Module.mk
|
||||
@@ -63,7 +63,7 @@ LIBHEADERFILES := $(MODULE_DIR)/error.h
|
||||
|
||||
# How to create the shared library
|
||||
$(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS)
|
||||
- $(CC) -shared $(LDFLAGS) -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm
|
||||
+ $(CC) -shared $(LDFLAGS) -Wl,--version-script=$(LIB_DIR)/libsensors.map -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm
|
||||
|
||||
$(MODULE_DIR)/$(LIBSHSONAME): $(MODULE_DIR)/$(LIBSHLIBNAME)
|
||||
$(RM) $@
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 29 20:47:06 UTC 2010 - cristian.rodriguez@opensuse.org
|
||||
|
||||
- libsensors: export only public symbols
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 31 12:37:02 UTC 2010 - jengelh@medozas.de
|
||||
|
||||
|
@ -36,6 +36,7 @@ Patch2: lm_sensors-3.0.0-sensord-separate.patch
|
||||
Patch3: lm_sensors-3.0.0-sysconfig_metadata.patch
|
||||
Patch4: lm_sensors-3.0.3-hint-at-kernel-extra-package.patch
|
||||
Patch5: lm_sensors-3.1.1-no-ipmisensors-driver.patch
|
||||
Patch6: libsensors-visibility.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
ExcludeArch: s390 s390x
|
||||
|
||||
@ -138,7 +139,7 @@ Authors:
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
|
||||
%patch6
|
||||
%build
|
||||
RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags} PROG_EXTRA:=sensord BUILD_STATIC_LIB:=0 PREFIX=%{_prefix} MANDIR=%{_mandir} LIBDIR=%{_libdir}
|
||||
@ -159,7 +160,6 @@ make %{?_smp_mflags} PROG_EXTRA:=sensord BUILD_STATIC_LIB:=0 PREFIX=%{_prefix} M
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
||||
install -m 0755 %{S:1} $RPM_BUILD_ROOT/etc/init.d/lm_sensors
|
||||
ln -sf /etc/init.d/lm_sensors $RPM_BUILD_ROOT/usr/sbin/rclm_sensors
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user