Bug 247994 - x11-toolkits/qt5-gui problem with pkg-plist?
Summary: x11-toolkits/qt5-gui problem with pkg-plist?
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-kde (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-15 12:03 UTC by Markus Mann
Modified: 2020-07-30 14:31 UTC (History)
6 users (show)

See Also:
tcberner: maintainer-feedback+


Attachments
qt5-gui-5.15.0.log.gz (54.06 KB, application/x-gzip)
2020-07-15 12:06 UTC, Markus Mann
no flags Details
Add X11 knob to fix building qt5-declarative with X11 disabled in /etc/make.conf (50.77 KB, patch)
2020-07-27 08:11 UTC, Ralf van der Enden
tremere: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Mann 2020-07-15 12:03:04 UTC
After the last portsnap update i no longer can build qt5-gui i constantly get errors at "Building package for qt5-gui-5.15.0" (i use poudriere on a FreeBSD-11.3 amd64 VM). Am i the only one?

```
===>  Building package for qt5-gui-5.15.0
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/include/qt5/QtLinuxAccessibilitySupport/5.15.0/QtLinuxAccessibilitySupport/private/application_p.h:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/include/qt5/QtLinuxAccessibilitySupport/5.15.0/QtLinuxAccessibilitySupport/private/atspiadaptor_p.h:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/include/qt5/QtLinuxAccessibilitySupport/5.15.0/QtLinuxAccessibilitySupport/private/bridge_p.h:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/include/qt5/QtLinuxAccessibilitySupport/5.15.0/QtLinuxAccessibilitySupport/private/cache_p.h:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/include/qt5/QtLinuxAccessibilitySupport/5.15.0/QtLinuxAccessibilitySupport/private/constant_mappings_p.h:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/include/qt5/QtLinuxAccessibilitySupport/5.15.0/QtLinuxAccessibilitySupport/private/dbusconnection_p.h:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/include/qt5/QtLinuxAccessibilitySupport/5.15.0/QtLinuxAccessibilitySupport/private/struct_marshallers_p.h:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/include/qt5/QtLinuxAccessibilitySupport/QtLinuxAccessibilitySupport:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/include/qt5/QtLinuxAccessibilitySupport/QtLinuxAccessibilitySupportDepends:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/include/qt5/QtLinuxAccessibilitySupport/QtLinuxAccessibilitySupportVersion:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/include/qt5/QtLinuxAccessibilitySupport/qtlinuxaccessibilitysupportversion.h:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/cmake/Qt5Gui/Qt5Gui_QXcbEglIntegrationPlugin.cmake:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/cmake/Qt5Gui/Qt5Gui_QXcbGlxIntegrationPlugin.cmake:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/cmake/Qt5Gui/Qt5Gui_QXcbIntegrationPlugin.cmake:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/cmake/Qt5LinuxAccessibilitySupport/Qt5LinuxAccessibilitySupportConfig.cmake:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/cmake/Qt5LinuxAccessibilitySupport/Qt5LinuxAccessibilitySupportConfigVersion.cmake:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/cmake/Qt5XcbQpa/Qt5XcbQpaConfig.cmake:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/cmake/Qt5XcbQpa/Qt5XcbQpaConfigVersion.cmake:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/qt5/libQt5LinuxAccessibilitySupport.a:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/qt5/libQt5LinuxAccessibilitySupport.prl:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/qt5/libQt5XcbQpa.prl:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/qt5/libQt5XcbQpa.so:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/qt5/libQt5XcbQpa.so.5:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/qt5/libQt5XcbQpa.so.5.15:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/qt5/libQt5XcbQpa.so.5.15.0:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/qt5/plugins/platforms/libqxcb.so:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/qt5/plugins/xcbglintegrations/libqxcb-egl-integration.so:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/stage/usr/local/lib/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so:No such file or directory
pkg-static: Warning: @exec is deprecated, please use @[pre|post][un]exec
*** Error code 1

Stop.
make: stopped in /usr/ports/x11-toolkits/qt5-gui
=>> Cleaning up wrkdir
===>  Cleaning for qt5-gui-5.15.0
build of x11-toolkits/qt5-gui | qt5-gui-5.15.0 ended at Tue Jul 14 19:52:37 CEST 2020
build time: 00:18:28
!!! build failure encountered !!!
```

Full build log from poudriere attached
Comment 1 Markus Mann 2020-07-15 12:06:06 UTC
Created attachment 216463 [details]
qt5-gui-5.15.0.log.gz

Full poudriere build log.gz (as it would be too big otherwise)
Comment 2 Tobias C. Berner freebsd_committer 2020-07-15 16:28:38 UTC
Moin moin 

I cannot reproduce this in my 1103000 jail.


mfg Tobias
Comment 3 geraud 2020-07-16 04:54:58 UTC
Servus,

I experienced the same missing files while building qt5-gui yesterday after having stripped the X11 options from most of my ports.

After some tinkering, it seems that setting 'X11' to x11/libxkbcommon fixes the build for me.

Regards,

G.
Comment 4 Tobias C. Berner freebsd_committer 2020-07-16 05:07:43 UTC
Moin moin

Unfortunately there is no clean way to make decicions based on other ports's options.

A possibility would be to add an xcb option to the qt5-gui port which would mask these files. It would still bw the users duty however to make sure xcb is present though.

Do you build gui only for use with an fb output?


mfg Tobias
Comment 5 geraud 2020-07-16 05:49:26 UTC
Servus,

Don't know about the OP, but for us qt5-gui is just a dependency for 'converters/wkhtmltopdf' that is used by some websites we're running to convert html pages to PDF files.

As such, we're trying to limit the use of the X11 option for our ports.

So, to answer your question, I don't think I'm using any graphical output at all.

Regards,

G.
Comment 6 Markus Mann 2020-07-16 09:57:38 UTC
(In reply to geraud from comment #5)

I totally agree with you. There is one client on one webserver i maintain that needs that wkhtmltopdf monster...

I just re-activated X11 option in x11/libxkbcommon and it builds for now. At least i can get the latest mysql patches out of the door now. THX!
Comment 7 Tobias C. Berner freebsd_committer 2020-07-16 11:50:38 UTC
Moin moin

OK, I'll look into supporting an X11 flag in the port.


Mfg Tobias
Comment 8 Ralf van der Enden 2020-07-20 06:57:12 UTC
I'm experiencing the same issue. I have X11 unset in my make.conf for all ports and qt5-gui is a dependency for net-p2p/qbittorrent-nox.
Comment 9 Thomas Steen Rasmussen / Tykling 2020-07-22 18:37:11 UTC
Just a +1 from me.

I also use 'converters/wkhtmltopdf' to generate PDF files for websites, and I build in a poudriere with `OPTIONS_UNSET+= DOCS NLS X11 EXAMPLES` in make.conf.

Hoping for a fix soon! Thanks :)
Comment 10 Adriaan de Groot freebsd_committer 2020-07-23 08:01:55 UTC
I think this just became moot with pi@'s commit (added to CC of this bug),

New Revision: 542904
URL: https://svnweb.freebsd.org/changeset/ports/542904

Log:
  converters/wkhtmltopdf: update 0.12.5 -> 0.12.6, fix build
  - remove dependency on www/qt5-webkit

I *think* this moves the responsibility for the no-X11 case over to wkhtmltopdf. It also replaces one copy of a fork of an unmaintained web browser (www/qt5-webkit) by another copy of a fork of an unmaintained web browser (the webkit bundled in wkhtmltopdf) -- I don't know if that's a good thing or not.
Comment 11 Tobias C. Berner freebsd_committer 2020-07-23 17:11:44 UTC
(In reply to Adriaan de Groot from comment #10)
Yeah, I agree. Unless x people show up and demand FB only support for GUI, the option is not worth the additional work :D
Comment 12 Tobias C. Berner freebsd_committer 2020-07-26 09:11:36 UTC
Moin moin 

Please feel free to re-open this if you really need to have qt5-gui support without X11 -- if you only required it for wkhtmltopdf, you should be all set by now.
Comment 13 Ralf van der Enden 2020-07-27 08:11:17 UTC
Created attachment 216795 [details]
Add X11 knob to fix building qt5-declarative with X11 disabled in /etc/make.conf


Building net-p2p/qbittorrent@nox requires x11-toolkits/qt5-declarative, which in turn pulls in x11-toolkits/qt5-gui. This fails with the same errors as the previously attached logfile.

My patch adds a X11 knob, which is enabled by default, so I don't break anything.

Only tested with qbittorrent-nox, so might need additional testing.
Comment 14 Dominik Lisiak 2020-07-30 09:14:35 UTC
(In reply to Tobias C. Berner from comment #12)

Can this issue be reopened? This is still a problem for "net-p2p/qbittorrent@nox". I cannot reopen it myself.
Comment 15 Tobias C. Berner freebsd_committer 2020-07-30 14:31:56 UTC
Let's reopen this...