sourceipk: do not dereference symlinks when packaging data to avoid breakage
PATCH 1/1 sourceipk: do not dereference symlinks when packaging data to avoid breakage
From: Denys Dmytriyenko <[email protected]>
--- meta-arago-distro/classes/sourceipk.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-distro/classes/sourceipk.bbclass +1 -1
@@ -167,7 +167,7 @@ sourceipk_do_create_srcipk() { fi #Write the data tarball - tar -C $tmp_dir --owner=0 --group=0 -chzf $srcipk_dir/data.tar.gz . + tar -C $tmp_dir --owner=0 --group=0 -czf $srcipk_dir/data.tar.gz . # Create the debian-binary file echo "2.0" > $srcipk_dir/debian-binary
Signature · 1 line
1.8.3.2
Tested and it worked for me.
Quoted 36 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Friday, September 20, 2013 2:00 PM
To: [email protected]
Subject: [meta-arago] [PATCH] sourceipk: do not dereference symlinks when packaging data to avoid breakageFrom: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>--- meta-arago-distro/classes/sourceipk.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-arago- renamed from meta-arago-distro/classes/sourceipk.bbclass +0
-0distro/classes/sourceipk.bbclass
index 1ea0577..777cb4f 100644meta-arago-distro/classes/sourceipk.bbclass +1
-2@@ -167,7 +167,7 @@ sourceipk_do_create_srcipk() { fi #Write the data tarball - tar -C $tmp_dir --owner=0 --group=0 -chzf $srcipk_dir/data.tar.gz . + tar -C $tmp_dir --owner=0 --group=0 -czf $srcipk_dir/data.tar.gz . # Create the debian-binary file echo "2.0" > $srcipk_dir/debian-binary --1.8.3.2
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 1 line · Franklin
Tested and it worked for me.
Thanks! Tested-by: line would have been nice though :)
Quoted 40 lines
Quoted 32 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Friday, September 20, 2013 2:00 PM
To: [email protected]
Subject: [meta-arago] [PATCH] sourceipk: do not dereference symlinks when packaging data to avoid breakageFrom: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>--- meta-arago-distro/classes/sourceipk.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-arago- renamed from meta-arago-distro/classes/sourceipk.bbclass +0
-0distro/classes/sourceipk.bbclass
index 1ea0577..777cb4f 100644meta-arago-distro/classes/sourceipk.bbclass +1
-2@@ -167,7 +167,7 @@ sourceipk_do_create_srcipk() { fi #Write the data tarball - tar -C $tmp_dir --owner=0 --group=0 -chzf $srcipk_dir/data.tar.gz . + tar -C $tmp_dir --owner=0 --group=0 -czf $srcipk_dir/data.tar.gz . # Create the debian-binary file echo "2.0" > $srcipk_dir/debian-binary --1.8.3.2
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 36 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Friday, September 20, 2013 2:00 PM
To: [email protected]
Subject: [meta-arago] [PATCH] sourceipk: do not dereference symlinks when packaging data to avoid breakageFrom: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>--- meta-arago-distro/classes/sourceipk.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-arago- renamed from meta-arago-distro/classes/sourceipk.bbclass +0
-0distro/classes/sourceipk.bbclass
index 1ea0577..777cb4f 100644meta-arago-distro/classes/sourceipk.bbclass +1
-2@@ -167,7 +167,7 @@ sourceipk_do_create_srcipk() { fi #Write the data tarball - tar -C $tmp_dir --owner=0 --group=0 -chzf $srcipk_dir/data.tar.gz . + tar -C $tmp_dir --owner=0 --group=0 -czf $srcipk_dir/data.tar.gz . # Create the debian-binary file echo "2.0" > $srcipk_dir/debian-binary --1.8.3.2
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Will this still package things like the patches applied on top of the kernel in the kernel sources?
Quoted 27 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-distro/classes/sourceipk.bbclass | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)meta-arago-distro/classes/sourceipk.bbclass +1
-1@@ -167,7 +167,7 @@ sourceipk_do_create_srcipk() { fi #Write the data tarball - tar -C $tmp_dir --owner=0 --group=0 -chzf $srcipk_dir/data.tar.gz . + tar -C $tmp_dir --owner=0 --group=0 -czf $srcipk_dir/data.tar.gz . # Create the debian-binary file echo "2.0" > $srcipk_dir/debian-binarySignature · 6 lines
1.8.3.2 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 11 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Friday, September 20, 2013 3:31 PM
To: Denys Dmytriyenko
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do not dereference symlinks when packaging data to avoid breakage
Quoted 2 lines
Will this still package things like the patches applied on top of the kernel in the kernel sources?
[Franklin] Good call. Your right it doesn't. I gave it a shot and the symbolic link remains but of course the link is broken if it is used on a different machine.
Quoted 37 lines
Sent from my iPhone
meta-arago-
Quoted 8 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-distro/classes/sourceipk.bbclass | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)meta-arago- renamed from meta-arago-distro/classes/sourceipk.bbclass +0
-0distro/classes/sourceipk.bbclass
Quoted 15 lines
index 1ea0577..777cb4f 100644
meta-arago-distro/classes/sourceipk.bbclass +1
-2@@ -167,7 +167,7 @@ sourceipk_do_create_srcipk() { fi #Write the data tarball - tar -C $tmp_dir --owner=0 --group=0 -chzf $srcipk_dir/data.tar.gz . + tar -C $tmp_dir --owner=0 --group=0 -czf $srcipk_dir/data.tar.gz . # Create the debian-binary file echo "2.0" > $srcipk_dir/debian-binary --1.8.3.2
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 11 lines · Franklin
Quoted 11 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Friday, September 20, 2013 3:31 PM
To: Denys Dmytriyenko
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do not dereference symlinks when packaging data to avoid breakage
Quoted 6 lines
Quoted 2 lines
Will this still package things like the patches applied on top of the kernel in the kernel sources?
[Franklin] Good call. Your right it doesn't. I gave it a shot and the symbolic link remains but of course the link is broken if it is used on a different machine.
Yeah, I had the same question originally. Unfortunately, you cannot assume there are no broken links in the sources to begin with. And those broken symlinks cannot be dereferenced w/o breaking the entire tar command and hence the build. That is what we discussed couple days ago - kernel now has a broken symlink that kills our sourceipk...
Why do patches symlinked and not copied? Can we fix that step instead of doing it in tar command?
Signature · 1 line
Denys
Quoted 38 lines
Quoted 26 lines · Denys Dmytriyenko
meta-arago-
Quoted 9 lines
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-distro/classes/sourceipk.bbclass | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)meta-arago- renamed from meta-arago-distro/classes/sourceipk.bbclass +0
-0distro/classes/sourceipk.bbclass
Quoted 15 lines
index 1ea0577..777cb4f 100644
meta-arago-distro/classes/sourceipk.bbclass +1
-2@@ -167,7 +167,7 @@ sourceipk_do_create_srcipk() { fi #Write the data tarball - tar -C $tmp_dir --owner=0 --group=0 -chzf $srcipk_dir/data.tar.gz . + tar -C $tmp_dir --owner=0 --group=0 -czf $srcipk_dir/data.tar.gz . # Create the debian-binary file echo "2.0" > $srcipk_dir/debian-binary --1.8.3.2
Quoted 8 lines
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 42 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, September 20, 2013 4:53 PM
To: Cooper Jr., Franklin
Cc: Maupin, Chase; Denys Dmytriyenko; [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do not dereference symlinks when packaging data to avoid breakageQuoted 9 lines · Franklin
Quoted 9 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Friday, September 20, 2013 3:31 PM
To: Denys Dmytriyenko
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do notdereference symlinks
Quoted 3 lines
Quoted 3 lines
when packaging data to avoid breakage
Will this still package things like the patches applied on top
of the kernel in the
Quoted 3 lines
Quoted 1 line
kernel sources?
[Franklin] Good call. Your right it doesn't. I gave it a shot
and the
Quoted 1 line
symbolic link remains but of course the link is broken if it is
used on a
Quoted 1 line
different machine.
Yeah, I had the same question originally. Unfortunately, you cannot assume
there are no broken links in the sources to begin with. And those broken
symlinks cannot be dereferenced w/o breaking the entire tar command and hence
the build. That is what we discussed couple days ago - kernel now has a broken
symlink that kills our sourceipk...
Quoted 3 lines
Why do patches symlinked and not copied? Can we fix that step instead of doing
it in tar command?
For most builds I think the idea is not to have multiple copies of the patches. But we wanted to provide those patches in the sources we ship. That was why the symlink we dereferenced to provide the real file and not a pointer to the patch. So I'm not sure that it is a good idea to always copy patches instead of symlink as most people probably won't care. Is there a way to bypass the error? Maybe something like --ignore-command-error? I'm not sure what changed that created this issue so I'm not sure if this applies.
Quoted 47 lines
--
DenysQuoted 1 line
Quoted 1 line
On Sep 20, 2013, at 2:00 PM, "Denys Dmytriyenko"
Quoted 9 lines · <[email protected]> wrote:
Quoted 9 lines
Review
Quoted 9 lines
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-distro/classes/sourceipk.bbclass | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0b/meta-arago-
Quoted 9 lines
Quoted 9 lines
distro/classes/sourceipk.bbclass
meta-arago-distro/classes/sourceipk.bbclass sourceipk_do_create_srcipk() { · line 170
Quoted 8 lines
index 1ea0577..777cb4f 100644
meta-arago-distro/classes/sourceipk.bbclass +0
-1@@ -167,7 +167,7 @@ sourceipk_do_create_srcipk() { fi #Write the data tarball - tar -C $tmp_dir --owner=0 --group=0 -chzf$srcipk_dir/data.tar.gz .
Quoted 1 line
Quoted 1 line
meta-arago-distro/classes/sourceipk.bbclass sourceipk_do_create_srcipk() { · line 170
Quoted 1 line
meta-arago-distro/classes/sourceipk.bbclass +1
-0+ tar -C $tmp_dir --owner=0 --group=0 -czf$srcipk_dir/data.tar.gz .
Quoted 18 lines
Quoted 6 lines
Quoted 6 lines
meta-arago-distro/classes/sourceipk.bbclass +0
-1# Create the debian-binary file echo "2.0" > $srcipk_dir/debian-binary --1.8.3.2
Quoted 8 lines
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 46 lines · Chase
Quoted 42 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, September 20, 2013 4:53 PM
To: Cooper Jr., Franklin
Cc: Maupin, Chase; Denys Dmytriyenko; [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do not dereference symlinks when packaging data to avoid breakageQuoted 9 lines · Franklin
Quoted 9 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Friday, September 20, 2013 3:31 PM
To: Denys Dmytriyenko
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do notdereference symlinks
Quoted 3 lines
Quoted 3 lines
when packaging data to avoid breakage
Will this still package things like the patches applied on top
of the kernel in the
Quoted 3 lines
Quoted 1 line
kernel sources?
[Franklin] Good call. Your right it doesn't. I gave it a shot
and the
Quoted 1 line
symbolic link remains but of course the link is broken if it is
used on a
Quoted 1 line
different machine.
Yeah, I had the same question originally. Unfortunately, you cannot assume
there are no broken links in the sources to begin with. And those broken
symlinks cannot be dereferenced w/o breaking the entire tar command and hence
the build. That is what we discussed couple days ago - kernel now has a broken
symlink that kills our sourceipk...Quoted 3 lines
Why do patches symlinked and not copied? Can we fix that step instead of doing
it in tar command?
Quoted 5 lines
For most builds I think the idea is not to have multiple copies of the patches. But we wanted to provide those patches in the sources we ship. That was why the symlink we dereferenced to provide the real file and not a pointer to the patch. So I'm not sure that it is a good idea to always copy patches instead of symlink as most people probably won't care.
This paragraph is somewhat confusing. It sounds like the patch handling is done by sourceipk class, which is not.
Anyway, the ${S}/patches/ directory gets created and patches are symlinked there by the core framework to make quilt happy. Unfortunately, there are no flags or variables to copy patches instead of symlinking them, or affect that code in other way. So, sourceipk class just piggy-backs on the above code to prep quilt series.
Quoted 3 lines
Is there a way to bypass the error? Maybe something like --ignore-command-error? I'm not sure what changed that created this issue so I'm not sure if this applies.
Unfortunately, no, that flag doesn't help. What changed is that kernel sources now contain a symlink that is currently broken. But I'm arguing that it's not kernel's fault, as having symlinks pointing nowhere in package sources should be allowed. In other words, symlinks in patches/ directory is a special case and handling them by dereferencing should not extend on the rest of the sources.
So, I'm thinking on possible ways to solve this - either patch the framework to copy patches instead of symlinking them or prep the patches/ directory before tarring up the sources for the sourceipk case...
Signature · 1 line
Denys
Quoted 42 lines
Quoted 42 lines
Quoted 1 line
Quoted 1 line
On Sep 20, 2013, at 2:00 PM, "Denys Dmytriyenko"
Quoted 9 lines · <[email protected]> wrote:
Quoted 9 lines
Review
Quoted 9 lines
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-distro/classes/sourceipk.bbclass | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0b/meta-arago-
Quoted 9 lines
Quoted 9 lines
distro/classes/sourceipk.bbclass
meta-arago-distro/classes/sourceipk.bbclass sourceipk_do_create_srcipk() { · line 170
Quoted 8 lines
index 1ea0577..777cb4f 100644
meta-arago-distro/classes/sourceipk.bbclass +0
-1@@ -167,7 +167,7 @@ sourceipk_do_create_srcipk() { fi #Write the data tarball - tar -C $tmp_dir --owner=0 --group=0 -chzf$srcipk_dir/data.tar.gz .
Quoted 1 line
Quoted 1 line
meta-arago-distro/classes/sourceipk.bbclass sourceipk_do_create_srcipk() { · line 170
Quoted 1 line
meta-arago-distro/classes/sourceipk.bbclass +1
-0+ tar -C $tmp_dir --owner=0 --group=0 -czf$srcipk_dir/data.tar.gz .
Quoted 18 lines
Quoted 6 lines
Quoted 6 lines
meta-arago-distro/classes/sourceipk.bbclass +0
-1# Create the debian-binary file echo "2.0" > $srcipk_dir/debian-binary --1.8.3.2
Quoted 8 lines
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 78 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, September 23, 2013 12:56 PM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do not dereference symlinks when packaging data to avoid breakageQuoted 39 lines · Chase
Quoted 39 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, September 20, 2013 4:53 PM
To: Cooper Jr., Franklin
Cc: Maupin, Chase; Denys Dmytriyenko; [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do not dereference symlinks when packaging data to avoid breakageQuoted 9 lines · Franklin
Quoted 9 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Friday, September 20, 2013 3:31 PM
To: Denys Dmytriyenko
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do notdereference symlinks
Quoted 3 lines
Quoted 3 lines
when packaging data to avoid breakage
Will this still package things like the patches applied on top
of the kernel in the
Quoted 3 lines
Quoted 1 line
kernel sources?
[Franklin] Good call. Your right it doesn't. I gave it a shot
and the
Quoted 1 line
symbolic link remains but of course the link is broken if it is
used on a
Quoted 1 line
different machine.
Yeah, I had the same question originally. Unfortunately, you cannot assume there are no broken links in the sources to begin with. And those broken symlinks cannot be dereferenced w/o breaking the entire tar command and hence the build. That is what we discussed couple days ago - kernel now has a broken symlink that kills our sourceipk...
Quoted 8 lines
Quoted 2 lines
Why do patches symlinked and not copied? Can we fix that step instead of doing it in tar command?
For most builds I think the idea is not to have multiple copies of the patches. But we wanted to provide those patches in the sources we ship. That was why the symlink we dereferenced to provide the real file and not a pointer to the patch. So I'm not sure that it is a good idea to always copy patches instead of symlink as most people probably won't care.
This paragraph is somewhat confusing. It sounds like the patch handling is done by sourceipk class, which is not.
Anyway, the ${S}/patches/ directory gets created and patches are symlinked there by the core framework to make quilt happy. Unfortunately, there are no flags or variables to copy patches instead of symlinking them, or affect that code in other way. So, sourceipk class just piggy-backs on the above code to prep quilt series.
Quoted 3 lines
Is there a way to bypass the error? Maybe something like --ignore-command-error? I'm not sure what changed that created this issue so I'm not sure if this applies.
Unfortunately, no, that flag doesn't help. What changed is that kernel sources now contain a symlink that is currently broken. But I'm arguing that it's not kernel's fault, as having symlinks pointing nowhere in package sources should be allowed. In other words, symlinks in patches/ directory is a special case and handling them by dereferencing should not extend on the rest of the sources.
Quoted 3 lines
So, I'm thinking on possible ways to solve this - either patch the framework to copy patches instead of symlinking them or prep the patches/ directory before tarring up the sources for the sourceipk case...
[Franklin] I didn't notice before but sourceipk copies the sources in a completely different directory before the tar command is ran. So how about simply searching for broken symlink and then deleting them. Afterwards the tar command can run as is.
Quoted 47 lines
--
DenysQuoted 42 lines
Quoted 42 lines
Quoted 1 line
Quoted 1 line
On Sep 20, 2013, at 2:00 PM, "Denys Dmytriyenko"
Quoted 9 lines · <[email protected]> wrote:
Quoted 9 lines
Review
Quoted 9 lines
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-distro/classes/sourceipk.bbclass | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0b/meta-arago-
Quoted 9 lines
Quoted 9 lines
distro/classes/sourceipk.bbclass
meta-arago-distro/classes/sourceipk.bbclass sourceipk_do_create_srcipk() { · line 170
Quoted 8 lines
index 1ea0577..777cb4f 100644
meta-arago-distro/classes/sourceipk.bbclass +0
-1@@ -167,7 +167,7 @@ sourceipk_do_create_srcipk() { fi #Write the data tarball - tar -C $tmp_dir --owner=0 --group=0 -chzf$srcipk_dir/data.tar.gz .
Quoted 1 line
Quoted 1 line
meta-arago-distro/classes/sourceipk.bbclass sourceipk_do_create_srcipk() { · line 170
Quoted 1 line
meta-arago-distro/classes/sourceipk.bbclass +1
-0+ tar -C $tmp_dir --owner=0 --group=0 -czf$srcipk_dir/data.tar.gz .
Quoted 18 lines
Quoted 6 lines
Quoted 6 lines
meta-arago-distro/classes/sourceipk.bbclass +0
-1# Create the debian-binary file echo "2.0" > $srcipk_dir/debian-binary --1.8.3.2
Quoted 8 lines
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 78 lines · Franklin
Quoted 78 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, September 23, 2013 12:56 PM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do not dereference symlinks when packaging data to avoid breakageQuoted 39 lines · Chase
Quoted 39 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, September 20, 2013 4:53 PM
To: Cooper Jr., Franklin
Cc: Maupin, Chase; Denys Dmytriyenko; [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do not dereference symlinks when packaging data to avoid breakageQuoted 9 lines · Franklin
Quoted 9 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Friday, September 20, 2013 3:31 PM
To: Denys Dmytriyenko
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do notdereference symlinks
Quoted 3 lines
Quoted 3 lines
when packaging data to avoid breakage
Will this still package things like the patches applied on top
of the kernel in the
Quoted 3 lines
Quoted 1 line
kernel sources?
[Franklin] Good call. Your right it doesn't. I gave it a shot
and the
Quoted 1 line
symbolic link remains but of course the link is broken if it is
used on a
Quoted 1 line
different machine.
Yeah, I had the same question originally. Unfortunately, you cannot assume there are no broken links in the sources to begin with. And those broken symlinks cannot be dereferenced w/o breaking the entire tar command and hence the build. That is what we discussed couple days ago - kernel now has a broken symlink that kills our sourceipk...
Quoted 8 lines
Quoted 2 lines
Why do patches symlinked and not copied? Can we fix that step instead of doing it in tar command?
For most builds I think the idea is not to have multiple copies of the patches. But we wanted to provide those patches in the sources we ship. That was why the symlink we dereferenced to provide the real file and not a pointer to the patch. So I'm not sure that it is a good idea to always copy patches instead of symlink as most people probably won't care.
This paragraph is somewhat confusing. It sounds like the patch handling is done by sourceipk class, which is not.
Anyway, the ${S}/patches/ directory gets created and patches are symlinked there by the core framework to make quilt happy. Unfortunately, there are no flags or variables to copy patches instead of symlinking them, or affect that code in other way. So, sourceipk class just piggy-backs on the above code to prep quilt series.
Quoted 3 lines
Is there a way to bypass the error? Maybe something like --ignore-command-error? I'm not sure what changed that created this issue so I'm not sure if this applies.
Unfortunately, no, that flag doesn't help. What changed is that kernel sources now contain a symlink that is currently broken. But I'm arguing that it's not kernel's fault, as having symlinks pointing nowhere in package sources should be allowed. In other words, symlinks in patches/ directory is a special case and handling them by dereferencing should not extend on the rest of the sources.
Quoted 8 lines
Quoted 3 lines
So, I'm thinking on possible ways to solve this - either patch the framework to copy patches instead of symlinking them or prep the patches/ directory before tarring up the sources for the sourceipk case...
[Franklin] I didn't notice before but sourceipk copies the sources in a completely different directory before the tar command is ran. So how about simply searching for broken symlink and then deleting them. Afterwards the tar command can run as is.
You are missing the point - it _may_ be valid to have broken symlinks in the source tree. We should not fail while packaging those and we should not deliberately remove them.
Signature · 1 line
Denys
Quoted 42 lines
Quoted 42 lines
Quoted 42 lines
Quoted 42 lines
Quoted 1 line
Quoted 1 line
On Sep 20, 2013, at 2:00 PM, "Denys Dmytriyenko"
Quoted 9 lines · <[email protected]> wrote:
Quoted 9 lines
Review
Quoted 9 lines
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-distro/classes/sourceipk.bbclass | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0b/meta-arago-
Quoted 9 lines
Quoted 9 lines
distro/classes/sourceipk.bbclass
meta-arago-distro/classes/sourceipk.bbclass sourceipk_do_create_srcipk() { · line 170
Quoted 8 lines
index 1ea0577..777cb4f 100644
meta-arago-distro/classes/sourceipk.bbclass +0
-1@@ -167,7 +167,7 @@ sourceipk_do_create_srcipk() { fi #Write the data tarball - tar -C $tmp_dir --owner=0 --group=0 -chzf$srcipk_dir/data.tar.gz .
Quoted 1 line
Quoted 1 line
meta-arago-distro/classes/sourceipk.bbclass sourceipk_do_create_srcipk() { · line 170
Quoted 1 line
meta-arago-distro/classes/sourceipk.bbclass +1
-0+ tar -C $tmp_dir --owner=0 --group=0 -czf$srcipk_dir/data.tar.gz .
Quoted 18 lines
Quoted 6 lines
Quoted 6 lines
meta-arago-distro/classes/sourceipk.bbclass +0
-1# Create the debian-binary file echo "2.0" > $srcipk_dir/debian-binary --1.8.3.2
Quoted 8 lines
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 87 lines · Denys
Quoted 83 lines · Franklin
Quoted 81 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, September 23, 2013 12:56 PM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do not dereference symlinks when packaging data to avoid breakageQuoted 39 lines · Chase
Quoted 39 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, September 20, 2013 4:53 PM
To: Cooper Jr., Franklin
Cc: Maupin, Chase; Denys Dmytriyenko; [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do not dereference symlinks when packaging data to avoid breakageQuoted 9 lines · Franklin
Quoted 9 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Friday, September 20, 2013 3:31 PM
To: Denys Dmytriyenko
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do notdereference symlinks
Quoted 3 lines
Quoted 3 lines
when packaging data to avoid breakage
Will this still package things like the patches applied on top
of the kernel in the
Quoted 3 lines
Quoted 1 line
kernel sources?
[Franklin] Good call. Your right it doesn't. I gave it a shot
and the
Quoted 1 line
symbolic link remains but of course the link is broken if it is
used on a
Quoted 1 line
different machine.
Yeah, I had the same question originally. Unfortunately, you cannot assume there are no broken links in the sources to begin with. And those broken symlinks cannot be dereferenced w/o breaking the entire tar command and hence the build. That is what we discussed couple days ago - kernel now has a broken symlink that kills our sourceipk...
Quoted 8 lines
Quoted 2 lines
Why do patches symlinked and not copied? Can we fix that step instead of doing it in tar command?
For most builds I think the idea is not to have multiple copies of the patches. But we wanted to provide those patches in the sources we ship. That was why the symlink we dereferenced to provide the real file and not a pointer to the patch. So I'm not sure that it is a good idea to always copy patches instead of symlink as most people probably won't care.
This paragraph is somewhat confusing. It sounds like the patch handling is done by sourceipk class, which is not.
Anyway, the ${S}/patches/ directory gets created and patches are symlinked there by the core framework to make quilt happy. Unfortunately, there are no flags or variables to copy patches instead of symlinking them, or affect that code in other way. So, sourceipk class just piggy-backs on the above code to prep quilt series.
Quoted 3 lines
Is there a way to bypass the error? Maybe something like --ignore-command-error? I'm not sure what changed that created this issue so I'm not sure if this applies.
Unfortunately, no, that flag doesn't help. What changed is that kernel sources now contain a symlink that is currently broken. But I'm arguing that it's not kernel's fault, as having symlinks pointing nowhere in package sources should be allowed. In other words, symlinks in patches/ directory is a special case and handling them by dereferencing should not extend on the rest of the sources.
So, I'm thinking on possible ways to solve this - either patch the framework to copy patches instead of symlinking them or prep the patches/ directory before tarring up the sources for the sourceipk case...
Quoted 8 lines
Quoted 4 lines
[Franklin] I didn't notice before but sourceipk copies the sources in a completely different directory before the tar command is ran. So how about simply searching for broken symlink and then deleting them. Afterwards the tar command can run as is.
You are missing the point - it _may_ be valid to have broken symlinks in the source tree. We should not fail while packaging those and we should not deliberately remove them
I'll take your word for it then since I don't understand why anyone would want to do that.
I think prepping the patches directory would be the best solution.
Quoted 47 lines
Signature · 2 lines
-- DenysQuoted 42 lines
Quoted 42 lines
Quoted 42 lines
Quoted 42 lines
Quoted 1 line
Quoted 1 line
On Sep 20, 2013, at 2:00 PM, "Denys Dmytriyenko"
Quoted 9 lines · <[email protected]> wrote:
Quoted 9 lines
Review
Quoted 9 lines
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-distro/classes/sourceipk.bbclass | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0b/meta-arago-
Quoted 9 lines
Quoted 9 lines
distro/classes/sourceipk.bbclass
meta-arago-distro/classes/sourceipk.bbclass sourceipk_do_create_srcipk() { · line 170
Quoted 8 lines
index 1ea0577..777cb4f 100644
meta-arago-distro/classes/sourceipk.bbclass +0
-1@@ -167,7 +167,7 @@ sourceipk_do_create_srcipk() { fi #Write the data tarball - tar -C $tmp_dir --owner=0 --group=0 -chzf$srcipk_dir/data.tar.gz .
Quoted 1 line
Quoted 1 line
meta-arago-distro/classes/sourceipk.bbclass sourceipk_do_create_srcipk() { · line 170
Quoted 1 line
meta-arago-distro/classes/sourceipk.bbclass +1
-0+ tar -C $tmp_dir --owner=0 --group=0 -czf$srcipk_dir/data.tar.gz .
Quoted 18 lines
Quoted 6 lines
Quoted 6 lines
meta-arago-distro/classes/sourceipk.bbclass +0
-1# Create the debian-binary file echo "2.0" > $srcipk_dir/debian-binary --1.8.3.2
Quoted 8 lines
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 92 lines · Franklin
Quoted 92 lines · Denys
Quoted 88 lines · Franklin
Quoted 78 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, September 23, 2013 12:56 PM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do not dereference symlinks when packaging data to avoid breakageQuoted 39 lines · Chase
Quoted 39 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, September 20, 2013 4:53 PM
To: Cooper Jr., Franklin
Cc: Maupin, Chase; Denys Dmytriyenko; [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do not dereference symlinks when packaging data to avoid breakageQuoted 9 lines · Franklin
Quoted 9 lines
-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Friday, September 20, 2013 3:31 PM
To: Denys Dmytriyenko
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] sourceipk: do notdereference symlinks
Quoted 3 lines
Quoted 3 lines
when packaging data to avoid breakage
Will this still package things like the patches applied on top
of the kernel in the
Quoted 3 lines
Quoted 1 line
kernel sources?
[Franklin] Good call. Your right it doesn't. I gave it a shot
and the
Quoted 1 line
symbolic link remains but of course the link is broken if it is
used on a
Quoted 1 line
different machine.
Yeah, I had the same question originally. Unfortunately, you cannot assume there are no broken links in the sources to begin with. And those broken symlinks cannot be dereferenced w/o breaking the entire tar command and hence the build. That is what we discussed couple days ago - kernel now has a broken symlink that kills our sourceipk...
Quoted 8 lines
Quoted 2 lines
Why do patches symlinked and not copied? Can we fix that step instead of doing it in tar command?
For most builds I think the idea is not to have multiple copies of the patches. But we wanted to provide those patches in the sources we ship. That was why the symlink we dereferenced to provide the real file and not a pointer to the patch. So I'm not sure that it is a good idea to always copy patches instead of symlink as most people probably won't care.
This paragraph is somewhat confusing. It sounds like the patch handling is done by sourceipk class, which is not.
Anyway, the ${S}/patches/ directory gets created and patches are symlinked there by the core framework to make quilt happy. Unfortunately, there are no flags or variables to copy patches instead of symlinking them, or affect that code in other way. So, sourceipk class just piggy-backs on the above code to prep quilt series.
Quoted 3 lines
Is there a way to bypass the error? Maybe something like --ignore-command-error? I'm not sure what changed that created this issue so I'm not sure if this applies.
Unfortunately, no, that flag doesn't help. What changed is that kernel sources now contain a symlink that is currently broken. But I'm arguing that it's not kernel's fault, as having symlinks pointing nowhere in package sources should be allowed. In other words, symlinks in patches/ directory is a special case and handling them by dereferencing should not extend on the rest of the sources.
Quoted 3 lines
So, I'm thinking on possible ways to solve this - either patch the framework to copy patches instead of symlinking them or prep the patches/ directory before tarring up the sources for the sourceipk case...
[Franklin] I didn't notice before but sourceipk copies the sources in a completely different directory before the tar command is ran. So how about simply searching for broken symlink and then deleting them. Afterwards the tar command can run as is.
Quoted 8 lines
Quoted 3 lines
You are missing the point - it _may_ be valid to have broken symlinks in the source tree. We should not fail while packaging those and we should not deliberately remove them
I'll take your word for it then since I don't understand why anyone would want to do that.
I think prepping the patches directory would be the best solution.
I'm not saying it is correct or desirable to have a broken symlink in the sources directory. I'm just saying we should not mangle the sources at all - keep them as they are, even if there are broken symlinks in them. Since the patches/ directory is added externally and that's the one we care about, we should dereference just that with inside patches and leave the rest untouched.
Signature · 1 line
Denys
Quoted 42 lines
Quoted 42 lines
Quoted 42 lines
Quoted 42 lines
Quoted 42 lines
Quoted 42 lines
Quoted 1 line
Quoted 1 line
On Sep 20, 2013, at 2:00 PM, "Denys Dmytriyenko"
Quoted 9 lines · <[email protected]> wrote:
Quoted 9 lines
Review
Quoted 9 lines
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>---
meta-arago-distro/classes/sourceipk.bbclass | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0b/meta-arago-
Quoted 9 lines
Quoted 9 lines
distro/classes/sourceipk.bbclass
meta-arago-distro/classes/sourceipk.bbclass sourceipk_do_create_srcipk() { · line 170
Quoted 8 lines
index 1ea0577..777cb4f 100644
meta-arago-distro/classes/sourceipk.bbclass +0
-1@@ -167,7 +167,7 @@ sourceipk_do_create_srcipk() { fi #Write the data tarball - tar -C $tmp_dir --owner=0 --group=0 -chzf$srcipk_dir/data.tar.gz .
Quoted 1 line
Quoted 1 line
meta-arago-distro/classes/sourceipk.bbclass sourceipk_do_create_srcipk() { · line 170
Quoted 1 line
meta-arago-distro/classes/sourceipk.bbclass +1
-0+ tar -C $tmp_dir --owner=0 --group=0 -czf$srcipk_dir/data.tar.gz .
Quoted 18 lines
Quoted 6 lines
Quoted 6 lines
meta-arago-distro/classes/sourceipk.bbclass +0
-1# Create the debian-binary file echo "2.0" > $srcipk_dir/debian-binary --1.8.3.2
Quoted 8 lines
Quoted 4 lines
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago