Skip to content

unbreak MinGW packaging for shared-mime-info

Jean-Baptiste Mardelle requested to merge work/mingw-shared-mime into master

The latest change to shared-mime-info renamed the packaging stage from postInstall() to install(). This causes a packaging failure on MinGW:

14:32:49  executing command: C:\Craft\BinaryFactory\windows-mingw_64-gcc\mingw64\bin\objcopy.exe --only-keep-debug C:\Craft\BinaryFactory\windows-mingw_64-gcc\build\libs\shared-mime-info\image-RelWithDebInfo-1.9\bin\update-mime-database.exe C:\Craft\BinaryFactory\windows-mingw_64-gcc\build\libs\shared-mime-info\image-RelWithDebInfo-1.9-dbg\bin\update-mime-database.exe.debug
14:32:49  C:\Craft\BinaryFactory\windows-mingw_64-gcc\mingw64\bin\objcopy.exe: C:\Craft\BinaryFactory\windows-mingw_64-gcc\build\libs\shared-mime-info\image-RelWithDebInfo-1.9\bin\update-mime-database.exe: file format not recognized
14:32:49  Command ['C:\\Craft\\BinaryFactory\\windows-mingw_64-gcc\\mingw64\\bin\\objcopy.exe', '--only-keep-debug', 'C:\\Craft\\BinaryFactory\\windows-mingw_64-gcc\\build\\libs\\shared-mime-info\\image-RelWithDebInfo-1.9\\bin\\update-mime-database.exe', 'C:\\Craft\\BinaryFactory\\windows-mingw_64-gcc\\build\\libs\\shared-mime-info\\image-RelWithDebInfo-1.9-dbg\\bin\\update-mime-database.exe.debug'] failed with exit code 1
14:32:49  Action: install for libs/shared-mime-info:1.9-6 FAILED
14:32:49  *** Craft all failed: libs/shared-mime-info after 38 seconds ***
14:32:49  fatal error: package libs/shared-mime-info all failed

Reverting only this change (back to postInstall()) fixes MinGW compilation. Any hints on what should be done ? Is this patch ok or is there anything else we need to do ?

Merge request reports