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

Can't ugprade Influxdb recipe to 2.0.7 #390

Open
tbornon opened this issue Jun 30, 2021 · 2 comments
Open

Can't ugprade Influxdb recipe to 2.0.7 #390

tbornon opened this issue Jun 30, 2021 · 2 comments

Comments

@tbornon
Copy link

tbornon commented Jun 30, 2021

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
Copy link
Contributor

kraj commented Jul 2, 2021

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
Copy link
Author

tbornon commented Jul 5, 2021

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 ?

halstead pushed a commit that referenced this issue Jan 8, 2023
It fixes CVE-2022-45062 in xfce4-settings 4.16.5.

CVE: CVE-2022-45062

$ git log --oneline xfce4-settings-4.16.2..xfce4-settings-4.16.5 |  grep -v "Update translation"

83ea11cf Updates for release
f1cb5bda mime-settings: Properly quote command parameters
f7707d8b Revert "Escape characters which do not belong into an URI/URL
(Issue #390)"
b532324f Back to development
b9729c85 Updates for release
55e3c5fb Escape characters which do not belong into an URI/URL (Issue #390)
341443f8 Prefer full command when basic command is env (Fixes #358)
8d4106b3 Back to development
024399b1 Updates for release
af601e32 build: Fix intltool lock file problem during make distcheck
0875cfba xfsettingsd: Fix recursive lock in libX11 (Fixes #369)
20d866dc Back to developmen

Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
[  alt summary

4.16.5 (2022-11-12)
======
- mime-settings: Properly quote command parameters
- Revert "Escape characters which do not belong into an URI/URL (Issue

4.16.4 (2022-11-07)
======
- Escape characters which do not belong into an URI/URL (Issue #390)
- Prefer full command when basic command is env (Fixes #358)
- Translation Updates:
  Japanese, Portuguese, Russian

4.16.3
 ======
- xfsettingsd: Fix recursive lock in libX11 (Fixes #369)
- build: Fix intltool lock file problem during make distcheck
- Translation Updates:
  Armenian (Armenia), Belarusian, Catalan, English (Canada), English
  (United Kingdom), Estonian, Galician, Greek, Indonesian, Kazakh,
  Korean, Lithuanian, Malay, Occitan (post 1500), Polish, Romanian,
  Swedish
]
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
jpuhlman pushed a commit to MontaVista-OpenSourceTechnology/meta-openembedded that referenced this issue Jan 20, 2023
Source: meta-openembedded
MR: 123754
Type: Integration
Disposition: Merged from meta-openembedded
ChangeID: 8568104
Description:

It fixes CVE-2022-45062 in xfce4-settings 4.16.5.

CVE: CVE-2022-45062

$ git log --oneline xfce4-settings-4.16.2..xfce4-settings-4.16.5 |  grep -v "Update translation"

83ea11cf Updates for release
f1cb5bda mime-settings: Properly quote command parameters
f7707d8b Revert "Escape characters which do not belong into an URI/URL
(Issue openembedded#390)"
b532324f Back to development
b9729c85 Updates for release
55e3c5fb Escape characters which do not belong into an URI/URL (Issue openembedded#390)
341443f8 Prefer full command when basic command is env (Fixes openembedded#358)
8d4106b3 Back to development
024399b1 Updates for release
af601e32 build: Fix intltool lock file problem during make distcheck
0875cfba xfsettingsd: Fix recursive lock in libX11 (Fixes openembedded#369)
20d866dc Back to developmen

Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
[  alt summary

4.16.5 (2022-11-12)
======
- mime-settings: Properly quote command parameters
- Revert "Escape characters which do not belong into an URI/URL (Issue

4.16.4 (2022-11-07)
======
- Escape characters which do not belong into an URI/URL (Issue openembedded#390)
- Prefer full command when basic command is env (Fixes openembedded#358)
- Translation Updates:
  Japanese, Portuguese, Russian

4.16.3
 ======
- xfsettingsd: Fix recursive lock in libX11 (Fixes openembedded#369)
- build: Fix intltool lock file problem during make distcheck
- Translation Updates:
  Armenian (Armenia), Belarusian, Catalan, English (Canada), English
  (United Kingdom), Estonian, Galician, Greek, Indonesian, Kazakh,
  Korean, Lithuanian, Malay, Occitan (post 1500), Polish, Romanian,
  Swedish
]
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants