FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 02-04-2012, 10:54 AM
Bastien Dejean
 
Default Makepkg Traps non Zero Exit Codes

Hi,

There's a problem with all the mercurial based PKGBUILD, the following
command:

hg pull

Returns with a non zero exit code if there's nothing to pull.
In that case, makepkg fails with since it traps all non zero exit codes.

I've found traces of this mercurial behavior dating from 2006, hence I
presume that makepkg must have become picky lately?

Greetings,
--
b.d
(| |)
^ ^
 
Old 02-04-2012, 11:29 AM
Frederic Bezies
 
Default Makepkg Traps non Zero Exit Codes

On 04/02/2012 12:54, Bastien Dejean wrote:

Hi,

There's a problem with all the mercurial based PKGBUILD, the following
command:

hg pull

Returns with a non zero exit code if there's nothing to pull.
In that case, makepkg fails with since it traps all non zero exit codes.

I've found traces of this mercurial behavior dating from 2006, hence I
presume that makepkg must have become picky lately?

Greetings,


For now, downgrade to mercurial 2.0.2 using :
http://arm.konnichi.com/search/


I reported a bug on bugzilla.mozilla.org bugtracker related to
thunderbird trunk source code grabbing.


https://bugzilla.mozilla.org/show_bug.cgi?id=723638

So, until a fix is found either in mercurial or the AUR package you're
using, downgrading is the only answer


--
Frederic Bezies - fredbezies@gmail.com
Blog : http://frederic.bezies.free.fr/blog/
 
Old 02-04-2012, 11:54 AM
Lukáš Jirkovský
 
Default Makepkg Traps non Zero Exit Codes

On 4 February 2012 12:54, Bastien Dejean <nihilhill@gmail.com> wrote:
> Hi,
>
> There's a problem with all the mercurial based PKGBUILD, the following
> command:
>
> * *hg pull
>
> Returns with a non zero exit code if there's nothing to pull.
> In that case, makepkg fails with since it traps all non zero exit codes.
>
> I've found traces of this mercurial behavior dating from 2006, hence I
> presume that makepkg must have become picky lately?
>
> Greetings,
> --
> *b.d
> (| |)
> *^ ^

You can use "|| true" in such cases. Eg.
hg pull || true
 
Old 02-04-2012, 12:13 PM
Bastien Dejean
 
Default Makepkg Traps non Zero Exit Codes

Frederic Bezies:

> For now, downgrade to mercurial 2.0.2

Thanks.
My bad: I though the change came from pacman 4.

--
b.d
(| |)
^ ^
 
Old 02-04-2012, 12:24 PM
Bastien Dejean
 
Default Makepkg Traps non Zero Exit Codes

Lukáš Jirkovský:

> You can use "|| true" in such cases. Eg.
> hg pull || true

Thanks but 'hg pull' is called from within the makepkg script itself
(i.e. even if the PKGBUILD contains an empty build() function, mercurial
will be called if the _hgroot and _hgrepo variables have proper values).

--
b.d
(| |)
^ ^
 
Old 02-04-2012, 12:46 PM
Stefan Husmann
 
Default Makepkg Traps non Zero Exit Codes

Am 04.02.2012 13:29, schrieb Frederic Bezies:

On 04/02/2012 12:54, Bastien Dejean wrote:

Hi,

There's a problem with all the mercurial based PKGBUILD, the following
command:

hg pull

Returns with a non zero exit code if there's nothing to pull.
In that case, makepkg fails with since it traps all non zero exit codes.

I've found traces of this mercurial behavior dating from 2006, hence I
presume that makepkg must have become picky lately?

Greetings,


For now, downgrade to mercurial 2.0.2 using : http://arm.konnichi.com/search/

I reported a bug on bugzilla.mozilla.org bugtracker related to thunderbird trunk source code grabbing.

https://bugzilla.mozilla.org/show_bug.cgi?id=723638

So, until a fix is found either in mercurial or the AUR package you're using, downgrading is the only answer



Unfortunately this seems to be an intended change in mercurial. See http://selenic.com/hg/rev/093b75c7b44b

So a "fix" for this won't come, I guess.

Regards Stefan
 
Old 02-04-2012, 01:11 PM
Allan McRae
 
Default Makepkg Traps non Zero Exit Codes

On 04/02/12 23:46, Stefan Husmann wrote:
> Am 04.02.2012 13:29, schrieb Frederic Bezies:
>> On 04/02/2012 12:54, Bastien Dejean wrote:
>>> Hi,
>>>
>>> There's a problem with all the mercurial based PKGBUILD, the following
>>> command:
>>>
>>> hg pull
>>>
>>> Returns with a non zero exit code if there's nothing to pull.
>>> In that case, makepkg fails with since it traps all non zero exit codes.
>>>
>>> I've found traces of this mercurial behavior dating from 2006, hence I
>>> presume that makepkg must have become picky lately?
>>>
>>> Greetings,
>>
>> For now, downgrade to mercurial 2.0.2 using :
>> http://arm.konnichi.com/search/
>>
>> I reported a bug on bugzilla.mozilla.org bugtracker related to
>> thunderbird trunk source code grabbing.
>>
>> https://bugzilla.mozilla.org/show_bug.cgi?id=723638
>>
>> So, until a fix is found either in mercurial or the AUR package you're
>> using, downgrading is the only answer
>>
>
> Unfortunately this seems to be an intended change in mercurial. See
> http://selenic.com/hg/rev/093b75c7b44b
>
> So a "fix" for this won't come, I guess.
>


Please file a bug for makepkg. This is something easily fixed for 4.0.2.

Allan
 
Old 02-04-2012, 03:22 PM
Bastien Dejean
 
Default Makepkg Traps non Zero Exit Codes

Allan McRae:

> Please file a bug for makepkg.

Done: https://bugs.archlinux.org/task/28248?project=3

Cheers,
--
b.d
(| |)
^ ^
 
Old 02-06-2012, 01:20 AM
Tavian Barnes
 
Default Makepkg Traps non Zero Exit Codes

On 4 February 2012 08:46, Stefan Husmann <stefan-husmann@t-online.de> wrote:
> Am 04.02.2012 13:29, schrieb Frederic Bezies:
>
>> On 04/02/2012 12:54, Bastien Dejean wrote:
>>>
>>> Hi,
>>>
>>> There's a problem with all the mercurial based PKGBUILD, the following
>>> command:
>>>
>>> hg pull
>>>
>>> Returns with a non zero exit code if there's nothing to pull.
>>> In that case, makepkg fails with since it traps all non zero exit codes.
>>>
>>> I've found traces of this mercurial behavior dating from 2006, hence I
>>> presume that makepkg must have become picky lately?
>>>
>>> Greetings,
>>
>>
>> For now, downgrade to mercurial 2.0.2 using :
>> http://arm.konnichi.com/search/
>>
>> I reported a bug on bugzilla.mozilla.org bugtracker related to thunderbird
>> trunk source code grabbing.
>>
>> https://bugzilla.mozilla.org/show_bug.cgi?id=723638
>>
>> So, until a fix is found either in mercurial or the AUR package you're
>> using, downgrading is the only answer
>>
>
> Unfortunately this seems to be an intended change in mercurial. See
> http://selenic.com/hg/rev/093b75c7b44b
>
> So a "fix" for this won't come, I guess.
>
> Regards Stefan

Wow,

- Returns 0 on success, 1 if an update had unresolved files.
+ Returns 0 on success, 1 if no changes found or an update had
+ unresolved files.

So not even a way to distinguish between failure and nothing to pull.
Well, I assume some other command could.

--
Tavian Barnes
 

Thread Tools




All times are GMT. The time now is 03:48 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org