Package: ocfs2-tools / 1.8.6-6

Metadata

Package Version Patches format
ocfs2-tools 1.8.6-6 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
systemd service.patch | (download)

vendor/common/o2cb.service | 8 4 + 4 - 0 !
vendor/common/ocfs2.service | 6 3 + 3 - 0 !
2 files changed, 7 insertions(+), 7 deletions(-)

 debianize upstream service files
register_printf_specifier.patch | (download)

tunefs.ocfs2/op_query.c | 28 14 + 14 - 0 !
1 file changed, 14 insertions(+), 14 deletions(-)

 fix gcc 6 warnings
defragfs_segfault.patch | (download)

defragfs.ocfs2/main.c | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 fix defragfs segfault
cross_build.patch | (download)

acinclude.m4 | 3 3 + 0 - 0 !
aclocal.m4 | 7 0 + 7 - 0 !
pythondev.m4 | 4 2 + 2 - 0 !
3 files changed, 5 insertions(+), 9 deletions(-)

 fix cross build of the package
 Ignore m4 files included in the upstream source.
pkg_config_libaio.patch | (download)

ocfs2.pc.in | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 move libaio reference to libs.private
 Try to fix lintian warning pkg-config-references-unknown-shared-library
defrag.ocfs2 make getopt portable.patch | (download)

defragfs.ocfs2/main.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 defragfs.ocfs2: make getopt return variable portable

Fixes #42

From ISO/IEC 9899:1999 (E):

6.3.1.3 Signed and unsigned integers

1 When a value with integer type is converted to another integer type
other than _Bool, if the value can be represented by the new type, it is
unchanged.

2 Otherwise, if the new type is unsigned, the value is converted by
repeatedly adding or subtracting one more than the maximum value that
can be represented in the new type until the value is in the range of
the new type.

3 Otherwise, the new type is signed and the value cannot be represented
in it; either the result is implementation-defined or an
implementation-defined signal is raised.

gcc-9-aarch64-linux-gnu 9.2.1 makes ((char = getopt()) != EOF) to always
compare (255 != -1), considering char to be unsigned, as states item
(3): implementation-defined. Meaning that the code has to change "char"
to "int" to become fully portable.

Bug: https://bugs.launchpad.net/bugs/1840958

Signed-off-by: Rafael David Tinoco <rafaeldtinoco@ubuntu.com>

Bug: https://github.com/markfasheh/ocfs2-tools/issues/42
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1840958
fix o2image segfault.patch | (download)

o2image/o2image.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix o2image segfault on s390x
 Use correct union member. On little endian this worked
 because of the union layout.