By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 531 - RFP: ksensors
Summary: RFP: ksensors
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: non-core programs (show other bugs)
Version: 3.5.12 [Trinity]
Hardware: Other Other
: P5 wishlist
Assignee: Timothy Pearson
URL:
Depends on:
Blocks:
 
Reported: 2011-10-03 07:50 CDT by Nick Leverton
Modified: 2013-07-29 19:20 CDT (History)
5 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Leverton 2011-10-03 07:50:05 CDT
Thermal (and other) sensor values are one of the biggest omissions for me from KDE4's applets, I like to keep an eye on when the machine is overheating before it actually does !  It would be really great if we could keep this package in Trinity.  All my kit still supports libsensors, even if we are supposed to be moving on to ACPI in due course.
Comment 1 Nick Leverton 2011-10-12 04:22:55 CDT
Homepage: http://ksensors.sourceforge.net

Latest tarball: http://sourceforge.net/projects/ksensors/files/ksensors/0.7.3/ksensors-0.7.3.tar.gz/download?use_mirror=heanet
(yes, it really is dated 2004 - the Debian .diff.gz includes upstream CVS changes from 2004-2008).

Last Debian source package: http://ftp.debian.org/debian/pool/main/k/ksensors/ksensors_0.7.3-16.dsc
Comment 2 Darrell 2013-05-22 20:22:06 CDT
Changing to wish list.
Comment 3 Francois Andriot 2013-07-24 09:12:59 CDT
OK, I've managed to build Ksensors using TQT3 / TDE.

You need the following files:

1) Original tarball (0.7.3):
http://sourceforge.net/projects/ksensors/files/ksensors/0.7.3/ksensors-0.7.3.tar.gz/download?use_mirror=heanet

2) The following 3 patches, in order: (already in our GIT)
http://git.trinitydesktop.org/cgit/tde-packaging/tree/redhat/extras/ksensors/ksensors_0.7.3-18.diff
http://git.trinitydesktop.org/cgit/tde-packaging/tree/redhat/extras/ksensors/ksensors-0.7.3-18-lmsensors_2x_fix.patch
http://git.trinitydesktop.org/cgit/tde-packaging/tree/redhat/extras/ksensors/ksensors-0.7.3-fix_sound_installation.patch


Then I've been using the following commands (your path may vary !!)

# Extract upstream package (0.7.3)
cd ~/src
rm -rf ksensors-0.7.3/
tar xfz ksensors-0.7.3.tar.gz
cd ksensors-0.7.3/

# Applies legacy patches (from RPM package)
patch -p1 < ksensors_0.7.3-18.diff
patch -p1 < ksensors-0.7.3-18-lmsensors_2x_fix.patch
patch -p1 < ksensors-0.7.3-fix_sound_installation.patch

# Live modification of sources (from RPM package)
sed -i -e 's|$(kde_datadir)/sounds|$(kde_sounddir)|' src/sounds/Makefile.*
for f in ChangeLog LIESMICH LISEZMOI ; do
    iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
done


# Remove KDE3/debian stuff
# You can move "debian" folder elsewhere for packaging debian/ubuntu !
rm -rf debian
rm -rf admin

# Convert QT3 to TQT3 with automatic script
~/tde/tde_r14/experimental/qt3-tqt3/convert_existing_qt3_app_to_tqt3

# Convert KDE3 to TDE
sed -i \
  -e "s|kcmdlineargs.h|tdecmdlineargs.h|g" \
  -e "s|kaboutdata.h|tdeaboutdata.h|g" \
  -e "s|klocale.h|tdelocale.h|g" \
  -e "s|kwin.h|twin.h|g" \
  -e "s|kconfig.h|tdeconfig.h|g" \
  -e "s|kpopupmenu.h|tdepopupmenu.h|g" \
  -e "s|kglobal.h|tdeglobal.h|g" \
  -e "s|kmainwindow.h|tdemainwindow.h|g" \
  -e "s|KConfig|TDEConfig|g" \
  -e "s|kaboutapplication.h|tdeaboutapplication.h|g" \
  -e "s|KPopupMenu|TDEPopupMenu|g" \
  -e "s|KProcess|TDEProcess|g" \
  -e "s|KCmdLineOptions|TDECmdLineOptions|g" \
  -e "s|KCmdLineArgs|TDECmdLineArgs|g" \
  -e "s|KAboutData|TDEAboutData|g" \
  -e "s|KMainWindow|TDEMainWindow|g" \
  -e "s|KGlobal|TDEGlobal|g" \
  -e "s|KAboutApplication|TDEAboutApplication|g" \
  -e "s|KIcon|TDEIcon|g" \
  -e "s|NEKWinInfo|NETWinInfo|g" \
  src/*.cpp src/*.h
  
sed -i \
  -e "s|KDE_|TDE_|g" \
  -e "s|_KDE|_TDE|g" \
  -e "s|_QT|_TQT|g" \
   *.am src/*.am

# Now, the sources are ready ! Push to GIT !

# Updates 'admin' folder
cp -rf ~/tde/tde_r14/main/common/admin/ .

# Generates makefiles ...
cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
make -f "admin/Makefile.common"

# And build ...
unset QTDIR QTINC QTLIB
export PATH="/opt/trinity/bin:/usr/lib64/ccache:/usr/bin:/bin"
export LDFLAGS="-L/opt/trinity/lib64 -I/opt/trinity/include"

./configure \
	--build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu \
	--prefix=/opt/trinity \
	--exec-prefix=/opt/trinity \
	--disable-dependency-tracking \
	--disable-rpath \
	--bindir=/opt/trinity/bin \
	--libdir=/opt/trinity/lib64 \
	--datadir=/opt/trinity/share \
	--includedir=/opt/trinity/include/tde \
	--enable-closure

make clean
make -j3

# And now you can install with "make install" and create a package !
Comment 4 Timothy Pearson 2013-07-24 10:08:52 CDT
New GIT repository is available at 	
git clone http://scm.trinitydesktop.org/scm/git/ksensors

Debian/Ubuntu packaging files have been added to the tde-packaging repository.

cgit, the master GIT repository, and the autobuild system have not yet been updated.

The core of the KDE3-->TDE conversion script has been pushed to the experimental submodule in the kde-tde directory.
Comment 5 Francois Andriot 2013-07-24 14:04:38 CDT
Build OK from GIT.
Comment 6 Timothy Pearson 2013-07-24 18:46:14 CDT
cgit, the master GIT repository, and the autobuild system have now been updated.  Marking NEEDINFO pending results of autobuilds on build farm.
Comment 7 Francois Andriot 2013-07-25 07:06:02 CDT
There is a strange FTBFS

lmsensorscfgdesign.cpp: In constructor 'LMSensorsCfgDesign::LMSensorsCfgDesign(TQWidget*, const char*, TQt::WFlags)':
lmsensorscfgdesign.cpp:249: error: 'ButtonGroup9' was not declared in this scope
lmsensorscfgdesign.cpp:253: error: 'ButtonGroup9Layout' was not declared in this scope
lmsensorscfgdesign.cpp: In member function 'virtual void LMSensorsCfgDesign::languageChange()':
lmsensorscfgdesign.cpp:450: error: 'ButtonGroup9' was not declared in this scope
make[3]: *** [lmsensorscfgdesign.o] Error 1

Because there are runtime files in the source tree.
In this case, "lmsensorscfgdesign.cpp" and "lmsensorscfgdesign.h" are supposed to be generated from "lmsensorscfgdesign.ui", but they are already present, with invalid content, and are not regenerated.

You should do a "make clean" or equivalent in the source directory.

Doing "make clean" prior to "make" is sufficient to resolve the issue.
Comment 8 Francois Andriot 2013-07-25 09:11:14 CDT
FTBFS in recent distrob because "src/Makefile.am" contains $(LIB_TQT) instead of $(LIB_QT) .
Comment 9 Francois Andriot 2013-07-25 10:14:32 CDT
Fixed in Git hash 5d316076 , thanks.
Comment 10 Timothy Pearson 2013-07-25 12:45:44 CDT
Autogenerated UI implementation files removed in GIT hash a1ef7bb.  Hopefully this will resolve the build problem noted above...
Comment 11 Francois Andriot 2013-07-25 12:51:11 CDT
I confirm it works now, without make clean.
Thanks.
Comment 12 Slávek Banko 2013-07-26 19:38:45 CDT
Debian/Ubuntu packaging files are ready for build.
Comment 13 Slávek Banko 2013-07-29 19:20:18 CDT
Thank you all for your efforts in preparing the package.
The package seems to be ready.