Bug 374347

Summary: Installation of ksendbugmail.exe conflicts with related KDE4 package
Product: [Frameworks and Libraries] frameworks-kxmlgui Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: aspotashev, simonandric5
Priority: NOR    
Version: 5.29.0   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Bug Depends on:    
Bug Blocks: 373928    

Description Ralf Habacker 2016-12-30 17:52:38 UTC
On Windows builds of kxmlgui the tool ksendbugmail.exe is installed in <install-root>/bin which conflicts with the related tools from kdelibs4.

   file /usr/i686-w64-mingw32/sys-root/mingw/bin/ksendbugmail.exe from install of mingw32-libKF5XmlGui5-5.26.0-3.1.noarch conflicts with file from package mingw32-kdelibs4-4.14.60-11.4.noarch

Looking into the package source: 

  src/ksendbugmail/CMakeLists.txt:21:install(TARGETS ksendbugmail DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF5} )

ksendbugmail is installed into KDE_INSTALL_LIBEXECDIR_KF5, which seems to be set on Windows to 'bin'. At KDE4 times all executables are installed in <install-root>/bin to be findable by dbus services. This requirement is valid for KF5 too so it is required to install the tool with another name ksendbugmail5.exe on Windows.
Comment 1 Ralf Habacker 2020-09-10 22:38:18 UTC
(In reply to Ralf Habacker from comment #0)
> On Windows builds of kxmlgui the tool ksendbugmail.exe is installed in
> <install-root>/bin which conflicts with the related tools from kdelibs4.
> 
>    file /usr/i686-w64-mingw32/sys-root/mingw/bin/ksendbugmail.exe from
> install of mingw32-libKF5XmlGui5-5.26.0-3.1.noarch conflicts with file from
> package mingw32-kdelibs4-4.14.60-11.4.noarch
> 
> Looking into the package source: 
> 
>   src/ksendbugmail/CMakeLists.txt:21:install(TARGETS ksendbugmail
> DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF5} )
> 
> ksendbugmail is installed into KDE_INSTALL_LIBEXECDIR_KF5, which seems to be
> set on Windows to 'bin'. At KDE4 times all executables are installed in
> <install-root>/bin to be findable by dbus services. This requirement is
> valid for KF5 too so it is required to install the tool with another name
> ksendbugmail5.exe on Windows.

fixed at https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-kxmlgui and https://build.opensuse.org/package/show/windows:mingw:win64/mingw64-kxmlgui.

The remaining topic is to check if the required changes are applied upstream.
Comment 2 Ralf Habacker 2020-09-10 22:43:14 UTC
(In reply to Ralf Habacker from comment #1)
> The remaining topic is to check if the required changes are applied upstream.

This is not the case - see https://invent.kde.org/frameworks/kxmlgui/-/blob/master/src/ksendbugmail/CMakeLists.txt
Comment 3 Bug Janitor Service 2021-03-03 08:33:39 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kxmlgui/-/merge_requests/47
Comment 4 Ralf Habacker 2024-04-30 22:10:27 UTC
Fixed downstream