From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] linuxtv-dvb-headers gone virtual blocks mythtv overlay
Date: Fri, 17 Feb 2012 12:59:32 +0200 [thread overview]
Message-ID: <20120217125932.0dbca7ed@khamul.example.com> (raw)
In-Reply-To: <4F3E2E5C.7090809@st.com>
On Fri, 17 Feb 2012 11:39:24 +0100
Raffaele BELARDI <raffaele.belardi@st.com> wrote:
> On 02/17/2012 11:18 AM, Alan McKinnon wrote:
> > On Fri, 17 Feb 2012 09:01:36 +0100
> > Raffaele BELARDI <raffaele.belardi@st.com> wrote:
> >> The change was done in the mythtv overlay
> >> (/usr/local/mythtv_portage/), would that be overwritten by a
> >> resync? I understood that overlay gets updated only when there is
> >> a mythtv update upstream.
> >
> > It will be overwritten with every layman update/resync
> >
> > layman will notice that you have a file that is different from the
> > repo and will revert it, and you cannot stop this happening. It
> > does not depend on whether the remote file has changed, it only
> > depends on you locally having a file that is different to the repo.
> >
> > Seriously, the gentoo docs are full or warning to not do what you
> > did. Use the local overlay, it was designed for exactly this
> > purpose.
>
> I'm probably oversimplifying because I don't know much about overlays.
>
> I'm not using layman at all but I am using a local overlay for mythtv.
> From what I understand the 'overlayed' mythtv ebuild is responsible
> for the overlay update though a script installed
> in /etc/portage/postsync.d/ which basically performs a 'git pull'. So
> unless there is a new git snapshot upstream the modified ebuild will
> not get overwritten, correct?
I have no idea what you are talking about actually.
ebuilds do not update themselves, something else does.
All an overlay is, is an alternate bunch of ebuilds laid out in the
same format as the portage tree. Layman is nothing more than a nice
bunch of scripts that automate the install, update and resync aspect of
using them. The process you just described makes no sense to me at all
unless it is some customization you did yourself.
But step back and look at this logically. You have a copy of a file
that gets updated from a repo somewhere. But you are also fiddling
around with the same file and expecting it to all magically just work
without collisions despite having two agents fooling around with it.
Does that strike you as a good idea?
The sane way to do this is to leave the remote repo alone and let it do
it's thing when and how it wants to using layman. You will then always
have an ebuild synced to upstream. Copy the ebuild you feel you need to
modify to PORTDIR_OVERLAY and make your changes there. Portage will use
your customized ebuild in preference to the one from the overlay
(due to priority rules) so all is good. When the ebuild in the git repo
is updated, the version number will be bumped and portage will then use
that one in preference to your local copy (due to version number being
higher). If that ebuild doesn't quite work for you yet, copy it to
PORTDIR_OVERLAY and make your custom changes there. keep doing this,
rinse and repeat, until the upstream repo gets their act together.
--
Alan McKinnnon
alan.mckinnon@gmail.com
next prev parent reply other threads:[~2012-02-17 11:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-16 7:58 [gentoo-user] linuxtv-dvb-headers gone virtual blocks mythtv overlay Raffaele BELARDI
2012-02-16 8:16 ` Hinnerk van Bruinehsen
2012-02-16 8:33 ` Raffaele BELARDI
2012-02-16 8:51 ` Neil Bothwick
2012-02-17 7:19 ` Raffaele BELARDI
2012-02-17 7:48 ` Alan McKinnon
2012-02-17 8:01 ` Raffaele BELARDI
2012-02-17 10:18 ` Alan McKinnon
2012-02-17 10:39 ` Raffaele BELARDI
2012-02-17 10:59 ` Alan McKinnon [this message]
2012-02-17 13:12 ` Neil Bothwick
2012-02-17 14:50 ` Raffaele BELARDI
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=20120217125932.0dbca7ed@khamul.example.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