[arch-general] 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 (| |) ^ ^
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/
Frederic Bezies:
For now, downgrade to mercurial 2.0.2
Thanks. My bad: I though the change came from pacman 4. -- b.d (| |) ^ ^
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
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
Allan McRae:
Please file a bug for makepkg.
Done: https://bugs.archlinux.org/task/28248?project=3 Cheers, -- b.d (| |) ^ ^
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
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
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 (| |) ^ ^
participants (6)
-
Allan McRae
-
Bastien Dejean
-
Frederic Bezies
-
Lukáš Jirkovský
-
Stefan Husmann
-
Tavian Barnes