Commit graph

40 commits

Author SHA1 Message Date
Ivailo Monev
aed57d24de kpty: check for utmp/utmpx path definitions
fixes build on FreeBSD

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-02-04 13:31:34 +02:00
Ivailo Monev
fb3284e764 generic: use ut_user utmp/utmpx member if available
partially fixes build on FreeBSD

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-02-04 13:27:49 +02:00
Ivailo Monev
f5ad9fd03b Revert "generic: do not rely on login()/loginx() and logout()/logoutx()"
This reverts commit cf68640e13.
2021-02-03 04:09:48 +02:00
Ivailo Monev
2cd9559a3e generic: Hurd build fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-02-01 05:08:38 +02:00
Ivailo Monev
cf68640e13 generic: do not rely on login()/loginx() and logout()/logoutx()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-01-26 21:40:14 +02:00
Ivailo Monev
9b97882c3d generic: drop libutempter support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-01-26 17:01:48 +02:00
Ivailo Monev
4edef2a067 kpty: assume logoutx() and logout() clears the utmp record
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-01-23 05:22:57 +02:00
Ivailo Monev
067afe442b generic: fix PTY login on NetBSD
based on patch from NetBSD's pkgsrc

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-01-23 02:53:46 +02:00
Ivailo Monev
da9a1745c5 generic: remove most compiler checks
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-01-09 16:39:44 +02:00
Ivailo Monev
0ffeceacdc kpty: build for platforms with utmpx but without utmp header (DragonFly BSD)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2020-12-25 00:41:04 +00:00
Ivailo Monev
d2c5598a0f generic: DragonFly BSD build fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2020-12-25 00:14:07 +00:00
Ivailo Monev
803bea264a generic: drop support for operating systems Katie does not support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2020-10-26 16:34:16 +02:00
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
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
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
c0e06f8215 generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-04 23:59:42 +00:00
Ivailo Monev
1770d5726f kpty: compiler warning fix
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-06-30 13:32:47 +00:00
Ivailo Monev
bbc0b5a3f8 generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-30 23:38:25 +00:00
Ivailo Monev
3e06b05004 generic: use QAtomicInt/QAtomicPointer instead of QBasicAtomicInt/QBasicAtomicPointer
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-30 23:37:55 +00:00
Ivailo Monev
1c70cb95e7 kpty: removal redundant workaround from kptyprocesstest
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-21 18:02:07 +00:00
Ivailo Monev
5625d3bd29 generic: build system cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-03 00:32:29 +00:00
Ivailo Monev
1f34f5ad73 generic: use CMake export header generator
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-27 20:13:02 +00:00
Ivailo Monev
bd00cedf46 generic: make some stat calls 64-bit aware
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-21 20:23:12 +00:00
Ivailo Monev
5600c15dec generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-11 08:06:16 +00:00
Ivailo Monev
04506de1e7 generic: build system cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-02 19:10:29 +02:00
Ivailo Monev
3634770269 generic: build system cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-02 03:38:51 +02:00
Ivailo Monev
352b640187 kpty: declare KPtyPrivate and KPtyDevicePrivate as class rather than struct
because Q_DECLARE_PUBLIC() declares class clangs emmits warning that the
classes were previously declared as structs, this change is kinda of revert
of previous series of struct <-> class warnings fixes and may need changes
in other places (such as konsole from kde-baseapps) to fix the same issues
given that now the forementioned classes declaration has changed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-10-31 13:03:20 +02:00
Ivailo Monev
c0da30760b generic: misc cleanups 2015-09-06 14:43:27 +03:00
Ivailo Monev
eeba19d4c4 generic: misc cleanups 2015-09-04 13:06:11 +00:00
Ivailo Monev
007a44cd2f generic: major build system cleanup
the test are broken!
2015-09-01 01:05:33 +03:00
Ivailo Monev
21ad0df488 generic: make changes required for building against katie 2015-08-11 05:56:07 +03:00
Ivailo Monev
e05886723a generic: normalize include guards 2015-07-11 18:20:46 +03:00
Ivailo Monev
a7064db00e generic: deal with LINK_INTERFACE_LIBRARIES, cmake >=2.8.11 required now 2015-06-25 00:27:48 +03:00
Ivailo Monev
37d3f6374b kpty: use tcgetattr & tcsetattr if available
From: Pino Toscano <pino@kde.org>
Date: Sat, 16 May 2015 13:25:56 +0000
Subject: Use tcgetattr & tcsetattr if available
X-Git-Tag: v5.11.0
X-Git-Url: http://quickgit.kde.org/?p=kpty.git&a=commitdiff&h=35ea45b588db9afcbd796576833ac338c6b4b8e8
---
Use tcgetattr & tcsetattr if available

Look for tcgetattr & tcsetattr, and use them if found before trying the
own OS checks. They are specified by POSIX.1-2008, so they should be
available on platforms implementing modern POSIX interfaces.

The rest of the fallback code is left as is for platforms not previously
using tcgetattr & tcsetattr.

REVIEW: 123811
---
2015-06-16 15:47:55 +03:00
Ivailo Monev
82fc15f54b generic: use CMake moc instead of automoc4 by default
for compatibilty reasons automoc4 support is not removed but it
shall be in the future. automoc4 has not been maintained for a
while (last commit is from 2011) and the stable release is from
2009.

CMake version >= 2.8.6 provides the functionality for mocking so
I see no reason to not make use of it.
2015-02-27 07:40:26 +00:00
Ivailo Monev
c88b5ef465 remove all doxygen pages and add top-level config 2014-12-04 20:34:48 +00:00
Ivailo Monev
c7a2a17692 yet more windows and mac code remove 2014-11-19 15:30:39 +00:00
Ivailo Monev
d1998a1d50 removed static libraries defines (including #if 0, watch out!) 2014-11-18 00:42:37 +00:00
Ivailo Monev
814163a8dc initial import 2014-11-13 01:04:59 +02:00