Date   

Re: NO INTERNET ENVIRONMENT - USING PREMIRROR fails -> gstreamer1.0_1.12.2.bb:do_unpack failed due to a fetch issue

Martin Jansa
 

Add "common" git repo to SRC_URI and set SRCREV + SRCREV_FORMAT for it, instead of using git submodules to fetch it.


On Thu, Jul 23, 2020 at 2:40 PM <baranarman@...> wrote:
Hi,

I have a problem. I am trying to set up development environment that runs offline. For this purpose i set up a repository folder by the following local.conf file:

"
MACHINE ??= 'imx6dlsabresd'
DISTRO ?= 'fsl-imx-fb'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks dbg-pkgs dev-pkgs package-management ssh-server-dropbear ssh-server-openssh staticdev-pkgs "
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"

IMAGE_INSTALL_append = " gstreamer imx-test"

DL_DIR ?= "${BSPDIR}/downloads/"
SSTATE_DIR ?= "${BSPDIR}/sstate-cache/"
ACCEPT_FSL_EULA = "1"


# ADDED
BB_NO_NETWORK = "1"

INHERIT += "own-mirrors"
BB_GENERATE_MIRROR_TARBALLS = "1"

SOURCE_MIRROR_URL = "file://${BSPDIR}/repository"

PREMIRRORS_prepend = "\
git://.*/.* file://${BSPDIR}/repository/ \n \
svn://.*/.* file://${BSPDIR}/repository/ \n \
cvs://.*/.* file://${BSPDIR}/repository/ \n \
ftp://.*/.* file://${BSPDIR}/repository/ \n \
http://.*/.* file://${BSPDIR}/repository/ \n \
https://.*/.* file://${BSPDIR}/repository/ \n "
"

initially i run the conf above with "BB_NO_NETWORK = "0" to generate the tarballs in downloads dir. 
Run the command: bitbake fsl-image-multimedia-full

After initial run I copied the content of the downloads folder into repository folder. removed build/tmp folder, downloads folder and sstate-cache folder to be on the clear page.
Then I set [BB_NO_NETWORK = "1" ] and execute "tar -czvf ... " to compress all the imx-yocto-bsp folder.

Then I port the imx-tar.gz file to a crops environment on Windows.

The set environment is crops/poky and no internet [unplugged ethernet].

then I run the command bitbake fsl-image-multimedia-full again.
I expect that the build will be successful as the repository shall be enough.
But I get the following error:

"
ERROR: gstreamer1.0-1.12.2-r0 do_unpack: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="2184"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export all_proxy="http://ikitis:Oe6aoaeaf@....1.51:8080"; export ALL_PROXY="http://ikitis:Oe6aoaeaf@....1.51:8080"; export ftp_proxy="http://ikitis:Oe6aoaeaf@....1.51:8080"; export FTP_PROXY="http://10.1.1.51:8080/"; export https_proxy="http://ikitis:Oe6aoaeaf@....1.51:8080"; export HTTPS_PROXY="http://10.1.1.51:8080/"; export http_proxy="http://ikitis:Oe6aoaeaf@....1.51:8080"; export HTTP_PROXY="http://10.1.1.51:8080/"; export PATH="/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/recipe-sysroot-native/usr/bin/python3-native:/home/aselsan/imx-yocto-bsp/sources/poky/scripts:/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/recipe-sysroot/usr/bin/crossscripts:/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/recipe-sysroot-native/usr/sbin:/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/recipe-sysroot-native/usr/bin:/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/recipe-sysroot-native/sbin:/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/recipe-sysroot-native/bin:/home/aselsan/imx-yocto-bsp/sources/poky/bitbake/bin:/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/hosttools"; export HOME="/home/aselsan"; git -c core.fsyncobjectfiles=0 submodule update --init --recursive failed with exit code 1, output:
Submodule 'common' (https://anongit.freedesktop.org/git/gstreamer/common.git) registered for path 'common'
Cloning into '/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/git/common'...
fatal: unable to access 'https://anongit.freedesktop.org/git/gstreamer/common.git/': Received HTTP code 407 from proxy after CONNECT
fatal: clone of 'https://anongit.freedesktop.org/git/gstreamer/common.git' into submodule path '/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/git/common' failed
Failed to clone 'common'. Retry scheduled
Cloning into '/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/git/common'...
fatal: unable to access 'https://anongit.freedesktop.org/git/gstreamer/common.git/': Received HTTP code 407 from proxy after CONNECT
fatal: clone of 'https://anongit.freedesktop.org/git/gstreamer/common.git' into submodule path '/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/git/common' failed
Failed to clone 'common' a second time, aborting

ERROR: gstreamer1.0-1.12.2-r0 do_unpack: Function failed: base_do_unpack
ERROR: Logfile of failure stored in: /home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/temp/log.do_unpack.54012
ERROR: Task (/home/aselsan/imx-yocto-bsp/sources/poky/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.12.2.bb:do_unpack) failed with exit code '1'
"

I checked out but could not find a reason

I would highly appreciate if you be kind enough to give support on the issue.


Best Regards
B. A.


Re: Linker error undefined reference to `_rtld_global_ro'

Robert Varga
 

Hi Khem,

can you try setting GLIBCPIE = "" in local.conf and see if that helps
I set GLIBCPIE = "" in local.conf but the result is the same. The linker issue "undefined reference to `_rtld_global_ro'" still occurs.
Do you have any other ideas what I could do?

--
Rob


NO INTERNET ENVIRONMENT - USING PREMIRROR fails -> gstreamer1.0_1.12.2.bb:do_unpack failed due to a fetch issue

baranarman@...
 

Hi,

I have a problem. I am trying to set up development environment that runs offline. For this purpose i set up a repository folder by the following local.conf file:

"
MACHINE ??= 'imx6dlsabresd'
DISTRO ?= 'fsl-imx-fb'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks dbg-pkgs dev-pkgs package-management ssh-server-dropbear ssh-server-openssh staticdev-pkgs "
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"

IMAGE_INSTALL_append = " gstreamer imx-test"

DL_DIR ?= "${BSPDIR}/downloads/"
SSTATE_DIR ?= "${BSPDIR}/sstate-cache/"
ACCEPT_FSL_EULA = "1"


# ADDED
BB_NO_NETWORK = "1"

INHERIT += "own-mirrors"
BB_GENERATE_MIRROR_TARBALLS = "1"

SOURCE_MIRROR_URL = "file://${BSPDIR}/repository"

PREMIRRORS_prepend = "\
git://.*/.* file://${BSPDIR}/repository/ \n \
svn://.*/.* file://${BSPDIR}/repository/ \n \
cvs://.*/.* file://${BSPDIR}/repository/ \n \
ftp://.*/.* file://${BSPDIR}/repository/ \n \
http://.*/.* file://${BSPDIR}/repository/ \n \
https://.*/.* file://${BSPDIR}/repository/ \n "
"

initially i run the conf above with "BB_NO_NETWORK = "0" to generate the tarballs in downloads dir. 
Run the command: bitbake fsl-image-multimedia-full

After initial run I copied the content of the downloads folder into repository folder. removed build/tmp folder, downloads folder and sstate-cache folder to be on the clear page.
Then I set [BB_NO_NETWORK = "1" ] and execute "tar -czvf ... " to compress all the imx-yocto-bsp folder.

Then I port the imx-tar.gz file to a crops environment on Windows.

The set environment is crops/poky and no internet [unplugged ethernet].

then I run the command bitbake fsl-image-multimedia-full again.
I expect that the build will be successful as the repository shall be enough.
But I get the following error:

"
ERROR: gstreamer1.0-1.12.2-r0 do_unpack: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="2184"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export all_proxy="http://ikitis:Oe6aoaeaf@....1.51:8080"; export ALL_PROXY="http://ikitis:Oe6aoaeaf@....1.51:8080"; export ftp_proxy="http://ikitis:Oe6aoaeaf@....1.51:8080"; export FTP_PROXY="http://10.1.1.51:8080/"; export https_proxy="http://ikitis:Oe6aoaeaf@....1.51:8080"; export HTTPS_PROXY="http://10.1.1.51:8080/"; export http_proxy="http://ikitis:Oe6aoaeaf@....1.51:8080"; export HTTP_PROXY="http://10.1.1.51:8080/"; export PATH="/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/recipe-sysroot-native/usr/bin/python3-native:/home/aselsan/imx-yocto-bsp/sources/poky/scripts:/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/recipe-sysroot/usr/bin/crossscripts:/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/recipe-sysroot-native/usr/sbin:/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/recipe-sysroot-native/usr/bin:/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/recipe-sysroot-native/sbin:/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/recipe-sysroot-native/bin:/home/aselsan/imx-yocto-bsp/sources/poky/bitbake/bin:/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/hosttools"; export HOME="/home/aselsan"; git -c core.fsyncobjectfiles=0 submodule update --init --recursive failed with exit code 1, output:
Submodule 'common' (https://anongit.freedesktop.org/git/gstreamer/common.git) registered for path 'common'
Cloning into '/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/git/common'...
fatal: unable to access 'https://anongit.freedesktop.org/git/gstreamer/common.git/': Received HTTP code 407 from proxy after CONNECT
fatal: clone of 'https://anongit.freedesktop.org/git/gstreamer/common.git' into submodule path '/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/git/common' failed
Failed to clone 'common'. Retry scheduled
Cloning into '/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/git/common'...
fatal: unable to access 'https://anongit.freedesktop.org/git/gstreamer/common.git/': Received HTTP code 407 from proxy after CONNECT
fatal: clone of 'https://anongit.freedesktop.org/git/gstreamer/common.git' into submodule path '/home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/git/common' failed
Failed to clone 'common' a second time, aborting

ERROR: gstreamer1.0-1.12.2-r0 do_unpack: Function failed: base_do_unpack
ERROR: Logfile of failure stored in: /home/aselsan/imx-yocto-bsp/build-image-minimal/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/gstreamer1.0/1.12.2-r0/temp/log.do_unpack.54012
ERROR: Task (/home/aselsan/imx-yocto-bsp/sources/poky/meta/recipes-multimedia/gstreamer/gstreamer1.0_1.12.2.bb:do_unpack) failed with exit code '1'
"

I checked out but could not find a reason

I would highly appreciate if you be kind enough to give support on the issue.


Best Regards
B. A.


Yocto Dunfell: package.class --> dwarfsrcfiles

Jan Hannig
 

Hello,

thanks for the reply and the useful hints concerning our questions!

After a debug session, it came out, that the *.a archive doesn't contain only *.o files, but also one *.c file.
That was missed during the first analysis.
Interestingly enough, the error came out only with the Dunfell Upgrade.
Deleting the *.c file in the archive corrected the error message.

Jan Hannig
Reasearch and Development
jhannig@phoenixcontact.com
www.phoenixcontact.com



.......................................................................................
PHOENIX CONTACT Cyber Security GmbH
Richard-Willstätter-Straße 6
D-12489 Berlin

Register Court: AG Charlottenburg, HR B 202908
Geschäftsführer/General Manager: Kilian Golm


Re: Yocto support

Khem Raj
 

On 7/21/20 7:10 PM, JH wrote:
Hi,

Does Flextronics https://flex.com support Yocto or not?
perhaps best is to ask flextronics support team

Thank you.

Kind regards.




Re: RFC: Devtool support to read BB_ENV_EXTRAWHITE variables and parse the env variables same as bitbake

Paul Eggleton
 

Hi Chandana,

On Thursday, 23 July 2020 11:29:24 NZST Chandana kalluri wrote:
I have a use case where the user passes path to devtool modify using TOPDIR.
Ex. devtool modify linux-xlnx -n ${TOPDIR}/linux-xlnx

Since devtool doesn't evaluate TOPDIR as bitbake variable, during expansion
it expands it as devtool modify linux-xlnx -n /linux-xlnx
Assuming you are quoting the command verbatim, the issue here is that the
shell is evaluating TOPDIR, so devtool doesn't even get to see the reference.
Granted, even if you use single quotes to prevent the shell expansion, devtool
does not expand the variable reference; it could be made to fairly easily
though.

Can we add support to devtool that reads BB_ENV_EXTRAWHITE variable and
parse the env variables same as bitbake ?
I can see how this might be related but it doesn't seem necessary for the
expansion to work - it would only be needed if you wanted to pass in TOPDIR
externally, but that would have other implications as well. Is that needed?

Cheers
Paul


RFC: Devtool support to read BB_ENV_EXTRAWHITE variables and parse the env variables same as bitbake

Chandana kalluri
 

Hello,

I have a use case where the user passes path to devtool modify using TOPDIR.
Ex. devtool modify linux-xlnx -n ${TOPDIR}/linux-xlnx

Since devtool doesn't evaluate TOPDIR as bitbake variable, during expansion it expands it as
devtool modify linux-xlnx -n /linux-xlnx

Can we add support to devtool that reads BB_ENV_EXTRAWHITE variable and parse the env variables same as bitbake ?

Thanks,
Chandana


Re: Building of warrior branch fails when building with Ubuntu 20.04 LTS #linux #qemu #yocto

Bernd
 

Hello Martin and Josef,
I will try to include the patch in a append-recipe...
Thanks a lot for your help,
Bernd


[meta-security][PATCH] ibmswtpm2: upgrade 1563 -> 1628

Yi Zhao
 

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
.../recipes-tpm2/ibmswtpm2/ibmswtpm2_1563.bb | 27 -------------------
.../recipes-tpm2/ibmswtpm2/ibmswtpm2_1628.bb | 26 ++++++++++++++++++
2 files changed, 26 insertions(+), 27 deletions(-)
delete mode 100644 meta-tpm/recipes-tpm2/ibmswtpm2/ibmswtpm2_1563.bb
create mode 100644 meta-tpm/recipes-tpm2/ibmswtpm2/ibmswtpm2_1628.bb

diff --git a/meta-tpm/recipes-tpm2/ibmswtpm2/ibmswtpm2_1563.bb b/meta-tpm/recipes-tpm2/ibmswtpm2/ibmswtpm2_1563.bb
deleted file mode 100644
index 8054226..0000000
--- a/meta-tpm/recipes-tpm2/ibmswtpm2/ibmswtpm2_1563.bb
+++ /dev/null
@@ -1,27 +0,0 @@
-SUMMARY = "IBM's Software TPM 2.0"
-LICENSE = "BSD"
-SECTION = "securty/tpm"
-LIC_FILES_CHKSUM = "file://../LICENSE;md5=1e023f61454ac828b4aa1bc4293f7d5f"
-
-DEPENDS = "openssl"
-
-SRC_URI = "https://sourceforge.net/projects/ibmswtpm2/files/ibmtpm${PV}.tar.gz \
- file://remove_optimization.patch \
- "
-SRC_URI[md5sum] = "13013612b3a13dc935fefe1a5684179c"
-SRC_URI[sha256sum] = "fc3a17f8315c1f47670764f2384943afc0d3ba1e9a0422dacb08d455733bd1e9"
-SRC_URI[sha1sum] = "a2a5335024a2edc1739f08b99e716fa355be627d"
-SRC_URI[sha384sum] = "b1f278acabe2198aa79c0fe8aa0182733fe701336cbf54a88058be0b574cab768f59f9315882d0e689e634678d05b79f"
-SRC_URI[sha512sum] = "ff0b9e5f0d0070eb572b23641f7a0e70a8bc65cbf4b59dca1778be3bb014124011221a492147d4c492584e87af23e2f842ca6307641b3919f67a3f27f09312c0"
-
-S = "${WORKDIR}/src"
-
-do_compile () {
- make CC='${CC}'
-}
-
-do_install () {
- install -d ${D}/${bindir}
- install -m 0755 tpm_server ${D}/${bindir}
-}
-
diff --git a/meta-tpm/recipes-tpm2/ibmswtpm2/ibmswtpm2_1628.bb b/meta-tpm/recipes-tpm2/ibmswtpm2/ibmswtpm2_1628.bb
new file mode 100644
index 0000000..3373a30
--- /dev/null
+++ b/meta-tpm/recipes-tpm2/ibmswtpm2/ibmswtpm2_1628.bb
@@ -0,0 +1,26 @@
+SUMMARY = "IBM's Software TPM 2.0"
+LICENSE = "BSD"
+SECTION = "securty/tpm"
+LIC_FILES_CHKSUM = "file://../LICENSE;md5=1e023f61454ac828b4aa1bc4293f7d5f"
+
+DEPENDS = "openssl"
+
+SRC_URI = "https://sourceforge.net/projects/ibmswtpm2/files/ibmtpm${PV}.tar.gz \
+ file://remove_optimization.patch \
+ "
+SRC_URI[md5sum] = "bfd3eca2411915f24de628b9ec36f259"
+SRC_URI[sha256sum] = "a8e874e7a1ae13a1290d7679d846281f72d0eb6a5e4cfbafca5297dbf4e29ea3"
+SRC_URI[sha1sum] = "7c8241a4e97a801eace9f0eea8cdda7c58114f7f"
+SRC_URI[sha384sum] = "eec25cc8ba0e3cb27d41ba4fa4c71d8158699953ccb61bb6d440236dcbd8f52b6954eaae9d640a713186e0b99311fd91"
+SRC_URI[sha512sum] = "ab47caa4406ba57c0afc6fadae304fc9ef5e3e125be0f2fb1955a419cf93cd5e9176e103f0b566825abc16cca00b795f98d2b407f0a2bf7b141ef4b025d907d0"
+
+S = "${WORKDIR}/src"
+
+do_compile () {
+ make CC='${CC}'
+}
+
+do_install () {
+ install -d ${D}/${bindir}
+ install -m 0755 tpm_server ${D}/${bindir}
+}
--
2.17.1


Yocto support

JH
 

Hi,

Does Flextronics https://flex.com support Yocto or not?

Thank you.

Kind regards.

--
"A man can fail many times, but he isn't a failure until he begins to
blame somebody else."
-- John Burroughs


How to enable network connection of CUPS ? #cups #yocto

Soi, Sheng Leong
 

Hi,

The CUPS in Yocto image has its network connection to be closed by checking
through "curl -I http://localhost:631"; mentioning connection status is close,
which cause the printer unable to be shared.

Is there any method to enable CUPS network connection so that the printer can
be shared?

Thanks
Sheng Leong


Re: Linker error undefined reference to `_rtld_global_ro'

Khem Raj
 

On 7/21/20 8:07 AM, Robert Varga wrote:
Hi Khem,
Do you have any ideas, whether the passed compiler parameters ("-pie" or "-fpie") are the origin of this linker issues?
Does anyone know if glibc is compiled with "--enable-static-pie" if the passed compiler parameters include those "-pie" or "-fpie"? Or are they unrelated?
can you try setting GLIBCPIE = "" in local.conf and see if that helps

Thanks a lot for your support.
--
Rob


[meta-mingw][PATCH] gdb-cross-canadian: Stop statically linking

Joshua Watt
 

gdb was configured to statically link, presumably so it could find the
static libexpat library. Since libexpat has been updated, it no longer
builds a static library, so remove the flag to make GDB look for one.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
recipes-devtools/gdb/gdb-cross-canadian_%.bbappend | 1 -
1 file changed, 1 deletion(-)

diff --git a/recipes-devtools/gdb/gdb-cross-canadian_%.bbappend b/recipes-devtools/gdb/gdb-cross-canadian_%.bbappend
index 067b614..c33a9ce 100644
--- a/recipes-devtools/gdb/gdb-cross-canadian_%.bbappend
+++ b/recipes-devtools/gdb/gdb-cross-canadian_%.bbappend
@@ -1,4 +1,3 @@
-LDFLAGS_append_sdkmingw32 = " -Wl,-static"
EXEEXT_sdkmingw32 = ".exe"
DEPENDS_remove_sdkmingw32 = "nativesdk-ncurses nativesdk-readline nativesdk-python"
RDEPENDS_${PN}_remove_sdkmingw32 = "nativesdk-python-core nativesdk-python-lang nativesdk-python-re nativesdk-python-codecs nativesdk-python-netclient"
--
2.27.0


[meta-mingw][PATCH] cmake: Remove toolchain append

Joshua Watt
 

Now that cmake.bbclass in OE-core correctly accounts for MinGW hosts, it
is no longer necessary to manually specify that CMAKE_SYSTEM_NAME as
"Windows"

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
recipes-devtools/cmake/cmake_%.bbappend | 6 ------
1 file changed, 6 deletions(-)

diff --git a/recipes-devtools/cmake/cmake_%.bbappend b/recipes-devtools/cmake/cmake_%.bbappend
index d9d7ceb..42d36ac 100644
--- a/recipes-devtools/cmake/cmake_%.bbappend
+++ b/recipes-devtools/cmake/cmake_%.bbappend
@@ -1,7 +1 @@
DEPENDS_remove_mingw32 = "ncurses"
-
-cmake_do_generate_toolchain_file_append_mingw32() {
- cat >> ${WORKDIR}/toolchain.cmake <<EOF
-set( CMAKE_SYSTEM_NAME Windows )
-EOF
-}
--
2.27.0


Re: Yocto Dunfell: package.class --> dwarfsrcfiles

Khem Raj
 

On 7/21/20 3:45 AM, Jan Hannig wrote:
Hello,
with the upgrade from Yocto Zeus → Dunfell, we observe lots of messages when building our product which seem heavy to be understood or to debug.
Actually, it's the failure of the "do_package" task of a proprietary module written in C with following message:
ERROR: eds-1.0-r0 do_package: dwarfsrcfiles failed with exit code 1 (cmd was ['dwarfsrcfiles', '/home/jhannig/workspace/build/mguard3_tmp/work/aarch64-mguard-linux/eds/1.0-r0/package/usr/lib/libhdb.a']):
dwarfsrcfiles: /home/jhannig/workspace/build/mguard3_tmp/work/aarch64-mguard-linux/eds/1.0-r0/package/usr/lib/libhdb.a: not a valid ELF file
ERROR: Logfile of failure stored in: /home/jhannig/workspace/build/mguard3_tmp/work/aarch64-mguard-linux/eds/1.0-r0/temp/log.do_package.13957
ERROR: Task (/home/jhannig/workspace/mguard/meta-mguard/recipes-core/eds/eds_1.0.bb:do_package) failed with exit code '1'
Following information to understand the problem:
- The code of this module wasn't changed, and it compiled errorless with release "Zeus"
- The examination of the file "libhdb.a" brings following results:
- It is possible to unpack the archive-file "libhdb.a":  jhannig@jhannig:~/Archiv/MG-2436$ ar x libhdb.a
- The Examination of the content with "file *.o" [jhannig@jhannig:~/Archiv/MG-2436$ file *.o] brings following results:
hdb.o:             ELF 64-bit LSB relocatable, ARM aarch64, version 1 (SYSV), not stripped
hdbschema.o:       ELF 64-bit LSB relocatable, ARM aarch64, version 1 (SYSV), not stripped
hdbstaticschema.o: ELF 64-bit LSB relocatable, ARM aarch64, version 1 (SYSV), not stripped
utils.o:           ELF 64-bit LSB relocatable, ARM aarch64, version 1 (SYSV), not stripped
- This corresponds with the expectation and the intended character of the file
- Minor changes in the makefile command line didn't change anything in the result [EXTRA_OEMAKE += 'CC="${CC}" CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" AR="${AR}" EDS_XML="${EDS_XML}"']
- Searching the internet for "dwarfsrcfiles" doesn't bring any informative or documentative result, so it doesn't become clear, what this tool exactly does.
Following questions asked to the community:
- Which cases of errors result in this error message?
something goes amiss in the ELF object generation, it could be many reasons like corrupt files or additional information in these objects which can confuse the dwarf reader

- What changed with the new yocto release, that "suddenly" a build result is analyzed as failure?
packages get upgraded and in this particular case elfutils is the main package and it would have got upgraded to new revision which can bring additional behavior.

- Where exactly in the tool code is this error thrown? The message "not a valid ELF file" isn't available in the code

its coming from dwarf reader provided by libdwfl from elfutils package.

- What should be done with the archive file and its content to eliminate the error?
its not clear as to what might be going here so hard to say, but perhaps you can debug dwarfsrcfiles tool using gdb and your .a file as input and see why it things its a bad ELF object. It will perhaps give more insights. Its a native tool so should be easy to debug through. May be share stack trace etc. when it reaches the error state.

Secondly, it will be good to look at the build options used to create this .a and see if something stands out.

- Is this behavior well known, and is there any documentation to get information about the tool?
its not well known, but its an error state that can happen.

Thanks a lot for help,
kind regards
Jan Hannig
Reasearch and Development
jhannig@phoenixcontact.com <mailto:jhannig@phoenixcontact.com>
www.phoenixcontact.com <http://www.phoenixcontact.com>
.......................................................................................
PHOENIX CONTACT Cyber Security GmbH 
Richard-Willstätter-Straße 6  
D-12489 Berlin  
 
Register Court: AG Charlottenburg, HR B 202908 
Geschäftsführer/General Manager: Kilian Golm
//


Re: meta-kirkwood layer #yocto

Quentin Schulz
 

Hi,

On Tue, Jul 21, 2020 at 09:34:16AM -0700, Khem Raj wrote:


On 7/7/20 10:25 AM, jjvazha via lists.yoctoproject.org wrote:
I saw this message thread (
https://lists.yoctoproject.org/g/yocto/topic/61257317)  and wondering
how can I get this yocto compatible  layer  for marwell kirkwood ?
I want to build a linux ketnel for marwell kirk wood  ( using the
sheevaplug.conf for machine) using yocto 2.7.3
I down loaded this layer
(https://github.com/kelvinlawson/meta-kirkwood)   this is opnembedded
based , however upon building in yocto  it failed with the following
message

Entering directory `/home/jojan.vazhaeparampil/workspace/distro/build_zion/tmp/work-shared/sheevaplug/kernel-source'
|   GEN /home/jojan.vazhaeparampil/workspace/distro/build_zion/tmp/work/sheevaplug-poky-linux-gnueabi/linux-kirkwood/2.6.35-rc1-r14/build/Makefile
| make[2]: *** No rule to make target `oldnoconfig'.  Stop.
| make[1]: *** [oldnoconfig] Error 2
| make: *** [sub-make] Error 2
| make: Leaving directory `/home/jojan.vazhaeparampil/workspace/distro/build_zion/tmp/work-shared/sheevaplug/kernel-source'
| ERROR: oe_runmake failed


When I checked the "sheevaplug/kernel-source' directory it is empty ?
meta-kirkwood is kind of stale, last commit was 7 years, 9 months ago,
perhaps look around for another machine layer or fix this one
I also see that there's only a kernel recipe. IIRC, kirkwood devices are
supported in upstream linux, so you're probably fine using linux-yocto,
copy paste and slightly modify the machine configuration files if need
be and start from there instead of using this ultra old Linux kernel
(come on... 2.6?).

Good luck :)

Quentin

N.B.: https://elixir.bootlin.com/linux/latest/source/arch/arm/boot/dts/kirkwood-sheevaplug.dts


Re: meta-kirkwood layer #yocto

Khem Raj
 

On 7/7/20 10:25 AM, jjvazha via lists.yoctoproject.org wrote:
I saw this message thread ( https://lists.yoctoproject.org/g/yocto/topic/61257317)  and wondering how can I get this yocto compatible  layer  for marwell kirkwood ?
I want to build a linux ketnel for marwell kirk wood  ( using the sheevaplug.conf for machine) using yocto 2.7.3
I down loaded this layer (https://github.com/kelvinlawson/meta-kirkwood)   this is opnembedded based , however upon building in yocto  it failed with the following message
Entering directory `/home/jojan.vazhaeparampil/workspace/distro/build_zion/tmp/work-shared/sheevaplug/kernel-source'
|   GEN /home/jojan.vazhaeparampil/workspace/distro/build_zion/tmp/work/sheevaplug-poky-linux-gnueabi/linux-kirkwood/2.6.35-rc1-r14/build/Makefile
| make[2]: *** No rule to make target `oldnoconfig'.  Stop.
| make[1]: *** [oldnoconfig] Error 2
| make: *** [sub-make] Error 2
| make: Leaving directory `/home/jojan.vazhaeparampil/workspace/distro/build_zion/tmp/work-shared/sheevaplug/kernel-source'
| ERROR: oe_runmake failed
When I checked the "sheevaplug/kernel-source' directory it is empty ?
meta-kirkwood is kind of stale, last commit was 7 years, 9 months ago, perhaps look around for another machine layer or fix this one


Re: Linker error undefined reference to `_rtld_global_ro'

Robert Varga
 

Hi Khem,

Do you have any ideas, whether the passed compiler parameters ("-pie" or "-fpie") are the origin of this linker issues?

Does anyone know if glibc is compiled with "--enable-static-pie" if the passed compiler parameters include those "-pie" or "-fpie"? Or are they unrelated?

Thanks a lot for your support.

--
Rob


Yocto Project Status WW29'20

Stephen Jolley
 

Current Dev Position: YP 3.2 M2

Next Deadline: YP 3.2 M2 build date 2020/7/27

 

Next Team Meetings:

 

Key Status/Updates:

Help with any of these would be much appreciated.

  • We are planning to do a build of 3.1.2 this week as the project appears to be in reasonable shape after the recent race fixes that were backported.
  • We are struggling with maintainers for some key components of the system/infrastructure such as devtool, wic, buildhistory and patchwork/patchtest. If anyone can help in these areas please contact Richard.
  • Another way to help the project is to help us with bugs that are currently unassigned but ideally needed during 3.2. See: https://wiki.yoctoproject.org/wiki/Bug_Triage#Medium.2B_3.2_Unassigned_Enhancements.2FBugs
  • Help with any of the recent failed AUH recipe upgrades would also be appreciated.

 

YP 3.2 Milestone Dates:

  • YP 3.2 M2 build date 2020/7/27
  • YP 3.2 M2 Release date 2020/8/7
  • YP 3.2 M3 build date 2020/8/31
  • YP 3.2 M3 Release date 2020/9/11
  • YP 3.2 M4 build date 2020/10/5
  • YP 3.2 M4 Release date 2020/10/30

 

Planned upcoming dot releases:

  • YP 3.0.4 build date 2020/8/10
  • YP 3.0.4 release date 2020/8/21
  • YP 3.1.2 build date 2020/7/20
  • YP 3.1.2 release date 2020/7/31
  • YP 3.1.3 build date 2020/9/14
  • YP 3.1.3 release date 2020/9/25

 

Tracking Metrics:

 

The Yocto Project’s technical governance is through its Technical Steering Committee, more information is available at:

https://wiki.yoctoproject.org/wiki/TSC

 

The Status reports are now stored on the wiki at: https://wiki.yoctoproject.org/wiki/Weekly_Status

 

[If anyone has suggestions for other information you’d like to see on this weekly status update, let us know!]

 

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

(    Cell:                (208) 244-4460

* Email:              sjolley.yp.pm@...

 


[prelink-cross] prelink-cross: Add SPDX-License-Identifier: GPL-2.0-or-later to source files

Sathish V
 

Signed-off-by: Sathish V <sathish25071992@gmail.com>
---
gelf/gelf.c | 4 +++-
gelf/gelf.h | 4 +++-
gelfx/gelfx.h | 4 +++-
gelfx32/gelfx.h | 4 +++-
src/arch-alpha.c | 4 +++-
src/arch-arm.c | 4 +++-
src/arch-cris.c | 4 +++-
src/arch-i386.c | 4 +++-
src/arch-ia64.c | 4 +++-
src/arch-mips.c | 4 +++-
src/arch-ppc.c | 4 +++-
src/arch-ppc64.c | 4 +++-
src/arch-s390.c | 4 +++-
src/arch-s390x.c | 4 +++-
src/arch-sh.c | 4 +++-
src/arch-sparc.c | 4 +++-
src/arch-sparc64.c | 4 +++-
src/arch-x86_64.c | 4 +++-
src/cache.c | 4 +++-
src/checksum.c | 4 +++-
src/conflict.c | 4 +++-
src/crc32.c | 4 +++-
src/cxx.c | 4 +++-
src/data.c | 4 +++-
src/doit.c | 4 +++-
src/dso.c | 4 +++-
src/dwarf2.c | 4 +++-
src/dwarf2.h | 4 +++-
src/exec.c | 4 +++-
src/execle_open.c | 4 +++-
src/execstack.c | 4 +++-
src/fptr.c | 4 +++-
src/fptr.h | 4 +++-
src/gather.c | 4 +++-
src/get.c | 4 +++-
src/hashtab.h | 4 +++-
src/layout.c | 4 +++-
src/layout.h | 4 +++-
src/main.c | 4 +++-
src/md5.c | 4 +++-
src/md5.h | 4 +++-
src/mdebug.c | 4 +++-
src/prelink.c | 4 +++-
src/prelink.h | 4 +++-
src/prelinktab.h | 4 +++-
src/reloc-info.c | 4 +++-
src/reloc-info.h | 4 +++-
src/reloc.c | 4 +++-
src/reloc.h | 4 +++-
src/space.c | 4 +++-
src/space.h | 4 +++-
src/stabs.c | 4 +++-
src/undo.c | 4 +++-
src/undoall.c | 4 +++-
src/verify.c | 4 +++-
55 files changed, 165 insertions(+), 55 deletions(-)

diff --git a/gelf/gelf.c b/gelf/gelf.c
index 915cf5b..08b621a 100644
--- a/gelf/gelf.c
+++ b/gelf/gelf.c
@@ -14,7 +14,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <elf.h>
diff --git a/gelf/gelf.h b/gelf/gelf.h
index 6b76a15..3e14e6d 100644
--- a/gelf/gelf.h
+++ b/gelf/gelf.h
@@ -14,7 +14,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef GELF_H
#define GELF_H
diff --git a/gelfx/gelfx.h b/gelfx/gelfx.h
index c011a57..13bf9fa 100644
--- a/gelfx/gelfx.h
+++ b/gelfx/gelfx.h
@@ -14,7 +14,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef GELFX_H
#define GELFX_H
diff --git a/gelfx32/gelfx.h b/gelfx32/gelfx.h
index 7668a84..317b28b 100644
--- a/gelfx32/gelfx.h
+++ b/gelfx32/gelfx.h
@@ -14,7 +14,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef GELFX_H
#define GELFX_H
diff --git a/src/arch-alpha.c b/src/arch-alpha.c
index 7802a3e..d1b897f 100644
--- a/src/arch-alpha.c
+++ b/src/arch-alpha.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/arch-arm.c b/src/arch-arm.c
index eec7c57..eab316f 100644
--- a/src/arch-arm.c
+++ b/src/arch-arm.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/arch-cris.c b/src/arch-cris.c
index 3272779..9987623 100644
--- a/src/arch-cris.c
+++ b/src/arch-cris.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/arch-i386.c b/src/arch-i386.c
index a1e0fcc..cb74640 100644
--- a/src/arch-i386.c
+++ b/src/arch-i386.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/arch-ia64.c b/src/arch-ia64.c
index 6039115..8c6749c 100644
--- a/src/arch-ia64.c
+++ b/src/arch-ia64.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/arch-mips.c b/src/arch-mips.c
index 02c608f..7480019 100644
--- a/src/arch-mips.c
+++ b/src/arch-mips.c
@@ -14,7 +14,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

/* GENERAL NOTES

diff --git a/src/arch-ppc.c b/src/arch-ppc.c
index e22e5d5..de851a8 100644
--- a/src/arch-ppc.c
+++ b/src/arch-ppc.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/arch-ppc64.c b/src/arch-ppc64.c
index a764b99..900ec6c 100644
--- a/src/arch-ppc64.c
+++ b/src/arch-ppc64.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/arch-s390.c b/src/arch-s390.c
index e5fe130..d9f45d0 100644
--- a/src/arch-s390.c
+++ b/src/arch-s390.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/arch-s390x.c b/src/arch-s390x.c
index e4d82f7..b154fb7 100644
--- a/src/arch-s390x.c
+++ b/src/arch-s390x.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/arch-sh.c b/src/arch-sh.c
index 1b11312..41298a1 100644
--- a/src/arch-sh.c
+++ b/src/arch-sh.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/arch-sparc.c b/src/arch-sparc.c
index e016a79..a6a4068 100644
--- a/src/arch-sparc.c
+++ b/src/arch-sparc.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/arch-sparc64.c b/src/arch-sparc64.c
index aee4601..6201325 100644
--- a/src/arch-sparc64.c
+++ b/src/arch-sparc64.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/arch-x86_64.c b/src/arch-x86_64.c
index 2f6c551..52f3927 100644
--- a/src/arch-x86_64.c
+++ b/src/arch-x86_64.c
@@ -15,7 +15,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/cache.c b/src/cache.c
index 1cc3217..f71ffca 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/checksum.c b/src/checksum.c
index 20a23a0..bf8dd4b 100644
--- a/src/checksum.c
+++ b/src/checksum.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/conflict.c b/src/conflict.c
index 5613ace..431f70c 100644
--- a/src/conflict.c
+++ b/src/conflict.c
@@ -15,7 +15,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/crc32.c b/src/crc32.c
index f36abb5..e7b89e5 100644
--- a/src/crc32.c
+++ b/src/crc32.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <stdint.h>
diff --git a/src/cxx.c b/src/cxx.c
index 4391ebe..aea5875 100644
--- a/src/cxx.c
+++ b/src/cxx.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <alloca.h>
diff --git a/src/data.c b/src/data.c
index 751f96f..0dc249a 100644
--- a/src/data.c
+++ b/src/data.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include "prelink.h"
diff --git a/src/doit.c b/src/doit.c
index 3784866..57780b0 100644
--- a/src/doit.c
+++ b/src/doit.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <alloca.h>
diff --git a/src/dso.c b/src/dso.c
index 949abf9..8cf6095 100644
--- a/src/dso.c
+++ b/src/dso.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/dwarf2.c b/src/dwarf2.c
index b9588b1..5c22e97 100644
--- a/src/dwarf2.c
+++ b/src/dwarf2.c
@@ -14,7 +14,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/dwarf2.h b/src/dwarf2.h
index b0c80b6..f451368 100644
--- a/src/dwarf2.h
+++ b/src/dwarf2.h
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#define DW_TAG_padding 0x00
#define DW_TAG_array_type 0x01
diff --git a/src/exec.c b/src/exec.c
index ca7fd14..7a39b21 100644
--- a/src/exec.c
+++ b/src/exec.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/execle_open.c b/src/execle_open.c
index 2ee5cbc..7fb83a8 100644
--- a/src/execle_open.c
+++ b/src/execle_open.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <errno.h>
diff --git a/src/execstack.c b/src/execstack.c
index 97fb453..b1c005c 100644
--- a/src/execstack.c
+++ b/src/execstack.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <errno.h>
diff --git a/src/fptr.c b/src/fptr.c
index cfe3aed..85e069e 100644
--- a/src/fptr.c
+++ b/src/fptr.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/fptr.h b/src/fptr.h
index 36ef7c6..439281d 100644
--- a/src/fptr.h
+++ b/src/fptr.h
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef FPTR_H
#define FPTR_H
diff --git a/src/gather.c b/src/gather.c
index 277f1b5..9933773 100644
--- a/src/gather.c
+++ b/src/gather.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/get.c b/src/get.c
index 0659962..304b6f0 100644
--- a/src/get.c
+++ b/src/get.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/hashtab.h b/src/hashtab.h
index 31e63e0..fdf3a69 100644
--- a/src/hashtab.h
+++ b/src/hashtab.h
@@ -14,7 +14,9 @@ GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+SPDX-License-Identifier: GPL-2.0-or-later */

/* This package implements basic hash table functionality. It is possible
to search for an entry, create an entry and destroy an entry.
diff --git a/src/layout.c b/src/layout.c
index 859ab66..8e86e6a 100644
--- a/src/layout.c
+++ b/src/layout.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <alloca.h>
diff --git a/src/layout.h b/src/layout.h
index f481d22..eb9fd64 100644
--- a/src/layout.h
+++ b/src/layout.h
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef LAYOUT_H
#define LAYOUT_H
diff --git a/src/main.c b/src/main.c
index 6ba89d5..2097a6e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <errno.h>
diff --git a/src/md5.c b/src/md5.c
index 0d2fdef..295ba17 100644
--- a/src/md5.c
+++ b/src/md5.c
@@ -16,7 +16,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

/* Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. */

diff --git a/src/md5.h b/src/md5.h
index 55f6195..76be5f7 100644
--- a/src/md5.h
+++ b/src/md5.h
@@ -16,7 +16,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef _MD5_H
#define _MD5_H 1
diff --git a/src/mdebug.c b/src/mdebug.c
index 4c22d2f..88e4d88 100644
--- a/src/mdebug.c
+++ b/src/mdebug.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/prelink.c b/src/prelink.c
index 64c4fea..d9595a5 100644
--- a/src/prelink.c
+++ b/src/prelink.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/prelink.h b/src/prelink.h
index 39c4390..6a7595c 100644
--- a/src/prelink.h
+++ b/src/prelink.h
@@ -16,7 +16,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef PRELINK_H
#define PRELINK_H
diff --git a/src/prelinktab.h b/src/prelinktab.h
index f41c79c..c7d5bca 100644
--- a/src/prelinktab.h
+++ b/src/prelinktab.h
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef PRELINKTAB_H
#define PRELINKTAB_H
diff --git a/src/reloc-info.c b/src/reloc-info.c
index 4ce333c..f9a7f67 100644
--- a/src/reloc-info.c
+++ b/src/reloc-info.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>

diff --git a/src/reloc-info.h b/src/reloc-info.h
index a8f8b7c..5796f66 100644
--- a/src/reloc-info.h
+++ b/src/reloc-info.h
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef RELOC_INFO_H
#define RELOC_INFO_H
diff --git a/src/reloc.c b/src/reloc.c
index deb0abe..0471d9a 100644
--- a/src/reloc.c
+++ b/src/reloc.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/reloc.h b/src/reloc.h
index a2ceff9..ec7d33a 100644
--- a/src/reloc.h
+++ b/src/reloc.h
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef RELOC_H
#define RELOC_H
diff --git a/src/space.c b/src/space.c
index 4bd4760..ef23e39 100644
--- a/src/space.c
+++ b/src/space.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/space.h b/src/space.h
index 5c9f725..ec754c3 100644
--- a/src/space.h
+++ b/src/space.h
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef SPACE_H
#define SPACE_H
diff --git a/src/stabs.c b/src/stabs.c
index c0a5a6a..5019f62 100644
--- a/src/stabs.c
+++ b/src/stabs.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/undo.c b/src/undo.c
index 4c38dab..49c18ef 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
diff --git a/src/undoall.c b/src/undoall.c
index 55d2a0b..1235fc7 100644
--- a/src/undoall.c
+++ b/src/undoall.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <alloca.h>
diff --git a/src/verify.c b/src/verify.c
index 7f530c0..52bc488 100644
--- a/src/verify.c
+++ b/src/verify.c
@@ -13,7 +13,9 @@

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ SPDX-License-Identifier: GPL-2.0-or-later */

#include <config.h>
#include <assert.h>
--
2.17.1

2421 - 2440 of 52471