Source: partclone
Version: 0.3.13+dfsg-6
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" 
> -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -DDD -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wall -c -o partclone_dd-main.o `test -f 'main.c' || 
> echo './'`main.c
> main.c: In function ‘main’:
> main.c:646:17: warning: ignoring return value of ‘posix_memalign’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>   646 |                 posix_memalign((void**)&write_buffer, BSIZE, 
> buffer_capacity * block_size);
>       |                 
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> partclone.c: In function ‘log_mesg’:
> partclone.c:849:42: error: format not a string literal and no format 
> arguments [-Werror=format-security]
>   849 |                         wprintw(log_win, tmp_str);
>       |                                          ^~~~~~~
> gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" 
> -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -DDD -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wall -c -o partclone_dd-partclone.o `test -f 
> 'partclone.c' || echo './'`partclone.c
> gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" 
> -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -DDD -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wall -c -o partclone_dd-progress.o `test -f 
> 'progress.c' || echo './'`progress.c
> partclone.c: In function ‘log_mesg’:
> partclone.c:849:42: error: format not a string literal and no format 
> arguments [-Werror=format-security]
>   849 |                         wprintw(log_win, tmp_str);
>       |                                          ^~~~~~~
> In file included from /usr/include/string.h:519,
>                  from partclone.c:30:
> In function ‘strncpy’,
>     inlined from ‘init_image_head_v1’ at partclone.c:134:2:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:91:10: warning: 
> ‘__builtin_strncpy’ output truncated before terminating nul copying 15 bytes 
> from a string of the same length [-Wstringop-truncation]
>    91 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos 
> (__dest));
>       |          
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In function ‘strncpy’,
>     inlined from ‘init_image_head_v1’ at partclone.c:135:2:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:91:10: warning: 
> ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes 
> from a string of the same length [-Wstringop-truncation]
>    91 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos 
> (__dest));
>       |          
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In function ‘strncpy’,
>     inlined from ‘init_image_head_v1’ at partclone.c:136:2:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:91:10: warning: 
> ‘__builtin_strncpy’ specified bound 15 equals destination size 
> [-Wstringop-truncation]
>    91 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos 
> (__dest));
>       |          
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In function ‘strncpy’,
>     inlined from ‘init_image_head_v2’ at partclone.c:143:2:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:91:10: warning: 
> ‘__builtin_strncpy’ output truncated before terminating nul copying 15 bytes 
> from a string of the same length [-Wstringop-truncation]
>    91 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos 
> (__dest));
>       |          
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In function ‘strncpy’,
>     inlined from ‘init_image_head_v2’ at partclone.c:144:2:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:91:10: warning: 
> ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes 
> from a string of the same length [-Wstringop-truncation]
>    91 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos 
> (__dest));
>       |          
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> progress.c: In function ‘calculate_speed’:
> progress.c:174:59: warning: ‘ hrs ’ directive output may be truncated writing 
> 5 bytes into a region of size between 2 and 6 [-Wformat-truncation=]
>   174 |             snprintf(Eformated, sizeof(Eformated), " > %3i hrs ", 
> ((int)elapsed/3600));
>       |                                                           ^~~~~
> In file included from /usr/include/stdio.h:866,
>                  from progress.c:14:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:70:10: note: 
> ‘__builtin___snprintf_chk’ output between 12 and 16 bytes into a destination 
> of size 12
>    70 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    71 |                                    __bos (__s), __fmt, __va_arg_pack 
> ());
>       |                                    
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> progress.c:154:59: warning: ‘ hrs ’ directive output may be truncated writing 
> 5 bytes into a region of size between 2 and 6 [-Wformat-truncation=]
>   154 |             snprintf(Rformated, sizeof(Rformated), " > %3i hrs ", 
> ((int)remained/3600));
>       |                                                           ^~~~~
> In file included from /usr/include/stdio.h:866,
>                  from progress.c:14:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:70:10: note: 
> ‘__builtin___snprintf_chk’ output between 12 and 16 bytes into a destination 
> of size 12
>    70 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    71 |                                    __bos (__s), __fmt, __va_arg_pack 
> ());
>       |                                    
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> progress.c:161:59: warning: ‘ hrs ’ directive output may be truncated writing 
> 5 bytes into a region of size between 2 and 6 [-Wformat-truncation=]
>   161 |             snprintf(Eformated, sizeof(Eformated), " > %3i hrs ", 
> ((int)elapsed/3600));
>       |                                                           ^~~~~
> In file included from /usr/include/stdio.h:866,
>                  from progress.c:14:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:70:10: note: 
> ‘__builtin___snprintf_chk’ output between 12 and 16 bytes into a destination 
> of size 12
>    70 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    71 |                                    __bos (__s), __fmt, __va_arg_pack 
> ());
>       |                                    
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In function ‘strncpy’,
>     inlined from ‘parse_options’ at partclone.c:429:5:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:91:10: warning: 
> ‘__builtin_strncpy’ specified bound 128 equals destination size 
> [-Wstringop-truncation]
>    91 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos 
> (__dest));
>       |          
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> main.c:647:41: warning: ‘write_buffer’ may be used uninitialized in this 
> function [-Wmaybe-uninitialized]
>   647 |                 if (read_buffer == NULL || write_buffer == NULL) {
>       |                                         ^
> In file included from /usr/include/string.h:519,
>                  from partclone.c:30:
> In function ‘strncpy’,
>     inlined from ‘init_image_head_v1’ at partclone.c:134:2:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:91:10: warning: 
> ‘__builtin_strncpy’ output truncated before terminating nul copying 15 bytes 
> from a string of the same length [-Wstringop-truncation]
>    91 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos 
> (__dest));
>       |          
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In function ‘strncpy’,
>     inlined from ‘init_image_head_v1’ at partclone.c:135:2:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:91:10: warning: 
> ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes 
> from a string of the same length [-Wstringop-truncation]
>    91 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos 
> (__dest));
>       |          
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In function ‘strncpy’,
>     inlined from ‘init_image_head_v1’ at partclone.c:136:2:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:91:10: warning: 
> ‘__builtin_strncpy’ specified bound 15 equals destination size 
> [-Wstringop-truncation]
>    91 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos 
> (__dest));
>       |          
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In function ‘strncpy’,
>     inlined from ‘init_image_head_v2’ at partclone.c:143:2:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:91:10: warning: 
> ‘__builtin_strncpy’ output truncated before terminating nul copying 15 bytes 
> from a string of the same length [-Wstringop-truncation]
>    91 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos 
> (__dest));
>       |          
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In function ‘strncpy’,
>     inlined from ‘init_image_head_v2’ at partclone.c:144:2:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:91:10: warning: 
> ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes 
> from a string of the same length [-Wstringop-truncation]
>    91 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos 
> (__dest));
>       |          
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In function ‘strncpy’,
>     inlined from ‘parse_options’ at partclone.c:429:5:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:91:10: warning: 
> ‘__builtin_strncpy’ specified bound 128 equals destination size 
> [-Wstringop-truncation]
>    91 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos 
> (__dest));
>       |          
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" 
> -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -DDD -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wall -c -o partclone_dd-checksum.o `test -f 
> 'checksum.c' || echo './'`checksum.c
> gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" 
> -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -DDD -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wall -c -o partclone_dd-torrent_helper.o `test -f 
> 'torrent_helper.c' || echo './'`torrent_helper.c
> gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" 
> -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -DDD -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wall -c -o partclone_dd-ddclone.o `test -f 
> 'ddclone.c' || echo './'`ddclone.c
> partclone.c: In function ‘load_image_desc’:
> partclone.c:951:60: warning: array subscript ‘image_desc_v1[0]’ is partly 
> outside array bounds of ‘image_desc_v2[1]’ [-Warray-bounds]
>   951 |                 load_image_desc_v1(fs_info, img_opt, buf_v1->head, 
> buf_v1->fs_info, opt);
>       |                                                            ^~
> partclone.c:925:23: note: while referencing ‘buf_v2’
>   925 |         image_desc_v2 buf_v2;
>       |                       ^~~~~~
> partclone.c:951:74: warning: array subscript ‘image_desc_v1[0]’ is partly 
> outside array bounds of ‘image_desc_v2[1]’ [-Warray-bounds]
>   951 |                 load_image_desc_v1(fs_info, img_opt, buf_v1->head, 
> buf_v1->fs_info, opt);
>       |                                                                       
>    ^~
> partclone.c:925:23: note: while referencing ‘buf_v2’
>   925 |         image_desc_v2 buf_v2;
>       |                       ^~~~~~
> gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" 
> -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -DRESTORE -DDD -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wall -c -o partclone_restore-main.o `test -f 
> 'main.c' || echo './'`main.c
> partclone.c: In function ‘load_image_desc’:
> main.c: In function ‘main’:
> main.c:646:17: warning: ignoring return value of ‘posix_memalign’ declared 
> with attribute ‘warn_unused_result’ [-Wunused-result]
>   646 |                 posix_memalign((void**)&write_buffer, BSIZE, 
> buffer_capacity * block_size);
>       |                 
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> partclone.c:951:60: warning: array subscript ‘image_desc_v1[0]’ is partly 
> outside array bounds of ‘image_desc_v2[1]’ [-Warray-bounds]
>   951 |                 load_image_desc_v1(fs_info, img_opt, buf_v1->head, 
> buf_v1->fs_info, opt);
>       |                                                            ^~
> partclone.c:925:23: note: while referencing ‘buf_v2’
>   925 |         image_desc_v2 buf_v2;
>       |                       ^~~~~~
> partclone.c:951:74: warning: array subscript ‘image_desc_v1[0]’ is partly 
> outside array bounds of ‘image_desc_v2[1]’ [-Warray-bounds]
>   951 |                 load_image_desc_v1(fs_info, img_opt, buf_v1->head, 
> buf_v1->fs_info, opt);
>       |                                                                       
>    ^~
> partclone.c:925:23: note: while referencing ‘buf_v2’
>   925 |         image_desc_v2 buf_v2;
>       |                       ^~~~~~
> gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" 
> -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -DRESTORE -DDD -g -O2 
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wall -c -o partclone_restore-partclone.o `test -f 
> 'partclone.c' || echo './'`partclone.c
> cc1: some warnings being treated as errors
> make[3]: *** [Makefile:1810: partclone.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/partclone_0.3.13+dfsg-6_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to