Skip to contentSkip to conversation

coreutils: remove dependency on coreutils-native

PATCH New Jesse Zhang 3 participants 7 messages Jan 15, 2013 – Jan 17, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 coreutils: remove dependency on coreutils-native

Hi,

In builds that exclude GPLv3 packages, such errors will frequently appear:

make[6]: execvp: rm: Text file busy
Or

    libtool: ...tmp/sysroots/x86_64-linux//bin/mv: Text file busy

And some others in various forms.

It's caused by coreutils-6.9's dependency on coreutils-native, which overrides host commands and causes these ETXTBSY errors in parallel builds.

This dependency doesn't seem to be necessary, and the GPLv3 recipe doesn't have it either.

It's also possible to use ASSUME_PROVIDED to exclude coreutils-native, but I think this might be better.

Jesse Zhang (1):
coreutils: remove dependency on coreutils-native

 meta/recipes-core/coreutils/coreutils_6.9.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Signature · 1 line
1.7.11.7
#1 lore raw

PATCH 1/1 coreutils: remove dependency on coreutils-native

If coreutils-native is built, it will replace the host commands and will in parallel builds cause such errors:

make[6]: execvp: rm: Text file busy

libtool: ...tmp/sysroots/x86_64-linux//bin/mv: Text file busy

Remove the dependency and always use the host version.

---
 meta/recipes-core/coreutils/coreutils_6.9.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta/recipes-core/coreutils/coreutils_6.9.bb +1 -2
index 37d8dc9..c0778ba 100644
@@ -8,8 +8,7 @@ BUGTRACKER = "http://debbugs.gnu.org/coreutils"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
                     file://src/ls.c;beginline=4;endline=16;md5=15ed60f67b1db5fedd5dbc37cf8a9543"
-PR = "r4"
-DEPENDS = "coreutils-native-${PV}"
+PR = "r5"
 DEPENDS_class-native = "gettext-native"
 
 inherit autotools gettext
Signature · 1 line
1.7.11.7
#2 lore raw
Quoted 19 lines · Jesse Zhang

If coreutils-native is built, it will replace the host commands and will in parallel builds cause such errors:

make[6]: execvp: rm: Text file busy

libtool: ...tmp/sysroots/x86_64-linux//bin/mv: Text file busy

Remove the dependency and always use the host version.

---
 meta/recipes-core/coreutils/coreutils_6.9.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta/recipes-core/coreutils/coreutils_6.9.bb +0 -0
index 37d8dc9..c0778ba 100644

meta/recipes-core/coreutils/coreutils_6.9.bb BUGTRACKER = "http://debbugs.gnu.org/coreutils" · line 14

Quoted 9 lines
meta/recipes-core/coreutils/coreutils_6.9.bb +1 -2
@@ -8,8 +8,7 @@ BUGTRACKER = "http://debbugs.gnu.org/coreutils"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
                     file://src/ls.c;beginline=4;endline=16;md5=15ed60f67b1db5fedd5dbc37cf8a9543"
-PR = "r4"
-DEPENDS = "coreutils-native-${PV}"
+PR = "r5"
 DEPENDS_class-native = "gettext-native"
 
 inherit autotools gettext

Two questions:

1) Why do we have this dependency here at all? Are we sure we don't need it for some reasons?

2) Isn't the build of coreutils-native still broken? We should probably hack it so it installs into some path prefix like {python/perl/gzip/tar}-native or doesn't install the utils at all.

I've not taken the patch until we have some plans for the above issues.

Cheers,

Richard

#3 lore raw
Quoted 4 lines · Richard Purdie

Two questions:

1) Why do we have this dependency here at all? Are we sure we don't need it for some reasons?

It was introduced in this commit, Cc'ing Nitin.

commit 543577c25b5a4e89a3ab15ee28e754b71c2a43d5

Author: Nitin A Kamble <[email protected]>
Date:   Thu Mar 17 10:25:04 2011 -0700

coreutils-6.9: fix man page building for the gplv2 recipe

But the reason behind the dependency is not entirely clear. And we've never seen such issue with the GPLv3 recipe. (And the GPLv2 recipe with my fix has been building well here for some time).

Quoted 3 lines

2) Isn't the build of coreutils-native still broken? We should probably hack it so it installs into some path prefix like {python/perl/gzip/tar}-native or doesn't install the utils at all.

Yeah, the build would still be broken.

The main contents of coreutils are the several dozen commands. I'm not sure how it can be useful if we install them into a not-in-$PATH dir. Any suggestions? I'm willing to work out a fix.

jesse

#4 lore raw

This is bit old (out of my cached memory), but looking at my commit (543577c25b5a4e89a3ab15ee28e754b71c2a43d5) the dependency on coreutils-native is needed if the build system does not have coreutils, or it is not compatible with the sources of the coreutils you are trying to build. And the commit log does show the errors it was hitting, which are solved by using the native version of the coreutils.

Nitin

Quoted 37 lines

-----Original Message-----
From: Jesse Zhang [mailto:[email protected]]
Sent: Wednesday, January 16, 2013 6:09 PM
To: Richard Purdie; Kamble, Nitin A
Cc: [email protected]
Subject: Re: [OE-core] [PATCH] coreutils: remove dependency on coreutils- native

Quoted 4 lines · Richard Purdie

Two questions:

1) Why do we have this dependency here at all? Are we sure we don't need it for some reasons?

It was introduced in this commit, Cc'ing Nitin.

commit 543577c25b5a4e89a3ab15ee28e754b71c2a43d5

Author: Nitin A Kamble <[email protected]>
Date:   Thu Mar 17 10:25:04 2011 -0700

coreutils-6.9: fix man page building for the gplv2 recipe

But the reason behind the dependency is not entirely clear. And we've never seen such issue with the GPLv3 recipe. (And the GPLv2 recipe with my fix has been building well here for some time).

Quoted 3 lines

2) Isn't the build of coreutils-native still broken? We should probably hack it so it installs into some path prefix like {python/perl/gzip/tar}-native or doesn't install the utils at all.

Yeah, the build would still be broken.

The main contents of coreutils are the several dozen commands. I'm not sure how it can be useful if we install them into a not-in-$PATH dir. Any suggestions? I'm willing to work out a fix.

jesse

#5 lore raw
Quoted 1 line · Nitin A

This is bit old (out of my cached memory), but looking at my commit (543577c25b5a4e89a3ab15ee28e754b71c2a43d5) the dependency on coreutils-native is needed if the build system does not have coreutils, or it is not compatible with the sources of the coreutils you are trying to build. And the commit log does show the errors it was hitting, which are solved by using the native version of the coreutils.

Thanks Nitin. But I don't think there can be any system without coreutils. And if there is some compatibility issue (which I haven't been able to reproduce on our various hosts), we should be able to trace it down to a specific command within coreutils.

Do you still have some notes on how to reproduce the error?

jesse

#6 lore raw
Quoted 9 lines · Jesse Zhang
Quoted 1 line · Nitin A

This is bit old (out of my cached memory), but looking at my commit (543577c25b5a4e89a3ab15ee28e754b71c2a43d5) the dependency on coreutils-native is needed if the build system does not have coreutils, or it is not compatible with the sources of the coreutils you are trying to build. And the commit log does show the errors it was hitting, which are solved by using the native version of the coreutils.

Thanks Nitin. But I don't think there can be any system without coreutils. And if there is some compatibility issue (which I haven't been able to reproduce on our various hosts), we should be able to trace it down to a specific command within coreutils.

Do you still have some notes on how to reproduce the error?

Looks like its related to help2man. The native versions were being generated so help2man could generate the man pages correctly. We should just patch out the generation (or regeneration?) of the man pages...

Cheers,

Richard