Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Portage '--noupgrade' suggestion...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Mon Feb 03, 2003 2:04 am    Post subject: Portage '--noupgrade' suggestion... Reply with quote

I just recently received the Gentoo Newsletter and it in there's a little diddy about 'no downgrading':
Quote:

Emiel Kollof writes[28]: "Why is it, when I unmask a package (with a
higher version number than the "official one") by using ACCEPT_KEYWORDS,
portage downgrades it on the next emerge -u world to a lower version? This
is very irritating behaviour.

This is nice but I'm wondering if it can go the other way. I recently emerged an app and along with that app it emerged gtk2 as a dependancy, when it got to the core app it errored during the emerge because it didn't like gtk2. I tried USE flags(in make.conf and command line) and manually altering the Ebuild for the app but neither worked. I eventually manually emerged the most recent gtk(not gtk2) ebuild. What I would like to see is the opposite of above where instead of no downgrading there would be a no upgrading option. I don't know if this is important enough to report to bugzilla, I'm not a programmer and I've never used bugzilla before so I'm kind of gun shy about putting in a report there.
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Mon Feb 03, 2003 5:57 pm    Post subject: Reply with quote

I think the cases of gtk and gtk2 are special in the sense that gtk2 is not backward compatible to gtk. So if the app you emerged needed gtk2, it's because it need it for real and wont work with gtk(1).

Otherwise, portage does not upgrade dpendencies unless you specify the -deep option.
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Mon Feb 03, 2003 6:21 pm    Post subject: Reply with quote

Would that explain why I couldn't get gtk to install by USE flags and had to resort to manually emerging the ebuild file?
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Tue Feb 04, 2003 3:11 am    Post subject: Reply with quote

I guess telling us what you tried to merge would help.
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Tue Feb 04, 2003 7:22 am    Post subject: Reply with quote

It was part of the Aegypten project, an app called Pinentry. Here is the Ebuild for it:
Code:

first# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Part of the aegypten project"
HOMEPAGE="http://www.gnupg.org/aegypten/"
SRC_URI="ftp://ftp.gnupg.org/gcrypt/pinentry/${P}.tar.gz"
LICENSE="GPL"
SLOT="0"
KEYWORDS="x86"
IUSE="qt gtk ncurses"

DEPEND="qt? ( >=x11-libs/qt-3.0 ) gtk? ( >x11-libs/gtk+-1.2* ) ncurses? ( sys-l$

S=${WORKDIR}/${P}

src_compile() {
        use qt && MYCONF="${MYCONF} --enable-pinentry-qt"
        use qt || MYCONF="${MYCONF} --disable-pinentry-qt"
        use gtk && MYCONF="${MYCONF} --enable-pinentry-gtk"
        use gtk || MYCONF="${MYCONF} --disable-pinentry-gtk"
        use ncurses && MYCONF="${MYCONF} --enable-pinentry-curses --enable-fallback-curses"
        use ncurses || MYCONF="${MYCONF} --disable-pinentry-curses --disable-fallback-curses

        econf ${MYCONF}  || die
        emake || die
}


src_install() {
        # You must *personally verify* that this trick doesn't install
        # anything outside of DESTDIR; do this by reading and
        # understanding the install part of the Makefiles.
        make DESTDIR=${D} install || die
        # For Makefiles that don't make proper use of DESTDIR, setting
        # prefix is often an alternative.  However if you do this, then
        # you also need to specify mandir and infodir, since they were
        # passed to ./configure as absolute paths (overriding the prefix
        # setting).
        #make \       #       prefix=${D}/usr \
        #       mandir=${D}/usr/share/man \
        #       infodir=${D}/usr/share/info \
        #       install || die
        # Again, verify the Makefiles!  We don't want anything falling
        # outside of ${D}.

        # The portage shortcut to the above command is simply:
        #
        #einstall
}

Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Tue Feb 04, 2003 6:55 pm    Post subject: Reply with quote

I'm no ebuild expert, but this >x11-libs/gtk+-1.2 would pretty much say that gtk version must be greather than (>) 1.2, altougt I have no clue on the meanings of the + in gtk+-1.2.

Try changing the > for >=, unmerge, emerge and hope it works, but it would be doubtfull.
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Tue Feb 04, 2003 11:47 pm    Post subject: Reply with quote

I actually did try manually editing the ebuild in that manner and you're right, it didn't work.
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Wed Feb 05, 2003 12:15 am    Post subject: Reply with quote

swingarm wrote:
I actually did try manually editing the ebuild in that manner and you're right, it didn't work.


...and the reason why it try to add gtk2. Bare in mind that they can be both installed thrue slots.

good luck.
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Wed Feb 05, 2003 7:29 am    Post subject: Reply with quote

I thought they could both co-exist, this just confirms it, Thanks..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum