Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 663840 - net-misc/spice-gtk-0.35: missing version constraints on app-emulation/spice, app-emulation/spice-protocol, missing reverse dependency constraints
Summary: net-misc/spice-gtk-0.35: missing version constraints on app-emulation/spice, ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-17 02:23 UTC by Albert W. Hopkins
Modified: 2018-11-04 05:45 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Albert W. Hopkins 2018-08-17 02:23:38 UTC
net-misc/spice-gtk-0.35 fails in the configure phase:

 * Error messages for package net-misc/spice-gtk-0.35:
 * ERROR: net-misc/spice-gtk-0.35::gentoo failed (prepare phase):
 *   patch -p1  failed with /var/tmp/portage/net-misc/spice-gtk-0.35/files/spice-gtk-0.35-libressl.patch
 * 
 * Call stack:
 *               ebuild.sh, line  124:  Called src_prepare
 *             environment, line 2496:  Called default
 *      phase-functions.sh, line  868:  Called default_src_prepare
 *      phase-functions.sh, line  933:  Called __eapi6_src_prepare
 *             environment, line  311:  Called eapply '/var/tmp/portage/net-misc/spice-gtk-0.35/files/spice-gtk-0.35-libressl.patch' '/var/tmp/portage/net-misc/spice-gtk-0.35/files/spice-gtk-0.35-openssl11.patch'
 *             environment, line  827:  Called _eapply_patch '/var/tmp/portage/net-misc/spice-gtk-0.35/files/spice-gtk-0.35-libressl.patch'
 *             environment, line  765:  Called __helpers_die 'patch -p1  failed with /var/tmp/portage/net-misc/spice-gtk-0.35/files/spice-gtk-0.35-libressl.patch'
 *   isolated-functions.sh, line  121:  Called die
 * The specific snippet of code:
 *   		die "$@"
 * 
 * If you need support, post the output of `emerge --info '=net-misc/spice-gtk-0.35::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/spice-gtk-0.35::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-misc/spice-gtk-0.35/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/spice-gtk-0.35/temp/environment'.
 * Working directory: '/var/tmp/portage/net-misc/spice-gtk-0.35/work/spice-gtk-0.35'
 * S: '/var/tmp/portage/net-misc/spice-gtk-0.35/work/spice-gtk-0.35'
 * Error messages for package dev-db/mysql-5.7.23:
 * ERROR: dev-db/mysql-5.7.23::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_configure
 *   environment, line 4168:  Called multilib_src_configure
 *   environment, line 3481:  Called cmake-utils_src_configure
 *   environment, line  993:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-db/mysql-5.7.23::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mysql-5.7.23::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.7.23/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.7.23/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-db/mysql-5.7.23/work/mysql-5.7.23_build'
 * S: '/var/tmp/portage/dev-db/mysql-5.7.23/work/mysql'
Comment 1 Denis Descheneaux 2018-08-17 03:09:32 UTC
Builds fine if you comment out the 2 patches in the ebuild

furthermore if you have app-emulation/virt-viewer with USE=spice

the preserved rebuild fails, unable to find the controller part of spice-gtk-0.35
Comment 2 Manfred Knick 2018-08-17 07:32:49 UTC
>>> Preparing source ...

 * Applying spice-gtk-0.35-libressl.patch ...

/var/tmp/portage/net-misc/spice-gtk-0.35/temp/environment: line 723:

  /var/tmp/portage/net-misc/spice-gtk-0.35/files/spice-gtk-0.35-libressl.patch:
  No such file or directory

# cd /usr/portage/net-misc/spice-gtk/files
# ll

-rw-r--r-- 1 root root  527 17. Aug 2016  README.gentoo
-rw-r--r-- 1 root root 1,6K 19. Mär 16:38 spice-gtk-0.34-libressl.patch
-rw-r--r-- 1 root root  518 19. Mär 16:38 spice-gtk-0.34-openssl11.patch


In the ebuild, patch file names are deducted from version:
  lines 75 .. 78 :

  PATCHES=(
      "${FILESDIR}"/${P}-libressl.patch
      "${FILESDIR}"/${P}-openssl11.patch

but have not been copy-renamed; thus "missing".
Comment 3 Manfred Knick 2018-08-17 09:05:59 UTC
Unfortunately, there is more to it:

Copy-renaming reveals that 
in all three hunks of spice-gtk-0.35-libressl.patch,
the modification
  -#if OPENSSL_VERSION_NUMBER < 0x10100000
  +#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
has been integrated into the code base of the new version already,
thus this whole patch seems obsolete.

Removing that from ebuild,
resulting error

   checking for spice-protocol >= 0.12.14... no

reveals that DEPEND= needs upgrading:

    >=app-emulation/spice-protocol-0.12.14


CONFIRMATION: the following bunch succeeds to build:

[IP-] [  ] app-emulation/spice-0.14.0-r2:0
[IP-] [  ] app-emulation/spice-protocol-0.12.14:0
[I-O] [  ] net-misc/spice-gtk-0.35:0


Re-emerging app-emulation/virt-viewer-6.0-r1,

  (In reply to Denis Descheneaux from comment #1)
  > ... fails, unable to find the controller part of
  > spice-gtk-0.35

still applies:

  checking for SPICE_CONTROLLER... no
  configure: error: Package requirements (spice-controller) were not met:

  No package 'spice-controller' found

results from line 14745 in .../work/virt-viewer-6.0/configure
Comment 4 Larry the Git Cow gentoo-dev 2018-08-17 14:56:51 UTC
The bug has been closed via the following commit(s):

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

commit 4d2d2a8efe622f1522097bc3b0ee629fc67da5e8
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2018-08-17 14:56:08 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2018-08-17 14:56:08 +0000

    net-misc/spice-gtk: fix patch hickup
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=663840
    Package-Manager: Portage-2.3.46, Repoman-2.3.10

 net-misc/spice-gtk/spice-gtk-0.35.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Comment 5 Manfred Knick 2018-08-17 17:15:51 UTC
RE-OPEN :

This commit neither fixes the dependencies concerning

   app-emulation/spice
   app-emulation/spice-protocol

nor adresses

  app-emulation/virt-viewer  ::  missing 'spice-controller'

at all:

!!! existing preserved libs:
>>> package: net-misc/spice-gtk-0.35
 *  - /usr/lib64/libspice-controller.so.0
 *  - /usr/lib64/libspice-controller.so.0.0.0
 *      used by /usr/bin/remote-viewer (app-emulation/virt-viewer-6.0-r1)


Concerning the latter:

# emerge -ac
     app-emulation/spice
     app-emulation/spice-protocol
     net-misc/spice-gtk
     app-emulation/virt-manager
     app-emulation/virt-viewer

# emerge -a --depclean

# emerge
     app-emulation/virt-manager
     app-emulation/virt-viewer
     app-emulation/spice

'magically' WORKSFORME:

[IP-] [  ] app-emulation/virt-manager-1.5.1-r1:0
[IP-] [  ] app-emulation/virt-viewer-7.0:0
[IP-] [  ] app-emulation/spice-0.14.0-r2:0
[IP-] [  ] app-emulation/spice-protocol-0.12.14:0
[IP-] [  ] net-misc/spice-gtk-0.35:0

@ Denis: Could you cross-check, please? 
         Thanks in advance!
Comment 6 Manfred Knick 2018-08-17 17:17:14 UTC
Forgot to mention:
I had also manually removed all /usr/lib64/libspice-controller.so.*
Comment 7 Manfred Knick 2018-08-17 17:28:51 UTC
Just now  recognized today's ( 17. Aug 17:39 )  upgrade :
     from virt-viewer-6.0-r1.ebuild
     to   virt-viewer-7.0.ebuild