public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] package.provided
Date: Tue, 8 Jan 2008 15:11:09 +0200	[thread overview]
Message-ID: <200801081511.09859.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <20080108143527.176caf14@ilievnet.com>

On Tuesday 08 January 2008, Daniel Iliev wrote:
> Hi,
>
> I want to compile mplayer in a way not supported by the ebuild and
> use portage only to keep record of the files installed in system for
> future uninstallation.

A much better way would be to modify the ebuild to do what you want, 
then copy it to a local overlay. Portage will use your overlay in 
preference to the portage tree. You just have to then watch out for 
newer versions to hit the tree which will supercede your custom ebuild, 
and modify those new versions similarly.

There's an environment variable EXTRA_ECONF intended for *users* to add 
extra configure options when emerging, but I have heard bad things 
about using this. Don't know the details, perhaps someone else who does 
will post in response.

Finally, you could just mask out mplayer entirely and build it from 
source using the default DESTDIR of /usr/local. It's not a complete 
unistall solution, but at least it doesn't collide with portage's 
installs in /usr/

man 5 ebuild has lots of info on this topic

alan



>
> The system amd64 stable.
>
> I have done the following:
>
> (1) echo media-video/mplayer >> /etc/portage/package.keywords
>
> // "emerge -p mplayer" now gives:
> media-video/mplayer-1.0_rc2_p24929-r2 //
>
> (2) echo media-video/mplayer-1.0_rc2_p24929-r2
>
> >> /etc/portage/package.provided
>
> (3) ebuild `equery w mplayer` unpack
>
> (4) cd $PORTAGE_TMPDIR/portage/media-video/mplayer-*/work/mplayer*
> (5) ./configure --the-way-I-want-it-to-be
> (6)make
> (7) cd ../../
> (8) touch .compiled
> (9) ebuild `equery w mplayer` merge
>
>
> Everything seems to be OK until I try "emerge -DuNav world". After
> this point portage wants to rebuild mplayer, showing all USE flags
> as newly added (e.g. "alsa%"). I expected putting mplayer
> into /etc/portage/package.keywords to make portage ignore this
> package.
>
> Where is my mistake and what is the correct method I should follow?
>
> --
> Best regards,
> Daniel



-- 
Alan McKinnon
alan dot mckinnon at gmail dot com
-- 
gentoo-user@lists.gentoo.org mailing list



  parent reply	other threads:[~2008-01-08 13:16 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-08 12:35 [gentoo-user] package.provided Daniel Iliev
2008-01-08 13:07 ` Renat Golubchyk
2008-01-08 13:11 ` Alan McKinnon [this message]
2008-01-08 15:18   ` Daniel Iliev
2008-01-08 18:23     ` Alan McKinnon
2008-01-08 21:20       ` Daniel Iliev
2008-01-08 21:51         ` Dmitry S. Makovey
2008-01-08 21:54         ` Neil Bothwick
2008-01-08 21:40 ` Kenneth Prugh
2008-01-08 21:53 ` Neil Bothwick
2008-01-09  3:57   ` [gentoo-user] [SOLVED] package.provided Daniel Iliev
  -- strict thread matches above, loose matches on Subject: below --
2007-05-08 15:23 [gentoo-user] package.provided Daniel Iliev
2007-05-08 15:39 ` Daniel Pielmeier
2007-05-08 18:10   ` Daniel Iliev
2007-05-08 20:13 ` Zac Medico
2007-05-09  9:22   ` Daniel Iliev
2007-05-09 13:53     ` Iain Buchanan
2007-05-09 14:48       ` Neil Bothwick
2006-07-17  1:22 Jeremy Olexa
2006-07-17  1:30 ` Brett I. Holcomb
2006-07-17  1:37 ` Willie Wong
2006-07-17  7:43 ` Neil Bothwick
2006-07-18  4:28   ` Jeremy Olexa
2006-07-18  5:37     ` Donnie Berkholz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200801081511.09859.alan.mckinnon@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox