Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
From f70eb308c837f2c944e23bb680a501a605004d65 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Thu, 26 Jan 2017 16:36:20 +0200
|
||||
Subject: [PATCH] Corretly install tmpfiles.d configuration
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
etc/tmpfiles.d/CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/etc/tmpfiles.d/CMakeLists.txt b/etc/tmpfiles.d/CMakeLists.txt
|
||||
index f69c773e..3eb6d0e8 100644
|
||||
--- a/etc/tmpfiles.d/CMakeLists.txt
|
||||
+++ b/etc/tmpfiles.d/CMakeLists.txt
|
||||
@@ -1 +1 @@
|
||||
-INSTALL (FILES dnf.conf DESTINATION /usr/lib/tmpfiles.d/)
|
||||
+INSTALL (FILES dnf.conf DESTINATION ${SYSCONFDIR}/tmpfiles.d/)
|
||||
@@ -0,0 +1,26 @@
|
||||
From 3ca6d14fbc6419ff6239b4ba16f77da20fb31d03 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Thu, 26 Jan 2017 16:25:47 +0200
|
||||
Subject: [PATCH] Do not hardcode /etc and systemd unit directories
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
CMakeLists.txt | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 4aee99fb..9e2e9e9e 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -3,8 +3,8 @@ CMAKE_MINIMUM_REQUIRED (VERSION 2.4)
|
||||
|
||||
INCLUDE (${CMAKE_SOURCE_DIR}/VERSION.cmake)
|
||||
|
||||
-SET( SYSCONFDIR /etc)
|
||||
-SET( SYSTEMD_DIR /usr/lib/systemd/system)
|
||||
+SET( SYSCONFDIR ${CMAKE_INSTALL_SYSCONFDIR})
|
||||
+SET( SYSTEMD_DIR $ENV{systemd_system_unitdir})
|
||||
|
||||
IF (NOT PYTHON_DESIRED)
|
||||
FIND_PACKAGE (PythonInterp REQUIRED)
|
||||
@@ -0,0 +1,29 @@
|
||||
From 049e2832284ab883e185d9020c881518a68e6c38 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Tue, 28 Apr 2020 15:55:00 +0200
|
||||
Subject: [PATCH] dnf: write the log lock to root
|
||||
|
||||
Writing it to /var/log appears to be racing with installation
|
||||
of base-files, and if lock is created first, base-files
|
||||
will refuse to install (due to the target directory
|
||||
already existing, and base-files creating it as a symlink).
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
dnf/logging.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dnf/logging.py b/dnf/logging.py
|
||||
index ef0b25f3..94610af6 100644
|
||||
--- a/dnf/logging.py
|
||||
+++ b/dnf/logging.py
|
||||
@@ -118,7 +118,7 @@ class MultiprocessRotatingFileHandler(logging.handlers.RotatingFileHandler):
|
||||
def __init__(self, filename, mode='a', maxBytes=0, backupCount=0, encoding=None, delay=False):
|
||||
super(MultiprocessRotatingFileHandler, self).__init__(
|
||||
filename, mode, maxBytes, backupCount, encoding, delay)
|
||||
- self.rotate_lock = dnf.lock.build_log_lock("/var/log/", True)
|
||||
+ self.rotate_lock = dnf.lock.build_log_lock("/", True)
|
||||
|
||||
def emit(self, record):
|
||||
while True:
|
||||
@@ -0,0 +1,62 @@
|
||||
From 3881757eabfde2ff54400ab127b106ab085d83f0 Mon Sep 17 00:00:00 2001
|
||||
From: Changqing Li <changqing.li@windriver.com>
|
||||
Date: Wed, 13 Mar 2024 11:22:05 +0800
|
||||
Subject: [PATCH] lock.py: fix Exception handling
|
||||
|
||||
Before, when logdir is not writable, _try_lock will raise an Exception
|
||||
like "Permission denied: '/var/log/log_lock.pid'", and in this case,
|
||||
_unlock_thread will not be called and the variable count will not be
|
||||
handled, it maybe cause log_lock.pid not be deleted in case like [1].
|
||||
|
||||
For [1], it is an cross compile case, when dnf install some packages to
|
||||
rootfs, seems like some threads don't do chroot like work, some threads
|
||||
do chroot like work. so for the threads don't do chroot, "Permission denied"
|
||||
Exception happend, for the threads that do chroot, log_lock.pid will be
|
||||
created under installroot/var/log/log_lock.pid, since variable count not
|
||||
handled correct before, log_lock.pid may not be deleted correctly.
|
||||
|
||||
So fixed like this, if _try_lock raise Exception, _unlock_thread first,
|
||||
then raise the Exception.
|
||||
|
||||
[1] https://github.com/rpm-software-management/dnf/issues/1963
|
||||
|
||||
Upstream-Status: Submitted [ https://github.com/rpm-software-management/dnf/pull/2065 ]
|
||||
|
||||
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
||||
---
|
||||
dnf/lock.py | 12 ++++++++++--
|
||||
1 file changed, 10 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/dnf/lock.py b/dnf/lock.py
|
||||
index 6817aac9..5718062a 100644
|
||||
--- a/dnf/lock.py
|
||||
+++ b/dnf/lock.py
|
||||
@@ -128,7 +128,11 @@ class ProcessLock(object):
|
||||
self._lock_thread()
|
||||
prev_pid = -1
|
||||
my_pid = os.getpid()
|
||||
- pid = self._try_lock(my_pid)
|
||||
+ try:
|
||||
+ pid = self._try_lock(my_pid)
|
||||
+ except Exception:
|
||||
+ self._unlock_thread()
|
||||
+ raise
|
||||
while pid != my_pid:
|
||||
if pid != -1:
|
||||
if not self.blocking:
|
||||
@@ -140,7 +144,11 @@ class ProcessLock(object):
|
||||
logger.info(msg)
|
||||
prev_pid = pid
|
||||
time.sleep(1)
|
||||
- pid = self._try_lock(my_pid)
|
||||
+ try:
|
||||
+ pid = self._try_lock(my_pid)
|
||||
+ except Exception:
|
||||
+ self._unlock_thread()
|
||||
+ raise
|
||||
|
||||
def __exit__(self, *exc_args):
|
||||
if self.count == 1:
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
From fa32c7dcabaa3c00d3620a3266e49629365c0cbe Mon Sep 17 00:00:00 2001
|
||||
From: Jeremy Puhlman <jpuhlman@mvista.com>
|
||||
Date: Wed, 11 Mar 2020 22:10:02 +0000
|
||||
Subject: [PATCH] set python path for completion_helper
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific]
|
||||
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
|
||||
---
|
||||
dnf/cli/completion_helper.py.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dnf/cli/completion_helper.py.in b/dnf/cli/completion_helper.py.in
|
||||
index 0da0f2a2..9330d15b 100644
|
||||
--- a/dnf/cli/completion_helper.py.in
|
||||
+++ b/dnf/cli/completion_helper.py.in
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!@PYTHON_EXECUTABLE@
|
||||
+#!/usr/bin/env python3
|
||||
#
|
||||
# This file is part of dnf.
|
||||
#
|
||||
@@ -0,0 +1,28 @@
|
||||
From c6d03b51e2098fc681e6811790bd5dc6597091eb Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Wed, 11 Jan 2017 15:10:13 +0200
|
||||
Subject: [PATCH] Do not prepend installroot to logdir.
|
||||
|
||||
This would otherwise write the logs into rootfs/var/log
|
||||
(whereas we want them in $T),
|
||||
and will break installation of base-files rpm.
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
dnf/cli/cli.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dnf/cli/cli.py b/dnf/cli/cli.py
|
||||
index 1824bd00..4dcb1c1c 100644
|
||||
--- a/dnf/cli/cli.py
|
||||
+++ b/dnf/cli/cli.py
|
||||
@@ -944,7 +944,7 @@ class Cli(object):
|
||||
logger.warning(_("Unable to detect release version (use '--releasever' to specify "
|
||||
"release version)"))
|
||||
|
||||
- for opt in ('cachedir', 'logdir', 'persistdir'):
|
||||
+ for opt in ('cachedir', 'persistdir'):
|
||||
conf.prepend_installroot(opt)
|
||||
|
||||
self.base._logging._setup_from_dnf_conf(conf)
|
||||
@@ -0,0 +1,24 @@
|
||||
From d5b154ea69afdcd862299a0b7f255f6ece3686c6 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Fri, 30 Dec 2016 18:29:07 +0200
|
||||
Subject: [PATCH] Do not set PYTHON_INSTALL_DIR by running python
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 9e2e9e9e..2056089d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -19,7 +19,7 @@ ELSE ()
|
||||
MESSAGE (FATAL_ERROR "Invalid PYTHON_DESIRED value: " ${PYTHON_DESIRED})
|
||||
ENDIF()
|
||||
|
||||
-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from sysconfig import get_path; stdout.write(get_path('purelib'))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
|
||||
+#EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from sysconfig import get_path; stdout.write(get_path('purelib'))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
|
||||
MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}")
|
||||
|
||||
ADD_SUBDIRECTORY (dnf)
|
||||
@@ -0,0 +1,34 @@
|
||||
From d3556767b84f3687743fdad0a88af0739d736ea9 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Fri, 30 Dec 2016 18:29:37 +0200
|
||||
Subject: [PATCH] Run python scripts using env
|
||||
|
||||
Otherwise the build tools hardcode the python path into them.
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
bin/dnf-automatic.in | 2 +-
|
||||
bin/dnf.in | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/bin/dnf-automatic.in b/bin/dnf-automatic.in
|
||||
index 17e35a05..28827e38 100755
|
||||
--- a/bin/dnf-automatic.in
|
||||
+++ b/bin/dnf-automatic.in
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!@PYTHON_EXECUTABLE@
|
||||
+#!/usr/bin/env python3
|
||||
# dnf-automatic executable.
|
||||
#
|
||||
# Copyright (C) 2014-2016 Red Hat, Inc.
|
||||
diff --git a/bin/dnf.in b/bin/dnf.in
|
||||
index 55ceb3f2..e38973c7 100755
|
||||
--- a/bin/dnf.in
|
||||
+++ b/bin/dnf.in
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!@PYTHON_EXECUTABLE@
|
||||
+#!/usr/bin/env python3
|
||||
# The dnf executable script.
|
||||
#
|
||||
# Copyright (C) 2012-2016 Red Hat, Inc.
|
||||
96
sources/poky/meta/recipes-devtools/dnf/dnf_4.19.0.bb
Normal file
96
sources/poky/meta/recipes-devtools/dnf/dnf_4.19.0.bb
Normal file
@@ -0,0 +1,96 @@
|
||||
SUMMARY = "Package manager forked from Yum, using libsolv as a dependency resolver"
|
||||
DESCRIPTION = "Software package manager that installs, updates, and removes \
|
||||
packages on RPM-based Linux distributions. It automatically computes \
|
||||
dependencies and determines the actions required to install packages."
|
||||
HOMEPAGE = "https://github.com/rpm-software-management/dnf"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
||||
file://PACKAGE-LICENSING;md5=4a0548e303dbc77f067335b4d688e745 \
|
||||
"
|
||||
|
||||
SRC_URI = "git://github.com/rpm-software-management/dnf.git;branch=master;protocol=https \
|
||||
file://0001-Corretly-install-tmpfiles.d-configuration.patch \
|
||||
file://0001-Do-not-hardcode-etc-and-systemd-unit-directories.patch \
|
||||
file://0005-Do-not-prepend-installroot-to-logdir.patch \
|
||||
file://0029-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch \
|
||||
file://0030-Run-python-scripts-using-env.patch \
|
||||
file://0001-set-python-path-for-completion_helper.patch \
|
||||
file://0001-lock.py-fix-Exception-handling.patch \
|
||||
"
|
||||
|
||||
SRC_URI:append:class-native = " file://0001-dnf-write-the-log-lock-to-root.patch"
|
||||
|
||||
SRCREV = "566a61f9d8a2830ac6dcc3a94c59224cef1c3d03"
|
||||
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake gettext bash-completion setuptools3-base systemd
|
||||
|
||||
DEPENDS += "libdnf librepo libcomps"
|
||||
|
||||
# manpages generation requires http://www.sphinx-doc.org/
|
||||
EXTRA_OECMAKE = " -DWITH_MAN=0 -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DPYTHON_DESIRED=3"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-core \
|
||||
python3-codecs \
|
||||
python3-netclient \
|
||||
python3-email \
|
||||
python3-threading \
|
||||
python3-logging \
|
||||
python3-fcntl \
|
||||
librepo \
|
||||
python3-shell \
|
||||
libcomps \
|
||||
libdnf \
|
||||
python3-sqlite3 \
|
||||
python3-compression \
|
||||
python3-rpm \
|
||||
python3-json \
|
||||
python3-curses \
|
||||
python3-misc \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}:class-native = ""
|
||||
|
||||
RRECOMMENDS:${PN}:class-target += "gnupg"
|
||||
|
||||
# Create a symlink called 'dnf' as 'make install' does not do it, but
|
||||
# .spec file in dnf source tree does (and then Fedora and dnf documentation
|
||||
# says that dnf binary is plain 'dnf').
|
||||
do_install:append() {
|
||||
ln -rs ${D}/${bindir}/dnf-3 ${D}/${bindir}/dnf
|
||||
ln -rs ${D}/${bindir}/dnf-automatic-3 ${D}/${bindir}/dnf-automatic
|
||||
}
|
||||
|
||||
# Direct dnf-native to read rpm configuration from our sysroot, not the one it was compiled in
|
||||
do_install:append:class-native() {
|
||||
create_wrapper ${D}/${bindir}/dnf \
|
||||
RPM_CONFIGDIR=${STAGING_LIBDIR_NATIVE}/rpm \
|
||||
RPM_NO_CHROOT_FOR_SCRIPTS=1
|
||||
}
|
||||
|
||||
do_install:append:class-nativesdk() {
|
||||
create_wrapper ${D}/${bindir}/dnf \
|
||||
RPM_CONFIGDIR=${SDKPATHNATIVE}${libdir_nativesdk}/rpm \
|
||||
RPM_NO_CHROOT_FOR_SCRIPTS=1
|
||||
}
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "dnf-makecache.service dnf-makecache.timer \
|
||||
dnf-automatic.service dnf-automatic.timer \
|
||||
dnf-automatic-download.service dnf-automatic-download.timer \
|
||||
dnf-automatic-install.service dnf-automatic-install.timer \
|
||||
dnf-automatic-notifyonly.service dnf-automatic-notifyonly.timer \
|
||||
"
|
||||
SYSTEMD_AUTO_ENABLE ?= "disable"
|
||||
|
||||
SKIP_RECIPE[dnf] ?= "${@bb.utils.contains('PACKAGE_CLASSES', 'package_rpm', '', 'does not build without package_rpm in PACKAGE_CLASSES due disabled rpm support in libsolv', d)}"
|
||||
|
||||
# Packages for testing purposes
|
||||
PACKAGES += "${PN}-test-main ${PN}-test-dep"
|
||||
ALLOW_EMPTY:${PN}-test-main = "1"
|
||||
ALLOW_EMPTY:${PN}-test-dep = "1"
|
||||
RRECOMMENDS:${PN}-test-main = "${PN}-test-dep"
|
||||
Reference in New Issue
Block a user