gentoo-x86 commit in net-misc/aria2: aria2-1.12.0.ebuild ChangeLog
В Чтв, 30/06/2011 в 19:27 +0000, Sebastian Pipping (sping) пишет:
> Log:
> net-misc/aria2: Bump to 1.12.0, looks trivial
>
> EAPI="2"
>
> inherit bash-completion
...
> pkg_setup() {
> if use scripts && use !xmlrpc && use !metalink; then
> ewarn "Please also enable the 'xmlrpc' USE flag to actually use the additional scripts"
> fi
> }
gentoo-x86 commit in net-misc/aria2: aria2-1.12.0.ebuild ChangeLog
On Fri, 01 Jul 2011 12:03:41 +0400
Peter Volkov <pva@gentoo.org> wrote:
> > pkg_setup() {
> > if use scripts && use !xmlrpc && use !metalink; then
>
> This really calls for REQUIRED_USE from EAPI="4".
>
> REQUIRED_USE="scripts? ( ^^ ( xmlrpc metalink ) )"
That's not the same condition as the one in the pkg_setup.
--
Ciaran McCreesh
07-01-2011, 01:23 PM
Peter Volkov
gentoo-x86 commit in net-misc/aria2: aria2-1.12.0.ebuild ChangeLog
В Птн, 01/07/2011 в 09:09 +0100, Ciaran McCreesh пишет:
> On Fri, 01 Jul 2011 12:03:41 +0400
> Peter Volkov <pva@gentoo.org> wrote:
> > > pkg_setup() {
> > > if use scripts && use !xmlrpc && use !metalink; then
> >
> > This really calls for REQUIRED_USE from EAPI="4".
> >
> > REQUIRED_USE="scripts? ( ^^ ( xmlrpc metalink ) )"
>
> That's not the same condition as the one in the pkg_setup.
Ah, yea. I guess any of xmlrpc or metalink are required for scripts. So,
correct one should be:
gentoo-x86 commit in net-misc/aria2: aria2-1.12.0.ebuild ChangeLog
On 07/01/2011 10:03 AM, Peter Volkov wrote:
> В Чтв, 30/06/2011 в 19:27 +0000, Sebastian Pipping (sping) пишет:
>> Log:
>> net-misc/aria2: Bump to 1.12.0, looks trivial
>>
>> EAPI="2"
>>
>> inherit bash-completion
> ...
>> pkg_setup() {
>> if use scripts && use !xmlrpc && use !metalink; then
>> ewarn "Please also enable the 'xmlrpc' USE flag to actually use the additional scripts"
>> fi
>> }
>
> This really calls for REQUIRED_USE from EAPI="4".
>
> REQUIRED_USE="scripts? ( ^^ ( xmlrpc metalink ) )"
If we use EAPI 4 in that ebuild we cannot make it stable anytime soon,
correct?
Sebastian
07-01-2011, 07:33 PM
Patrick Lauer
gentoo-x86 commit in net-misc/aria2: aria2-1.12.0.ebuild ChangeLog
On 07/01/11 21:25, Sebastian Pipping wrote:
[SNIP]
> If we use EAPI 4 in that ebuild we cannot make it stable anytime soon,
> correct?
As far as I'm aware we have a stable portage with EAPI 4 in the tree for
a few weeks now, so you can actively use it everywhere.
--
Patrick Lauer http://service.gentooexperimental.org
Gentoo Council Member and Evangelist
Part of Gentoo Benchmarks, Forensics, PostgreSQL, KDE herds
07-02-2011, 01:36 AM
"Jorge Manuel B. S. Vicetto"
gentoo-x86 commit in net-misc/aria2: aria2-1.12.0.ebuild ChangeLog
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 01-07-2011 19:33, Patrick Lauer wrote:
> On 07/01/11 21:25, Sebastian Pipping wrote:
> [SNIP]
>> If we use EAPI 4 in that ebuild we cannot make it stable anytime soon,
>> correct?
>
> As far as I'm aware we have a stable portage with EAPI 4 in the tree for
> a few weeks now, so you can actively use it everywhere.
This prompted me to search the council meeting logs about EAPI 4 use for
stable packages. Contrary to my recollection, this topic fell off the
council radar a few months ago.
In any case, as decided in the February[1] meeting, EAPI 4 was approved
for tree use. The first portage version with EAPI-4 support[2] was
marked stable over 3 months ago[3].
I did a quick grep in the tree and count over 500 ebuilds with EAPI 4
and amd64 or x86 keywords, so we already have quite a few EAPI=4 stable
packages in the tree.
gentoo-x86 commit in net-misc/aria2: aria2-1.12.0.ebuild ChangeLog
Peter Volkov wrote:
>>
>> rm -rf "${D}/usr/share/doc/aria2"
>
> || die
`rm -f` never fails -- if the target does not exist, then rm simply returns
true. (The only reason it would fail that I can think of is /bin/rm not
existing, in which case you have a bigger problem.)
To test, try `rm -f /nonexistant/file; echo $?`
--
Jonathan Callen
07-03-2011, 10:49 PM
Paul Arthur
gentoo-x86 commit in net-misc/aria2: aria2-1.12.0.ebuild ChangeLog
On 2011-07-03, Jonathan Callen <abcd@gentoo.org> wrote:
> Peter Volkov wrote:
>>>
>>> rm -rf "${D}/usr/share/doc/aria2"
>>
>> || die
>
> `rm -f` never fails -- if the target does not exist, then rm simply returns
> true. (The only reason it would fail that I can think of is /bin/rm not
> existing, in which case you have a bigger problem.)
>
> To test, try `rm -f /nonexistant/file; echo $?`
--
Suddenly, the door crashed open. Outside, purple prose rained down
like a bad metaphor.
--SteveD on RPGnet
07-05-2011, 11:05 PM
Francesco R
gentoo-x86 commit in net-misc/aria2: aria2-1.12.0.ebuild ChangeLog
2011/7/3 Paul Arthur <junk+usenet@flowerysong.com>:
> On 2011-07-03, Jonathan Callen <abcd@gentoo.org> wrote:
>> Peter Volkov wrote:
>>>>
>>>> rm -rf "${D}/usr/share/doc/aria2"
>>>
>>> || die
>>
>> `rm -f` never fails -- if the target does not exist, then rm simply returns
>> true. (The only reason it would fail that I can think of is /bin/rm not
>> existing, in which case you have a bigger problem.)
>>
>> To test, try `rm -f /nonexistant/file; echo $?`
>
> jill-zeke /var/tmp $ rm -f testfile
> rm: cannot remove `testfile': Operation not permitted
> jill-zeke /var/tmp $ echo $?
> 1
> jill-zeke /var/tmp $ rm -rf testdir
> rm: cannot remove `testdir/test': Permission denied
> jill-zeke /var/tmp $ echo $?
> 1
>
>
> --
> Suddenly, the door crashed open. Outside, purple prose rained down
> like a bad metaphor.
> * *--SteveD on RPGnet
>
>
>
07-05-2011, 11:29 PM
Mike Frysinger
gentoo-x86 commit in net-misc/aria2: aria2-1.12.0.ebuild ChangeLog
On Sunday, July 03, 2011 18:49:52 Paul Arthur wrote:
> On 2011-07-03, Jonathan Callen <abcd@gentoo.org> wrote:
> > Peter Volkov wrote:
> >>> rm -rf "${D}/usr/share/doc/aria2"
> >>>
> >> || die
> >
> > `rm -f` never fails -- if the target does not exist, then rm simply
> > returns true. (The only reason it would fail that I can think of is
> > /bin/rm not existing, in which case you have a bigger problem.)
> >
> > To test, try `rm -f /nonexistant/file; echo $?`
>
> jill-zeke /var/tmp $ rm -f testfile
> rm: cannot remove `testfile': Operation not permitted
> jill-zeke /var/tmp $ echo $?
> 1
> jill-zeke /var/tmp $ rm -rf testdir
> rm: cannot remove `testdir/test': Permission denied
> jill-zeke /var/tmp $ echo $?
> 1
if this occurs *inside the ebuild env*, then most likely something else is
screwed up and will be caught anyways
personally, i generally like to use:
rm -r "${D}"/usr/share/doc/aria2 || die
that way when the package stops installing aria2, i notice and can remove the
call to `rm` altogether ...
-mike