Bug 2185436

Summary: Gtk3 support?
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
Component: lazarusAssignee: Artur Frenszek-Iwicki <fedora>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: fedora, joost, mattia.verga
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vít Ondruch 2023-04-09 10:50:57 UTC
Description of problem:
I just thought that I'll try to build Double Commander with Gtk3 support [1], hoping to get the native Wayland application, because in Rawhide with Gnome 44, the XWayland application windows are weirdly positioned.

~~~
$ lcl=gtk3 ./build.sh beta
Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-iWTOTP"
Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-va" "compilertest.pas"
Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-iWTOTP"
Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-va" "compilertest.pas"
Hint: (lazarus) Missing state file of LCL 2.2.6: /usr/lib64/lazarus/lcl/units/x86_64-linux/gtk3/LCL.compiled
Error: (lazarus) unable to create package output directory "/usr/lib64/lazarus/lcl/units/x86_64-linux/gtk3" of package "LCL 2.2.6"
Hint: (lazarus) normal output directory of package LCL 2.2.6 is not writable: "/usr/lib64/lazarus/lcl/units/x86_64-linux/gtk3/"
TParsedCompilerOptions.SetOutputDirectoryOverride New=/builddir/.lazarus/lib/units/x86_64-linux/gtk3
Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-iWTOTP"
Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-va" "compilertest.pas"
Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-iWTOTP"
Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-va" "compilertest.pas"
Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-iWTOTP"
Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-va" "compilertest.pas"
Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-iWTOTP"
Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-va" "compilertest.pas"
Hint: (lazarus) Missing state file of LCL 2.2.6: /usr/lib64/lazarus/lcl/units/x86_64-linux/gtk3/LCL.compiled
Error: (lazarus) unable to create package output directory "/usr/lib64/lazarus/lcl/units/x86_64-linux/gtk3" of package "LCL 2.2.6"
Hint: (lazarus) normal output directory of package LCL 2.2.6 is not writable: "/usr/lib64/lazarus/lcl/units/x86_64-linux/gtk3/"
TParsedCompilerOptions.SetOutputDirectoryOverride New=/builddir/.lazarus/lib/units/x86_64-linux/gtk3
Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-iWTOTP"
Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-va" "compilertest.pas"
Hint: (lazarus) Missing state file of LCL 2.2.6: /usr/lib64/lazarus/lcl/units/x86_64-linux/gtk3/LCL.compiled
Error: (lazarus) unable to create package output directory "/usr/lib64/lazarus/lcl/units/x86_64-linux/gtk3" of package "LCL 2.2.6"
Hint: (lazarus) normal output directory of package LCL 2.2.6 is not writable: "/usr/lib64/lazarus/lcl/units/x86_64-linux/gtk3/"

... snip ...
~~~

And seeing errors such as `Error: (lazarus) unable to create package output directory "/usr/lib64/lazarus/lcl/units/x86_64-linux/gtk3" of package "LCL 2.2.6"` hints that the Gtk3 components are not prebuild.

Now I wonder what is the plan?

Version-Release number of selected component (if applicable):

$ rpm -q lazarus
lazarus-2.2.6-1.fc39.x86_64


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
Gtk3 components are not prebuilt

Expected results:
Gtk3 components are ready

Additional info:



[1] https://github.com/doublecmd/doublecmd/issues/927

Comment 1 Artur Frenszek-Iwicki 2023-04-10 07:37:02 UTC
Hi. I was actually thinking about re-packaging Lazarus to offer different widgetset support for quite some time now.
I'll take this ticket as a sign that there's actually some user interest in this.

Comment 2 Artur Frenszek-Iwicki 2023-04-20 16:55:00 UTC
Copr repo now available at: https://copr.fedorainfracloud.org/coprs/suve/lazarus-split/

Comment 3 Artur Frenszek-Iwicki 2023-04-25 20:11:16 UTC
Proposed as a Self-Contained Change for Fedora 39: https://fedoraproject.org/wiki/Changes/F39-Lazarus-repackaging

Comment 4 Fedora Release Engineering 2023-08-16 07:13:14 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.