Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: pkg_needrebuild() API for smart-live-rebuild
Date: Sat, 08 Aug 2015 05:57:11
Message-Id: 20150808075655.5a14bb34@pomiot
In Reply to: Re: [gentoo-dev] RFC: pkg_needrebuild() API for smart-live-rebuild by Ciaran McCreesh
1 Dnia 2015-08-07, o godz. 18:07:05
2 Ciaran McCreesh <ciaran.mccreesh@××××××××××.com> napisał(a):
3
4 > On Fri, 7 Aug 2015 19:01:59 +0200
5 > Michał Górny <mgorny@g.o> wrote:
6 > > The function is run in environment containing all variables exported
7 > > by the previous source build. It must not access or assume existence
8 > > of $WORKDIR, $D...
9 >
10 > So you're using the installed version of the ebuild to determine
11 > whether the version of the ebuild in the tree should be used? What
12 > happens when a URL changes?
13
14 Yes. Well, rather whether the ebuild with the same slot, to be more
15 precise.
16
17 If the URL changes, and the old URL is no longer valid the function
18 errors out and a rebuild is triggered in order to attempt to fix it. If
19 the old URL is still valid, sorry, can't help you.
20
21 --
22 Best regards,
23 Michał Górny
24 <http://dev.gentoo.org/~mgorny/>