[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
3 doc/build patches
From: |
Jim Meyering |
Subject: |
3 doc/build patches |
Date: |
Wed, 28 Sep 2011 23:02:45 +0200 |
In addition to the nilfs2 bug fix and test,
here are 3 more small change sets:
>From 22bfa0d6e301b1c6da08d1e37227c2666b6a1e92 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sat, 25 Jun 2011 08:52:04 +0200
Subject: [PATCH 1/3] doc: mention the origin of the other two bugs
* NEWS: Mention that the other two bugs were introduced long ago.
---
NEWS | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/NEWS b/NEWS
index e2258ca..6c55ec9 100644
--- a/NEWS
+++ b/NEWS
@@ -8,8 +8,10 @@ GNU parted NEWS -*- outline
-*-
[bug introduced in parted-2.4 with the addition of nilfs2 support]
libparted: no longer aborts when reading a truncated GPT-formatted device
+ [bug present at least as far back as RHEL4's parted-1.6.19]
libparted: works with a two-component linux kernel version number like 3.0
+ [bug present since the beginning]
* Noteworthy changes in release 3.0 (2011-05-30) [stable]
--
1.7.7.rc0.362.g5a14
>From 5ac53ea3cb0455eee63b1171602acb6a4730e259 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Wed, 28 Sep 2011 21:46:56 +0200
Subject: [PATCH 2/3] build: avoid new syntax-check failure
* cfg.mk: Exempt libparted/arch/beos.c from the PATH_MAX check.
I suspect that this is ok, because parted compiles only on systems
that define PATH_MAX to something reasonable.
---
cfg.mk | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/cfg.mk b/cfg.mk
index 621ef6f..f49a57e 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -68,3 +68,6 @@ exclude_file_name_regexp--sc_cross_check_PATH_usage_in_tests
= \
exclude_file_name_regexp--sc_prohibit_always-defined_macros = \
^parted/(strlist|table)\.h$$
+
+exclude_file_name_regexp--sc_prohibit_path_max_allocation = \
+ ^libparted/arch/beos\.c$$
--
1.7.7.rc0.362.g5a14
>From 128d66406040287399df5e87dce774c3da40699a Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Wed, 28 Sep 2011 15:19:52 +0200
Subject: [PATCH 3/3] build: update gnulib to latest; adapt use of
_GL_ATTRIBUTE_FORMAT
* libparted/arch/linux.c (_GL_ATTRIBUTE_FORMAT): Define here,
now that it's no longer defined by gnulib.
---
gnulib | 2 +-
libparted/arch/linux.c | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/gnulib b/gnulib
index 3532d15..bd35a4e 160000
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 3532d15484ebc37feded387216d716bc1c3533f6
+Subproject commit bd35a4e10e52b9fbe25b7280c3c4d9ef4b144c8a
diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index bc42750..3792b19 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -56,6 +56,15 @@
# define _(String) (String)
#endif /* ENABLE_NLS */
+/* The __attribute__ feature is available in gcc versions 2.5 and later.
+ The __-protected variants of the attributes 'format' and 'printf' are
+ accepted by gcc versions 2.6.4 (effectively 2.7) and later. */
+#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
+# define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
+#else
+# define _GL_ATTRIBUTE_FORMAT(spec) /* empty */
+#endif
+
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#ifndef __NR__llseek
--
1.7.7.rc0.362.g5a14
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- 3 doc/build patches,
Jim Meyering <=