* [PATCH 02/10] gnu: base: Fix a bug that occurs in non-Linux systems.
@ 2015-05-18 22:16 Manolis Ragkousis
2015-05-19 16:20 ` Ludovic Courtès
0 siblings, 1 reply; 5+ messages in thread
From: Manolis Ragkousis @ 2015-05-18 22:16 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guix-devel
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: 0002-gnu-base-Fix-a-bug-that-occurs-in-non-Linux-systems.patch --]
[-- Type: text/x-patch, Size: 2759 bytes --]
From ebdc9239ccdf7c27846f673478e1e44dd949a3e0 Mon Sep 17 00:00:00 2001
From: Manolis Ragkousis <manolis837@gmail.com>
Date: Tue, 19 May 2015 00:21:12 +0300
Subject: [PATCH 02/10] gnu: base: Fix a bug that occurs in non-Linux systems.
* gnu/packages/base.scm (tar): Apply patch.
* gnu/packages/patches/tar-d_ino_in_dirent-fix.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
---
gnu-system.am | 1 +
gnu/packages/base.scm | 3 ++-
gnu/packages/patches/tar-d_ino_in_dirent-fix.patch | 27 ++++++++++++++++++++++
3 files changed, 30 insertions(+), 1 deletion(-)
create mode 100644 gnu/packages/patches/tar-d_ino_in_dirent-fix.patch
diff --git a/gnu-system.am b/gnu-system.am
index d07c24e..efb0ce3 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -558,6 +558,7 @@ dist_patch_DATA = \
gnu/packages/patches/soprano-find-clucene.patch \
gnu/packages/patches/subversion-sqlite-3.8.9-fix.patch \
gnu/packages/patches/superlu-dist-scotchmetis.patch \
+ gnu/packages/patches/tar-d_ino_in_dirent-fix.patch \
gnu/packages/patches/tcsh-fix-autotest.patch \
gnu/packages/patches/teckit-cstdio.patch \
gnu/packages/patches/texi2html-document-encoding.patch \
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index f2e7fb5..b4344ee 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -140,7 +140,8 @@ implementation offers several extensions over the standard utility.")
version ".tar.xz"))
(sha256
(base32
- "1wi2zwm4c9r3h3b8y4w0nm0qq897kn8kyj9k22ba0iqvxj48vvk4"))))
+ "1wi2zwm4c9r3h3b8y4w0nm0qq897kn8kyj9k22ba0iqvxj48vvk4"))
+ (patches (list (search-patch "tar-d_ino_in_dirent-fix.patch")))))
(build-system gnu-build-system)
(synopsis "Managing tar archives")
(description
diff --git a/gnu/packages/patches/tar-d_ino_in_dirent-fix.patch b/gnu/packages/patches/tar-d_ino_in_dirent-fix.patch
new file mode 100644
index 0000000..b4ea30f
--- /dev/null
+++ b/gnu/packages/patches/tar-d_ino_in_dirent-fix.patch
@@ -0,0 +1,27 @@
+This is fixed in e9ddc08da0982f36581ae5a8c7763453ff41cfe8.
+
+diff --git a/src/tar.c b/src/tar.c
+index 225c624..f8102e0 100644
+--- a/src/tar.c
++++ b/src/tar.c
+@@ -1341,14 +1341,18 @@ static char filename_terminator;
+ static char const *const sort_mode_arg[] = {
+ "none",
+ "name",
++#if D_INO_IN_DIRENT
+ "inode",
++#endif
+ NULL
+ };
+
+ static int sort_mode_flag[] = {
+ SAVEDIR_SORT_NONE,
+ SAVEDIR_SORT_NAME,
++#if D_INO_IN_DIRENT
+ SAVEDIR_SORT_INODE
++#endif
+ };
+
+ ARGMATCH_VERIFY (sort_mode_arg, sort_mode_flag);
+--
+2.3.7
\ No newline at end of file
--
2.4.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 02/10] gnu: base: Fix a bug that occurs in non-Linux systems.
2015-05-18 22:16 [PATCH 02/10] gnu: base: Fix a bug that occurs in non-Linux systems Manolis Ragkousis
@ 2015-05-19 16:20 ` Ludovic Courtès
2015-05-22 7:46 ` Manolis Ragkousis
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2015-05-19 16:20 UTC (permalink / raw)
To: Manolis Ragkousis; +Cc: Guix-devel
Manolis Ragkousis <manolis837@gmail.com> skribis:
> From ebdc9239ccdf7c27846f673478e1e44dd949a3e0 Mon Sep 17 00:00:00 2001
> From: Manolis Ragkousis <manolis837@gmail.com>
> Date: Tue, 19 May 2015 00:21:12 +0300
> Subject: [PATCH 02/10] gnu: base: Fix a bug that occurs in non-Linux systems.
>
> * gnu/packages/base.scm (tar): Apply patch.
> * gnu/packages/patches/tar-d_ino_in_dirent-fix.patch: New file.
> * gnu-system.am (dist_patch_DATA): Add it.
[...]
> +++ b/gnu/packages/patches/tar-d_ino_in_dirent-fix.patch
> @@ -0,0 +1,27 @@
> +This is fixed in e9ddc08da0982f36581ae5a8c7763453ff41cfe8.
Please put the Git commit entry here, that is:
commit e9ddc08da0982f36581ae5a8c7763453ff41cfe8
Author: Sergey Poznyakoff <gray@gnu.org>
Date: Thu Sep 25 00:22:16 2014 +0300
Bugfixes.
* doc/tar.1: Fix typo in font spec.
* src/tar.c (sort_mode_arg, sort_mode_flag): Protect "inode"
(SAVEDIR_SORT_INODE) with D_INO_IN_DIRENT
OK to commit with this change, either to ‘wip-hurd’ or ‘core-updates’ (I
guess the former is more convenient for you.)
Thanks!
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 02/10] gnu: base: Fix a bug that occurs in non-Linux systems.
2015-05-19 16:20 ` Ludovic Courtès
@ 2015-05-22 7:46 ` Manolis Ragkousis
2015-05-22 14:08 ` Ludovic Courtès
0 siblings, 1 reply; 5+ messages in thread
From: Manolis Ragkousis @ 2015-05-22 7:46 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guix-devel
[-- Attachment #1: Type: text/plain, Size: 128 bytes --]
Ok to push this patch to wip-hurd? As this is something that doesn't
affect Linux,
there is no need to push it to core-updates.
[-- Attachment #2: 0001-gnu-base-Fix-a-bug-that-occurs-in-non-Linux-systems.patch --]
[-- Type: text/x-patch, Size: 3566 bytes --]
From 6de900b0cf21af361c3b5910b339ecab8ded5e4b Mon Sep 17 00:00:00 2001
From: Manolis Ragkousis <manolis837@gmail.com>
Date: Thu, 21 May 2015 16:47:26 +0300
Subject: [PATCH 1/5] gnu: base: Fix a bug that occurs in non-Linux systems.
* gnu/packages/base.scm (tar): Apply patch.
* gnu/packages/patches/tar-d_ino_in_dirent-fix.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
---
gnu-system.am | 1 +
gnu/packages/base.scm | 3 +-
gnu/packages/patches/tar-d_ino_in_dirent-fix.patch | 46 ++++++++++++++++++++++
3 files changed, 49 insertions(+), 1 deletion(-)
create mode 100644 gnu/packages/patches/tar-d_ino_in_dirent-fix.patch
diff --git a/gnu-system.am b/gnu-system.am
index 6a82170..da5d08a 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -546,6 +546,7 @@ dist_patch_DATA = \
gnu/packages/patches/slim-sigusr1.patch \
gnu/packages/patches/soprano-find-clucene.patch \
gnu/packages/patches/superlu-dist-scotchmetis.patch \
+ gnu/packages/patches/tar-d_ino_in_dirent-fix.patch \
gnu/packages/patches/tcsh-fix-autotest.patch \
gnu/packages/patches/teckit-cstdio.patch \
gnu/packages/patches/texi2html-document-encoding.patch \
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index f2e7fb5..b4344ee 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -140,7 +140,8 @@ implementation offers several extensions over the standard utility.")
version ".tar.xz"))
(sha256
(base32
- "1wi2zwm4c9r3h3b8y4w0nm0qq897kn8kyj9k22ba0iqvxj48vvk4"))))
+ "1wi2zwm4c9r3h3b8y4w0nm0qq897kn8kyj9k22ba0iqvxj48vvk4"))
+ (patches (list (search-patch "tar-d_ino_in_dirent-fix.patch")))))
(build-system gnu-build-system)
(synopsis "Managing tar archives")
(description
diff --git a/gnu/packages/patches/tar-d_ino_in_dirent-fix.patch b/gnu/packages/patches/tar-d_ino_in_dirent-fix.patch
new file mode 100644
index 0000000..d4a2e11
--- /dev/null
+++ b/gnu/packages/patches/tar-d_ino_in_dirent-fix.patch
@@ -0,0 +1,46 @@
+commit e9ddc08da0982f36581ae5a8c7763453ff41cfe8
+Author: Sergey Poznyakoff <gray@gnu.org>
+Date: Thu Sep 25 00:22:16 2014 +0300
+
+ Bugfixes.
+
+ * doc/tar.1: Fix typo in font spec.
+ * src/tar.c (sort_mode_arg, sort_mode_flag): Protect "inode"
+ (SAVEDIR_SORT_INODE) with D_INO_IN_DIRENT
+
+diff --git a/doc/tar.1 b/doc/tar.1
+index 9000627..b91de63 100644
+--- a/doc/tar.1
++++ b/doc/tar.1
+@@ -879,7 +879,7 @@ Exclude files matching patterns listed in FILE.
+ \fB\-\-strip\-components\fR=\fINUMBER\fR
+ Strip \fINUMBER\fR leading components from file names on extraction.
+ .TP
+-\fB\-\-transform\fR=\fIEXPRESSION\dR, \fB\-\-xform\fR=\fIEXPRESSION\fR
++\fB\-\-transform\fR=\fIEXPRESSION\fR, \fB\-\-xform\fR=\fIEXPRESSION\fR
+ Use sed replace \fIEXPRESSION\fR to transform file names.
+ .SS File name matching options
+ These options affect both exclude and include patterns.
+diff --git a/src/tar.c b/src/tar.c
+index 225c624..f8102e0 100644
+--- a/src/tar.c
++++ b/src/tar.c
+@@ -1341,14 +1341,18 @@ static char filename_terminator;
+ static char const *const sort_mode_arg[] = {
+ "none",
+ "name",
++#if D_INO_IN_DIRENT
+ "inode",
++#endif
+ NULL
+ };
+
+ static int sort_mode_flag[] = {
+ SAVEDIR_SORT_NONE,
+ SAVEDIR_SORT_NAME,
++#if D_INO_IN_DIRENT
+ SAVEDIR_SORT_INODE
++#endif
+ };
+
+ ARGMATCH_VERIFY (sort_mode_arg, sort_mode_flag);
\ No newline at end of file
--
2.4.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 02/10] gnu: base: Fix a bug that occurs in non-Linux systems.
2015-05-22 7:46 ` Manolis Ragkousis
@ 2015-05-22 14:08 ` Ludovic Courtès
2015-05-23 19:28 ` Manolis Ragkousis
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2015-05-22 14:08 UTC (permalink / raw)
To: Manolis Ragkousis; +Cc: Guix-devel
Manolis Ragkousis <manolis837@gmail.com> skribis:
> Ok to push this patch to wip-hurd? As this is something that doesn't
> affect Linux,
> there is no need to push it to core-updates.
I think the policy should be to push anything that is not Hurd-specific
to core-updates (or master, whichever is appropriate.)
This patch happens to fix something on GNU/Hurd, but it has no effect on
GNU/Linux, so I would suggest pushing it to core-updates.
WDYT?
> From 6de900b0cf21af361c3b5910b339ecab8ded5e4b Mon Sep 17 00:00:00 2001
> From: Manolis Ragkousis <manolis837@gmail.com>
> Date: Thu, 21 May 2015 16:47:26 +0300
> Subject: [PATCH 1/5] gnu: base: Fix a bug that occurs in non-Linux systems.
>
> * gnu/packages/base.scm (tar): Apply patch.
> * gnu/packages/patches/tar-d_ino_in_dirent-fix.patch: New file.
> * gnu-system.am (dist_patch_DATA): Add it.
[...]
> +++ b/gnu/packages/patches/tar-d_ino_in_dirent-fix.patch
> @@ -0,0 +1,46 @@
> +commit e9ddc08da0982f36581ae5a8c7763453ff41cfe8
> +Author: Sergey Poznyakoff <gray@gnu.org>
> +Date: Thu Sep 25 00:22:16 2014 +0300
> +
> + Bugfixes.
> +
> + * doc/tar.1: Fix typo in font spec.
> + * src/tar.c (sort_mode_arg, sort_mode_flag): Protect "inode"
> + (SAVEDIR_SORT_INODE) with D_INO_IN_DIRENT
> +
> +diff --git a/doc/tar.1 b/doc/tar.1
> +index 9000627..b91de63 100644
> +--- a/doc/tar.1
> ++++ b/doc/tar.1
> +@@ -879,7 +879,7 @@ Exclude files matching patterns listed in FILE.
> + \fB\-\-strip\-components\fR=\fINUMBER\fR
> + Strip \fINUMBER\fR leading components from file names on extraction.
> + .TP
> +-\fB\-\-transform\fR=\fIEXPRESSION\dR, \fB\-\-xform\fR=\fIEXPRESSION\fR
> ++\fB\-\-transform\fR=\fIEXPRESSION\fR, \fB\-\-xform\fR=\fIEXPRESSION\fR
> + Use sed replace \fIEXPRESSION\fR to transform file names.
> + .SS File name matching options
> + These options affect both exclude and include patterns.
> +diff --git a/src/tar.c b/src/tar.c
> +index 225c624..f8102e0 100644
Could you just remove the doc/tar.1 part of the patch since it’s
unrelated and unneeded?
OK to push to core-updates with this change.
Thank you!
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 02/10] gnu: base: Fix a bug that occurs in non-Linux systems.
2015-05-22 14:08 ` Ludovic Courtès
@ 2015-05-23 19:28 ` Manolis Ragkousis
0 siblings, 0 replies; 5+ messages in thread
From: Manolis Ragkousis @ 2015-05-23 19:28 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Guix-devel
Done.
Manolis
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-05-23 19:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-18 22:16 [PATCH 02/10] gnu: base: Fix a bug that occurs in non-Linux systems Manolis Ragkousis
2015-05-19 16:20 ` Ludovic Courtès
2015-05-22 7:46 ` Manolis Ragkousis
2015-05-22 14:08 ` Ludovic Courtès
2015-05-23 19:28 ` Manolis Ragkousis
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).