summaryrefslogtreecommitdiffstats
path: root/recipes-containers/singularity/singularity_git.bb
blob: b2d0d0449c57304c6e58b3ecfdf75d5cb37c7696 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Skip QA check for library symbolic links (core issue is a packaging problem within
# Singularity build / config: read up on the dev-so test for more info)
INSANE_SKIP:${PN} += "dev-so"

RDEPENDS:${PN} += "python3 ca-certificates openssl bash e2fsprogs-mke2fs"

LICENSE = "BSD-3-Clause | Apache-2.0"
LIC_FILES_CHKSUM = "file://COPYRIGHT.md;md5=ed21b60743b305a734f53029f37d94fc \
                    file://LICENSE-LBNL.md;md5=5f7c53093a01a7b1495d80b29cb72e35 \
                    file://LICENSE.md;md5=fdcf58cf8020ccdfad7f67cd64c61624 \
                   "

SRC_URI = "git://github.com/singularityware/singularity.git;protocol=https;branch=master \
"
PV = "v3.8.3+git"
SRCREV = "9dceb4240c12b4cff1da94630d422a3422b39fcf"

GO_IMPORT = "import"

inherit python3native
inherit go goarch
inherit pkgconfig

S = "${WORKDIR}/git"
B = "${S}"

# EXTRA_OECONF = "--prefix=/usr/local"

do_configure() {
    echo "configure"
    echo "source dir: ${S}"
    echo "build dir: ${B}"
    echo "working directory: "
    pwd
    ./mconfig
    ls -alF
    # exit 1
}
do_compile() {
    echo "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"

    cd builddir
    oe_runmake singularity

    pwd
    exit 1
}

pkg_postinst:${PN}() {
    # python3 expects CA certificates to be installed in a different place to where
    # they are actually installed. These lines link the two locations.
    rm -r $D${libdir}/ssl/certs
    ln -sr $D${sysconfdir}/ssl/certs $D${libdir}/ssl
}