openembedded / meta-openembedded

MIT License
415 stars 712 forks source link

Can't ugprade Influxdb recipe to 2.0.7 #390

Open tbornon opened 3 years ago

tbornon commented 3 years ago

Hello,

I'm currently trying to update the influxdb's recipe to use the 2.0.7 version without success. I've tried to do it with devtool upgrade influxdb It detects corretly the new version and identifies the commit associated with that new release (2a45f0c0375a7d5615835afa6f81a53444df9cea). However, I get this error : ERROR: Execution of 'git checkout 2a45f0c0375a7d5615835afa6f81a53444df9cea' failed with exit code 128: fatal: reference is not a tree: 2a45f0c0375a7d5615835afa6f81a53444df9cea

Full trace of devtool upgrade influxdb -d

DEBUG: Using basepath /home/theophile/Yocto-lab/build
DEBUG: Using standard bitbake path /home/theophile/Yocto-lab/poky/bitbake
NOTE: Starting bitbake server...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/build/workspace/lib/devtool...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/poky/meta-poky/lib/devtool...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/build/lib/devtool...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/poky/meta/lib/devtool...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/poky/meta-yocto-bsp/lib/devtool...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/meta-openembedded/meta-oe/lib/devtool...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/meta-openembedded/meta-python/lib/devtool...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/meta-openembedded/meta-networking/lib/devtool...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/poky/scripts/lib/devtool...
DEBUG: Loading plugin runqemu
DEBUG: Loading plugin search
DEBUG: Loading plugin build_sdk
DEBUG: Loading plugin upgrade
DEBUG: Loading plugin package
DEBUG: Loading plugin build
DEBUG: Loading plugin deploy
DEBUG: Loading plugin standard
DEBUG: Loading plugin menuconfig
DEBUG: Loading plugin utilcmds
DEBUG: Loading plugin build_image
DEBUG: Loading plugin sdk
DEBUG: Loading plugin export
DEBUG: Loading plugin import
DEBUG: Reading workspace in /home/theophile/Yocto-lab/build/workspace
DEBUG: Found recipe {'srctree': '/home/theophile/Yocto-lab/build/workspace/sources/proxy', 'bbappend': '/home/theophile/Yocto-lab/build/workspace/appends/proxy_git.bbappend', 'recipefile': '/home/theophile/Yocto-lab/build/workspace/recipes/proxy/proxy_git.bb', 'srctreebase': '/home/theophile/Yocto-lab/build/workspace/sources/proxy'}
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)...
Loading cache: 100% |#############################################################################################################################################################################| Time: 0:00:00
Loaded 3555 entries from dependency cache.
Parsing recipes: 100% |###########################################################################################################################################################################| Time: 0:00:00
Parsing of 2285 .bb files complete (2284 cached, 1 parsed). 3556 targets, 115 skipped, 0 masked, 0 errors.
INFO: Extracting current version source...
INFO: SRC_URI contains some conditional appends/prepends - will create branches to represent these
DEBUG: writing append file /home/theophile/Yocto-lab/build/workspace/appends/influxdb_1.7.10.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.50.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "qemuarm64"
DISTRO               = "poky"
DISTRO_VERSION       = "3.3.1"
TUNE_FEATURES        = "aarch64 armv8a crc cortexa57"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "HEAD:05a8aad57ce250b124db16705acec557819905ae"
meta-oe              = "master:3c1e72d62ccf2c2f94bf280a2500e23fdb01a57c"
workspace            = "<unknown>:<unknown>"
meta-python
meta-networking      = "master:3c1e72d62ccf2c2f94bf280a2500e23fdb01a57c"

Initialising tasks: 100% |########################################################################################################################################################################| Time: 0:00:00
Sstate summary: Wanted 0 Local 0 Network 0 Missed 0 Current 20 (0% match, 100% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 93 tasks of which 90 didn't need to be rerun and all succeeded.
INFO: Adding local source files to srctree...
INFO: Extracting upgraded version source...
DEBUG: Running command /home/theophile/Yocto-lab/build/workspace/sources/influxdb> git fetch
DEBUG: Running command /home/theophile/Yocto-lab/build/workspace/sources/influxdb> git checkout 2a45f0c0375a7d5615835afa6f81a53444df9cea
ERROR: Execution of 'git checkout 2a45f0c0375a7d5615835afa6f81a53444df9cea' failed with exit code 128:
fatal: reference is not a tree: 2a45f0c0375a7d5615835afa6f81a53444df9cea

Here is the content of workspace/sources/influxdb

.
├── oe-local-files
│   ├── influxdb
│   └── influxdb.conf
└── src
    └── github.com
        └── influxdata
            └── influxdb
                ├── same content as influxdb's github repo

It seems that the directory structure isn't as devtool intends it to be and therefore it fails.

I have no idea how to fix that issue and I really would like to be able to use influxdb 2.0. Hoping you can help me

Have a good day, Théophile

kraj commented 3 years ago

there is branch name also that needs adjusting

git://${GO_IMPORT};protocol=https;branch=1.7;destsuffix=${BPN}-${PV}/src/${GO_IMPORT} \

so set branch=2.0 as well

tbornon commented 3 years ago

Hi @kraj, Thanks for your feedback, sadly it doesn't work and the error is the same. I tried 2 fixes :

1st fix : appending -b to the upgrade command devtool upgrade -b 2.0 influxdb -d

DEBUG: Using basepath /home/theophile/Yocto-lab/build
DEBUG: Using standard bitbake path /home/theophile/Yocto-lab/poky/bitbake
NOTE: Starting bitbake server...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/build/workspace/lib/devtool...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/poky/meta-poky/lib/devtool...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/build/lib/devtool...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/poky/meta/lib/devtool...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/poky/meta-yocto-bsp/lib/devtool...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/meta-openembedded/meta-oe/lib/devtool...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/meta-openembedded/meta-python/lib/devtool...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/meta-openembedded/meta-networking/lib/devtool...
DEBUG: Loading plugins from /home/theophile/Yocto-lab/poky/scripts/lib/devtool...
DEBUG: Loading plugin runqemu
DEBUG: Loading plugin search
DEBUG: Loading plugin build_sdk
DEBUG: Loading plugin upgrade
DEBUG: Loading plugin package
DEBUG: Loading plugin build
DEBUG: Loading plugin deploy
DEBUG: Loading plugin standard
DEBUG: Loading plugin menuconfig
DEBUG: Loading plugin utilcmds
DEBUG: Loading plugin build_image
DEBUG: Loading plugin sdk
DEBUG: Loading plugin export
DEBUG: Loading plugin import
DEBUG: Reading workspace in /home/theophile/Yocto-lab/build/workspace
DEBUG: Found recipe {'srctree': '/home/theophile/Yocto-lab/build/workspace/sources/proxy', 'bbappend': '/home/theophile/Yocto-lab/build/workspace/appends/proxy_git.bbappend', 'recipefile': '/home/theophile/Yocto-lab/build/workspace/recipes/proxy/proxy_git.bb', 'srctreebase': '/home/theophile/Yocto-lab/build/workspace/sources/proxy'}
NOTE: Reconnecting to bitbake server...
NOTE: Retrying server connection (#1)...
Loading cache: 100% |####################################################################################| Time: 0:00:00
Loaded 3557 entries from dependency cache.
Parsing recipes: 100% |##################################################################################| Time: 0:00:00
Parsing of 2286 .bb files complete (2285 cached, 1 parsed). 3557 targets, 115 skipped, 0 masked, 0 errors.
INFO: Extracting current version source...
INFO: SRC_URI contains some conditional appends/prepends - will create branches to represent these
DEBUG: writing append file /home/theophile/Yocto-lab/build/workspace/appends/influxdb_1.7.10.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.50.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "qemuarm64"
DISTRO               = "poky"

DISTRO_VERSION       = "3.3.1"
TUNE_FEATURES        = "aarch64 armv8a crc cortexa57"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "HEAD:05a8aad57ce250b124db16705acec557819905ae"
meta-oe              = "master:3c1e72d62ccf2c2f94bf280a2500e23fdb01a57c"
workspace            = "<unknown>:<unknown>"
meta-python
meta-networking      = "master:3c1e72d62ccf2c2f94bf280a2500e23fdb01a57c"

Initialising tasks: 100% |###############################################################################| Time: 0:00:00
Sstate summary: Wanted 0 Local 0 Network 0 Missed 0 Current 20 (0% match, 100% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 93 tasks of which 90 didn't need to be rerun and all succeeded.
INFO: Adding local source files to srctree...
INFO: Extracting upgraded version source...
DEBUG: Running command /home/theophile/Yocto-lab/build/workspace/sources/influxdb> git fetch
DEBUG: Running command /home/theophile/Yocto-lab/build/workspace/sources/influxdb> git checkout 2a45f0c0375a7d5615835afa6f81a53444df9cea
ERROR: Execution of 'git checkout 2a45f0c0375a7d5615835afa6f81a53444df9cea' failed with exit code 128:
fatal: reference is not a tree: 2a45f0c0375a7d5615835afa6f81a53444df9cea

Fix 2 : editing recipe file devtool edit-recipe influxdb -> setting branch to 2.0

Same error as before

Any other hint ?