Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package x2x for openSUSE:Factory checked in at 2025-02-17 20:57:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/x2x (Old) and /work/SRC/openSUSE:Factory/.x2x.new.8181 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "x2x" Mon Feb 17 20:57:20 2025 rev:22 rq:1246440 version:1.30rc1+git.20180517 Changes: -------- --- /work/SRC/openSUSE:Factory/x2x/x2x.changes 2018-07-28 12:40:01.468382190 +0200 +++ /work/SRC/openSUSE:Factory/.x2x.new.8181/x2x.changes 2025-02-17 20:57:53.032872530 +0100 @@ -1,0 +2,8 @@ +Fri Feb 14 13:00:39 UTC 2025 - pgaj...@suse.com + +- fix build with gcc 15 +- added patches + fix https://github.com/dottedmag/x2x/issues/45 + + x2x-gcc15.patch + +------------------------------------------------------------------- New: ---- x2x-gcc15.patch BETA DEBUG BEGIN: New: fix https://github.com/dottedmag/x2x/issues/45 + x2x-gcc15.patch BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ x2x.spec ++++++ --- /var/tmp/diff_new_pack.ZUobMK/_old 2025-02-17 20:57:54.156919388 +0100 +++ /var/tmp/diff_new_pack.ZUobMK/_new 2025-02-17 20:57:54.156919388 +0100 @@ -1,7 +1,7 @@ # # spec file for package x2x # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -20,10 +20,12 @@ Version: 1.30rc1+git.20180517 Release: 0 Summary: X Window System Display Remote Control -License: GPL-2.0+ +License: GPL-2.0-or-later Group: System/X11/Utilities -Url: https://github.com/dottedmag/x2x +URL: https://github.com/dottedmag/x2x Source: %{name}-%{version}.tar.xz +# https://github.com/dottedmag/x2x/issues/45 +Patch0: x2x-gcc15.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: pkgconfig @@ -37,7 +39,7 @@ display to be used to control another ("to") X Window System display. %prep -%setup -q +%autosetup -p1 %build autoreconf -i ++++++ x2x-gcc15.patch ++++++ --- a/x2x.c 2018-05-17 21:55:02.000000000 +0200 +++ b/x2x.c 2025-02-14 13:54:12.153142137 +0100 @@ -137,46 +137,6 @@ extern Status DPMSForceLevel(Display *, #define EDGE_WEST 4 /* from display is on the west side of to display */ /********** - * functions - **********/ -static void ParseCommandLine(); -static Display *OpenAndCheckDisplay(); -static Bool CheckTestExtension(); -#ifndef WIN_2_X -static int ErrorHandler(); -#endif -static void DoDPMSForceLevel(); -static void DoX2X(); -static void InitDpyInfo(); -static void DoConnect(); -static void DoDisconnect(); -static void RegisterEventHandlers(); -static Bool ProcessEvent(); -static Bool ProcessMotionNotify(); -static Bool ProcessExpose(); -static void DrawWindowText(); -static Bool ProcessEnterNotify(); -static Bool ProcessButtonPress(); -static Bool ProcessButtonRelease(); -static Bool ProcessKeyEvent(); -static Bool ProcessConfigureNotify(); -static Bool ProcessClientMessage(); -static Bool ProcessSelectionRequest(); -static void SendPing(); -static Bool ProcessPropertyNotify(); -static Bool ProcessSelectionNotify(); -static void SendSelectionNotify(); -static Bool ProcessSelectionClear(); -static Bool ProcessVisibility(); -static Bool ProcessMapping(); -static void FakeThingsUp(); -static void FakeAction(); -static void RefreshPointerMapping(); -static void Usage(); -static void *xmalloc(); - - -/********** * stuff for selection forwarding **********/ typedef struct _dpyxtra { @@ -187,16 +147,6 @@ typedef struct _dpyxtra { Window propWin; } DPYXTRA, *PDPYXTRA; -/********** - * structures for recording state of buttons and keys - **********/ -typedef struct _fakestr { - struct _fakestr *pNext; - int type; - KeySym thing; - KeyCode code; -} FAKE, *PFAKE; - #define FAKE_KEY 0 #define FAKE_BUTTON 1 @@ -222,6 +172,17 @@ typedef struct _fakestr { #define MAX_UNREASONABLES 10 /********** + * structures for recording state of buttons and keys + **********/ +typedef struct _fakestr { + struct _fakestr *pNext; + int type; + KeySym thing; + KeyCode code; +} FAKE, *PFAKE; + + +/********** * display information **********/ typedef struct { @@ -321,7 +282,48 @@ typedef struct _sticky { KeySym keysym; } STICKY, *PSTICKY; -typedef int (*HANDLER)(); /* event handler function */ +typedef int (*HANDLER)(Display *, PDPYINFO, XEvent *); /* event handler function */ + +/********** + * functions + **********/ +static void ParseCommandLine(int, char **); +static Display *OpenAndCheckDisplay(char *); +static Bool CheckTestExtension(Display *); +#ifndef WIN_2_X +static int ErrorHandler(Display *, XErrorEvent *); +#endif +static void DoDPMSForceLevel(PSHADOW, CARD16); +static void DoX2X(Display *, Display *); +static void InitDpyInfo(PDPYINFO); +static void DoConnect(PDPYINFO); +static void DoDisconnect(PDPYINFO); +static void RegisterEventHandlers(PDPYINFO); +static Bool ProcessEvent(Display *, PDPYINFO); +static Bool ProcessMotionNotify(Display*, PDPYINFO, XMotionEvent*); +static Bool ProcessExpose(); +static void DrawWindowText(PDPYINFO); +static Bool ProcessEnterNotify(); +static Bool ProcessButtonPress(); +static Bool ProcessButtonRelease(); +static Bool ProcessKeyEvent(); +static Bool ProcessConfigureNotify(); +static Bool ProcessClientMessage(); +static Bool ProcessSelectionRequest(); +static void SendPing(Display *, PDPYXTRA); +static Bool ProcessPropertyNotify(); +static Bool ProcessSelectionNotify(); +static void SendSelectionNotify(XSelectionRequestEvent *); +static Bool ProcessSelectionClear(); +static Bool ProcessVisibility(); +static Bool ProcessMapping(); +static void FakeThingsUp(PDPYINFO); +static void FakeAction(PDPYINFO, int, KeySym, Bool); +static void RefreshPointerMapping(Display *, PDPYINFO); +static void Usage(); +static void *xmalloc(size_t); + + /* These prototypes need the typedefs */ #ifdef WIN_2_X