2024-04-27 14:17:47 |
dann frazier |
bug |
|
|
added bug |
2024-04-27 14:17:54 |
dann frazier |
nominated for series |
|
Ubuntu Jammy |
|
2024-04-27 14:17:54 |
dann frazier |
bug task added |
|
libjsoncpp (Ubuntu Jammy) |
|
2024-04-27 14:18:00 |
dann frazier |
libjsoncpp (Ubuntu Jammy): status |
New |
In Progress |
|
2024-04-27 14:18:02 |
dann frazier |
libjsoncpp (Ubuntu Jammy): assignee |
|
dann frazier (dannf) |
|
2024-04-27 14:24:34 |
dann frazier |
description |
[Impact]
Users trying to build software that links w/ jammy's libjsoncpp library will hit a build failure if that software uses cmake and another library that also requires libjsoncpp. This can be reproduced by building a a new version of cmake itself (reproduced w/ today's master, as well as going back to the 3.27.4 release).
[Test Case]
This can be demonstrated by calling find_package twice in a row:
$ mkdir test && cd test
$ cat > CMakeLists.txt << EOF
project(test)
find_package(jsoncpp 1.9.5)
find_package(jsoncpp 1.9.5)
EOF
$ cmake .
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/jsoncpp/jsoncpp-namespaced-targets.cmake:5 (add_library):
add_library cannot create imported target "JsonCpp::JsonCpp" because
another target with the same name already exists.
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/jsoncpp/jsoncppConfig.cmake:41 (include)
CMakeLists.txt:3 (find_package)
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.22)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/test/CMakeFiles/CMakeOutput.log".
[ What Could Go Wrong ]
We could cause reverse dependencies to fail to build from source due to an inadvertent error. We can mitigate this by doing a test rebuild of the reverse dependencies. |
[Impact]
Users trying to build software that links w/ jammy's libjsoncpp library will hit a build failure if that software uses cmake and another library that also requires libjsoncpp because libjsoncpp's cmake config does not protect against duplicate imports. This can be reproduced by building a a newer version of cmake itself using system libjsoncpp (I was trying to build 3.27.4, but I also checked that it impacts cmake master).
[Test Case]
This can be demonstrated by calling find_package twice in a row:
$ mkdir test && cd test
$ cat > CMakeLists.txt << EOF
project(test)
find_package(jsoncpp 1.9.5)
find_package(jsoncpp 1.9.5)
EOF
$ cmake .
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/jsoncpp/jsoncpp-namespaced-targets.cmake:5 (add_library):
add_library cannot create imported target "JsonCpp::JsonCpp" because
another target with the same name already exists.
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/jsoncpp/jsoncppConfig.cmake:41 (include)
CMakeLists.txt:3 (find_package)
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.22)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/test/CMakeFiles/CMakeOutput.log".
[ What Could Go Wrong ]
We could cause reverse dependencies to fail to build from source due to an inadvertent error. We can mitigate this by doing a test rebuild of the reverse dependencies. |
|
2024-04-27 14:25:01 |
dann frazier |
nominated for series |
|
Ubuntu Noble |
|
2024-04-27 14:25:01 |
dann frazier |
bug task added |
|
libjsoncpp (Ubuntu Noble) |
|
2024-04-27 14:25:01 |
dann frazier |
nominated for series |
|
Ubuntu Mantic |
|
2024-04-27 14:25:01 |
dann frazier |
bug task added |
|
libjsoncpp (Ubuntu Mantic) |
|
2024-04-27 14:25:08 |
dann frazier |
libjsoncpp (Ubuntu Noble): status |
New |
Fix Released |
|
2024-04-27 14:25:10 |
dann frazier |
libjsoncpp (Ubuntu Mantic): status |
New |
Fix Released |
|
2024-04-27 16:37:38 |
dann frazier |
description |
[Impact]
Users trying to build software that links w/ jammy's libjsoncpp library will hit a build failure if that software uses cmake and another library that also requires libjsoncpp because libjsoncpp's cmake config does not protect against duplicate imports. This can be reproduced by building a a newer version of cmake itself using system libjsoncpp (I was trying to build 3.27.4, but I also checked that it impacts cmake master).
[Test Case]
This can be demonstrated by calling find_package twice in a row:
$ mkdir test && cd test
$ cat > CMakeLists.txt << EOF
project(test)
find_package(jsoncpp 1.9.5)
find_package(jsoncpp 1.9.5)
EOF
$ cmake .
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/jsoncpp/jsoncpp-namespaced-targets.cmake:5 (add_library):
add_library cannot create imported target "JsonCpp::JsonCpp" because
another target with the same name already exists.
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/jsoncpp/jsoncppConfig.cmake:41 (include)
CMakeLists.txt:3 (find_package)
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.22)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/test/CMakeFiles/CMakeOutput.log".
[ What Could Go Wrong ]
We could cause reverse dependencies to fail to build from source due to an inadvertent error. We can mitigate this by doing a test rebuild of the reverse dependencies. |
[Impact]
Users trying to build software that links w/ jammy's libjsoncpp library will hit a build failure if that software uses cmake and another library that also requires libjsoncpp because libjsoncpp's cmake config does not protect against duplicate imports. This can be reproduced by building a a newer version of cmake itself using system libjsoncpp (I was trying to build 3.27.4, but I also checked that it impacts cmake master).
[Test Case]
This can be demonstrated by calling find_package twice in a row:
$ mkdir test && cd test
$ cat > CMakeLists.txt << EOF
project(test)
find_package(jsoncpp 1.9.5)
find_package(jsoncpp 1.9.5)
EOF
$ cmake .
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/jsoncpp/jsoncpp-namespaced-targets.cmake:5 (add_library):
add_library cannot create imported target "JsonCpp::JsonCpp" because
another target with the same name already exists.
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/jsoncpp/jsoncppConfig.cmake:41 (include)
CMakeLists.txt:3 (find_package)
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.22)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/test/CMakeFiles/CMakeOutput.log".
[ What Could Go Wrong ]
We could cause reverse dependencies to fail to build from source due to an inadvertent error. We can mitigate this by doing a test rebuild of the reverse dependencies, which I've done in a PPA:
https://launchpad.net/~dannf/+archive/ubuntu/libjsoncpp-sru-test/+packages |
|
2024-04-27 16:43:38 |
dann frazier |
description |
[Impact]
Users trying to build software that links w/ jammy's libjsoncpp library will hit a build failure if that software uses cmake and another library that also requires libjsoncpp because libjsoncpp's cmake config does not protect against duplicate imports. This can be reproduced by building a a newer version of cmake itself using system libjsoncpp (I was trying to build 3.27.4, but I also checked that it impacts cmake master).
[Test Case]
This can be demonstrated by calling find_package twice in a row:
$ mkdir test && cd test
$ cat > CMakeLists.txt << EOF
project(test)
find_package(jsoncpp 1.9.5)
find_package(jsoncpp 1.9.5)
EOF
$ cmake .
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/jsoncpp/jsoncpp-namespaced-targets.cmake:5 (add_library):
add_library cannot create imported target "JsonCpp::JsonCpp" because
another target with the same name already exists.
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/jsoncpp/jsoncppConfig.cmake:41 (include)
CMakeLists.txt:3 (find_package)
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.22)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/test/CMakeFiles/CMakeOutput.log".
[ What Could Go Wrong ]
We could cause reverse dependencies to fail to build from source due to an inadvertent error. We can mitigate this by doing a test rebuild of the reverse dependencies, which I've done in a PPA:
https://launchpad.net/~dannf/+archive/ubuntu/libjsoncpp-sru-test/+packages |
[Impact]
Users trying to build software that links w/ jammy's libjsoncpp library will hit a build failure if that software uses cmake and another library that also requires libjsoncpp because libjsoncpp's cmake config does not protect against duplicate imports. This can be reproduced by building a a newer version of cmake itself using system libjsoncpp (I was trying to build 3.27.4, but I also checked that it impacts cmake master).
[Test Case]
This can be demonstrated by calling find_package twice in a row:
$ mkdir test && cd test
$ cat > CMakeLists.txt << EOF
project(test)
find_package(jsoncpp 1.9.5)
find_package(jsoncpp 1.9.5)
EOF
$ cmake .
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/jsoncpp/jsoncpp-namespaced-targets.cmake:5 (add_library):
add_library cannot create imported target "JsonCpp::JsonCpp" because
another target with the same name already exists.
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/jsoncpp/jsoncppConfig.cmake:41 (include)
CMakeLists.txt:3 (find_package)
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.22)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/test/CMakeFiles/CMakeOutput.log".
[Fix]
Backport a fix from mantic that adds a guard in the .cmake file.
[ What Could Go Wrong ]
We could cause reverse dependencies to fail to build from source due to an inadvertent error. We can mitigate this by doing a test rebuild of the reverse dependencies, which I've done in a PPA:
https://launchpad.net/~dannf/+archive/ubuntu/libjsoncpp-sru-test/+packages |
|
2024-05-03 10:18:56 |
Timo Aaltonen |
libjsoncpp (Ubuntu Jammy): status |
In Progress |
Fix Committed |
|
2024-05-03 10:18:57 |
Timo Aaltonen |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2024-05-03 10:18:59 |
Timo Aaltonen |
bug |
|
|
added subscriber SRU Verification |
2024-05-03 10:19:01 |
Timo Aaltonen |
tags |
|
verification-needed verification-needed-jammy |
|