Source: mailsync
Version: 5.2.7-3.2
Severity: important
Tags: ftbfs
Justification: FTBFS
X-Debbugs-Cc: ni...@thykier.net
User: ni...@thykier.net
Usertags: rrr-no-as-default-issue

Dear maintainer,

During a test rebuild for building packages with
`Rules-Requires-Root: no` as the default in `dpkg`,
mailsync failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking dependency style of g++... gcc3
checking for gawk... (cached) mawk
checking how to run the C preprocessor... gcc -E
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for getpass... yes
checking for memset... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strtoul... yes
checking for crypt in -lcrypt... yes
checking for c-client.h... found in /usr/include/c-client
checking for c-client library... found /usr/lib/libc-client.so
checking if c-client works without -fno-operator-names in c++... no
checking if adding -fno-operator-names helps... yes
checking if c-client includes md5 support... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
touch configure-stamp
dh_testdir
/usr/bin/make
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make  all-recursive
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Making all in src
make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/c-client -fno-operator-names -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cc
In file included from /usr/include/c-client/c-client.h:41,
                 from c-client-header.h:8,
                 from main.cc:23:
/usr/include/c-client/linkage.c: In function ‘int main(int, const char**)’:
/usr/include/c-client/mail.h:29:24: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
   29 | #define CCLIENTVERSION "2007f"
      |                        ^~~~~~~
/usr/include/c-client/linkage.c:21:22: note: in expansion of macro ‘CCLIENTVERSION’
   21 |   mail_versioncheck (CCLIENTVERSION);
      |                      ^~~~~~~~~~~~~~
mv -f .deps/main.Tpo .deps/main.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/c-client -fno-operator-names -g -O2 -MT commandline.o -MD -MP -MF .deps/commandline.Tpo -c -o commandline.o commandline.cc
mv -f .deps/commandline.Tpo .deps/commandline.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/c-client -fno-operator-names -g -O2 -MT configuration.o -MD -MP -MF .deps/configuration.Tpo -c -o configuration.o configuration.cc
mv -f .deps/configuration.Tpo .deps/configuration.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/c-client -fno-operator-names -g -O2 -MT types.o -MD -MP -MF .deps/types.Tpo -c -o types.o types.cc
mv -f .deps/types.Tpo .deps/types.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/c-client -fno-operator-names -g -O2 -MT mail_handling.o -MD -MP -MF .deps/mail_handling.Tpo -c -o mail_handling.o mail_handling.cc
mv -f .deps/mail_handling.Tpo .deps/mail_handling.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/c-client -fno-operator-names -g -O2 -MT c-client_callbacks.o -MD -MP -MF .deps/c-client_callbacks.Tpo -c -o c-client_callbacks.o c-client_callbacks.cc
mv -f .deps/c-client_callbacks.Tpo .deps/c-client_callbacks.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/c-client -fno-operator-names -g -O2 -MT utils.o -MD -MP -MF .deps/utils.Tpo -c -o utils.o utils.cc
mv -f .deps/utils.Tpo .deps/utils.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/c-client -fno-operator-names -g -O2 -MT store.o -MD -MP -MF .deps/store.Tpo -c -o store.o store.cc
In file included from /usr/include/c-client/c-client.h:41,
                 from c-client-header.h:8,
                 from store.h:7,
                 from store.cc:4:
store.cc: In member function ‘bool Store::flag_message_for_removal(long unsigned int, const MsgId&, const char*)’: store.cc:398:63: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 398 | if (! options.simulate ) mail_setflag( this->stream, seq, "\\Deleted" ); | ^~~~~~~~~~~ /usr/include/c-client/mail.h:1563:30: note: in definition of macro ‘mail_setflag’
 1563 |   mail_flag (stream,sequence,flag,ST_SET)
      |                              ^~~~
store.cc: In member function ‘char* Store::driver_name()’:
store.cc:432:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  432 |     drv = mail_valid( this->stream, "", NIL);
      |                                     ^~
mv -f .deps/store.Tpo .deps/store.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/c-client -fno-operator-names -g -O2 -MT channel.o -MD -MP -MF .deps/channel.Tpo -c -o channel.o channel.cc
In file included from /usr/include/c-client/c-client.h:41,
                 from c-client-header.h:8,
                 from types.h:7,
                 from channel.h:5,
                 from channel.cc:2:
channel.cc: In member function ‘bool Channel::write_seen_this_time(const MailboxMap&, MsgIdsPerMailbox&)’: channel.cc:428:40: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  428 |       mail_setflag(msinfo_stream, seq, "\\Deleted");
      |                                        ^~~~~~~~~~~
/usr/include/c-client/mail.h:1563:30: note: in definition of macro ‘mail_setflag’
 1563 |   mail_flag (stream,sequence,flag,ST_SET)
      |                              ^~~~
mv -f .deps/channel.Tpo .deps/channel.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/c-client -fno-operator-names -g -O2 -MT msgid.o -MD -MP -MF .deps/msgid.Tpo -c -o msgid.o msgid.cc
mv -f .deps/msgid.Tpo .deps/msgid.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/c-client -g -O2 -MT msgstring.o -MD -MP -MF .deps/msgstring.Tpo -c -o msgstring.o msgstring.c
mv -f .deps/msgstring.Tpo .deps/msgstring.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/c-client -fno-operator-names -g -O2 -MT password.o -MD -MP -MF .deps/password.Tpo -c -o password.o password.cc
mv -f .deps/password.Tpo .deps/password.Po
g++ -fno-operator-names -g -O2 -o mailsync main.o commandline.o configuration.o types.o mail_handling.o c-client_callbacks.o utils.o store.o channel.o msgid.o msgstring.o password.o /usr/lib/libc-client.so -lcrypt make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[3]: Entering directory '/<<PKGBUILDDIR>>'
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
touch build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_clean: warning: Compatibility levels before 10 are deprecated (level 7 in use)
dh_clean: warning: dh_clean -k is deprecated; use dh_prep instead
dh_clean: warning: This feature will be removed in compat 12.
dh_installdirs
dh_installdirs: warning: Compatibility levels before 10 are deprecated (level 7 in use)
install -o root -g root -m 0755 \
        src/mailsync /<<PKGBUILDDIR>>/debian/mailsync/usr/bin
install: cannot change ownership of '/<<PKGBUILDDIR>>/debian/mailsync/usr/bin/mailsync': Operation not permitted
make: *** [debian/rules:59: install] Error 1
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-17T11:02:03Z

-------------------------------------------------------------------------------


The above is just how the build ends and not necessarily the most
relevant part. If required, the full build log is available here:

https://people.debian.org/~nthykier/rrr-no-as-default/logs/1021759.gz

You can find common solutions at
https://people.debian.org/~nthykier/rrr-no-as-default/docs/solutions.md

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

If this package is listed in
https://people.debian.org/~nthykier/rrr-no-as-default/docs/static-ownership.list,
then please just set `Rules-Requires-Root: binary-targets` to the source
stanza of `debian/control` as a fix to this bug.

If this package is listed in
https://people.debian.org/~nthykier/rrr-no-as-default/docs/maybe-misbuilds.list,
then the package was deemed at risk for misbuilding (having wrong
ownership) but had a FTBFS problem we tested it. Please test whether the
package works with `Rules-Requires-Root: no` validating that the
resulting deb has the correct ownership for all paths in the deb.

The goal is to have the default changed in `dpkg` either in `Trixie` or
`Forky`, depending on progress and feasibility with the release schedule
for Trixie.

For more information on this bug filing, please see:
https://lists.debian.org/debian-dpkg/2024/11/msg00016.html

Thanks,


PS: The builds were performed in mid-November. If you fixed the problem
between between then and this bug being filed, then please just close
the bug with the version it was fixed in.

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to