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

Bug 322721

Summary: dev-util/cmake: downgrade from 2.8.1-r2 to 2.6.4-r3 doesn't work
Product: Gentoo Linux Reporter: Alexander Stein <alexanders83>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED DUPLICATE    
Severity: minor CC: binki, bugzilla, tomka
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log

Description Alexander Stein 2010-06-04 08:44:27 UTC
The downgrade from dev-util/cmake-2.8.1-r2 to 2.6.4-r3 doesn't work during install.
Build errors:
Install the project...
-- Install configuration: "Gentoo"
-- Installing: /var/tmp/portage/dev-util/cmake-2.6.4-r3/image/usr/share/cmake/include/cmCPluginAPI.h
-- Installing: /var/tmp/portage/dev-util/cmake-2.6.4-r3/image/usr/bin/ccmake
CMake Error at Source/cmake_install.cmake:41 (IF):
  if had incorrect arguments: EXISTS
  "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ccmake" AND NOT IS_SYMLINK
  "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ccmake" (Unknown arguments
  specified).
Call Stack (most recent call first):
  cmake_install.cmake:41 (INCLUDE)


Reproducible: Always

Steps to Reproduce:
1. Install dev-util/cmake-2.8.1-r2
2. Downgrade to dev-util/cmake-2.6.4-r3

Actual Results:  
Installing cmake exits with error

Expected Results:  
cmake is installed without problems
Comment 1 Alexander Stein 2010-06-04 08:44:59 UTC
Created attachment 234087 [details]
build log
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-06-04 11:20:33 UTC
Downgrading is not a good idea (specially on source based distribution). 
You can likely get around this by simply unemerging cmake, and then emerging it again.

That said, perhaps there should be somesort of check for this in the ebuild, 
"if installed cmake is higher version number than... use the bootstrap instead of installed cmake" -logic.
Comment 3 Thomas Kahle (RETIRED) gentoo-dev 2010-08-05 09:48:28 UTC
(In reply to comment #2)
> Downgrading is not a good idea (specially on source based distribution). 
I don't understand this statement. The freedom of combining versions freely is the main reason to use a source based distribution. 

In any case. The bootstrapping logic in this ebuild should be rewritten. It also triggers test failures in bug 315223
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2010-11-13 22:47:38 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Downgrading is not a good idea (specially on source based distribution). 
> I don't understand this statement. The freedom of combining versions freely is
> the main reason to use a source based distribution. 

Yes, but have you ever tried to downgrade your X11 installation to a previous major version? :)
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2010-12-14 16:27:39 UTC

*** This bug has been marked as a duplicate of bug 306867 ***