[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Build failures of coreutils-8.1 in Fedora build system "koji"
From: |
Ondřej Vašík |
Subject: |
Re: Build failures of coreutils-8.1 in Fedora build system "koji" |
Date: |
Mon, 23 Nov 2009 15:03:33 +0100 |
Hi Jim,
Jim Meyering wrote:
> Ondřej Vašík wrote:
> > I'm trying to package coreutils-8.1 for Fedora Rawhide, but few tests
> > are failing
> > ( http://koji.fedoraproject.org/koji/getfile?taskID=1819634&name=build.log
> > ).
> > I removed all Fedora-only patches to prevent patch-related issues. Koji
> > build system uses mock build hosted on machine with old RHEL-5 xen
> > kernel, so this may be the culprit of the issues. Generally there are
> > two issues -
> > 1) test 126 = 127 ... koji kernel seems to return EXIT_CANNOT_INVOKE
> > (126) exit code in cases where EXIT_ENOENT (127) is expected by
> > testsuite.
>
> Hi Ondřej,
>
> Thanks for the report.
> For the 126 vs 127 problems, it looks like execvp is
> failing with errno != ENOENT. I.e., when you run "env no_such",
> we expect execvp to fail with errno == ENOENT, and hence env should
> exit with EXIT_ENOENT (127). Since it's actually exiting with status
> of 126, execvp must be failing with some other errno value.
>
> ...
> execvp (argv[optind], &argv[optind]);
>
> {
> int exit_status = (errno == ENOENT ? EXIT_ENOENT : EXIT_CANNOT_INVOKE);
> error (0, errno, "%s", argv[optind]);
> exit (exit_status);
> }
>
> Can you strace it?
> That would show the unexpected errno value.
relevant part
(http://koji.fedoraproject.org/koji/getfile?taskID=1824793&name=build.log)
...
execve("/usr/X11R6/bin/no_such", ["no_such"], [/* 57 vars */]) = -1
ENOENT (No such file or directory)
execve("/root/bin/no_such", ["no_such"], [/* 57 vars */]) = -1 EACCES
(Permission denied)
execve("/usr/local/sbin/no_such", ["no_such"], [/* 57 vars */]) = -1 ENOENT (No
such file or directory)
write(2, "env: ", 5env: ) = 5
write(2, "no_such", 7no_such) = 7
write(2, ": Permission denied", 19: Permission denied) = 19
write(2, "\n", 1
) = 1
close(1) = 0
close(2) = 0
exit_group(126) = ?
/root/bin/ directory is not created in koji buildroot (it is not created by
default at all) - so that might be the difference.
Greetings,
Ondřej
signature.asc
Description: Toto je digitálně podepsaná část zprávy