Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Re: [PATCHv3 1/2] MEDIUM: misc-functions: Be more quiet when removing non existing INSTALL_MASK
Date: Tue, 21 Apr 2015 17:28:08
Message-Id: 5536889E.5050200@gentoo.org
In Reply to: [gentoo-portage-dev] Re: [PATCHv3 1/2] MEDIUM: misc-functions: Be more quiet when removing non existing INSTALL_MASK by Duncan <1i5t5.duncan@cox.net>
1 On 04/21/2015 02:48 AM, Duncan wrote:
2 > Zac Medico posted on Mon, 20 Apr 2015 17:37:15 -0700 as excerpted:
3 >
4 >> On 04/20/2015 05:31 PM, Bertrand Jacquin wrote:
5 >>> On 21/04/2015 00:39, Zac Medico wrote:
6 >>>> These are in the master branch now:
7 >>>>
8 >>>> https://gitweb.gentoo.org/proj/portage.git/commit/?
9 > id=5a1b870fe54ac06f864a648c3ea5cc118f6ce911
10 >>>>
11 >>>> https://gitweb.gentoo.org/proj/portage.git/commit/?
12 > id=e74e2670e3f043608fced9847e54bdbb19f35169
13 >>>>
14 >>>
15 >>> Thanks for that :)
16 >>>
17 >>>> I modified the test as follows in order to ensure that it still works
18 >>>> with shell globs:
19 >>>>
20 >>>> if [[ -e "${root}"/${no_inst} || "${root}"/${no_inst} != $(echo
21 >>>> "${root}"/${no_inst}) ]] ; then
22 >>>
23 >>> I do not really understand the use case here, do you have an example ?
24 >>>
25 >>> Cheers,
26 >>>
27 >>
28 >> Well, I don't use INSTALL_MASK myself, so I don't have a real-world
29 >> use-case for you. However, it's clear that the code will expand shell
30 >> globs, so I preserved that behavior for compatibility.
31 >
32 > I do, with shell globs, tho I didn't bother checking the above to see if
33 > they'd have been affected.
34 >
35 > The two install-masks with globs I use here are:
36 >
37 > *.la
38
39 Since it doesn't have an absolute path, this glob is handled by the
40 find/rm code which comes just after the shell glob code that I was
41 talking about.
42
43 > (Unmasked on libtool itself, since it has a *.la file that other
44 > package's .configure scripts test for.)
45 >
46 > /etc/cron.*/
47 >
48 > (I use systemd's timers in place of cron and thus crontablets.)
49
50 This is absolute, so it is handled by the shell glob code in question.
51 --
52 Thanks,
53 Zac

Replies