| Summary: | RFP: ksensors | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Nick Leverton <nick> |
| Component: | non-core programs | Assignee: | Timothy Pearson <kb9vqf> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | albator78, bugwatch, darrella, kb9vqf, slavek.banko |
| Priority: | P5 | ||
| Version: | 3.5.12 [Trinity] | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
|
Description
Nick Leverton
2011-10-03 07:50:05 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 Changing to wish list. 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 ! 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. Build OK from GIT. cgit, the master GIT repository, and the autobuild system have now been updated. Marking NEEDINFO pending results of autobuilds on build farm. 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. FTBFS in recent distrob because "src/Makefile.am" contains $(LIB_TQT) instead of $(LIB_QT) . Fixed in Git hash 5d316076 , thanks. Autogenerated UI implementation files removed in GIT hash a1ef7bb. Hopefully this will resolve the build problem noted above... I confirm it works now, without make clean. Thanks. Debian/Ubuntu packaging files are ready for build. Thank you all for your efforts in preparing the package. The package seems to be ready. |