Ubuntu Noble lacks of CRIU package

Bug #2066148 reported by Aleksandr Mikhalitsyn
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
criu (Ubuntu)
New
Undecided
Unassigned

Bug Description

It looks like because of build failures on Noble toolchain:
https://launchpad.net/ubuntu/noble/+source/criu/+builds

precisely the same version was building just fine on Mantic.

$ rmadison criu -u ubuntu
 criu | 2.0-2ubuntu3 | xenial/universe | source, amd64, armhf, ppc64el
 criu | 2.6-1ubuntu1~ubuntu16.04.2 | xenial-updates/universe | source, amd64, armhf, ppc64el
 criu | 3.6-2 | bionic/universe | source, amd64, arm64, armhf, ppc64el, s390x
 criu | 3.16.1-2 | jammy/universe | source, amd64, arm64, armhf, ppc64el, s390x
 criu | 3.17.1-3 | mantic/universe | source, amd64, arm64, armhf, ppc64el, s390x

Tags: patch
description: updated
Revision history for this message
Aleksandr Mikhalitsyn (mihalicyn) wrote :

It's clearly a false-positive on GCC 13.2

Attaching a Debian diff with workaround (disable warnings and prevent compilation failures).

Revision history for this message
Aleksandr Mikhalitsyn (mihalicyn) wrote :
Download full text (4.6 KiB)

Tested with PPA and it looks like compile-time problem is fixed, but now we have the next one:
https://launchpadlibrarian.net/730889722/buildlog_ubuntu-noble-ppc64el.criu_3.17.1-3ubuntu1_BUILDING.txt.gz

mkdir -p /<<PKGBUILDDIR>>/debian/criu/usr/lib/powerpc64le-linux-gnu
install -m 755 lib/c/libcriu.so /<<PKGBUILDDIR>>/debian/criu/usr/lib/powerpc64le-linux-gnu/libcriu.so.2.0
ln -fns libcriu.so.2.0 /<<PKGBUILDDIR>>/debian/criu/usr/lib/powerpc64le-linux-gnu/libcriu.so.2
ln -fns libcriu.so.2.0 /<<PKGBUILDDIR>>/debian/criu/usr/lib/powerpc64le-linux-gnu/libcriu.so
install -m 755 lib/c/libcriu.a /<<PKGBUILDDIR>>/debian/criu/usr/lib/powerpc64le-linux-gnu/libcriu.a
mkdir -p /<<PKGBUILDDIR>>/debian/criu/usr/include/criu/
install -m 644 lib/c/criu.h images/rpc.proto images/rpc.pb-c.h criu/include/version.h /<<PKGBUILDDIR>>/debian/criu/usr/include/criu/
mkdir -p /<<PKGBUILDDIR>>/debian/criu/usr/lib/powerpc64le-linux-gnu/pkgconfig
sed -e 's,@version@,3.17.1,' -e 's,@libdir@,/usr/lib/powerpc64le-linux-gnu,' -e 's,@includedir@,/usr/include/criu/,' lib/c/criu.pc.in > lib/c/criu.pc
install -m 644 lib/c/criu.pc /<<PKGBUILDDIR>>/debian/criu/usr/lib/powerpc64le-linux-gnu/pkgconfig
python3 scripts/crit-setup.py install --prefix=/<<PKGBUILDDIR>>/debian/criu/usr --record lib/.crit-setup.files
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  self.initialize_options()
TEST FAILED: /<<PKGBUILDDIR>>/debian/criu/usr/local/lib/python3.12/dist-packages/ does NOT support .pth files
bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /<<PKGBUILDDIR>>/debian/criu/usr/local/lib/python3.12/dist-packages/

and your PYTHONPATH environment variable currently contains:

    ''

Here are some of your options for correcting the problem:

* You can choose a different installation directory, i.e., one that is
  on PYTHONPATH or supports .pth files

* You can add the installation directory to the PYTHONPATH envi...

Read more...

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "deb.diff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

> It looks like because of build failures on Noble toolchain:

See also https://launchpad.net/ubuntu/+source/criu/+publishinghistory . Looks like the error message you get comment 2 is similar to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054814 reported in Debian.

Revision history for this message
Aleksandr Mikhalitsyn (mihalicyn) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.