diff options
| author | Martin Jansa <Martin.Jansa@gmail.com> | 2020-05-21 14:23:42 +0200 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-05-21 22:10:19 -0400 |
| commit | aa558c78241cedf46118c02127a115443db98f15 (patch) | |
| tree | f7e373afb0fa0086f331ce2d53944f5a28266dfa /recipes-containers/singularity/singularity_git.bb | |
| parent | 7b002ac180bf0faf80206d5fe267a74c83a71f5f (diff) | |
| download | meta-virtualization-aa558c78241cedf46118c02127a115443db98f15.tar.gz | |
singularity: fix build with python3
* Fix python3native inherit added in:
https://git.yoctoproject.org/cgit/cgit.cgi/meta-virtualization/commit/?id=a1e3f5c92cdee7c4259b7be643bd829ce7c1efa3
to actually work
* also remove the work arounds for /usr/bin/python being python3
on the target device
* I haven't tested this in runtime - I don't use it, it was just
showing that do_configure error in "bitbake world" builds, the
scripts might need some changes to be really compatible with
python3, but it was broken already, now it at least builds
* upgrade to new version with
https://github.com/hpcng/singularity/pull/1762/commits/3c05f06e6a1c490a4b4714bcdf5a0ce2b2498bb5
would be nice by someone who actually uses this
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/singularity/singularity_git.bb')
| -rw-r--r-- | recipes-containers/singularity/singularity_git.bb | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/recipes-containers/singularity/singularity_git.bb b/recipes-containers/singularity/singularity_git.bb index a2653529..103270dd 100644 --- a/recipes-containers/singularity/singularity_git.bb +++ b/recipes-containers/singularity/singularity_git.bb | |||
| @@ -3,9 +3,6 @@ | |||
| 3 | INSANE_SKIP_${PN} += "dev-so" | 3 | INSANE_SKIP_${PN} += "dev-so" |
| 4 | 4 | ||
| 5 | RDEPENDS_${PN} += "glibc python3 ca-certificates openssl bash e2fsprogs-mke2fs" | 5 | RDEPENDS_${PN} += "glibc python3 ca-certificates openssl bash e2fsprogs-mke2fs" |
| 6 | # Singularity expects to find python3 under the name python, therefore both | ||
| 7 | # cannot be installed at the same time. | ||
| 8 | RCONFLICTS_${PN} = "python" | ||
| 9 | 6 | ||
| 10 | LICENSE = "BSD" | 7 | LICENSE = "BSD" |
| 11 | LIC_FILES_CHKSUM = "file://COPYRIGHT.md;md5=be78c34e483dd7d8439358b1e024b294 \ | 8 | LIC_FILES_CHKSUM = "file://COPYRIGHT.md;md5=be78c34e483dd7d8439358b1e024b294 \ |
| @@ -13,7 +10,9 @@ LIC_FILES_CHKSUM = "file://COPYRIGHT.md;md5=be78c34e483dd7d8439358b1e024b294 \ | |||
| 13 | file://LICENSE.md;md5=df4326b473db6424033f1d98a5645e30 \ | 10 | file://LICENSE.md;md5=df4326b473db6424033f1d98a5645e30 \ |
| 14 | file://debian/copyright;md5=ed267cf386d9b75ab1f27f407e935b10" | 11 | file://debian/copyright;md5=ed267cf386d9b75ab1f27f407e935b10" |
| 15 | 12 | ||
| 16 | SRC_URI = "git://github.com/singularityware/singularity.git;protocol=https" | 13 | SRC_URI = "git://github.com/singularityware/singularity.git;protocol=https \ |
| 14 | file://0001-Use-python3.patch \ | ||
| 15 | " | ||
| 17 | PV = "2.3.1+git${SRCPV}" | 16 | PV = "2.3.1+git${SRCPV}" |
| 18 | SRCREV = "e214d4ebf0a1274b1c63b095fd55ae61c7e92947" | 17 | SRCREV = "e214d4ebf0a1274b1c63b095fd55ae61c7e92947" |
| 19 | 18 | ||
| @@ -23,11 +22,6 @@ inherit python3native autotools-brokensep | |||
| 23 | EXTRA_OECONF = "--prefix=/usr/local" | 22 | EXTRA_OECONF = "--prefix=/usr/local" |
| 24 | 23 | ||
| 25 | pkg_postinst_${PN}() { | 24 | pkg_postinst_${PN}() { |
| 26 | # Singularity requires "python" to resolve to "python3" within the commandline. | ||
| 27 | # This creates a symbolic link from python3 to python. A side-effect of this is | ||
| 28 | # that scripts which expect Python 2 may fail to run correctly. | ||
| 29 | ln -sr $D${bindir}/python3 $D${bindir}/python | ||
| 30 | |||
| 31 | # python3 expects CA certificates to be installed in a different place to where | 25 | # python3 expects CA certificates to be installed in a different place to where |
| 32 | # they are actually installed. These lines link the two locations. | 26 | # they are actually installed. These lines link the two locations. |
| 33 | rm -r $D${libdir}/ssl/certs | 27 | rm -r $D${libdir}/ssl/certs |
