Commit Graph
76 Commits
Author SHA1 Message Date
Jean Delvare e369e65d42 Change libsensors license from GPL to LGPL.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5844 7894878c-1315-0410-8ee3-d5d059ff63e0
2010-07-01 11:56:42 +00:00
Jean Delvare 6e78c8c779 Prepare for release.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5819 7894878c-1315-0410-8ee3-d5d059ff63e0
2010-02-02 20:14:53 +00:00
Hans de Goede 271aec857a Add sensor3.conf.5 symlink to sensors.conf.5 manpage
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5776 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-10-01 07:43:41 +00:00
Jean Delvare 0a55087719 Bump library version to 4.2.0.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5741 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-06-20 12:00:22 +00:00
Andre Prendel 3e310f8a8f libsensors: Take into account distribution LDFLAGS (Patch from Didier Roche).
From: Didier Roche <didrocks@ubuntu.com>

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.



git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5713 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-28 11:54:40 +00:00
Jean Delvare 2ea3bf392b Make it possible to skip building of the static library. Just run:
make BUILD_STATIC_LIB=0


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5711 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-20 09:18:06 +00:00
Jean Delvare e0ad43a545 Include generated source files in dependency checking.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5710 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-04-20 08:42:11 +00:00
Jean Delvare 0ffa44331c Set library version to 4.1.0.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5663 7894878c-1315-0410-8ee3-d5d059ff63e0
2009-02-25 07:47:13 +00:00
Jean Delvare d53ba9bb1c Prepare for release.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5254 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-18 16:07:48 +00:00
Jean Delvare f2e518511d Patch from Aurelien Jarno:
I have just noticed that the FSF address is the old one in all files
except COPYING. Please find a patch below to fix that.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5163 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-03-26 13:37:12 +00:00
Jean Delvare 3af8a8e6b8 Prepare for release.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5114 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-01-28 17:47:23 +00:00
Jean Delvare 67218f03c3 libsensors: No longer depend on libsysfs.
Instead, access sysfs directly, using 3 embedded helper
functions. My motivations for doing this are:
* As far as I know, libsysfs is no longer maintained.
* libsysfs does much more than we need. For example, when asking for a
device attribute list, libsysfs will read the contents and permissions
of all attributes. Not only does this waste CPU cycles per se, but in
the case of hwmon driver it also triggers register reads, which can be
slow for SMBus chips.
* libsysfs enforces the difference between devices and class devices,
while future changes will be easier if we can handle both types alike.



git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5067 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-12-10 13:30:22 +00:00
Jean Delvare f1a894e4e1 No warnings about ld configuration for staged installations, as these
make no sense: we have no idea how the target system will be configured.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5047 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-26 13:54:31 +00:00
Jean Delvare 5742812cfe Hide a warning in flex-generated file.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4848 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-23 12:36:56 +00:00
Mark M. Hoffman e95e7694f5 Fix -W options so flex/yacc code compiles completely without warnings. Also,
Use -Wundef everywhere except flex/yacc code, specifically.



git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4794 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-16 14:50:37 +00:00
Jean Delvare 7a2ab38ecf Move sensors_proc_read and sensors_proc_write to sysfs.c, and rename them
to something more in line with what they do.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4553 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-05 15:03:22 +00:00
Jean Delvare b79274babd Add some more warning flags, and fix these warnings.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4545 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-03 16:03:22 +00:00
Jean Delvare 8fdfa3f19d Move the few lines of code remaining in chips.c to data.c, and finally
delete chips.c. RIP.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4507 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-28 09:53:01 +00:00
Jean Delvare 75d55dc5ae Delete the chip-specific code from libsensors. It's about time to get
the generic code to work.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4506 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-28 09:38:31 +00:00
Jean Delvare c8b02ddfa3 Install libsensors as libsensors.so.4, and sensors as sensors3. This makes
it possible to install both the old and the new libsensors and sensors,
making testing much easier. sensors3 will be renamed back to sensors before
we release.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4461 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-25 11:39:08 +00:00
Jean Delvare 85393f35b6 Always build libsensors with sysfs support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4458 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-06-25 08:18:47 +00:00
Mark M. Hoffman c5ffa7b635 Merge from trunk (4303:4355) out to 3.0.0 branch.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4357 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-04-03 12:55:30 +00:00
Philip Edelbrock b71ee14a2d Prep for 2.10.2 release.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4297 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-15 23:30:51 +00:00
Philip Edelbrock 03d8bdbada Release of 2.10.1, and some clean ups to the release checklist.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4177 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-24 22:28:55 +00:00
Jean Delvare 73413d0d92 Remove empty include directories on make user_uninstall.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4163 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-09-20 15:47:04 +00:00
Jean Delvare ebbd0ba836 Bump lib version to 3.1.0 for the upcoming lm_sensors 2.10.0
release.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3253 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-02-11 18:54:49 +00:00
Mark M. Hoffman a116313d54 (mmh)
This patch makes optional the sysfs support in libsensors.  The default is to
*disable* sysfs support if a 2.4.x kernel is detected, for all other versions,
support will be enabled.  This can be overridden in the top-level Makefile.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3096 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:39:53 +00:00
Mark M. Hoffman 87fba1c487 (mmh)
This patch adds the files lib/sysfs.h and lib/sysfs.c, beginning with a rewrite
of the sysfs detection code (using libsyfs).  In the process, I replaced two
poorly named globals with better names, and moved them to sysfs.c.  The sysfs
detection now happens very early during library init, rather than later.

The long term plan is for the two global variables to disappear anyway, as
everything to do with sysfs should get moved into lib/sysfs.c.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3093 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:30:44 +00:00
Mark M. Hoffman 10337cf80b (mmh)
This trivial patch links the libsysfs library to the libsensors library.
One needs to build and install sysfsutils first:

http://linux-diag.sourceforge.net/Sysfsutils.html

This patch is naive, at least to start.  Later it will be made optional
depending on whether support for Linux 2.6.x is needed, or just 2.4.x.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3092 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:25:25 +00:00
Philip Edelbrock 97649c80b4 Tag and release 2.9.2
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3066 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-06 19:44:58 +00:00
Mark D. Studebaker 44c0a5bdfe bump to 3.0.8 for upcoming 2.9.1 release
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2927 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-10 19:24:54 +00:00
Mark D. Studebaker f3957ff416 bump to 3.0.7 for 2.9.0 release
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2807 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-23 17:37:59 +00:00
Mark D. Studebaker 51f33c9474 bump to 3.0.6
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2694 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-09-19 17:45:17 +00:00
Jean Delvare e7e4c799da Implement "make user_uninstall". Original patch contributed by
Rudolf Marek.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2604 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-06-20 14:18:28 +00:00
Mark D. Studebaker 39d1d4dfa5 remove old library versions in make clean
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2472 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-24 17:31:34 +00:00
Jean Delvare e9d2d1aa95 Bump version.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2454 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-19 19:47:46 +00:00
Mark D. Studebaker e1c3e50aac correctly install shared lib 755
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2344 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-07 16:43:49 +00:00
Jean Delvare b7706a11a1 Bump lib version.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2343 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-07 15:06:03 +00:00
Jean Delvare 72531a8512 Advance to 3.0.3.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2312 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-22 17:49:28 +00:00
Mark D. Studebaker 7dcb173d2a advance to 3.0.2
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2264 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-03 02:41:49 +00:00
Mark D. Studebaker 64aeb747a4 remove -o and -g args to install
Date: Thu, 18 Dec 2003 22:42:36 +0100
From: Haakon Riiser <haakon.riiser@fys.uio.no>
To: sensors@Stimpy.netroedge.com
Subject: lm_sensors 2.8.2 / DESTDIR / root

The reason for this email is that I always try to avoid running
Makefiles as root, even during 'make install'.  Therefore, I
always use the DESTDIR feature, when it's available.  Until today,
I always built i2c and lm_sensors by doing

  $ make
  $ make -i install DESTDIR=/foo
  $ cd /foo && su root && fix permissions/ownership && install

The -i flag to make install is a kludge to avoid having to be root
while installing to the DESTDIR, and it's only required because
the files are installed with "-o root -g root".  Using the -i
flag is of course not a good idea, since more fatal errors can
easily fly by undetected.

Today, I upgraded to Linux 2.6.0, and tried a similar install
procedure for lm_sensors, except that the make target is now "user"
and the install target is "user_install".  I now noticed that the
DESTDIR variable is not used everywhere in "user_install", so I
couldn't use the -i kludge anymore.  Instead, I wrote a patch that
removes the "-o root -g root" arguments to install everywhere, and
I also tried to add DESTDIR to all files/directories installed.
(The patch only applies to lm_sensors, not i2c, since only
lm_sensors is required in Linux 2.6.0.)

There's really no reason to say -o root -g root anyway, since if you
do install directly with make install, you have to be logged in as
root, and then the files will get the right ownership by default.
Much of the point of installing to a temporary DESTDIR is that you
don't have to be root, and that you can prepare the installation
by hand.  Fixing the ownership is trivial:

  chown -R root.root $DESTDIR


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2189 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-23 23:13:38 +00:00
Mark D. Studebaker 46f0afa134 add guidance on major number from
Sergey Vlasov <vsu@altlinux.ru>
      Advance minor number to 1 (3.0.1)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2163 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-13 20:19:38 +00:00
Mark D. Studebaker 27e9877012 Add preliminary sysfs support. Two entries added to struct sensors_chip_feature.
chips.c support added only for w83781d as an example.
      Advance library version to 3.0.0.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2059 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-16 17:57:29 +00:00
Mark D. Studebaker bcb347f855 advance version to 2.0.2
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2031 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-28 01:46:09 +00:00
Jean Delvare c44fd17974 Bump lib version to 2.0.1
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1916 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-29 10:30:17 +00:00
Jean Delvare dcd0dae9e2 Edit the warnings for clarity.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1876 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-08 12:47:41 +00:00
Jean Delvare 09b57fd0ea Hide warnings in flex-generated code (explicit rule for
lib/conf-lex.c with the -Wno-unused flag).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1831 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-02 16:37:34 +00:00
Mark D. Studebaker 0948e17ee9 add new build targets 'user' and 'user_install'.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1822 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-28 20:04:51 +00:00
Mark D. Studebaker 00cd965818 advance library version to 2.0.0
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1805 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-21 17:25:33 +00:00
Mark D. Studebaker 367f92899a always generate warnings about libraries in /usr/lib since we can't
assume that ld.so puts /usr/lib last.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1676 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-12-19 15:04:15 +00:00