qtbase: fix umask for do_generate_qt_environment_file
PATCH 1/2 qtbase: fix umask for do_generate_qt_environment_file
The custom task "do_generate_qt_environment_file" generates the directory "environment-setup.d" with permission 775 instead of 755. When other recipes populate the same directory with different permissions, a package manager like RPM will report this as an error.
The solution is to either set the installation permissions explicitly with "install -d [-m 755]", or specify the umask for the custom task.
This commit uses the latter approach and fixes errors like the following when trying to generate an SDK:
$ bitbake <image-with-qt5> -c populate_sdk
[...]
Error: Transaction check error:
file /opt/poky/2.4.2/sysroots/x86_64-pokysdk-linux/environment-setup.d
conflicts between attempted installs of
nativesdk-cmake-3.8.2-r0.x86_64_nativesdk and
nativesdk-qtbase-tools-5.9.4+git0+0d9208cecb-r0.x86_64_nativesdkA detailed discussion about this problem can also be found here [1].
[1] https://stackoverflow.com/a/49003464
--- recipes-qt/qt5/nativesdk-qtbase_git.bb | 1 + 1 file changed, 1 insertion(+)
recipes-qt/qt5/nativesdk-qtbase_git.bb +1 -0
@@ -209,6 +209,7 @@ fakeroot do_generate_qt_environment_file() { sed -i -e 's:${SDKPATHNATIVE}:$OECORE_NATIVE_SYSROOT:g' $script } +do_generate_qt_environment_file[umask] = "022" addtask generate_qt_environment_file after do_install before do_package SRCREV = "6c6ace9d23f90845fd424e474d38fe30f070775e"
Signature · 1 line
2.14.1
PATCH 2/2 .gitattributes: mark *.inc as Bitbake files
As the file extension *.inc is quite ambiguous, Github's linguist [1] tends to classify such files not as Bitbake include files, but something entirely different.
This commit overrides the default behavior of linguist to classify these files correctly.
[1] https://github.com/github/linguist
--- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes
.gitattributes new file +2 -0
@@ -0,0 +1,2 @@ +# linguist overrides +recipes-*/**/*.inc linguist-language=BitBake
Signature · 1 line
2.14.1