* Regression: make O=... deb-pkg broken in 3.16
@ 2014-06-15 10:51 Ilya Dryomov
2014-06-16 9:18 ` Michal Marek
2014-06-16 14:18 ` [PATCH] deb-pkg: Fix for relative paths Michal Marek
0 siblings, 2 replies; 7+ messages in thread
From: Ilya Dryomov @ 2014-06-15 10:51 UTC (permalink / raw)
To: Michal Marek; +Cc: linux-kbuild, linux-kernel
Hi Michal,
Your relative path changes in the first kbuild pull request for 3.16
broke make O=... deb-pkg.
/home/ubuntu/foo/linux-a/scripts/package/builddeb: line 291:
./debian/hdrsrcfiles: No such file or directory
290 # Build header package
291 (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name
\*.pl > "$objtree/debian/hdrsrcfiles")
292 (cd $srctree; find arch/$SRCARCH/include include scripts -type f
>> "$objtree/debian/hdrsrcfiles")
The $objtree passed in is a '.' and hence the hdrsrcfiles path is
interpreted relative to the $srctree, which, if building with O=,
doesn't have a 'debian' directory.
Thanks,
Ilya
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Regression: make O=... deb-pkg broken in 3.16
2014-06-15 10:51 Regression: make O=... deb-pkg broken in 3.16 Ilya Dryomov
@ 2014-06-16 9:18 ` Michal Marek
2014-06-16 14:18 ` [PATCH] deb-pkg: Fix for relative paths Michal Marek
1 sibling, 0 replies; 7+ messages in thread
From: Michal Marek @ 2014-06-16 9:18 UTC (permalink / raw)
To: Ilya Dryomov; +Cc: linux-kbuild, linux-kernel
On 2014-06-15 12:51, Ilya Dryomov wrote:
> Hi Michal,
>
> Your relative path changes in the first kbuild pull request for 3.16
> broke make O=... deb-pkg.
>
> /home/ubuntu/foo/linux-a/scripts/package/builddeb: line 291:
> ./debian/hdrsrcfiles: No such file or directory
>
> 290 # Build header package
> 291 (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name
> \*.pl > "$objtree/debian/hdrsrcfiles")
> 292 (cd $srctree; find arch/$SRCARCH/include include scripts -type f
>>> "$objtree/debian/hdrsrcfiles")
>
> The $objtree passed in is a '.' and hence the hdrsrcfiles path is
> interpreted relative to the $srctree, which, if building with O=,
> doesn't have a 'debian' directory.
Thanks for the report, I'll have a look.
Michal
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] deb-pkg: Fix for relative paths
2014-06-15 10:51 Regression: make O=... deb-pkg broken in 3.16 Ilya Dryomov
2014-06-16 9:18 ` Michal Marek
@ 2014-06-16 14:18 ` Michal Marek
2014-06-17 2:47 ` Alexei Starovoitov
1 sibling, 1 reply; 7+ messages in thread
From: Michal Marek @ 2014-06-16 14:18 UTC (permalink / raw)
To: Ilya Dryomov; +Cc: linux-kbuild, linux-kernel
When $srctree or $objtree are relative paths, we cannot change directory
and refer to them in the same subshell. Do the redirection outside of
the subshell to fix this.
Reported-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
---
scripts/package/builddeb | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index b5f08f7..9a38e85 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -290,13 +290,13 @@ EOF
fi
# Build header package
-(cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles")
-(cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles")
-(cd $objtree; find arch/$SRCARCH/include Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
+(cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl) > "$objtree/debian/hdrsrcfiles"
+(cd $srctree; find arch/$SRCARCH/include include scripts -type f) >> "$objtree/debian/hdrsrcfiles"
+(cd $objtree; find arch/$SRCARCH/include Module.symvers include scripts -type f) >> "$objtree/debian/hdrobjfiles"
destdir=$kernel_headers_dir/usr/src/linux-headers-$version
mkdir -p "$destdir"
-(cd $srctree; tar -c -f - -T "$objtree/debian/hdrsrcfiles") | (cd $destdir; tar -xf -)
-(cd $objtree; tar -c -f - -T "$objtree/debian/hdrobjfiles") | (cd $destdir; tar -xf -)
+(cd $srctree; tar -c -f - -T -) < "$objtree/debian/hdrsrcfiles" | (cd $destdir; tar -xf -)
+(cd $objtree; tar -c -f - -T -) < "$objtree/debian/hdrobjfiles" | (cd $destdir; tar -xf -)
(cd $objtree; cp $KCONFIG_CONFIG $destdir/.config) # copy .config manually to be where it's expected to be
ln -sf "/usr/src/linux-headers-$version" "$kernel_headers_dir/lib/modules/$version/build"
rm -f "$objtree/debian/hdrsrcfiles" "$objtree/debian/hdrobjfiles"
--
1.9.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] deb-pkg: Fix for relative paths
2014-06-16 14:18 ` [PATCH] deb-pkg: Fix for relative paths Michal Marek
@ 2014-06-17 2:47 ` Alexei Starovoitov
2014-06-18 7:52 ` Ilya Dryomov
0 siblings, 1 reply; 7+ messages in thread
From: Alexei Starovoitov @ 2014-06-17 2:47 UTC (permalink / raw)
To: Michal Marek; +Cc: Ilya Dryomov, linux-kbuild, linux-kernel@vger.kernel.org
On Mon, Jun 16, 2014 at 7:18 AM, Michal Marek <mmarek@suse.cz> wrote:
> When $srctree or $objtree are relative paths, we cannot change directory
> and refer to them in the same subshell. Do the redirection outside of
> the subshell to fix this.
>
> Reported-by: Ilya Dryomov <idryomov@gmail.com>
> Signed-off-by: Michal Marek <mmarek@suse.cz>
> ---
> scripts/package/builddeb | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
this patch didn't help to fix the broken deb-pkg for me:
../scripts/Makefile.build:44: ../../scripts/package/Makefile: No such
file or directory
make[2]: *** No rule to make target `../../scripts/package/Makefile'. Stop.
make[1]: *** [deb-pkg] Error 2
steps to reproduce:
$ export KBUILD_OUTPUT=/make it out of src tree
$ make deb-pkg
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index b5f08f7..9a38e85 100644
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -290,13 +290,13 @@ EOF
> fi
>
> # Build header package
> -(cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles")
> -(cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles")
> -(cd $objtree; find arch/$SRCARCH/include Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
> +(cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl) > "$objtree/debian/hdrsrcfiles"
> +(cd $srctree; find arch/$SRCARCH/include include scripts -type f) >> "$objtree/debian/hdrsrcfiles"
> +(cd $objtree; find arch/$SRCARCH/include Module.symvers include scripts -type f) >> "$objtree/debian/hdrobjfiles"
> destdir=$kernel_headers_dir/usr/src/linux-headers-$version
> mkdir -p "$destdir"
> -(cd $srctree; tar -c -f - -T "$objtree/debian/hdrsrcfiles") | (cd $destdir; tar -xf -)
> -(cd $objtree; tar -c -f - -T "$objtree/debian/hdrobjfiles") | (cd $destdir; tar -xf -)
> +(cd $srctree; tar -c -f - -T -) < "$objtree/debian/hdrsrcfiles" | (cd $destdir; tar -xf -)
> +(cd $objtree; tar -c -f - -T -) < "$objtree/debian/hdrobjfiles" | (cd $destdir; tar -xf -)
> (cd $objtree; cp $KCONFIG_CONFIG $destdir/.config) # copy .config manually to be where it's expected to be
> ln -sf "/usr/src/linux-headers-$version" "$kernel_headers_dir/lib/modules/$version/build"
> rm -f "$objtree/debian/hdrsrcfiles" "$objtree/debian/hdrobjfiles"
> --
> 1.9.2
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] deb-pkg: Fix for relative paths
2014-06-17 2:47 ` Alexei Starovoitov
@ 2014-06-18 7:52 ` Ilya Dryomov
2014-06-18 11:08 ` Michal Marek
0 siblings, 1 reply; 7+ messages in thread
From: Ilya Dryomov @ 2014-06-18 7:52 UTC (permalink / raw)
To: Alexei Starovoitov
Cc: Michal Marek, linux-kbuild, linux-kernel@vger.kernel.org
On Tue, Jun 17, 2014 at 6:47 AM, Alexei Starovoitov
<alexei.starovoitov@gmail.com> wrote:
> On Mon, Jun 16, 2014 at 7:18 AM, Michal Marek <mmarek@suse.cz> wrote:
>> When $srctree or $objtree are relative paths, we cannot change directory
>> and refer to them in the same subshell. Do the redirection outside of
>> the subshell to fix this.
>>
>> Reported-by: Ilya Dryomov <idryomov@gmail.com>
>> Signed-off-by: Michal Marek <mmarek@suse.cz>
>> ---
>> scripts/package/builddeb | 10 +++++-----
>> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> this patch didn't help to fix the broken deb-pkg for me:
Alexei, you must have some other issue with your environment. This
patch fixes it for me, and in fact I had almost the exact same patch
committed internally in the interim. (I wanted to give Michal the
opportunity to fix this perhaps in a more general way, since tar
targets seems to misbehave too.)
Thanks,
Ilya
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] deb-pkg: Fix for relative paths
2014-06-18 7:52 ` Ilya Dryomov
@ 2014-06-18 11:08 ` Michal Marek
2014-06-18 12:43 ` Ilya Dryomov
0 siblings, 1 reply; 7+ messages in thread
From: Michal Marek @ 2014-06-18 11:08 UTC (permalink / raw)
To: Ilya Dryomov
Cc: Alexei Starovoitov, linux-kbuild, linux-kernel@vger.kernel.org
Dne 18.6.2014 09:52, Ilya Dryomov napsal(a):
> On Tue, Jun 17, 2014 at 6:47 AM, Alexei Starovoitov
> <alexei.starovoitov@gmail.com> wrote:
>> On Mon, Jun 16, 2014 at 7:18 AM, Michal Marek <mmarek@suse.cz> wrote:
>>> When $srctree or $objtree are relative paths, we cannot change directory
>>> and refer to them in the same subshell. Do the redirection outside of
>>> the subshell to fix this.
>>>
>>> Reported-by: Ilya Dryomov <idryomov@gmail.com>
>>> Signed-off-by: Michal Marek <mmarek@suse.cz>
>>> ---
>>> scripts/package/builddeb | 10 +++++-----
>>> 1 file changed, 5 insertions(+), 5 deletions(-)
>>
>> this patch didn't help to fix the broken deb-pkg for me:
>
> Alexei, you must have some other issue with your environment. This
> patch fixes it for me, and in fact I had almost the exact same patch
> committed internally in the interim. (I wanted to give Michal the
> opportunity to fix this perhaps in a more general way, since tar
> targets seems to misbehave too.)
So can I add your Tested-by: and send it to Linus? I haven't managed to
set up a debian building environment yesterday and I'm a bit busy today.
Thanks,
Michal
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] deb-pkg: Fix for relative paths
2014-06-18 11:08 ` Michal Marek
@ 2014-06-18 12:43 ` Ilya Dryomov
0 siblings, 0 replies; 7+ messages in thread
From: Ilya Dryomov @ 2014-06-18 12:43 UTC (permalink / raw)
To: Michal Marek
Cc: Alexei Starovoitov, linux-kbuild, linux-kernel@vger.kernel.org
> Dne 18.6.2014 09:52, Ilya Dryomov napsal(a):
>> On Tue, Jun 17, 2014 at 6:47 AM, Alexei Starovoitov
>> <alexei.starovoitov@gmail.com> wrote:
>>> On Mon, Jun 16, 2014 at 7:18 AM, Michal Marek <mmarek@suse.cz> wrote:
>>>> When $srctree or $objtree are relative paths, we cannot change directory
>>>> and refer to them in the same subshell. Do the redirection outside of
>>>> the subshell to fix this.
>>>>
>>>> Reported-by: Ilya Dryomov <idryomov@gmail.com>
>>>> Signed-off-by: Michal Marek <mmarek@suse.cz>
>>>> ---
>>>> scripts/package/builddeb | 10 +++++-----
>>>> 1 file changed, 5 insertions(+), 5 deletions(-)
>>>
>>> this patch didn't help to fix the broken deb-pkg for me:
>>
>> Alexei, you must have some other issue with your environment. This
>> patch fixes it for me, and in fact I had almost the exact same patch
>> committed internally in the interim. (I wanted to give Michal the
>> opportunity to fix this perhaps in a more general way, since tar
>> targets seems to misbehave too.)
>
> So can I add your Tested-by: and send it to Linus? I haven't managed to
> set up a debian building environment yesterday and I'm a bit busy today.
Yes, Tested-by: Ilya Dryomov <idryomov@gmail.com>
Thanks,
Ilya
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-06-18 12:43 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-15 10:51 Regression: make O=... deb-pkg broken in 3.16 Ilya Dryomov
2014-06-16 9:18 ` Michal Marek
2014-06-16 14:18 ` [PATCH] deb-pkg: Fix for relative paths Michal Marek
2014-06-17 2:47 ` Alexei Starovoitov
2014-06-18 7:52 ` Ilya Dryomov
2014-06-18 11:08 ` Michal Marek
2014-06-18 12:43 ` Ilya Dryomov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).