iAI icon indicating copy to clipboard operation
iAI copied to clipboard

Phasar conflicts with the pre-installed nlohmann-json during the run-time

Open yurivict opened this issue 10 months ago • 3 comments

  • [x] I have searched open and closed issues for duplicates
  • [x] I made sure that I am not using an old project version (DO: pull PhASAR, update git submodules, rebuild the project and check if the bug is still there)

Bug description

Describe here the issue that you are experiencing.

Steps to reproduce

Install the built package.

Actual result:

$ sudo pkg add -A /usr/local/poudriere/data/packages/14amd64-local-workstation/.real_1713110260/All/phasar-2403.pkg
Installing phasar-2403...
pkg: phasar-2403 conflicts with nlohmann-json-3.11.3 (installs files into the same place).  Problematic file: /usr/local/share/cmake/nlohmann_json/nlohmann_jsonConfig.cmake

Failed to install the following 1 package(s): /usr/local/poudriere/data/packages/14amd64-local-workstation/.real_1713110260/All/phasar-2403.pkg

Expected result: Describe here what should happen after you run the steps above (i.e. what would be the correct behavior)

Context (Environment)

  • phasar: v2403
  • googletest: e2239ee
  • json: bc889af
  • json-schema-validator 491ac44

Operating System:

  • [ ] Linux
  • [x] FreeBSD 14.0
  • [ ] Windows
  • [ ] macOS

Build Type:

  • [x] cmake
  • [ ] bootstrap.sh
  • [ ] custom build

Possible solution

Use the pre-installed nlohmann-json.

yurivict avatar Apr 14 '24 16:04 yurivict

Hi @yurivict, we are aware that there are problems with installing dependencies, especially with nlohmann::json. We also have fixed some of these issues recently and merged the fixes into the development branch. Which prebuilt package are you using?

fabianbs96 avatar Apr 14 '24 17:04 fabianbs96

I am using the package built by the FreeBSD port devel/phasar, version 2403.

yurivict avatar Apr 14 '24 17:04 yurivict

We created the fix after releasing v2403. Maybe the maintainers of devel/phasar can incorporate it as hotfix

fabianbs96 avatar Apr 18 '24 16:04 fabianbs96