[GH-ISSUE #49] Cmake update causes error with barrier #37

Closed
opened 2026-05-05 04:50:03 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @kenny-w1 on GitHub (May 26, 2018).
Original GitHub issue: https://github.com/debauchee/barrier/issues/49

Operating Systems

Server: Artix

Client: Artix & Devuan

Barrier Version

snapshot, latest

Steps to reproduce bug

Try to build barrier on arch-based distro with newest cmake from pacman package manager

qt5_use_modules is apparently deprecated but its back now? I don't know how to make this build now...

-- Full Barrier version string is '2.1.0-snapshot-snapshot.b1-773a0081'
-- Configuring directory /home/user/Compiles/Barrier-fresh/src/barrier/build/rpm
-- Configuring file barrier.spec
CMake Error at src/gui/CMakeLists.txt:25 (qt5_use_modules):
Unknown CMake command "qt5_use_modules".

I'm having a hard time trying to figure out how to make this build now... :(
QT_SELECT=5 / QT_SELECT=4 doesn't seem to have any effect...

Originally created by @kenny-w1 on GitHub (May 26, 2018). Original GitHub issue: https://github.com/debauchee/barrier/issues/49 ### Operating Systems ### Server: Artix Client: Artix & Devuan ### Barrier Version ### snapshot, latest ### Steps to reproduce bug ### Try to build barrier on arch-based distro with newest cmake from pacman package manager qt5_use_modules is apparently deprecated but its back now? I don't know how to make this build now... -- Full Barrier version string is '2.1.0-snapshot-snapshot.b1-773a0081' -- Configuring directory /home/user/Compiles/Barrier-fresh/src/barrier/build/rpm -- Configuring file barrier.spec CMake Error at src/gui/CMakeLists.txt:25 (qt5_use_modules): Unknown CMake command "qt5_use_modules". I'm having a hard time trying to figure out how to make this build now... :( QT_SELECT=5 / QT_SELECT=4 doesn't seem to have any effect...
Author
Owner

@kenny-w1 commented on GitHub (May 26, 2018):

I think the problem is in the source-code of Barrier but maybe I'm wrong, I don't really know...
This is really confusing :/ I can't find any answers to this anywhere.... ugh...

<!-- gh-comment-id:392283505 --> @kenny-w1 commented on GitHub (May 26, 2018): I think the problem is in the source-code of Barrier but maybe I'm wrong, I don't really know... This is really confusing :/ I can't find any answers to this anywhere.... ugh...
Author
Owner

@xantoz commented on GitHub (May 29, 2018):

Do the changes in the following patch resolve it: https://gitweb.gentoo.org/repo/gentoo.git/plain/x11-misc/synergy/files/synergy-1.9.1-qt-5.11.patch?id=5dd1f7a3908dec9ae6cf6773acd8ec3b33fc0b2c

You will need to change synergy to barrier in a few places to make it apply. Alternatively, it might just be easier to apply the changes by hand.

<!-- gh-comment-id:392741064 --> @xantoz commented on GitHub (May 29, 2018): Do the changes in the following patch resolve it: https://gitweb.gentoo.org/repo/gentoo.git/plain/x11-misc/synergy/files/synergy-1.9.1-qt-5.11.patch?id=5dd1f7a3908dec9ae6cf6773acd8ec3b33fc0b2c You will need to change synergy to barrier in a few places to make it apply. Alternatively, it might just be easier to apply the changes by hand.
Author
Owner

@Tblue commented on GitHub (May 29, 2018):

@xantoz, thanks -- the patch fixes the issue.

As a hotfix, I included the patch in the Arch Linux AUR package, see 0001-Handle-removal-of-cmake-macro-qt5_use_modules.patch. Of course, credit for the patch goes to whoever created it for Gentoo. :-)

<!-- gh-comment-id:392963949 --> @Tblue commented on GitHub (May 29, 2018): @xantoz, thanks -- the patch fixes the issue. As a hotfix, I included the patch in the [Arch Linux AUR package](https://aur.archlinux.org/packages/barrier/), see [0001-Handle-removal-of-cmake-macro-qt5_use_modules.patch](https://aur.archlinux.org/cgit/aur.git/plain/0001-Handle-removal-of-cmake-macro-qt5_use_modules.patch?h=barrier). Of course, credit for the patch goes to whoever created it for Gentoo. :-)
Author
Owner

@johnny-mac commented on GitHub (Jun 7, 2018):

Hey Tblue how do you make it skip the integrity check for the .patch file? It keeps wanting to do an integ check only when I include the .patch file, but even when I add
md5sums=('SKIP')
sha256sums=('SKIP')
sha512sums=('SKIP')
it won't validate the integrity, even when I add the md5sums for the .patch file it still tells me:

-> Found 0001-Handle-removal-of-cmake-macro-qt5_use_modules.patch
==> ERROR: Integrity checks (md5) differ in size from the source array.

<!-- gh-comment-id:395476218 --> @johnny-mac commented on GitHub (Jun 7, 2018): Hey Tblue how do you make it skip the integrity check for the .patch file? It keeps wanting to do an integ check only when I include the .patch file, but even when I add md5sums=('SKIP') sha256sums=('SKIP') sha512sums=('SKIP') it won't validate the integrity, even when I add the md5sums for the .patch file it still tells me: -> Found 0001-Handle-removal-of-cmake-macro-qt5_use_modules.patch ==> ERROR: Integrity checks (md5) differ in size from the source array.
Author
Owner

@Tblue commented on GitHub (Jun 10, 2018):

@johnny-mac, as the error message suggests, each file in the source array needs to have a corresponding checksum (or the keyword SKIP) in the checksum arrays (md5sums etc.).

Try makepkg -g >> PKGBUILD to have the checksums generated automatically. You could also use my Arch Linux AUR package as a base for your own modifications. :-)

<!-- gh-comment-id:396043916 --> @Tblue commented on GitHub (Jun 10, 2018): @johnny-mac, as the error message suggests, *each* file in the `source` array needs to have a corresponding checksum (or the keyword `SKIP`) in the checksum arrays (`md5sums` etc.). Try `makepkg -g >> PKGBUILD` to have the checksums generated automatically. You could also use my [Arch Linux AUR package](https://aur.archlinux.org/packages/barrier/) as a base for your own modifications. :-)
Author
Owner

@walker0643 commented on GitHub (Jun 30, 2018):

Confirmation on fix and 3 weeks since activity. Closing for now but please reopen if I'm mistaken.

<!-- gh-comment-id:401555341 --> @walker0643 commented on GitHub (Jun 30, 2018): Confirmation on fix and 3 weeks since activity. Closing for now but please reopen if I'm mistaken.
Author
Owner

@walker0643 commented on GitHub (Jun 30, 2018):

I went ahead and added the patch. Seemed like a good idea ...

<!-- gh-comment-id:401555988 --> @walker0643 commented on GitHub (Jun 30, 2018): I went ahead and added the patch. Seemed like a good idea ...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#37
No description provided.