Package Details: kde1-kdelibs-git 1.1.2r3049.cc31c174-1

Git Clone URL: https://aur.archlinux.org/kde1-kdelibs-git.git (read-only, click to copy)
Package Base: kde1-kdelibs-git
Description: Historical copy of the libraries module of KDE 1, adapted to compile on modern systems (circa. 2016)
Upstream URL: https://invent.kde.org/historical/kde1-kdelibs
Licenses: GPL2, LGPL2
Groups: kde1
Conflicts: kde1-kdelibs
Provides: kde1-kdelibs
Submitter: Vaporeon
Maintainer: sandsmark
Last Packager: z3ntu
Votes: 4
Popularity: 0.000000
First Submitted: 2016-10-18 13:12 (UTC)
Last Updated: 2020-10-03 11:13 (UTC)

Required by (15)

Sources (1)

Latest Comments

aa13q commented on 2021-11-12 18:07 (UTC)

adding both c and cxx flags: -DCMAKE_C_FLAGS=-Wno-error=format-security -DCMAKE_CXX_FLAGS=-Wno-error=format-security for cmake seems to solves build issues like:

/tmp/kde1-kdelibs-git/src/kde1-kdelibs/mediatool/connect.c:432:3: error: format not a string literal and no format arguments [-Werror=format-security]

sl1pkn07 commented on 2021-09-20 13:40 (UTC)

seems failed build

/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kprocctrl.cpp: In constructor 'KProcessController::KProcessController()':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kprocctrl.cpp:52:15: error: format not a string literal and no format arguments [-Werror=format-security]
   52 |         printf(strerror(errno));
      |         ~~~~~~^~~~~~~~~~~~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kprocctrl.cpp:55:15: error: format not a string literal and no format arguments [-Werror=format-security]
   55 |         printf(strerror(errno));
      |         ~~~~~~^~~~~~~~~~~~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kprocctrl.cpp: In static member function 'static void KProcessController::theSigCHLDHandler(int)':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kprocctrl.cpp:102:14: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  102 |       ::write(theKProcessController->fd[1], &this_pid, sizeof(this_pid));
      |       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kprocctrl.cpp:103:14: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  103 |       ::write(theKProcessController->fd[1], &status, sizeof(status));
      |       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kaccel.cpp: In member function 'void KAccel::connectItem(const char*, const QObject*, const char*, bool)':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kaccel.cpp:66:24: error: format not a string literal and no format arguments [-Werror=format-security]
   66 |                 warning(str);
      |                 ~~~~~~~^~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kaccel.cpp: In member function 'void KAccel::setItemEnabled(const char*, bool)':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kaccel.cpp:391:24: error: format not a string literal and no format arguments [-Werror=format-security]
  391 |                 warning( str );
      |                 ~~~~~~~^~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kconfig.cpp: In constructor 'KConfig::KConfig(const char*, const char*)':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kconfig.cpp:186:28: warning: ignoring return value of 'int chown(const char*, __uid_t, __gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  186 |                       chown(file.name(), getuid(), getgid());
      |                       ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kconfig.cpp: In member function 'virtual bool KConfig::writeConfigFile(QFile&, bool)':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kconfig.cpp:332:8: warning: ignoring return value of 'int chown(const char*, __uid_t, __gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  332 |   chown(rConfigFile.name(), getuid(), getgid());
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kconfig.cpp: In member function 'virtual void KConfig::sync()':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kconfig.cpp:426:24: warning: ignoring return value of 'int chown(const char*, __uid_t, __gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  426 |                   chown(aConfigFile.name(), getuid(), getgid());
      |                   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kconfig.cpp:483:40: warning: ignoring return value of 'int chown(const char*, __uid_t, __gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  483 |                                   chown(aConfigFile.name(), getuid(), getgid());
      |                                   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kglobalaccel.cpp: In member function 'void KGlobalAccel::connectItem(const char*, const QObject*, const char*, bool)':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kglobalaccel.cpp:80:24: error: format not a string literal and no format arguments [-Werror=format-security]
   80 |                 warning( str );
      |                 ~~~~~~~^~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kglobalaccel.cpp: In member function 'void KGlobalAccel::setItemEnabled(const char*, bool)':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kglobalaccel.cpp:343:24: error: format not a string literal and no format arguments [-Werror=format-security]
  343 |                 warning( str );
      |                 ~~~~~~~^~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kglobalaccel.cpp: In member function 'bool KGlobalAccel::x11EventFilter(const XEvent*)':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kglobalaccel.cpp:496:38: warning: 'KeySym XKeycodeToKeysym(Display*, KeyCode, int)' is deprecated [-Wdeprecated-declarations]
  496 |         uint keysym= XKeycodeToKeysym(qt_xdisplay(), event_->xkey.keycode, 0);
      |                      ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kglobalaccel.cpp:25:
/usr/include/X11/Xlib.h:1687:15: note: declared here
 1687 | extern KeySym XKeycodeToKeysym(
      |               ^~~~~~~~~~~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kdebug.cpp: In function 'void kdebug(ushort, ushort, const char*, ...)':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kdebug.cpp:254:36: error: format not a string literal and no format arguments [-Werror=format-security]
  254 |                 syslog( nPriority, buf );
      |                                    ^~~
cc1plus: some warnings being treated as errors
make[2]: *** [kdecore/CMakeFiles/kdecore.dir/build.make:250: kdecore/CMakeFiles/kdecore.dir/kprocctrl.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/krootprop.cpp: In member function 'QString KRootProp::readEntry(const QString&, const char*) const':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/krootprop.cpp:124:40: warning: 'this' pointer is null [-Wnonnull]
  124 |                         aValue->sprintf( pDefault );
      |                         ~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from /usr/include/qt1/qfont.h:29,
                 from /tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kconfigbase.h:81,
                 from /tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kconfig.h:53,
                 from /tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kapp.h:31,
                 from /tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/krootprop.h:22,
                 from /tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/krootprop.cpp:20:
/usr/include/qt1/qstring.h:178:17: note: in a call to non-static member function 'QString& QString::sprintf(const char*, ...)'
  178 |     QString    &sprintf( const char *format, ... );
      |                 ^~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kapp.cpp: In member function 'void KApplication::init()':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kapp.cpp:434:12: warning: ignoring return value of 'int chown(const char*, __uid_t, __gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  434 |       chown(configPath.data(), getuid(), getgid());
      |       ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kapp.cpp:438:16: warning: ignoring return value of 'int chown(const char*, __uid_t, __gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  438 |           chown(configPath.data(), getuid(), getgid());
      |           ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kapp.cpp:442:20: warning: ignoring return value of 'int chown(const char*, __uid_t, __gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  442 |               chown(configPath.data(), getuid(), getgid());
      |               ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kapp.cpp:477:12: warning: ignoring return value of 'int chown(const char*, __uid_t, __gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  477 |       chown(aConfigFile.name(), getuid(), getgid());
      |       ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kapp.cpp: In member function 'KConfig* KApplication::getSessionConfig()':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kapp.cpp:578:10: warning: ignoring return value of 'int chown(const char*, __uid_t, __gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  578 |     chown(aConfigFile.name(), getuid(), getgid());
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/krootprop.cpp: In member function 'QString KRootProp::writeEntry(const QString&, const QString&)':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/krootprop.cpp:273:32: warning: 'this' pointer is null [-Wnonnull]
  273 |                 aValue->sprintf(rValue);
      |                 ~~~~~~~~~~~~~~~^~~~~~~~
In file included from /usr/include/qt1/qfont.h:29,
                 from /tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kconfigbase.h:81,
                 from /tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kconfig.h:53,
                 from /tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kapp.h:31,
                 from /tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/krootprop.h:22,
                 from /tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/krootprop.cpp:20:
/usr/include/qt1/qstring.h:178:17: note: in a call to non-static member function 'QString& QString::sprintf(const char*, ...)'
  178 |     QString    &sprintf( const char *format, ... );
      |                 ^~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kapp.cpp: In member function 'void KApplication::parseCommandLine(int&, char**)':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kapp.cpp:830:30: warning: ignoring return value of 'int chown(const char*, __uid_t, __gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
  830 |                         chown(aConfigFile.name(), getuid(), getgid());
      |                         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kapp.cpp: In member function 'void KApplication::invokeHTMLHelp(QString, QString) const':
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kapp.cpp:1432:17: warning: ignoring return value of 'int setuid(__uid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
 1432 |           setuid( getuid() );
      |           ~~~~~~^~~~~~~~~~~~
/tmp/makepkg/kde1-kdelibs-git/src/kde1-kdelibs/kdecore/kapp.cpp:1433:17: warning: ignoring return value of 'int setgid(__gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result]
 1433 |           setgid( getgid() );
      |           ~~~~~~^~~~~~~~~~~~
cc1plus: some warnings being treated as errors
make[2]: *** [kdecore/CMakeFiles/kdecore.dir/build.make:474: kdecore/CMakeFiles/kdecore.dir/kaccel.cpp.o] Error 1
cc1plus: some warnings being treated as errors
make[2]: *** [kdecore/CMakeFiles/kdecore.dir/build.make:488: kdecore/CMakeFiles/kdecore.dir/kglobalaccel.cpp.o] Error 1
[ 22%] Linking CXX shared library libjscript.so
cc1plus: some warnings being treated as errors
make[2]: *** [kdecore/CMakeFiles/kdecore.dir/build.make:320: kdecore/CMakeFiles/kdecore.dir/kdebug.cpp.o] Error 1
[ 22%] Built target jscript
make[1]: *** [CMakeFiles/Makefile2:489: kdecore/CMakeFiles/kdecore.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

one question. the cmake files is stored in '/usr/share/cmake-(current_version}/Modules, but when new cmake version is installed, the cmake file provides by this package is keeped installed in the previous directory. this cmake should be installed in other place? i see other , for example, plasma frameworks installed in /usr/lib/cmake/FOO. this should be better place?

greetings

sandsmark commented on 2020-09-28 08:06 (UTC)

The sed fails (I fixed it upstream), so you'll need this patch:

diff --git a/PKGBUILD b/PKGBUILD
index 8c6df6e..718061c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: Luca Weiss <WEI16416 (at) spengergasse (dot) at>

pkgname=kde1-kdelibs-git
-pkgver=1.1.2r3033.ca9e8f0f
+pkgver=1.1.2r3041.7bfe14ed
pkgrel=1
pkgdesc="Historical copy of the libraries module of KDE 1, adapted to compile on modern systems (circa. 2016)"
arch=('i686' 'x86_64')
@@ -13,7 +13,7 @@ depends=('qt1' 'libpng' 'libjpeg-turbo' 'libtiff')
makedepends=('cmake' 'git')
provides=('kde1-kdelibs')
conflicts=('kde1-kdelibs')
-source=("git://anongit.kde.org/kde1-kdelibs.git")
+source=("git+https://anongit.kde.org/kde1-kdelibs.git")
md5sums=('SKIP')

pkgver() {
@@ -28,8 +28,6 @@ prepare() {
mkdir build
fi
cd kde1-kdelibs
-  sed -i 's/lib64/lib/' cmake/FindQt1.cmake
-  sed -i 's/lib64/lib/' cmake/KDE1InstallDirs.cmake
}

build() {