diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
| commit | 8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch) | |
| tree | efdc32587159d0050a69009bdf2330a531727d95 /meta/recipes-devtools/swig | |
| parent | d412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff) | |
| download | poky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz | |
The poky repository master branch is no longer being updated.
You can either:
a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs
b) use the new bitbake-setup
You can find information about either approach in our documentation:
https://docs.yoctoproject.org/
Note that "poky" the distro setting is still available in meta-yocto as
before and we continue to use and maintain that.
Long live Poky!
Some further information on the background of this change can be found
in: https://lists.openembedded.org/g/openembedded-architecture/message/2179
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/swig')
| -rw-r--r-- | meta/recipes-devtools/swig/swig/determinism.patch | 26 | ||||
| -rw-r--r-- | meta/recipes-devtools/swig/swig_4.3.1.bb | 45 |
2 files changed, 0 insertions, 71 deletions
diff --git a/meta/recipes-devtools/swig/swig/determinism.patch b/meta/recipes-devtools/swig/swig/determinism.patch deleted file mode 100644 index 4359281bbb..0000000000 --- a/meta/recipes-devtools/swig/swig/determinism.patch +++ /dev/null | |||
| @@ -1,26 +0,0 @@ | |||
| 1 | From 1cd6f0cc21fc977a710e8d30c3d2ebfee3c72dc0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
| 3 | Date: Mon, 1 Mar 2021 00:11:10 +0000 | ||
| 4 | Subject: [PATCH] swig: Fix reproducibility issue | ||
| 5 | |||
| 6 | Remove the compiler commandline/platform from the compiled binary as this | ||
| 7 | breaks reproducibilty. | ||
| 8 | |||
| 9 | Upstream-Status: Inappropriate [OE reproducibiity fix upstream unlikely to take] | ||
| 10 | RP 2021/3/1 | ||
| 11 | --- | ||
| 12 | Source/Modules/main.cxx | 1 - | ||
| 13 | 1 file changed, 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/Source/Modules/main.cxx b/Source/Modules/main.cxx | ||
| 16 | index f68b609..0c2aba3 100644 | ||
| 17 | --- a/Source/Modules/main.cxx | ||
| 18 | +++ b/Source/Modules/main.cxx | ||
| 19 | @@ -633,7 +633,6 @@ static void getoptions(int argc, char *argv[]) { | ||
| 20 | } | ||
| 21 | } else if (strcmp(argv[i], "-version") == 0 || strcmp(argv[1], "--version") == 0) { | ||
| 22 | fprintf(stdout, "\nSWIG Version %s\n", Swig_package_version()); | ||
| 23 | - fprintf(stdout, "\nCompiled with %s [%s]\n", SWIG_CXX, SWIG_PLATFORM); | ||
| 24 | fprintf(stdout, "\nConfigured options: %cpcre\n", | ||
| 25 | #ifdef HAVE_PCRE | ||
| 26 | '+' | ||
diff --git a/meta/recipes-devtools/swig/swig_4.3.1.bb b/meta/recipes-devtools/swig/swig_4.3.1.bb deleted file mode 100644 index dd979580a1..0000000000 --- a/meta/recipes-devtools/swig/swig_4.3.1.bb +++ /dev/null | |||
| @@ -1,45 +0,0 @@ | |||
| 1 | SUMMARY = "SWIG - Simplified Wrapper and Interface Generator" | ||
| 2 | DESCRIPTION = "SWIG is a compiler that makes it easy to integrate C and C++ \ | ||
| 3 | code with other languages including Perl, Tcl, Ruby, Python, Java, Guile, \ | ||
| 4 | Mzscheme, Chicken, OCaml, Pike, and C#." | ||
| 5 | HOMEPAGE = "http://swig.sourceforge.net/" | ||
| 6 | LICENSE = "BSD-3-Clause & GPL-3.0-only" | ||
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e7807a6282784a7dde4c846626b08fc6 \ | ||
| 8 | file://LICENSE-GPL;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 9 | file://LICENSE-UNIVERSITIES;md5=8ce9dcc8f7c994de4a408b205c72ba08" | ||
| 10 | |||
| 11 | SECTION = "devel" | ||
| 12 | |||
| 13 | DEPENDS = "libpcre2 bison-native" | ||
| 14 | |||
| 15 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ | ||
| 16 | file://determinism.patch \ | ||
| 17 | " | ||
| 18 | SRC_URI[sha256sum] = "44fc829f70f1e17d635a2b4d69acab38896699ecc24aa023e516e0eabbec61b8" | ||
| 19 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/swig/files/swig/" | ||
| 20 | UPSTREAM_CHECK_REGEX = "swig-(?P<pver>\d+(\.\d+)+)" | ||
| 21 | |||
| 22 | inherit cmake pkgconfig | ||
| 23 | |||
| 24 | BBCLASSEXTEND = "native nativesdk" | ||
| 25 | |||
| 26 | do_install:append:class-nativesdk() { | ||
| 27 | cd ${D}${bindir} | ||
| 28 | ln -s swig swig2.0 | ||
| 29 | } | ||
| 30 | |||
| 31 | def swiglib_relpath(d): | ||
| 32 | swiglib = d.getVar('datadir') + "/" + d.getVar('BPN') + "/" + d.getVar('PV') | ||
| 33 | return os.path.relpath(swiglib, d.getVar('bindir')) | ||
| 34 | |||
| 35 | do_install:append:class-native() { | ||
| 36 | create_wrapper ${D}${bindir}/swig SWIG_LIB='`dirname $''realpath`'/${@swiglib_relpath(d)} | ||
| 37 | } | ||
| 38 | |||
| 39 | PACKAGE_PREPROCESS_FUNCS += "src_package_preprocess" | ||
| 40 | src_package_preprocess () { | ||
| 41 | # Trim build paths from comments and defines in generated sources to ensure reproducibility | ||
| 42 | sed -i -e "s,${WORKDIR},,g" \ | ||
| 43 | -e "s,YY_YY_.*_CPARSE_PARSER_H_INCLUDED,YY_YY_CPARSE_PARSER_H_INCLUDED,g" \ | ||
| 44 | ${B}/Source/CParse/parser.* | ||
| 45 | } | ||
