Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 902753

Summary: net-im/dino-0.4.1-r1 - Could not find a package configuration file provided by Soup with any of
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: enigmaticsmile, jubalh, midgard+gentoo, O01eg, vovan
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/31828
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt.bz2
environment
etc.clang.tar.bz2
etc.portage.tar.bz2
net-im:dino-0.4.1-r1:20230322-090025.log
temp.tar.bz2
Patch that fixes build

Description Toralf Förster gentoo-dev 2023-03-22 17:58:36 UTC
-- Using Soup to provide Soup
CMake Error at cmake/MultiFind.cmake:20 (find_package):
  By not providing "FindSoup.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Soup", but
  CMake did not find one.

  Could not find a package configuration file provided by "Soup" with any of
  the following names:


  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j5-20230316-190004

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.0
Python 3.10.10
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.68.0
  [2]   rust-1.68.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.18_p10 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
4)	Eclipse Temurin JRE 17.0.6_p10 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm
  [4]   openjdk-jre-bin-17 

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):

  HEAD of ::gentoo
commit 900b2ab1fa98cddb95a0c4882d4c08692d43d64c
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Mar 22 08:31:56 2023 +0000

    2023-03-22 08:31:55 UTC

emerge -qpvO net-im/dino
[ebuild  N    ] net-im/dino-0.4.1-r1  USE="gpg http notification-sound omemo -test"
Comment 1 Toralf Förster gentoo-dev 2023-03-22 17:58:37 UTC
Created attachment 858613 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-03-22 17:58:39 UTC
Created attachment 858615 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2023-03-22 17:58:40 UTC
Created attachment 858617 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-03-22 17:58:41 UTC
Created attachment 858619 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2023-03-22 17:58:42 UTC
Created attachment 858621 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-03-22 17:58:43 UTC
Created attachment 858623 [details]
net-im:dino-0.4.1-r1:20230322-090025.log
Comment 7 Toralf Förster gentoo-dev 2023-03-22 17:58:44 UTC
Created attachment 858625 [details]
temp.tar.bz2
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-24 01:57:16 UTC
*** Bug 902849 has been marked as a duplicate of this bug. ***
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-24 01:58:25 UTC
jubalh, any chance we can make this work with libsoup3? if not, it looks like we have to pass a configure arg (see dupe bug 902849)
Comment 10 Michael Vetter 2023-03-24 08:08:11 UTC
(In reply to Sam James from comment #9)
> jubalh, any chance we can make this work with libsoup3? if not, it looks
> like we have to pass a configure arg (see dupe bug 902849)

Should be possible:
https://github.com/dino/dino/blob/6e37f3fe3fa0f4ce9a25a91e9d97191c8e4abec1/cmake/SoupVersion.cmake#L26

Unfortunately I don't quite understand the bugreport. Could you explain it to me? To me it looks like it should build with both. And the "By not providing "FindSoup.cmake"" is confusing to me. Not providing it? But it's part of upstream?
Comment 11 Michael Vetter 2023-03-24 08:21:43 UTC
I assume I need to make it configurable to either build it with libsoup2 or 3 instead of `http? ( net-libs/libsoup:2.4 )` is that what is meant here?
Comment 12 Midgard 2023-07-07 15:42:34 UTC
Created attachment 865245 [details, diff]
Patch that fixes build

This patch can be applied as-is to elegantly solve this bug.

With this patch applied, Dino builds and works on my system.

Passing SOUP_VERSION to CMake mitigates the problem. The ebuild already depends on libsoup:2.4, so passing the Soup version for configuration instead of relying on auto-detection is the right thing to do anyway.
Comment 13 Larry the Git Cow gentoo-dev 2023-07-26 03:02:38 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bebf26d22680710de88bc21db16799bdc27114f9

commit bebf26d22680710de88bc21db16799bdc27114f9
Author:     Michael Vetter <jubalh@iodoru.org>
AuthorDate: 2023-07-11 05:06:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-07-26 03:00:06 +0000

    net-im/dino: Specify soup version
    
    Bug: https://bugs.gentoo.org/902753
    Signed-off-by: Michael Vetter <jubalh@iodoru.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 net-im/dino/dino-0.4.2-r2.ebuild | 1 +
 1 file changed, 1 insertion(+)