Update jammy from 9.0.0+dfsg-3 to 9.0.0+dfsg-3.1

Asked by Ryan Friedman

Hello,

Is it possible to take the changes to install missing CMake files and make them available to Ubuntu Jammy users?

Specifically, the lack of this patch on Jammy is causing issues:
https://git.launchpad.net/ubuntu/+source/tinyxml2/patch/debian/libtinyxml2-dev.install?id=8ec400cc2fe03ce9760c01fdde017b75b2aeed59

The Ubuntu Jammy user has reported a failure to use "find_package" with tinyxml2 on Ubuntu 22.
https://github.com/leethomason/tinyxml2/issues/930#issue-1527973704

Jammy current version: 9.0.0+dfsg-3
Jammy requested version: 9.0.0+dfsg-3.1

Risk: Low
Reverse Compatible; Yes

Current Jammy users in ROS 2 are making use of the vendored version which correctly supplies the CMake config files:
https://github.com/ros2/tinyxml2_vendor

It would be desireable to remove the need for a vendored version and archive that project.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu tinyxml2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Manfred Hampl suggests this article as an answer to your question:
FAQ #3037: “no rolling release”.

Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):
#2

I suggest that you try manually downloading and installing the tinyxml2 packages for Ubuntu lunar on your jammy system. If that works well, then this can serve as proof that a backport of the *-3.1 package to jammy may be feasible.

Revision history for this message
Ryan Friedman (ryanf55) said (last edit ):
#3

Thanks. Yes, it works. Here was my test process.

I removed libtinyxml2-dev on my Ubuntu 22 host.

    sudo dpkg -r --force-depends libtinyxml2-dev

Then I installed the following from lunar through dpkg onto my Ubuntu 22 host.
    https://answers.launchpad.net/ubuntu/lunar/amd64/libtinyxml2-9/9.0.0+dfsg-3.1
    https://answers.launchpad.net/ubuntu/lunar/amd64/libtinyxml2-dev/9.0.0+dfsg-3.1

Finally, without building tinyxml locally, I used their supplied test script, but locked it to config mode.

ryan@B650-970:~/Dev/ros2_ws/src/tinyxml2/test$ cmake -S . -B build
    CMake Debug Log at CMakeLists.txt:7 (find_package):
        /usr/lib/x86_64-linux-gnu/cmake/tinyxml2/tinyxml2Config.cmake
        /usr/lib/x86_64-linux-gnu/cmake/tinyxml2/tinyxml2-config.cmake

    CMake Debug Log at CMakeLists.txt:7 (find_package):

    -- Configuring done
   -- Generating done
   -- Build files have been written to: /home/ryan/Dev/ros2_ws/src/tinyxml2/test/build

 The slightly modified CMakeLists guarantees the config scripts are the ones found, and adds debug to make sure its the one we expect.

     set(CMAKE_FIND_DEBUG_MODE TRUE)
    find_package(tinyxml2 REQUIRED CONFIG)
    set(CMAKE_FIND_DEBUG_MODE FALSE)

This matches the newly installed cmake folder contents that the previous packaging patch fixed on other versions.

    $ dpkg --contents libtinyxml2-dev_9.0.0+dfsg-3.1_amd64.deb | grep cmake
    drwxr-xr-x root/root 0 2022-05-16 03:14 ./usr/lib/x86_64-linux-gnu/cmake/
    drwxr-xr-x root/root 0 2022-05-16 03:14 ./usr/lib/x86_64-linux-gnu/cmake/tinyxml2/
    -rw-r--r-- root/root 2878 2022-05-16 03:14 ./usr/lib/x86_64-linux-gnu/cmake/tinyxml2/tinyxml2-config-version.cmake
    -rw-r--r-- root/root 1988 2021-06-06 18:10 ./usr/lib/x86_64-linux-gnu/cmake/tinyxml2/tinyxml2-config.cmake
    -rw-r--r-- root/root 883 2022-05-16 03:14 ./usr/lib/x86_64-linux-gnu/cmake/tinyxml2/tinyxml2-shared-targets-none.cmake
    -rw-r--r-- root/root 3847 2022-05-16 03:14 ./usr/lib/x86_64-linux-gnu/cmake/tinyxml2/tinyxml2-shared-targets.cmake

Yes, I get that ubuntu is not a rolling release, however that patch is a bugfix for a packaging error; the actual library source code has not changed.

I propose a backport of *-3.1 is feasible.

Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):
#4

Independent whether this is named bugfix or backport, The next step must be creating a bug report in the bug tracker.

Revision history for this message
Ryan Friedman (ryanf55) said :
#5

Done! Take a look here:https://bugs.launchpad.net/ubuntu/+source/tinyxml2/+bug/2045574

I appreciate your guidance.

Can you help with this problem?

Provide an answer of your own, or ask Ryan Friedman for more information if necessary.

To post a message you must log in.