Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package java-1_8_0-openjdk for openSUSE:Factory checked in at 2024-05-07 18:03:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/java-1_8_0-openjdk (Old) and /work/SRC/openSUSE:Factory/.java-1_8_0-openjdk.new.1880 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "java-1_8_0-openjdk" Tue May 7 18:03:32 2024 rev:101 rq:1172245 version:1.8.0.412 Changes: -------- --- /work/SRC/openSUSE:Factory/java-1_8_0-openjdk/java-1_8_0-openjdk.changes 2024-04-21 20:29:45.151363597 +0200 +++ /work/SRC/openSUSE:Factory/.java-1_8_0-openjdk.new.1880/java-1_8_0-openjdk.changes 2024-05-07 18:04:08.932132559 +0200 @@ -1,0 +2,8 @@ +Mon May 6 17:41:21 UTC 2024 - Fridrich Strba <fst...@suse.com> + +- Added patch: + * fix-build-with-gcc14.patch + + fix build with gcc14 + + pointer/integer type precision + +------------------------------------------------------------------- New: ---- fix-build-with-gcc14.patch BETA DEBUG BEGIN: New:- Added patch: * fix-build-with-gcc14.patch + fix build with gcc14 BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ java-1_8_0-openjdk.spec ++++++ --- /var/tmp/diff_new_pack.ABHRhp/_old 2024-05-07 18:04:10.436187248 +0200 +++ /var/tmp/diff_new_pack.ABHRhp/_new 2024-05-07 18:04:10.436187248 +0200 @@ -180,6 +180,8 @@ Patch3: java-atk-wrapper-security.patch # Fix use of unintialized memory in adlc parser Patch12: adlc-parser.patch +# Fix different integer/pointer type mismatches that are fatal with gcc14 +Patch13: fix-build-with-gcc14.patch # Avoid triggering inactivity timeout while generating javadoc in zero VM Patch14: zero-javadoc-verbose.patch # Fix detection of jobserver support @@ -513,6 +515,7 @@ patch -p0 -i %{PATCH2} patch -p0 -i %{PATCH3} patch -p0 -i %{PATCH12} +patch -p0 -i %{PATCH13} %if %{with zero} patch -p0 -i %{PATCH14} ++++++ fix-build-with-gcc14.patch ++++++ --- openjdk/jdk/src/share/bin/splashscreen_stubs.c +++ openjdk/jdk/src/share/bin/splashscreen_stubs.c @@ -61,11 +61,11 @@ typedef char* (*SplashGetScaledImageName_t)(const char* fileName, #define INVOKEV(name) _INVOKE(name, ,;) int DoSplashLoadMemory(void* pdata, int size) { - INVOKE(SplashLoadMemory, NULL)(pdata, size); + INVOKE(SplashLoadMemory, 0)(pdata, size); } int DoSplashLoadFile(const char* filename) { - INVOKE(SplashLoadFile, NULL)(filename); + INVOKE(SplashLoadFile, 0)(filename); } void DoSplashInit(void) { @@ -87,4 +87,4 @@ void DoSplashSetScaleFactor(float scaleFactor) { char* DoSplashGetScaledImageName(const char* fileName, const char* jarName, float* scaleFactor) { INVOKE(SplashGetScaledImageName, NULL)(fileName, jarName, scaleFactor); -} \ No newline at end of file +} --- openjdk/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c +++ openjdk/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c @@ -2850,14 +2850,14 @@ Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_writeImage pb = &data->pixelBuf; if (setPixelBuffer(env, pb, buffer) == NOT_OK) { - freeArray(scale, numBands); + freeArray((void**)scale, numBands); return data->abortFlag; // We already threw an out of memory exception } // Allocate a 1-scanline buffer scanLinePtr = (JSAMPROW)malloc(scanLineSize); if (scanLinePtr == NULL) { - freeArray(scale, numBands); + freeArray((void**)scale, numBands); JNU_ThrowByName( env, "java/lang/OutOfMemoryError", "Writing JPEG Stream"); @@ -2879,7 +2879,7 @@ Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_writeImage JNU_ThrowByName(env, "javax/imageio/IIOException", buffer); } - freeArray(scale, numBands); + freeArray((void**)scale, numBands); free(scanLinePtr); return data->abortFlag; } @@ -2928,7 +2928,7 @@ Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_writeImage (*env)->ReleaseIntArrayElements(env, QtableSelectors, qsels, JNI_ABORT); } if (!success) { - freeArray(scale, numBands); + freeArray((void**)scale, numBands); free(scanLinePtr); return data->abortFlag; } @@ -2949,7 +2949,7 @@ Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_writeImage if (GET_ARRAYS(env, data, (const JOCTET **)(&dest->next_output_byte)) == NOT_OK) { (*env)->ExceptionClear(env); - freeArray(scale, numBands); + freeArray((void**)scale, numBands); free(scanLinePtr); JNU_ThrowByName(env, "javax/imageio/IIOException", @@ -2987,7 +2987,7 @@ Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_writeImage scanData = (*env)->GetIntArrayElements(env, scanInfo, NULL); if (scanData == NULL) { RELEASE_ARRAYS(env, data, (const JOCTET *)(dest->next_output_byte)); - freeArray(scale, numBands); + freeArray((void**)scale, numBands); free(scanLinePtr); return data->abortFlag; } @@ -3086,7 +3086,7 @@ Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_writeImage jpeg_abort((j_common_ptr)cinfo); } - freeArray(scale, numBands); + freeArray((void**)scale, numBands); free(scanLinePtr); RELEASE_ARRAYS(env, data, NULL); return data->abortFlag;