Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nlohman-json fails to build #164

Closed
dtoubelis opened this issue Dec 16, 2019 · 6 comments
Closed

nlohman-json fails to build #164

dtoubelis opened this issue Dec 16, 2019 · 6 comments
Labels
feedback waiting response from submitter

Comments

@dtoubelis
Copy link

This is the build configuration:

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal-4.8"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "intel-corei7-64"
DISTRO            = "loopedge"
DISTRO_VERSION    = "2.5.1"
TUNE_FEATURES     = "m64 corei7"
TARGET_FPU        = ""
meta              
meta-poky         
meta-yocto-bsp    = "morty:18d3f9d08dc6ecd2a1904a645373d68d2169a82b"
meta-intel        = "morty:c781510a5a6b45e60cc32b6614ddcce3f1452121"
meta-networking   
meta-oe           
meta-systemd      
meta-python       
meta-perl         
meta-webserver    
meta-ruby         
meta-multimedia   
meta-filesystems  = "morty:997caf9146cd3797cd054e2adebd1fbb4df91911"
meta-golang       = "morty:82295f104cfb2ae8b6fee12196777dc2128c3431"
meta-efibootguard = "morty:48a184c0b6ce01b556530872b7535e4a1e50b9a5"
meta-virtualization = "morty:6249631f59ad6ee3dc93762de49fc4b443d99abc"
meta-security     = "morty:3d863f72641f930e10ed1b6211d66b2c3d04d306"
meta-nodejs       = "morty:6d327a056dc90e547624feafcf3ba3ec309f1008"
meta-loopedge-base = "dtoubelis-2.5.x:41bee40659f9b1c0c8792c8fe6ecefaa05c8b1b9"

And this is the error:

ERROR: nlohmann-json-3.3.0+gitAUTOINC+aafad2be1f-r0 do_package: QA Issue: nlohmann-json: Files/directories were installed but not shipped in any package:
  /usr/lib
  /usr/lib/cmake
  /usr/lib/cmake/nlohmann_json
  /usr/lib/cmake/nlohmann_json/nlohmann_jsonConfig.cmake
  /usr/lib/cmake/nlohmann_json/nlohmann_jsonTargets.cmake
  /usr/lib/cmake/nlohmann_json/nlohmann_jsonConfigVersion.cmake
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
nlohmann-json: 6 installed and not shipped files. [installed-vs-shipped]
ERROR: nlohmann-json-3.3.0+gitAUTOINC+aafad2be1f-r0 do_package: Fatal QA errors found, failing task.
ERROR: Logfile of failure stored in: /srv/yocto/build/platforms/amd64/tmp/work/corei7-64-poky-linux/nlohmann-json/3.3.0+gitAUTOINC+aafad2be1f-r0/temp/log.do_package.3221
ERROR: Task (/srv/yocto/poky/meta-openembedded/meta-oe/recipes-devtools/nlohmann-json/nlohmann-json_git.bb:do_package) failed with exit code '1'

it may or may not be similar or related to #162

@dtoubelis
Copy link
Author

dtoubelis commented Dec 16, 2019

Here is my current workaround:

nlohmann-json_%.bbappend:

do_install_append () {
    # move libraries into an appropriate location
    if [ -d "${D}/usr/lib" ]; then
        rm -rf "${D}${libdir}"
        mv "${D}/usr/lib" "${D}${libdir}"
    fi
}

FILES_${PN}-dev += "${libdir}/cmake"

but there may be a better way through CMake

@kraj
Copy link
Contributor

kraj commented Dec 17, 2019

On master we are on 3.7 release where this problem is already fixed.

its fixed in nlohmannn/json via nlohmann/json@3184e9b#diff-af3b638bc2a3e6c650974192a53c7291

So you can cherry-pick this and propose as a backport for meta-openembedded/zeus as well.

@kraj kraj assigned kraj and unassigned kraj Dec 17, 2019
@kraj kraj added the feedback waiting response from submitter label Dec 17, 2019
@dtoubelis
Copy link
Author

The patch fails to apply to version in zeus, so I guess I will be using the version from master.

@LocutusOfBorg
Copy link

Hello, can we close this bug?

@dtoubelis
Copy link
Author

Sure. It is too old and likely irrelevant by now.

@kraj
Copy link
Contributor

kraj commented Feb 16, 2022

closing

@kraj kraj closed this as completed Feb 16, 2022
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Jan 11, 2023
Changelog:
==========
 Address changes of final V2 api release (openembedded#175)
 Use non-deprecated logging warn method (openembedded#174)
 Add support for smart_scene resource (openembedded#170)
 Add support for matter resource (openembedded#171)
 Fix: KeepAlive workaround causes Geofence to malfunction (openembedded#163)
 Fix: Missing repeated events for Philips Hue Tap Dial switch (openembedded#167)
 Fix error in log when an empty dict is received for an optional value (openembedded#164)
 Add sparkle effect to fix new Festavia lights (openembedded#165)
 Fix typo in discovery (openembedded#158)
 Pin github actions and add dependabot actions ecosystem (openembedded#151)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Jan 11, 2023
Changelog:
==========
 Address changes of final V2 api release (openembedded#175)
 Use non-deprecated logging warn method (openembedded#174)
 Add support for smart_scene resource (openembedded#170)
 Add support for matter resource (openembedded#171)
 Fix: KeepAlive workaround causes Geofence to malfunction (openembedded#163)
 Fix: Missing repeated events for Philips Hue Tap Dial switch (openembedded#167)
 Fix error in log when an empty dict is received for an optional value (openembedded#164)
 Add sparkle effect to fix new Festavia lights (openembedded#165)
 Fix typo in discovery (openembedded#158)
 Pin github actions and add dependabot actions ecosystem (openembedded#151)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Apr 13, 2023
Release notes for 4.18.2
========================
- manager: Fix GQueue memory management
- Fix Xfconf memory management
- Update bug report address
- Fix suspend/hibernation bug on ConsoleKit2 (Fixes openembedded#164)

Release notes for 4.18.1
========================
- Update copyright year
- Fix bus name acquisition/ownership (openembedded#54, !34)
- Use XfceScreensaver from Libxfce4ui (!35)
- build: Fix previous commit
- build: Fix autotools warnings
- Avoid duplicating directories in the tail of $XDG_* envs (openembedded#111, !21)
- settings: Fix memory leak
- libxfsm: Fix wrong return value
- Fix memory leaks when opening xfce4-session-settings
- Fix blurry session snapshots (!33)
- Fix blurry icons in autostart tab when UI scale > 1 (!33)
- build: Fix GTK deprecation warnings (!32)
- build: Fix some other GDK deprecation warnings (!32)
- build: Fix gdk_error_trap_push/pop() deprecation warnings (!32)
- build: Let xdt-depends.m4 macros set GLib macros (!32)
- build: Remove GDK_VERSION_MIN_REQUIRED/MAX_ALLOWED (!32)
- Make use of translations for run hooks (Fixes openembedded#156)
- Translation Updates:
  Greek, Portuguese, Turkish

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback waiting response from submitter
Projects
None yet
Development

No branches or pull requests

3 participants