Source: gridsite
Version: 3.0.0~20240125git1200598-1
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`,
gridsite failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
libtool: install: install .libs/libgridsite_nossl.lai /<<PKGBUILDDIR>>/debian/tmp/usr/lib/aarch64-linux-gnu/libgridsite_nossl.la libtool: install: install .libs/libgridsite_nossl.a /<<PKGBUILDDIR>>/debian/tmp/usr/lib/aarch64-linux-gnu/libgridsite_nossl.a libtool: install: chmod 644 /<<PKGBUILDDIR>>/debian/tmp/usr/lib/aarch64-linux-gnu/libgridsite_nossl.a libtool: install: ranlib /<<PKGBUILDDIR>>/debian/tmp/usr/lib/aarch64-linux-gnu/libgridsite_nossl.a libtool: warning: remember to run 'libtool --finish /usr/lib/aarch64-linux-gnu'
rm -f /<<PKGBUILDDIR>>/debian/tmp/usr/lib/aarch64-linux-gnu/*.la
cp -f gridsite-openssl.pc /<<PKGBUILDDIR>>/debian/tmp/usr/lib/aarch64-linux-gnu/pkgconfig
mkdir -p /<<PKGBUILDDIR>>/debian/tmp/usr/include \
/<<PKGBUILDDIR>>/debian/tmp/usr/lib/aarch64-linux-gnu/httpd/modules \
                 /<<PKGBUILDDIR>>/debian/tmp/usr/bin \
                 /<<PKGBUILDDIR>>/debian/tmp/usr/sbin \
                 /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man1 \
                 /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man8 \
                 /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/gridsite-3.0
sed 's/^\(#define GRST_VERSION\).*$/\1 0x030000/' \
../interface/gridsite.h > /<<PKGBUILDDIR>>/debian/tmp/usr/include/gridsite.h
cp -f ../interface/gridsite-gacl.h /<<PKGBUILDDIR>>/debian/tmp/usr/include
libtool --mode=install install urlencode /<<PKGBUILDDIR>>/debian/tmp/usr/bin
libtool: warning: '/<<PKGBUILDDIR>>/src/libgridsite.la' has not been installed in '/usr/lib/aarch64-linux-gnu' libtool: install: install .libs/urlencode /<<PKGBUILDDIR>>/debian/tmp/usr/bin/urlencode libtool --mode=install install findproxyfile /<<PKGBUILDDIR>>/debian/tmp/usr/bin libtool: warning: '/<<PKGBUILDDIR>>/src/libgridsite.la' has not been installed in '/usr/lib/aarch64-linux-gnu' libtool: install: install .libs/findproxyfile /<<PKGBUILDDIR>>/debian/tmp/usr/bin/findproxyfile libtool --mode=install install real-gridsite-admin.cgi /<<PKGBUILDDIR>>/debian/tmp/usr/sbin libtool: warning: '/<<PKGBUILDDIR>>/src/libgridsite.la' has not been installed in '/usr/lib/aarch64-linux-gnu' libtool: install: install .libs/real-gridsite-admin.cgi /<<PKGBUILDDIR>>/debian/tmp/usr/sbin/real-gridsite-admin.cgi
cp -f ../CHANGES ../README ../INSTALL ../LICENSE ../VERSION \
               /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/gridsite-3.0
cp -f ../doc/index.html ../doc/*.conf ../doc/*.sh ../doc/*.spec \
              mod_gridsite_example.c \
               /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/gridsite-3.0
for i in htcp.1 htfind.1 htll.1 htls.1 htmkdir.1 htmv.1 htping.1 \
 htrm.1 urlencode.1 findproxyfile.1 ; do \
cp -f ../doc/$i.html /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/gridsite-3.0 ; \ cp -f ../doc/$i /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/gridsite-3.0 ; \
         cp -f ../doc/$i /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man1 ; \
         gzip -f /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man1/$i ; done
for i in mod_gridsite.8 ; do \
cp -f ../doc/$i.html /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/gridsite-3.0 ; \ cp -f ../doc/$i /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/gridsite-3.0 ; \
         cp -f ../doc/$i /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man8 ; \
         gzip -f /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man8/$i ; done
libtool --mode=install install htcp /<<PKGBUILDDIR>>/debian/tmp/usr/bin
libtool: warning: 'libgridsite.la' has not been installed in '/usr/lib/aarch64-linux-gnu' libtool: install: install .libs/htcp /<<PKGBUILDDIR>>/debian/tmp/usr/bin/htcp
ln -sf htcp /<<PKGBUILDDIR>>/debian/tmp/usr/bin/htls
ln -sf htcp /<<PKGBUILDDIR>>/debian/tmp/usr/bin/htll
ln -sf htcp /<<PKGBUILDDIR>>/debian/tmp/usr/bin/htrm
ln -sf htcp /<<PKGBUILDDIR>>/debian/tmp/usr/bin/htmkdir
ln -sf htcp /<<PKGBUILDDIR>>/debian/tmp/usr/bin/htmv
ln -sf htcp /<<PKGBUILDDIR>>/debian/tmp/usr/bin/htping
ln -sf htcp /<<PKGBUILDDIR>>/debian/tmp/usr/bin/htfind
cp -f mod_gridsite.so /<<PKGBUILDDIR>>/debian/tmp/usr/lib/aarch64-linux-gnu/httpd/modules
mkdir -p /<<PKGBUILDDIR>>/debian/tmp/usr/include \
                 /<<PKGBUILDDIR>>/debian/tmp/usr/bin \
                 /<<PKGBUILDDIR>>/debian/tmp/usr/sbin \
                 /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man1 \
                 /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man8 \
                 /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/gridsite-3.0
cp -f ../doc/*.wsdl /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/gridsite-3.0
for i in htproxyput.1 htproxytime.1 htproxyrenew.1 htproxydestroy.1 \
 htproxyunixtime.1 htproxyinfo.1 ; do \
cp -f ../doc/$i.html /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/gridsite-3.0 ; \ cp -f ../doc/$i /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/gridsite-3.0 ; \
         cp -f ../doc/$i /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man1 ; \
         gzip -f /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man1/$i ; done
for i in gridsite-delegation.8 ; do \
cp -f ../doc/$i.html /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/gridsite-3.0 ; \ cp -f ../doc/$i /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc/gridsite-3.0 ; \
         cp -f ../doc/$i /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man8 ; \
         gzip -f /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man8/$i ; done
cp -f htproxyput /<<PKGBUILDDIR>>/debian/tmp/usr/bin
ln -sf htproxyput /<<PKGBUILDDIR>>/debian/tmp/usr/bin/htproxydestroy
ln -sf htproxyput /<<PKGBUILDDIR>>/debian/tmp/usr/bin/htproxytime
ln -sf htproxyput /<<PKGBUILDDIR>>/debian/tmp/usr/bin/htproxyunixtime
ln -sf htproxyput /<<PKGBUILDDIR>>/debian/tmp/usr/bin/htproxyrenew
ln -sf htproxyput /<<PKGBUILDDIR>>/debian/tmp/usr/bin/htproxyinfo
cp -f gridsite-delegation.cgi /<<PKGBUILDDIR>>/debian/tmp/usr/sbin
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
# Change cgi scripts location
mkdir -m 0755 -p /<<PKGBUILDDIR>>/debian/tmp/usr/lib/gridsite/cgi-bin
mv /<<PKGBUILDDIR>>/debian/tmp/usr/sbin/*.cgi \
   /<<PKGBUILDDIR>>/debian/tmp/usr/lib/gridsite/cgi-bin
rmdir /<<PKGBUILDDIR>>/debian/tmp/usr/sbin
# Let dh_apache2 handle module installation
rm -rf /<<PKGBUILDDIR>>/debian/tmp/usr/lib/aarch64-linux-gnu/httpd
# Let debhelper do the compression
gunzip /<<PKGBUILDDIR>>/debian/tmp/usr/share/man/man*/*
# This is not really useful
rm /<<PKGBUILDDIR>>/debian/tmp/usr/lib/aarch64-linux-gnu/libgridsite_globus.*
rm /<<PKGBUILDDIR>>/debian/tmp/usr/lib/aarch64-linux-gnu/libgridsite_nossl.*
# Remove these - docs are installed using the debian/*.docs files
rm -rf /<<PKGBUILDDIR>>/debian/tmp/usr/share/doc
# Set up root area to serve files from
mkdir -m 0755 -p /<<PKGBUILDDIR>>/debian/tmp/var/lib/gridsite
mkdir -m 0755 -p /<<PKGBUILDDIR>>/debian/tmp/etc/gridsite
install -m 0644 debian/gridsitehead.txt \
   /<<PKGBUILDDIR>>/debian/tmp/etc/gridsite/gridsitehead.txt
install -m 0644 debian/gridsitefoot.txt \
   /<<PKGBUILDDIR>>/debian/tmp/etc/gridsite/gridsitefoot.txt
install -m 0644 debian/root-level.gacl \
   /<<PKGBUILDDIR>>/debian/tmp/etc/gridsite/.gacl
mkdir -m 0755 -p /<<PKGBUILDDIR>>/debian/tmp/etc/grid-security/dn-lists
mkdir -m 0755 -p /<<PKGBUILDDIR>>/debian/tmp/etc/grid-security/vomsdir
mkdir -m 0755 -p /<<PKGBUILDDIR>>/debian/tmp/var/cache/mod_gridsite
mkdir -m 0755 -p /<<PKGBUILDDIR>>/debian/tmp/usr/share/apache2/icons
uudecode -o /<<PKGBUILDDIR>>/debian/tmp/usr/share/apache2/icons/gridsitelogo.png \
   debian/gridsitelogo.png.uu
chown www-data:www-data \
  /<<PKGBUILDDIR>>/debian/tmp/var/lib/gridsite \
  /<<PKGBUILDDIR>>/debian/tmp/etc/gridsite/.gacl \
  /<<PKGBUILDDIR>>/debian/tmp/etc/gridsite/gridsitehead.txt \
  /<<PKGBUILDDIR>>/debian/tmp/etc/gridsite/gridsitefoot.txt \
  /<<PKGBUILDDIR>>/debian/tmp/etc/grid-security/dn-lists \
  /<<PKGBUILDDIR>>/debian/tmp/var/cache/mod_gridsite
chown: changing ownership of '/<<PKGBUILDDIR>>/debian/tmp/var/lib/gridsite': Operation not permitted chown: changing ownership of '/<<PKGBUILDDIR>>/debian/tmp/etc/gridsite/.gacl': Operation not permitted chown: changing ownership of '/<<PKGBUILDDIR>>/debian/tmp/etc/gridsite/gridsitehead.txt': Operation not permitted chown: changing ownership of '/<<PKGBUILDDIR>>/debian/tmp/etc/gridsite/gridsitefoot.txt': Operation not permitted chown: changing ownership of '/<<PKGBUILDDIR>>/debian/tmp/etc/grid-security/dn-lists': Operation not permitted chown: changing ownership of '/<<PKGBUILDDIR>>/debian/tmp/var/cache/mod_gridsite': Operation not permitted
make[1]: *** [debian/rules:51: override_dh_auto_install] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-16T12:24:06Z

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


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/994278.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