diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-16 19:53:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-16 19:53:15 +0100 |
commit | 3108ce8586e6da41676fd6bed4101da8f4af8e31 (patch) | |
tree | e4615a7e9e6c30870f9dbd61f413dc0782b3b7af /media-libs/libsdl | |
parent | b45619404fe758cf9245826fe1ffb4d6c4e767de (diff) |
gentoo auto-resync : 16:10:2022 - 19:53:15
Diffstat (limited to 'media-libs/libsdl')
-rw-r--r-- | media-libs/libsdl/Manifest | 3 | ||||
-rw-r--r-- | media-libs/libsdl/files/libsdl-1.2.15-strict-prototypes.patch | 316 | ||||
-rw-r--r-- | media-libs/libsdl/libsdl-1.2.15_p20210224.ebuild | 1 |
3 files changed, 319 insertions, 1 deletions
diff --git a/media-libs/libsdl/Manifest b/media-libs/libsdl/Manifest index c3f3c09cee6c..f13dbf534301 100644 --- a/media-libs/libsdl/Manifest +++ b/media-libs/libsdl/Manifest @@ -1,6 +1,7 @@ AUX libsdl-1.2.15-gamma.patch 1339 BLAKE2B 83e0d10fc4396ce992c8f59043e2380921a44dac84d305cd3108dc6989de23aef7f1442b162c8f8392846630c3df6a725bb54cf1ead9d6ce2ffe3bc6df735a38 SHA512 0717e8eea7a9a1bcadb56c4a51023142d57718ccfff4e372faba3e28ce17b3e32caa8a8ffc8054c8b49bab566a44fd46f5eaf97b778ba6ec991d845d4ae464ce AUX libsdl-1.2.15-sdl-config.patch 784 BLAKE2B d54d98ad6ddbea163fd4a0ce9d65ac77d832d68d611c1cd4fb20fa70b5bee641204a4ff7b51eff47f6a4e94193d1cad2f82bdb64a4d73582c932a3661870e3cb SHA512 95af8c3dac4fdea5bad92c044a311efaae02a46e1c5bfa84dadee7b3fab6b48f4dcf12ca6e581429decb479de21ec6167c59b215fb3a398fb82151aa4c3fb432 AUX libsdl-1.2.15-slibtool.patch 2288 BLAKE2B 5018f714eb40320eb0d310de1553638d66c81a70e7ab7366cedc38d11641f7ab68699d5fa2ea466a2e99c5cd778bb949114a5c5a4190e37f8fc86060962a8bf4 SHA512 e020a8d9a4fe2e74884b0aa8e69778dbbf2b60c70181767f84404038a07ca55956794b19ad8d3a4e5211bf6ecf05ec65712a588076fe9467442f21b99baca4fe +AUX libsdl-1.2.15-strict-prototypes.patch 10377 BLAKE2B d0c029a3a4ecade9300d5ca4bb40a962fe0a89c1468ee9109e0552975153f8f9d8a5bf6c7a387af52513b75dc74cf53c6c727e1da372aedb85dd1ff69eb25249 SHA512 2c4c6b5aa8cdda8b49718457e25a7d86de3371be5589c061358a221d2c99fec1e8cb4b27e6850b4353f7ec36b1e226c4c553ed39927f30d8692481d5c21774e6 DIST SDL-1.2.15_p20210224.tar.gz 3991106 BLAKE2B be0906950c80cddf15bc458f7734a3ebfa767b11e2f54bf9f771155f4420947900b95bbbebf01341d9dba4c1c7cfe9d54e43150e5f7781622b99668b3362adeb SHA512 3521fe996cf8a8ebb9beaa4802ac05cf5f3a2e7ed1c9b362a818d965b26ec8b3bbebfaac7c827feae44becf5bdd764378cb4282d129285f23a982b5c7474e006 -EBUILD libsdl-1.2.15_p20210224.ebuild 4999 BLAKE2B fe228f97edac202bc89cdd38fe192edde3037b645bead2770b6bd5da6fe3dad1e6ef1600ba742aa9df3471c58ab35ac0a1c4735288bbe6ed5e7995c38ff76680 SHA512 abd401426865b5f4ea68540572a386e5807199649112ac0689afcfd38d109517bfcdb14727d9ae9e461b55436701cdddd41bfe013912a21e5fe6b2784126056c +EBUILD libsdl-1.2.15_p20210224.ebuild 5059 BLAKE2B 1dc2cdebb3c5053b32b575abb49193c0feeaf1007c7446bb5e1c023b267785cf92c0503793572b840de822ead7936bc3387b890b80370eca5e8b20fc2a83398b SHA512 f676a7866500b2ee49e7da7b7b0d922b51dd9ae2477f847961590a88211655394537f0ddac7fab0b3cf4b52973e192bc15788841f92459d53407392369eb47b2 MISC metadata.xml 1416 BLAKE2B 6af92a836cd40833fa7969db829d91d2afd78cbc8a992b79f88655d54da5053af98a44e222f64c1f3189b43c97dbc697cbaa7992620740c0e486df37bcd878dc SHA512 96b7e96ece4c3a81e719041ad0dd2293b0781d84496cef0a7af1077405b9a0cf7bc3d41aad2f31aa6451768e7d8a9f0402cd38fcdbbfd527fd85b88f8e81a04c diff --git a/media-libs/libsdl/files/libsdl-1.2.15-strict-prototypes.patch b/media-libs/libsdl/files/libsdl-1.2.15-strict-prototypes.patch new file mode 100644 index 000000000000..65a98670adfe --- /dev/null +++ b/media-libs/libsdl/files/libsdl-1.2.15-strict-prototypes.patch @@ -0,0 +1,316 @@ +https://github.com/libsdl-org/SDL-1.2/pull/869 +https://github.com/libsdl-org/SDL-1.2/commit/ff3516b9ddbb4f8a87d9c3546c0a4fb6eb491cfe +https://github.com/libsdl-org/SDL-1.2/commit/e738cfffced8a006094d55337d917386582ada47 + +From ff3516b9ddbb4f8a87d9c3546c0a4fb6eb491cfe Mon Sep 17 00:00:00 2001 +From: orbea <orbea@riseup.net> +Date: Sat, 15 Oct 2022 14:35:38 -0700 +Subject: [PATCH 1/2] Xxf86vm: Fix function definitions without a prototype + +This is not supported with the upcoming clang 16. + +error: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] + +reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240 +--- + src/video/Xext/Xxf86vm/XF86VMode.c | 128 +++++++++++++++-------------- + 1 file changed, 65 insertions(+), 63 deletions(-) + +diff --git a/src/video/Xext/Xxf86vm/XF86VMode.c b/src/video/Xext/Xxf86vm/XF86VMode.c +index 5cb21905a..c3bd26716 100644 +--- a/src/video/Xext/Xxf86vm/XF86VMode.c ++++ b/src/video/Xext/Xxf86vm/XF86VMode.c +@@ -102,9 +102,11 @@ static XEXT_GENERATE_CLOSE_DISPLAY (close_display, xf86vidmode_info) + *****************************************************************************/ + + Bool +-SDL_NAME(XF86VidModeQueryExtension) (dpy, event_basep, error_basep) +- Display *dpy; +- int *event_basep, *error_basep; ++SDL_NAME(XF86VidModeQueryExtension)( ++ Display *dpy, ++ int *event_basep, ++ int *error_basep ++) + { + XExtDisplayInfo *info = find_display (dpy); + +@@ -118,10 +120,11 @@ SDL_NAME(XF86VidModeQueryExtension) (dpy, event_basep, error_basep) + } + + Bool +-SDL_NAME(XF86VidModeQueryVersion)(dpy, majorVersion, minorVersion) +- Display* dpy; +- int* majorVersion; +- int* minorVersion; ++SDL_NAME(XF86VidModeQueryVersion)( ++ Display *dpy, ++ int *majorVersion, ++ int *minorVersion ++) + { + XExtDisplayInfo *info = find_display (dpy); + xXF86VidModeQueryVersionReply rep; +@@ -215,11 +218,12 @@ SDL_NAME(XF86VidModeGetGamma)(Display *dpy, int screen, SDL_NAME(XF86VidModeGamm + } + + Bool +-SDL_NAME(XF86VidModeGetModeLine)(dpy, screen, dotclock, modeline) +- Display* dpy; +- int screen; +- int* dotclock; +- SDL_NAME(XF86VidModeModeLine)* modeline; ++SDL_NAME(XF86VidModeGetModeLine)( ++ Display *dpy, ++ int screen, ++ int *dotclock, ++ SDL_NAME(XF86VidModeModeLine) *modeline ++) + { + XExtDisplayInfo *info = find_display (dpy); + xXF86VidModeGetModeLineReply rep; +@@ -292,11 +296,12 @@ SDL_NAME(XF86VidModeGetModeLine)(dpy, screen, dotclock, modeline) + } + + Bool +-SDL_NAME(XF86VidModeGetAllModeLines)(dpy, screen, modecount, modelinesPtr) +- Display* dpy; +- int screen; +- int* modecount; +- SDL_NAME(XF86VidModeModeInfo) ***modelinesPtr; ++SDL_NAME(XF86VidModeGetAllModeLines)( ++ Display *dpy, ++ int screen, ++ int *modecount, ++ SDL_NAME(XF86VidModeModeInfo) ***modelinesPtr ++) + { + XExtDisplayInfo *info = find_display (dpy); + xXF86VidModeGetAllModeLinesReply rep; +@@ -456,11 +461,12 @@ SDL_NAME(XF86VidModeGetAllModeLines)(dpy, screen, modecount, modelinesPtr) + #endif + + Bool +-SDL_NAME(XF86VidModeAddModeLine) (dpy, screen, newmodeline, aftermodeline) +- Display *dpy; +- int screen; +- SDL_NAME(XF86VidModeModeInfo)* newmodeline; +- SDL_NAME(XF86VidModeModeInfo)* aftermodeline; ++SDL_NAME(XF86VidModeAddModeLine)( ++ Display *dpy, ++ int screen, ++ SDL_NAME(XF86VidModeModeInfo) *newmodeline, ++ SDL_NAME(XF86VidModeModeInfo) *aftermodeline ++) + { + XExtDisplayInfo *info = find_display (dpy); + xXF86VidModeAddModeLineReq *req; +@@ -569,10 +575,11 @@ SDL_NAME(XF86VidModeAddModeLine) (dpy, screen, newmodeline, aftermodeline) + } + + Bool +-SDL_NAME(XF86VidModeDeleteModeLine) (dpy, screen, modeline) +- Display *dpy; +- int screen; +- SDL_NAME(XF86VidModeModeInfo)* modeline; ++SDL_NAME(XF86VidModeDeleteModeLine)( ++ Display *dpy, ++ int screen, ++ SDL_NAME(XF86VidModeModeInfo) *modeline ++) + { + XExtDisplayInfo *info = find_display (dpy); + xXF86VidModeDeleteModeLineReq *req; +@@ -633,10 +640,11 @@ SDL_NAME(XF86VidModeDeleteModeLine) (dpy, screen, modeline) + } + + Bool +-SDL_NAME(XF86VidModeModModeLine) (dpy, screen, modeline) +- Display *dpy; +- int screen; +- SDL_NAME(XF86VidModeModeLine)* modeline; ++SDL_NAME(XF86VidModeModModeLine)( ++ Display *dpy, ++ int screen, ++ SDL_NAME(XF86VidModeModeLine) *modeline ++) + { + XExtDisplayInfo *info = find_display (dpy); + xXF86VidModeModModeLineReq *req; +@@ -695,10 +703,11 @@ SDL_NAME(XF86VidModeModModeLine) (dpy, screen, modeline) + } + + Status +-SDL_NAME(XF86VidModeValidateModeLine) (dpy, screen, modeline) +- Display *dpy; +- int screen; +- SDL_NAME(XF86VidModeModeInfo)* modeline; ++SDL_NAME(XF86VidModeValidateModeLine)( ++ Display *dpy, ++ int screen, ++ SDL_NAME(XF86VidModeModeInfo) *modeline ++) + { + XExtDisplayInfo *info = find_display (dpy); + xXF86VidModeValidateModeLineReq *req; +@@ -766,10 +775,7 @@ SDL_NAME(XF86VidModeValidateModeLine) (dpy, screen, modeline) + } + + Bool +-SDL_NAME(XF86VidModeSwitchMode)(dpy, screen, zoom) +- Display* dpy; +- int screen; +- int zoom; ++SDL_NAME(XF86VidModeSwitchMode)(Display *dpy, int screen, int zoom) + { + XExtDisplayInfo *info = find_display (dpy); + xXF86VidModeSwitchModeReq *req; +@@ -788,10 +794,11 @@ SDL_NAME(XF86VidModeSwitchMode)(dpy, screen, zoom) + } + + Bool +-SDL_NAME(XF86VidModeSwitchToMode)(dpy, screen, modeline) +- Display* dpy; +- int screen; +- SDL_NAME(XF86VidModeModeInfo)* modeline; ++SDL_NAME(XF86VidModeSwitchToMode)( ++ Display *dpy, ++ int screen, ++ SDL_NAME(XF86VidModeModeInfo) *modeline ++) + { + XExtDisplayInfo *info = find_display (dpy); + xXF86VidModeSwitchToModeReq *req; +@@ -877,10 +884,7 @@ SDL_NAME(XF86VidModeSwitchToMode)(dpy, screen, modeline) + } + + Bool +-SDL_NAME(XF86VidModeLockModeSwitch)(dpy, screen, lock) +- Display* dpy; +- int screen; +- int lock; ++SDL_NAME(XF86VidModeLockModeSwitch)(Display *dpy, int screen, int lock) + { + XExtDisplayInfo *info = find_display (dpy); + xXF86VidModeLockModeSwitchReq *req; +@@ -899,10 +903,11 @@ SDL_NAME(XF86VidModeLockModeSwitch)(dpy, screen, lock) + } + + Bool +-SDL_NAME(XF86VidModeGetMonitor)(dpy, screen, monitor) +- Display* dpy; +- int screen; +- SDL_NAME(XF86VidModeMonitor)* monitor; ++SDL_NAME(XF86VidModeGetMonitor)( ++ Display *dpy, ++ int screen, ++ SDL_NAME(XF86VidModeMonitor) *monitor ++) + { + XExtDisplayInfo *info = find_display (dpy); + xXF86VidModeGetMonitorReply rep; +@@ -1000,10 +1005,7 @@ SDL_NAME(XF86VidModeGetMonitor)(dpy, screen, monitor) + } + + Bool +-SDL_NAME(XF86VidModeGetViewPort)(dpy, screen, x, y) +- Display* dpy; +- int screen; +- int *x, *y; ++SDL_NAME(XF86VidModeGetViewPort)(Display *dpy, int screen, int *x, int *y) + { + XExtDisplayInfo *info = find_display (dpy); + xXF86VidModeGetViewPortReply rep; +@@ -1053,10 +1055,7 @@ SDL_NAME(XF86VidModeGetViewPort)(dpy, screen, x, y) + } + + Bool +-SDL_NAME(XF86VidModeSetViewPort)(dpy, screen, x, y) +- Display* dpy; +- int screen; +- int x, y; ++SDL_NAME(XF86VidModeSetViewPort)(Display *dpy, int screen, int x, int y) + { + XExtDisplayInfo *info = find_display (dpy); + xXF86VidModeSetViewPortReq *req; +@@ -1077,11 +1076,14 @@ SDL_NAME(XF86VidModeSetViewPort)(dpy, screen, x, y) + } + + Bool +-SDL_NAME(XF86VidModeGetDotClocks)(dpy, screen, +- flagsPtr, numclocksPtr, maxclocksPtr, clocksPtr) +- Display* dpy; +- int screen; +- int *flagsPtr, *numclocksPtr, *maxclocksPtr, *clocksPtr[]; ++SDL_NAME(XF86VidModeGetDotClocks)( ++ Display *dpy, ++ int screen, ++ int *flagsPtr, ++ int *numclocksPtr, ++ int *maxclocksPtr, ++ int *clocksPtr[] ++) + { + XExtDisplayInfo *info = find_display (dpy); + xXF86VidModeGetDotClocksReply rep; + +From e738cfffced8a006094d55337d917386582ada47 Mon Sep 17 00:00:00 2001 +From: orbea <orbea@riseup.net> +Date: Sat, 15 Oct 2022 15:10:48 -0700 +Subject: [PATCH 2/2] Xext: Fix function declarations without a prototype + +This is not supported with the upcoming clang 16. + +error: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Werror,-Wdeprecated-non-prototype] + +reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240 +--- + src/video/Xext/XME/xme.c | 2 +- + src/video/Xext/Xinerama/Xinerama.c | 3 ++- + src/video/Xext/Xv/Xv.c | 6 +++--- + 3 files changed, 6 insertions(+), 5 deletions(-) + +diff --git a/src/video/Xext/XME/xme.c b/src/video/Xext/XME/xme.c +index 2cead35ad..bb8d04d48 100644 +--- a/src/video/Xext/XME/xme.c ++++ b/src/video/Xext/XME/xme.c +@@ -206,7 +206,7 @@ static char *xigmisc_extension_name = XIGMISC_PROTOCOL_NAME; + /* + * find_display - locate the display info block + */ +-static int XiGMiscCloseDisplay(); ++static int XiGMiscCloseDisplay(Display*, XExtCodes*); + + static XExtensionHooks xigmisc_extension_hooks = { + NULL, /* create_gc */ +diff --git a/src/video/Xext/Xinerama/Xinerama.c b/src/video/Xext/Xinerama/Xinerama.c +index 4ff42ebfe..57f64b9c3 100644 +--- a/src/video/Xext/Xinerama/Xinerama.c ++++ b/src/video/Xext/Xinerama/Xinerama.c +@@ -50,7 +50,8 @@ static /* const */ char *panoramiX_extension_name = PANORAMIX_PROTOCOL_NAME; + #define PanoramiXSimpleCheckExtension(dpy,i) \ + XextSimpleCheckExtension (dpy, i, panoramiX_extension_name) + +-static int close_display(); ++static int close_display(Display*, XExtCodes*); ++ + static /* const */ XExtensionHooks panoramiX_extension_hooks = { + NULL, /* create_gc */ + NULL, /* copy_gc */ +diff --git a/src/video/Xext/Xv/Xv.c b/src/video/Xext/Xv/Xv.c +index 7147b9e8c..c254a1dc2 100644 +--- a/src/video/Xext/Xv/Xv.c ++++ b/src/video/Xext/Xv/Xv.c +@@ -63,9 +63,9 @@ static char *xv_extension_name = XvName; + #define XvCheckExtension(dpy, i, val) \ + XextCheckExtension(dpy, i, xv_extension_name, val) + +-static char *xv_error_string(); +-static int xv_close_display(); +-static Bool xv_wire_to_event(); ++static char *xv_error_string(Display*, int, XExtCodes*, char*, int); ++static int xv_close_display(Display*, XExtCodes*); ++static Bool xv_wire_to_event(Display*, XEvent*, xEvent*); + + static XExtensionHooks xv_extension_hooks = { + NULL, /* create_gc */ diff --git a/media-libs/libsdl/libsdl-1.2.15_p20210224.ebuild b/media-libs/libsdl/libsdl-1.2.15_p20210224.ebuild index 6ec8a3afc8c0..93b741554ec3 100644 --- a/media-libs/libsdl/libsdl-1.2.15_p20210224.ebuild +++ b/media-libs/libsdl/libsdl-1.2.15_p20210224.ebuild @@ -66,6 +66,7 @@ PATCHES=( "${FILESDIR}"/${PN}-$(ver_cut 1-3)-sdl-config.patch "${FILESDIR}"/${PN}-$(ver_cut 1-3)-gamma.patch "${FILESDIR}"/${PN}-$(ver_cut 1-3)-slibtool.patch + "${FILESDIR}"/${PN}-$(ver_cut 1-3)-strict-prototypes.patch ) DOCS=( BUGS CREDITS README-SDL.txt TODO WhatsNew ) |