Bug 496134 - Homebrew not building several packages
Summary: Homebrew not building several packages
Status: RESOLVED NOT A BUG
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Homebrew (macOS) macOS
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-11 16:13 UTC by diehard2
Modified: 2024-11-14 19:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description diehard2 2024-11-11 16:13:10 UTC
SUMMARY
With the latest brew I'm unable to install/build several kde packages (inlcuding the one I need). The error mostly seem to be related to

```
==> Installing kde-mac/kde/kate dependency: kde-mac/kde/kf5-kconfigwidgets
==> cmake -G Ninja -B build -S . -D BUILD_QCH=ON -D BUILD_TESTING=ON -D BUILD_TESTS=ON -D BUILD_UNITTESTS=ON -D CMAKE_IN
Last 15 lines from /Users/sdanauskas/Library/Logs/Homebrew/kf5-kconfigwidgets/01.cmake:
  CMake did not find one.

  Could not find a package configuration file provided by "KF5I18n"
  (requested version 5.111.0) with any of the following names:

    KF5I18nConfig.cmake
    kf5i18n-config.cmake

  Add the installation prefix of "KF5I18n" to CMAKE_PREFIX_PATH or set
  "KF5I18n_DIR" to a directory containing one of the above files.  If
  "KF5I18n" provides a separate development package or SDK, be sure it has
  been installed.


-- Configuring incomplete, errors occurred!

```

Although analitza is showing a different issue

```
==> Fetching kde-mac/kde/analitza
==> Downloading https://download.kde.org/stable/release-service/23.08.2/src/analitza-23.08.2.tar.xz
Already downloaded: /Users/sdanauskas/Library/Caches/Homebrew/downloads/49e2d97e517a56e3070e4a7d5a10a4c03f8c6ef00a08c5af2b62a309bf1b67cb--analitza-23.08.2.tar.xz
==> Installing analitza from kde-mac/kde
==> cmake -DCMAKE_PREFIX_PATH=/opt/homebrew/opt/qt@5/lib/cmake -G Ninja -B build -S . -D BUILD_QCH=ON -D BUILD_TESTING=O
==> cmake --build build
Last 15 lines from /Users/sdanauskas/Library/Logs/Homebrew/analitza/02.cmake:
In file included from /opt/homebrew/include/QtCore/qpair.h:8:
In file included from /opt/homebrew/include/QtCore/qglobal.h:47:
/opt/homebrew/include/QtCore/qtypeinfo.h:102:51: error: expected '(' for function-style cast or type construction
  102 |                   std::is_copy_constructible_v<T> ||
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/opt/homebrew/include/QtCore/qtypeinfo.h:103:24: error: no template named 'is_move_constructible_v' in namespace 'std'; did you mean 'is_move_constructible'?
  103 |                   std::is_move_constructible_v<T>,
      |                   ~~~~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__type_traits/is_move_constructible.h:23:29: note: 'is_move_constructible' declared here
   23 | struct _LIBCPP_TEMPLATE_VIS is_move_constructible
      |                             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
ninja: build stopped: subcommand failed.


If reporting this issue please do so to (not Homebrew/brew or Homebrew/homebrew-core):
  kde-mac/kde

Warning: Unable to query GitHub for recent issues on the tap
Validation Failed: [{"message"=>"The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.", "resource"=>"Search", "field"=>"q", "code"=>"invalid"}]
Installing kde-mac/kde/analitza has failed!
```
and it looks like some of them aren't there at all

```
Installing kde-mac/kde/kdev-php
Error: Formulae found in multiple taps:
       * kde-mac/kde/kdevelop
       * chigraph/kf5/kdevelop
```


STEPS TO REPRODUCE
1.  brew bundle --verbose --file "$(brew --repo kde-mac/kde)/Brewfile"


OBSERVED RESULT
numerous failures

EXPECTED RESULT
success

SOFTWARE/OS VERSIONS
macOS: 14.7 (Sonoma)
Qt Version: 5
Comment 1 Nate Graham 2024-11-13 18:26:43 UTC
Hello! You've reached the KDE bug tracker, which is for tracking bugs in KDE software. Unfortunately here on the bug tracker, we cannot offer help with software development or packaging topics not clearly related to bugs in KDE software. This includes help setting up a dev environment, compiling specific projects, and so on. You can find appropriate ways to get in contact with the dev team for assistance with your issue at https://community.kde.org/Get_Involved/development#Communicate_with_the_dev_team.
Comment 2 diehard2 2024-11-14 04:54:30 UTC
Hi Nate, I know that's copy and pasted, but I don't understand how this doesn't count as a bug. The category is kde homebrew and the brew is clearly broken. The reproducer I gave was for all of kde, but for instance this fails with the same error

brew install  kde-mac/kde/kf5-kconfigwidgets 

If there's another bugtracker for kde homebrew I can file it there
Comment 3 Nate Graham 2024-11-14 17:20:25 UTC
Indeed, KDE does not build Homebrew packages. So you need to discuss this with the people who do — presumably the Homebrew folks themselves I think?
Comment 4 diehard2 2024-11-14 17:38:06 UTC
Thanks Nate, apologies if this is the wrong place. Its not an issue with homebrew, that's working as expected. Its an issue with the KDE formulas homebrew is using. Their github (https://github.com/KDE/homebrew-kde) has no way to report issues and links to the official KDE site for people who want to donate. There's also a category in the bugtracker above for homebrew, so I had assumed the maintainers of that repo were here. Feel free to close if the maintainers on that git repo are not official KDE developers
Comment 5 Marius P 2024-11-14 17:43:46 UTC
https://invent.kde.org/packaging/homebrew-kde is a KDE git repo.
The reporter of this issue guesses that the issue resides in https://invent.kde.org/packaging/homebrew-kde
Comment 6 Nate Graham 2024-11-14 17:48:10 UTC
Oh wow, I had no idea the Homebrew formulas were hosted on KDE infrastructure! My mistake, sorry. Thanks for pointing that out.

Still, it seems that that project doesn't use Bugzilla, so I can't re-open this and move it over there. Can you open a new issue at https://invent.kde.org/packaging/homebrew-kde/-/issues? Thanks!
Comment 7 Marius P 2024-11-14 17:52:28 UTC
https://invent.kde.org/packaging/homebrew-kde/-/blob/53cff344ce4697389a70a302a9fa4d9402f32557/Formula/kate.rb is written in the ruby programming language. Does not download an archive with already built macos amd64 binaries. Instead it builds from source code release tarball (https://download.kde.org/stable/release-service/23.08.2/src/kate-23.08.2.tar.xz) or from git (https://invent.kde.org/utilities/kate.git).

https://invent.kde.org/packaging/homebrew-kde/-/blob/53cff344ce4697389a70a302a9fa4d9402f32557/Formula/kf5-kconfigwidgets.rb is similar. And says "depends_on "ki18n"".

I do not know how ki18n is installed. https://github.com/search?q=repo%3AKDE%2Fhomebrew-kde+i18n&type=code
Comment 9 Marius P 2024-11-14 18:51:53 UTC
Do you only need kate? Does the macos build from https://kate-editor.org/get-it/ work for you?
Comment 10 diehard2 2024-11-14 18:58:25 UTC
Hi Marius, I'm trying to build heaptrack. I filed the bug against heaptrack also a few days ago

https://bugs.kde.org/show_bug.cgi?id=496136
Comment 11 Marius P 2024-11-14 19:00:00 UTC
Does KDE Craft for macos work for you? https://community.kde.org/Craft
Comment 12 diehard2 2024-11-14 19:02:26 UTC
Craft also failed for both me and a friend on MacOS.  He was on an x86 Mac. The error is in this comment

https://bugs.kde.org/show_bug.cgi?id=496136#c2
Comment 13 Marius P 2024-11-14 19:04:22 UTC
I would connect to the KDE Matrix room "KDE New Contributors" https://community.kde.org/Matrix#General and ask in there: "How can I build from source heaptrack on macos Intel?".
Comment 14 diehard2 2024-11-14 19:42:12 UTC
Thanks Marius, the reason I'm on the bugtracker though is (I assume) heaptrack builds just fine. I can't get kde components to build/download through Craft or homebrew, which I think are the only channels to get it. Since I'm on a pretty basic MacOS setup and someone else couldn't get this to work, it would seem like qt5 isn't working on Mac at the moment
Comment 15 Marius P 2024-11-14 19:51:19 UTC
Chatting on Matrix is better than chatting through bugs.kde.org.
I could build on Linux heaptrack Qt6 using kdesrc-build. It does run correctly.
Did you manage to build the command line part of heaptrack? I.e. not heaptrack_gui https://invent.kde.org/sdk/heaptrack#heaptrack-dependencies https://invent.kde.org/sdk/heaptrack/-/blob/master/CMakeLists.txt?ref_type=heads#L89
You probably want to build heaptrack Qt6 not Qt5. https://invent.kde.org/sdk/heaptrack/-/blob/master/CMakeLists.txt?ref_type=heads#L94