Commit graph

1214 commits

Author SHA1 Message Date
Ivailo Monev
5d2d39e853 generic: drop support for operating systems Katie does not support
replace internal definitions with Q_OS_<OS> alternatives checks while at it

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-25 04:48:18 +02:00
Ivailo Monev
5a1d517641 generic: remove check for _getpty()
Katie does not support IRIX

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-24 21:13:19 +00:00
Ivailo Monev
b5303a651e generic: review configuration checks
despite the gettimeofday() check for an example, the function is used
unconditionally thus checks for errno header are removed aswell rather then
making them required from configuration checks and error-ing out if not
found.

other cases such as trunc() are used in kexiv2 unconditionally, not in
kdecore.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-24 21:04:54 +00:00
Ivailo Monev
e29f7a0687 kdecore: replace use of deprecated Qt::DateFormat enums
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-24 18:40:53 +00:00
Ivailo Monev
7ff41b305d generic: remove use of getpt()
glibc-specific and the manual page for it recommends using posix_openpt()
instead

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-23 18:04:32 +00:00
Ivailo Monev
ad62a1101e generic: remove unused termios header check
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-23 16:16:50 +00:00
Ivailo Monev
108f35a2e6 kimgio: remove Q_EXPORT_STATIC_PLUGIN() macro calls
Katie does not support loading of static plugins

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-22 22:23:11 +00:00
Ivailo Monev
bdc43e7ab2 cmake: support different Attica versions
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-21 21:27:17 +00:00
Ivailo Monev
cb045b2d9f kdecore: call kbuildsycoca via non-static QProcess::start()
since QProcess::execute() is static it is possible to call it with object
but it does not do what one expects (failure in API design). it creates a
new process but any other methods calls have no effect on that.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-21 19:22:04 +00:00
Ivailo Monev
accedce2d6 kdecore: remove redundant breaks in KXzFilter
fixes compiler warning

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-21 19:18:34 +00:00
Ivailo Monev
fe8e27f351 cmake: rewrite LibAttica, LibLZMA, LibSSH, Mtp and RAW1394 modules
gets rid of the fragile version parsing and substitutes it with version
based on pkg-config variable
2020-02-21 19:17:25 +00:00
Ivailo Monev
eb8adea4ce cmake: rewrite PCIUTILS module
it was causing overlinkg due to incorrect dependency additions added by the
module because resolv library is used privately. in fact, it uses zlib and
udev too but only privately and none of their include directories are
needed to use libpci.

since the rewrite makes use of pkg-config as primary lookup method any
future changes to that behaviour will be handled correctly without
overlinking.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-20 22:06:56 +00:00
Ivailo Monev
af9afb46d0 cmake: remove unused MacroLogFeature module
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-20 22:01:39 +00:00
Ivailo Monev
99c9ddc5e6 cmake: rewrite LibMms and LibSpectre modules
the LibSpectre module rewrite fixes warning about use of deprecated
UsePkgConfig module

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-20 18:59:07 +00:00
Ivailo Monev
5996fef58e cmake: rewrite HUNSPELL module
since pkg-config method is used as primary this change should fix forward
compatibility issues related to it being versioned in unusual way. while
at it, added 1.7 to list of names

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-20 04:57:54 +00:00
Ivailo Monev
c755f25fc4 cmake: remove CMAKE_C_FLAGS override from LIBPARTED module
no custom C/C++ flags are set globally during build, the exceptions is
KDE4_ENABLE_EXCEPTIONS which build systems use where needed only

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-19 20:54:26 +00:00
Ivailo Monev
3065f6f156 cmake: review CMake modules rewritten by me
since find_package_handle_standard_args() is used and no status messages
are printed by the modules there is no reason to set <MODULE>_FIND_QUIETLY
variable (which should be prefixed with the actual module name, not upper
case)

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-19 20:52:40 +00:00
Ivailo Monev
ab1248d072 cmake: amend dependencies variables only if package itself is found
this ensures package will be considered as not found in case the
dependencies of the package are found but not the actual package that the
module is looking for

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-19 22:04:29 +02:00
Ivailo Monev
220edf11d7 generic: replace use of MacroPushRequiredVars CMake module with CMakePushCheckState
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-19 17:32:31 +00:00
Ivailo Monev
7be74f914f generic: remove CPack and CTest config files
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-19 17:13:24 +00:00
Ivailo Monev
578db06441 generic: move configuration files creation after package lookups
remove unused HAVE_LIBACL definition while at it

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-19 17:12:33 +00:00
Ivailo Monev
21697dadf6 cmake: rewrite Qalculate module
neither the Plasma runner nor the applet actually used the QALCULATE_CFLAGS
variable meaning that if Qalculate was installed in non-standard prefix
the build was likely to fail, this fixes that problem by replacing it with
QALCULATE_INCLUDE_DIR which will be used in the build system for the applet
and runner.

also fixes a CMake deprecation warning about using obsolete UsePkgConfig
module.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-19 16:48:14 +00:00
Ivailo Monev
45eb9a8097 cmake: remove unused systeminfo file
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-19 15:35:54 +00:00
Ivailo Monev
061fe69615 kdeui: get rid of Konqueror history requirement for KComboBox test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-19 04:14:03 +00:00
Ivailo Monev
ea8388aaa6 kdecore: remove unused ipv6blacklist file
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-18 22:16:41 +00:00
Ivailo Monev
359ff5b861 kdecore: remove unused configuration checks
netsupp was provided for KDE3 compatibility and the header is not even
installed. the only place where getnameinfo() is used is in KIO kpac DHCP helper
but it does not include the netsupp header.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-18 22:09:53 +00:00
Ivailo Monev
c020af37da cmake: remove QT_VISIBILITY_AVAILABLE check
Katie supports only compilers which have support for visibility attributes

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-18 21:47:20 +00:00
Ivailo Monev
33e6c2e39c cmake: use identical _KDE4_PLATFORM_DEFINITIONS for all compilers on GNU/Linux host
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-18 21:30:13 +00:00
Ivailo Monev
d78dec7d88 cmake: remove Qt support leftovers
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-18 21:25:02 +00:00
Ivailo Monev
26644cda72 generic: remove unused definitions from config-prefix header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-18 21:06:45 +00:00
Ivailo Monev
8e8837e9df mimetypes: remove redundant entries
they are either provided by shared-mime-info v1.10 or for sub-projects not
part of the Katana project

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-18 18:55:00 +00:00
Ivailo Monev
33cad70fd6 cmake: remove unused SubversionLibrary module
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-18 18:01:23 +00:00
Ivailo Monev
a49ebef7c5 cmake: remove unused Eigen2 module
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-18 17:58:05 +00:00
Ivailo Monev
6de0aa57cc cmake: MacroLogFeature rewrite
logging found and otherwise packages will no longer be done thus
macro_display_feature_log() is removed. the reason for not doing is because
it simply does not cover all package lookups, only those logged via
macro_log_feature(). if I was to fix that, I would probably resort to
CMakeCache.txt parsing trickery since it includes indirect package lookups
aswell as header, struct, member, etc. checks however that would be
fragile and require common pattern in the checks

macro_log_feature() incorrectly quoted DESCRIPTION and PURPOSE in the
CMake output but that is fixed now. it will be replaced with actual
set_package_properties() macro calls in the future.

in any case, it is addition disk I/O so the configuration/build time will
be reduced with this change.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-18 16:41:32 +00:00
Ivailo Monev
addf9315b4 cmake: set version variables to non-PC_ prefixed
for possible version checks in build systems which expect the variable
prefix to match that of the other variables

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-18 15:53:03 +00:00
Ivailo Monev
1ba57b3b8d cmake: move GIO, IBus and SCIM modules from kde-extraapps
the modules were also rewritten

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-18 15:35:24 +00:00
Ivailo Monev
12a4d15d41 cmake: remove unused Xmms module
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-18 14:38:28 +00:00
Ivailo Monev
d6b3f6ad59 cmake: remove unused LCMS2 module
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-18 14:12:24 +00:00
Ivailo Monev
d11526f95b cmake: remove unused PkgConfigGetVar module
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-18 14:07:46 +00:00
Ivailo Monev
1096cd9b2b kdeui: indent Highlighter::eventFilter()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-16 17:23:59 +00:00
Ivailo Monev
a38faaff0c kdeui: remove default virtual QSyntaxHighlighter overrides
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-16 17:23:32 +00:00
Ivailo Monev
3eb17fdf2b cmake: review modules rewritten so far by me
using pkg-config search as primary method with fallback to path lookup,
this may result in overlinking however if libraries require additional
include paths (as is the case with PulseAudio) with this change that will
not be a problem.

it will also reduce the lookups done during configuration/build since path
lookups will not be done, unless pkg-config lookup does not set the
required variables.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-10 20:52:45 +00:00
Ivailo Monev
f1304e5c21 cmake: rewrite PulseAudio module
this gets rid of the GLib2 package search requirement in KMix build system

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-10 19:41:14 +00:00
Ivailo Monev
c27f1ffae1 cmake: remove unused SLP module
TODO from https://github.com/fluxer/katana/issues/8

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-10 01:24:16 +00:00
Ivailo Monev
4d6fb007e7 generic: fix most of the overlinking issues
TODO from https://github.com/fluxer/katana/issues/7. I've decided to
keep KDE4 and Katie libraries as PUBLIC, all other libraries as PRIVATE
for that and not use INTERFACE at all since that will not require a lot
of changes to all other sub-projects (kde-baseapps, kde-workspace and
kde-extraapps) build systems.

MusicBrainz5 CMake module was also rewritten as the actual library that
should be linked to is libmusicbrainz5cc, libmusicbrainz5 is the C
version of it.

common checks for X11 extensions where move to main config header,
eventually to be moved to separate config-x11 header.

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-09 21:58:11 +00:00
Ivailo Monev
9dcca4fe37 kdecore: update bundled gettext header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-09 02:27:50 +00:00
Ivailo Monev
478ca250a2 generic: replace installation paths with KDE4_ prefixed
this is TODO from issue #9. CPack and CTest configs will not be
supported. most of the changes done to other repisitories is automated
via:

find -type f -exec sed -i -e 's|${INSTALL_DIR}|${KDE4_INSTALL_DIR}|g' \
    -e 's|${EXEC_INSTALL_PREFIX}|${KDE4_EXEC_INSTALL_PREFIX}|g' \
    -e 's|${SHARE_INSTALL_PREFIX}|${KDE4_SHARE_INSTALL_PREFIX}|g' \
    -e 's|${BIN_INSTALL_DIR}|${KDE4_BIN_INSTALL_DIR}|g' \
    -e 's|${SBIN_INSTALL_DIR}|${KDE4_SBIN_INSTALL_DIR}|g' \
    -e 's|${LIB_INSTALL_DIR}|${KDE4_LIB_INSTALL_DIR}|g' \
    -e 's|${LIBEXEC_INSTALL_DIR}|${KDE4_LIBEXEC_INSTALL_DIR}|g' \
    -e 's|${INCLUDE_INSTALL_DIR}|${KDE4_INCLUDE_INSTALL_DIR}|g' \
    -e 's|${PLUGIN_INSTALL_DIR}|${KDE4_PLUGIN_INSTALL_DIR}|g' \
    -e 's|${IMPORTS_INSTALL_DIR}|${KDE4_IMPORTS_INSTALL_DIR}|g' \
    -e 's|${CONFIG_INSTALL_DIR}|${KDE4_CONFIG_INSTALL_DIR}|g' \
    -e 's|${DATA_INSTALL_DIR}|${KDE4_DATA_INSTALL_DIR}|g' \
    -e 's|${ICON_INSTALL_DIR}|${KDE4_ICON_INSTALL_DIR}|g' \
    -e 's|${KCFG_INSTALL_DIR}|${KDE4_KCFG_INSTALL_DIR}|g' \
    -e 's|${LOCALE_INSTALL_DIR}|${KDE4_LOCALE_INSTALL_DIR}|g' \
    -e 's|${MIME_INSTALL_DIR}|${KDE4_MIME_INSTALL_DIR}|g' \
    -e 's|${SERVICES_INSTALL_DIR}|${KDE4_SERVICES_INSTALL_DIR}|g' \
    -e 's|${SERVICETYPES_INSTALL_DIR}|${KDE4_SERVICETYPES_INSTALL_DIR}|g' \
    -e 's|${SOUND_INSTALL_DIR}|${KDE4_SOUND_INSTALL_DIR}|g' \
    -e 's|${TEMPLATES_INSTALL_DIR}|${KDE4_TEMPLATES_INSTALL_DIR}|g' \
    -e 's|${WALLPAPER_INSTALL_DIR}|${KDE4_WALLPAPER_INSTALL_DIR}|g' \
    -e 's|${AUTOSTART_INSTALL_DIR}|${KDE4_AUTOSTART_INSTALL_DIR}|g' \
    -e 's|${XDG_APPS_INSTALL_DIR}|${KDE4_XDG_APPS_INSTALL_DIR}|g' \
    -e 's|${XDG_DIRECTORY_INSTALL_DIR}|${KDE4_XDG_DIRECTORY_INSTALL_DIR}|g' \
    -e 's|${XDG_MIME_INSTALL_DIR}|${KDE4_XDG_MIME_INSTALL_DIR}|g' \
    -e 's|${SYSCONF_INSTALL_DIR}|${KDE4_SYSCONF_INSTALL_DIR}|g' \
    -e 's|${MAN_INSTALL_DIR}|${KDE4_MAN_INSTALL_DIR}|g' \
    -e 's|${INFO_INSTALL_DIR}|${KDE4_INFO_INSTALL_DIR}|g' \
    -e 's|${DBUS_INTERFACES_INSTALL_DIR}|${KDE4_DBUS_INTERFACES_INSTALL_DIR}|g' \
    -e 's|${DBUS_SERVICES_INSTALL_DIR}|${KDE4_DBUS_SERVICES_INSTALL_DIR}|g' \
    -e 's|${DBUS_SYSTEM_SERVICES_INSTALL_DIR}|${KDE4_DBUS_SYSTEM_SERVICES_INSTALL_DIR}|g' \
    -e 's|${KAUTH_HELPER_PLUGIN_DIR}|${KDE4_KAUTH_HELPER_PLUGIN_DIR}|g' \
    -e 's|${KAUTH_BACKEND_PLUGIN_DIR}|${KDE4_KAUTH_BACKEND_PLUGIN_DIR}|g' {} +

note that if you execute this command you may corrupt the git repository
files so move the .git directory out of the way. you can also verify
that there are no other reference to the compatibility installation
paths via:

git grep \
    -e INSTALL_DIR \
    -e EXEC_INSTALL_PREFIX \
    -e SHARE_INSTALL_PREFIX \
    -e BIN_INSTALL_DIR \
    -e SBIN_INSTALL_DIR \
    -e LIB_INSTALL_DIR \
    -e LIBEXEC_INSTALL_DIR \
    -e INCLUDE_INSTALL_DIR \
    -e PLUGIN_INSTALL_DIR \
    -e IMPORTS_INSTALL_DIR \
    -e CONFIG_INSTALL_DIR \
    -e DATA_INSTALL_DIR \
    -e ICON_INSTALL_DIR \
    -e KCFG_INSTALL_DIR \
    -e LOCALE_INSTALL_DIR \
    -e MIME_INSTALL_DIR \
    -e SERVICES_INSTALL_DIR \
    -e SERVICETYPES_INSTALL_DIR \
    -e SOUND_INSTALL_DIR \
    -e TEMPLATES_INSTALL_DIR \
    -e WALLPAPER_INSTALL_DIR \
    -e AUTOSTART_INSTALL_DIR \
    -e XDG_APPS_INSTALL_DIR \
    -e XDG_DIRECTORY_INSTALL_DIR \
    -e XDG_MIME_INSTALL_DIR \
    -e SYSCONF_INSTALL_DIR \
    -e MAN_INSTALL_DIR \
    -e INFO_INSTALL_DIR \
    -e DBUS_INTERFACES_INSTALL_DIR \
    -e DBUS_SERVICES_INSTALL_DIR \
    -e DBUS_SYSTEM_SERVICES_INSTALL_DIR \
    -e KAUTH_HELPER_PLUGIN_DIR \
    -e KAUTH_BACKEND_PLUGIN_DIR | grep -v KDE4_

this change should make default installation Filesystem Hierarchy
Standard (FHS) compliant and packaging easier since library suffix (e.g.
64 for x86_64 hosts) will not have to be specified explicitly, it may
solve possible conflicts with installation path variables from other
projects which use custom installation paths aswell

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-08 20:46:43 +00:00
Ivailo Monev
80959a284b cmake: rewrite Alsa module
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-08 18:05:50 +00:00
Ivailo Monev
2c5c39f81b generic: remove unused KDE4_KPTY_BUILT_WITH_UTEMPTER from KDE4Config CMake file
Kate no longer used kwrited to write files

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-08 17:15:18 +00:00
Ivailo Monev
d5184d50b1 cmake: rewrite GMP, MPFR, MPV and Sqlite modules
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-08 17:13:19 +00:00