diff options
Diffstat (limited to 'old/strata')
376 files changed, 11084 insertions, 0 deletions
diff --git a/old/strata/CPAN-Mini-Inject.morph b/old/strata/CPAN-Mini-Inject.morph new file mode 100644 index 00000000..d4566bd3 --- /dev/null +++ b/old/strata/CPAN-Mini-Inject.morph @@ -0,0 +1,306 @@ +name: CPAN-Mini-Inject +kind: stratum +description: A collection of perl distributions used by CPAN::Mini::Inject +build-depends: +- morph: strata/core.morph +- morph: strata/perl-common.morph +chunks: +- name: Archive-Zip + repo: upstream:cpan/Archive-Zip-tarball + ref: 42c8b23669eac442a303190dad44d78cea63cf59 + unpetrify-ref: Archive-Zip-1.49 + build-system: cpan +- name: CPAN-DistnameInfo + repo: upstream:cpan/CPAN-DistnameInfo-tarball + ref: 56f58177bddb4002f0dc57811fe0f72a8fc9e479 + unpetrify-ref: CPAN-DistnameInfo-0.12 + build-system: cpan +- name: Compress-Bzip2 + repo: upstream:cpan/Compress-Bzip2-tarball + ref: efd32dfb6c52e28f3b158930b64f986ff8760409 + unpetrify-ref: Compress-Bzip2-2.22 + build-system: cpan +- name: Encode-Locale + repo: upstream:cpan/Encode-Locale-tarball + ref: e4bf16d2fde5df6eadd91475e3dcca56b87b1eb0 + unpetrify-ref: Encode-Locale-1.05 + build-system: cpan +- name: File-Slurp + repo: upstream:cpan/File-Slurp-tarball + ref: 9d4173f2716c2f9a2d26f8f9ab0f47b351b87de7 + unpetrify-ref: File-Slurp-9999.19 + build-system: cpan +- name: File-Spec-Native + repo: upstream:cpan/File-Spec-Native-tarball + ref: 475e3c7cb559a68109d8c90ab8ff0b6a37c98793 + unpetrify-ref: File-Spec-Native-1.004 + build-system: cpan +- name: File-Which + repo: upstream:cpan/File-Which-tarball + ref: a276db189a656a4cc5881a2ebc4cad3113685030 + unpetrify-ref: File-Which-1.19 + build-system: cpan +- name: File-HomeDir + repo: upstream:cpan/File-HomeDir-tarball + ref: d08b8685307cd5e8980f3c9409d4b3c1d06b2c24 + unpetrify-ref: File-HomeDir-1.00 + build-system: cpan + build-depends: + - File-Which +- name: HTML-Tagset + repo: upstream:cpan/HTML-Tagset-tarball + ref: 85713405a9d0b06f3abba0c2ddfaab2077344e8f + unpetrify-ref: HTML-Tagset-3.20 + build-system: cpan +- name: HTML-Parser + repo: upstream:cpan/HTML-Parser-tarball + ref: 2f253cfc85ffd55a8acb988e91f0bc5ab348124c + unpetrify-ref: HTML-Parser-3.71 + build-system: cpan + build-depends: + - HTML-Tagset +- name: CGI + repo: upstream:cpan/CGI-tarball + ref: f9f3ab3056d94292adb4ab2e1451645bee989769 + unpetrify-ref: CGI-4.21 + build-system: cpan + build-depends: + - HTML-Tagset + - HTML-Parser +- name: HTTP-Date + repo: upstream:cpan/HTTP-Date-tarball + ref: f1f9b3164e11c877ed5d509738551a56ac9b37f0 + unpetrify-ref: HTTP-Date-6.02 + build-system: cpan +- name: File-Listing + repo: upstream:cpan/File-Listing-tarball + ref: c1655656f083337cbfd901455db96695890f2d89 + unpetrify-ref: File-Listing-6.04 + build-system: cpan + build-depends: + - HTTP-Date +- name: HTTP-Server-Simple + repo: upstream:cpan/HTTP-Server-Simple-tarball + ref: e2d680ac7c6f0bb36808aa45e1453c8b585d2717 + unpetrify-ref: HTTP-Server-Simple-0.50 + build-system: cpan + build-depends: + - CGI + - HTML-Tagset + - HTML-Parser +- name: IO-HTML + repo: upstream:cpan/IO-HTML-tarball + ref: adc9c8b29ed1144626af564f936811a9d5e319a6 + unpetrify-ref: IO-HTML-1.001 + build-system: cpan +- name: LWP-MediaTypes + repo: upstream:cpan/LWP-MediaTypes-tarball + ref: d550937a3b104e53897b8f51dd528724f721858a + unpetrify-ref: LWP-MediaTypes-6.02 + build-system: cpan +- name: Number-Compare + repo: upstream:cpan/Number-Compare-tarball + ref: af206af84f17997c2967416423e9cdf516e17203 + unpetrify-ref: Number-Compare-0.03 + build-system: cpan +- name: Path-Class + repo: upstream:cpan/Path-Class-tarball + ref: 5f549fcb4056f8b314c7f7336a020ef9735fb384 + unpetrify-ref: Path-Class-0.35 + build-system: cpan +- name: Text-Glob + repo: upstream:cpan/Text-Glob-tarball + ref: 7c186823d68db1d2bd078fb91a95d30cd12890da + unpetrify-ref: Text-Glob-0.09 + build-system: cpan +- name: File-Find-Rule + repo: upstream:cpan/File-Find-Rule-tarball + ref: 5e7c9d8e7b80b54baa3f8161222b5a8e9077c0aa + unpetrify-ref: File-Find-Rule-0.33 + build-system: cpan + build-depends: + - Text-Glob + - Number-Compare +- name: Data-Compare + repo: upstream:cpan/Data-Compare-tarball + ref: 8fddd4400d09891094843fe9e77fec74e4510c67 + unpetrify-ref: Data-Compare-1.25 + build-system: cpan + build-depends: + - File-Find-Rule + - Text-Glob + - Number-Compare +- name: CPAN-Checksums + repo: upstream:cpan/CPAN-Checksums-tarball + ref: 26d8d4d1d2a7a8ebcffc6ff5c6b13495f74dd129 + unpetrify-ref: CPAN-Checksums-2.10 + build-system: cpan + build-depends: + - Text-Glob + - Data-Compare + - File-Find-Rule + - Number-Compare + - Compress-Bzip2 +- name: Dist-Metadata + repo: upstream:cpan/Dist-Metadata-tarball + ref: 2ca9db53e3e8164ecf0c95bf93fa289019e1b92c + unpetrify-ref: Dist-Metadata-0.926 + build-system: cpan + build-depends: + - Path-Class + - File-Spec-Native + - Archive-Zip + - CPAN-DistnameInfo +- name: URI + repo: upstream:cpan/URI-tarball + ref: 9165b237ad8fae18b36d4d40d6e2ccfde7b136c7 + unpetrify-ref: URI-1.69 + build-system: cpan +- name: Net-HTTP + repo: upstream:cpan/Net-HTTP-tarball + ref: 8780c70ceb3019aa50e129cb62daa3bfaebd0e82 + unpetrify-ref: Net-HTTP-6.09 + build-system: cpan + build-depends: + - URI +- name: HTTP-Message + repo: upstream:cpan/HTTP-Message-tarball + ref: d403562e3f7ac96df7cee2c1709ecd970b6c9761 + unpetrify-ref: HTTP-Message-6.10 + build-system: cpan + build-depends: + - Encode-Locale + - HTTP-Date + - IO-HTML + - URI + - LWP-MediaTypes +- name: HTTP-Negotiate + repo: upstream:cpan/HTTP-Negotiate-tarball + ref: ab7c5218426d7424b8f7b5c333870958ad6609da + unpetrify-ref: HTTP-Negotiate-6.01 + build-system: cpan + build-depends: + - Encode-Locale + - HTTP-Date + - IO-HTML + - LWP-MediaTypes + - URI + - HTTP-Message +- name: HTTP-Cookies + repo: upstream:cpan/HTTP-Cookies-tarball + ref: 4861af5daed8f4ba6d0041aed25e98f403d96fc0 + unpetrify-ref: HTTP-Cookies-6.01 + build-system: cpan + build-depends: + - Encode-Locale + - HTTP-Date + - IO-HTML + - URI + - LWP-MediaTypes + - HTTP-Message +- name: HTTP-Daemon + repo: upstream:cpan/HTTP-Daemon-tarball + ref: 64ffbaec18717f99cb80441d8b474868e39939fb + unpetrify-ref: HTTP-Daemon-6.01 + build-system: cpan + build-depends: + - Encode-Locale + - HTTP-Date + - IO-HTML + - LWP-MediaTypes + - URI + - HTTP-Message +- name: WWW-RobotRules + repo: upstream:cpan/WWW-RobotRules-tarball + ref: 80c86924c3437c0ad64852ea29c7eab1197dfe90 + unpetrify-ref: WWW-RobotRules-6.02 + build-system: cpan + build-depends: + - URI +- name: YAML + repo: upstream:cpan/YAML-tarball + ref: 2fe5b8de1e9d06482aa76303e7342bc6605700ea + unpetrify-ref: YAML-1.15 + build-system: cpan +- name: libwww-perl + repo: upstream:cpan/libwww-perl-tarball + ref: 20f161ca116b8a4fc7ac986a317d7f6d43e5c173 + unpetrify-ref: libwww-perl-6.13 + build-system: cpan + build-depends: + - Encode-Locale + - Net-HTTP + - HTTP-Daemon + - HTTP-Date + - HTTP-Negotiate + - HTTP-Message + - IO-HTML + - LWP-MediaTypes + - HTML-Tagset + - WWW-RobotRules + - HTTP-Cookies + - File-Listing + - HTML-Parser + - URI +- name: CPAN-Mini + repo: upstream:cpan/CPAN-Mini-tarball + ref: 2a051e40a3fc09bba24c335060e8df327d313e55 + unpetrify-ref: CPAN-Mini-1.111016 + build-system: cpan + build-depends: + - Encode-Locale + - File-Which + - HTTP-Date + - HTTP-Cookies + - HTTP-Daemon + - LWP-MediaTypes + - HTTP-Negotiate + - File-Listing + - URI + - File-HomeDir + - HTML-Tagset + - HTTP-Message + - Net-HTTP + - IO-HTML + - libwww-perl + - HTML-Parser + - WWW-RobotRules +- name: CPAN-Mini-Inject + morph: strata/CPAN-Mini-Inject/CPAN-Mini-Inject.morph + repo: upstream:cpan/CPAN-Mini-Inject-tarball + ref: 74e30d582ac01d80a7f1b28af247d0a5ee913d55 + unpetrify-ref: master + build-depends: + - File-Spec-Native + - HTTP-Negotiate + - LWP-MediaTypes + - Dist-Metadata + - File-Which + - Compress-Bzip2 + - libwww-perl + - CGI + - File-Slurp + - IO-HTML + - Number-Compare + - CPAN-Mini + - HTML-Tagset + - HTTP-Server-Simple + - HTTP-Message + - File-HomeDir + - Path-Class + - Archive-Zip + - Text-Glob + - Data-Compare + - HTTP-Date + - URI + - File-Listing + - HTTP-Cookies + - CPAN-DistnameInfo + - HTML-Parser + - Encode-Locale + - HTTP-Daemon + - File-Find-Rule + - YAML + - WWW-RobotRules + - Net-HTTP + - CPAN-Checksums diff --git a/old/strata/CPAN-Mini-Inject/CPAN-Mini-Inject.morph b/old/strata/CPAN-Mini-Inject/CPAN-Mini-Inject.morph new file mode 100644 index 00000000..a92c26f3 --- /dev/null +++ b/old/strata/CPAN-Mini-Inject/CPAN-Mini-Inject.morph @@ -0,0 +1,3 @@ +name: CPAN-Mini-Inject +kind: chunk +build-system: module-build diff --git a/old/strata/NetworkManager-common.morph b/old/strata/NetworkManager-common.morph new file mode 100644 index 00000000..720a277f --- /dev/null +++ b/old/strata/NetworkManager-common.morph @@ -0,0 +1,46 @@ +name: NetworkManager-common +kind: stratum +build-depends: +- morph: strata/bluetooth.morph +- morph: strata/connectivity.morph +- morph: strata/device-management.morph +- morph: strata/network-security.morph +- morph: strata/privileges-management.morph +chunks: +- name: libmbim + repo: upstream:libmbim + ref: 50cddf48823f05ec124afad80c0d948184e19b00 + unpetrify-ref: 1.14.0 + build-system: autotools +- name: libqmi + repo: upstream:libqmi + ref: 7bdb9347cf08cf26ed8e420a11b358befa81824b + unpetrify-ref: 1.16.0 + build-system: autotools +- name: ModemManager + morph: strata/NetworkManager-common/ModemManager.morph + repo: upstream:ModemManager + ref: 397761c9758c3a8c2d130afaf36dab645d6e0ecf + unpetrify-ref: 1.6.0 + build-depends: + - libmbim + - libqmi +- name: libndp + repo: upstream:libndp + ref: 2f721c4ff519f38f46695a60d9f9d88f35bf3c1d + unpetrify-ref: v1.6 + build-system: autotools +- name: readline6 + repo: upstream:readline + ref: 7628b745a813aac53586b640da056a975f1c443e + unpetrify-ref: readline-6.3 + build-system: autotools +- name: NetworkManager + morph: strata/NetworkManager-common/NetworkManager.morph + repo: upstream:NetworkManager + ref: 8f6d416768cf69932999b1fc2ab4231321761657 + unpetrify-ref: 1.2.2 + build-depends: + - ModemManager + - libndp + - readline6 diff --git a/old/strata/NetworkManager-common/ModemManager.morph b/old/strata/NetworkManager-common/ModemManager.morph new file mode 100644 index 00000000..909f6eca --- /dev/null +++ b/old/strata/NetworkManager-common/ModemManager.morph @@ -0,0 +1,9 @@ +name: ModemManager +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc +system-integration: + ModemManager-misc: + 00-enable-ModemManager-unit: + - systemctl enable ModemManager diff --git a/old/strata/NetworkManager-common/NetworkManager.morph b/old/strata/NetworkManager-common/NetworkManager.morph new file mode 100644 index 00000000..9b9a93de --- /dev/null +++ b/old/strata/NetworkManager-common/NetworkManager.morph @@ -0,0 +1,9 @@ +name: NetworkManager +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --with-session-tracking=systemd --disable-ppp --enable-more-warnings=yes +system-integration: + ModemManager-misc: + 00-enable-NetworkManager-unit: + - systemctl enable NetworkManager diff --git a/old/strata/ansible.morph b/old/strata/ansible.morph new file mode 100644 index 00000000..f21cb222 --- /dev/null +++ b/old/strata/ansible.morph @@ -0,0 +1,26 @@ +name: ansible +kind: stratum +description: A stratum with ansible and its dependencies +build-depends: +- morph: strata/core.morph +- morph: strata/python-common.morph +chunks: +- name: ansible + morph: strata/ansible/ansible.morph + repo: upstream:ansible + ref: ebc8d48d34296fe010096f044e2b7591df37a622 + unpetrify-ref: v1.8.4 + submodules: + lib/ansible/modules/core: + url: upstream:ansible-modules-core.git + v2/ansible/modules/core: + url: upstream:ansible-modules-core.git + v2/ansible/modules/extras: + url: upstream:ansible-modules-extras.git + lib/ansible/modules/extras: + url: upstream:ansible-modules-extras.git +- name: openstack-ansible-modules + morph: strata/ansible/openstack-ansible-modules.morph + repo: upstream:openstack/openstack-ansible-modules + ref: 451dcdeadfd35615a867d5e59a684e4aa82959ae + unpetrify-ref: master diff --git a/old/strata/ansible/ansible.morph b/old/strata/ansible/ansible.morph new file mode 100644 index 00000000..dbc6ec4b --- /dev/null +++ b/old/strata/ansible/ansible.morph @@ -0,0 +1,9 @@ +name: ansible +kind: chunk +build-system: python-distutils +post-install-commands: +- | + install -D -m644 /proc/self/fd/0 "$DESTDIR/etc/ansible/ansible.cfg" <<EOF + [defaults] + log_path=/var/log/ansible + EOF diff --git a/old/strata/ansible/openstack-ansible-modules.morph b/old/strata/ansible/openstack-ansible-modules.morph new file mode 100644 index 00000000..d8e885e6 --- /dev/null +++ b/old/strata/ansible/openstack-ansible-modules.morph @@ -0,0 +1,5 @@ +name: openstack-ansible-modules +kind: chunk +install-commands: +- mkdir -p "$DESTDIR$PREFIX"/share/ansible/ansible-openstack-modules +- cp -r * "$DESTDIR$PREFIX"/share/ansible/ansible-openstack-modules diff --git a/old/strata/armv7lhf-cross-toolchain.morph b/old/strata/armv7lhf-cross-toolchain.morph new file mode 100644 index 00000000..4a105f2d --- /dev/null +++ b/old/strata/armv7lhf-cross-toolchain.morph @@ -0,0 +1,54 @@ +name: armv7lhf-cross-toolchain +kind: stratum +description: Stratum for building an armv7lhf cross compiler for your native system. +build-depends: +- morph: strata/build-essential.morph +chunks: +- name: armv7lhf-cross-binutils + morph: strata/armv7lhf-cross-toolchain/armv7lhf-cross-binutils.morph + repo: upstream:binutils-tarball + ref: 5500a97a2ad1735db5b35bc51cfb825c1f4c38df + unpetrify-ref: binutils-2.25 + +- name: armv7lhf-cross-linux-api-headers + morph: strata/armv7lhf-cross-toolchain/armv7lhf-cross-linux-api-headers.morph + repo: upstream:linux + ref: df2e1b9168a7ab5dd8149e38b5ac70cdef86d1fa + unpetrify-ref: baserock/v3.8 + +- name: armv7lhf-cross-gcc-nolibc + morph: strata/armv7lhf-cross-toolchain/armv7lhf-cross-gcc-nolibc.morph + repo: upstream:gcc-tarball + ref: 7ccad68acf3805b35721e861fb9bc5a9e40effc8 + unpetrify-ref: baserock/gcc-5.3.0 + build-depends: + - armv7lhf-cross-binutils + +- name: armv7lhf-cross-glibc + morph: strata/armv7lhf-cross-toolchain/armv7lhf-cross-glibc.morph + repo: upstream:glibc + ref: b995d95a5943785be3ab862b2d3276f3b4a22481 + unpetrify-ref: release/2.22/master + build-depends: + - armv7lhf-cross-binutils + - armv7lhf-cross-gcc-nolibc + - armv7lhf-cross-linux-api-headers + +- name: armv7lhf-cross-gcc + morph: strata/armv7lhf-cross-toolchain/armv7lhf-cross-gcc.morph + repo: upstream:gcc-tarball + ref: 7ccad68acf3805b35721e861fb9bc5a9e40effc8 + unpetrify-ref: baserock/gcc-5.3.0 + build-depends: + - armv7lhf-cross-binutils + - armv7lhf-cross-glibc + +- name: armv7lhf-cross-libstdc++ + morph: strata/armv7lhf-cross-toolchain/armv7lhf-cross-libstdc++.morph + repo: upstream:gcc-tarball + ref: 7ccad68acf3805b35721e861fb9bc5a9e40effc8 + unpetrify-ref: baserock/gcc-5.3.0 + build-depends: + - armv7lhf-cross-binutils + - armv7lhf-cross-gcc + - armv7lhf-cross-glibc diff --git a/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-binutils.morph b/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-binutils.morph new file mode 100644 index 00000000..8e842e41 --- /dev/null +++ b/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-binutils.morph @@ -0,0 +1,24 @@ +name: armv7lhf-cross-binutils +kind: chunk +build-system: autotools + +configure-commands: +- | + # The TARGET used is the final triplet we expect, rather than that + # of the libc-less GCC we build, since the binutils only needs to + # be built once. + # This requires extra effort to get the stage 1 GCC to use these + # tools, but saves having an extra binutils build. + export TARGET=armv7lhf-baserock-linux-gnueabi + + # 1. Binutils gets installed in the default sysroot path of + # $PREFIX/$TARGET/{bin,lib}, with the actual sysroot at + # $PREFIX/$TARGET/sys-root and its tools also available as + # $PREFIX/bin/$TARGET-$tool + # 2. The '=' makes the path we give relative to the sysroot. + ./configure --prefix="$PREFIX" --disable-nls --disable-werror \ + --build=$(sh config.guess) \ + --host=$(sh config.guess) \ + --target="$TARGET" \ + `# [1]` --with-sysroot \ + `# [2]` --with-lib-path="=$PREFIX/lib" diff --git a/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-gcc-nolibc.morph b/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-gcc-nolibc.morph new file mode 100644 index 00000000..b43577f4 --- /dev/null +++ b/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-gcc-nolibc.morph @@ -0,0 +1,73 @@ +name: armv7lhf-cross-gcc-nolibc +kind: chunk + +configure-commands: +- mkdir o + +# Configure flag notes: +# 1. Standard flags. See gcc.morph. +# 2. See stage1-gcc.morph. +# 3. Our binutils is for the final $TARGET, rather than the intermediate +# target our GCC is being built for, so we need to set +# with-build-time-tools to get it to find our binutils at +# build-time and with-as and with-ld so our temporary GCC uses +# the appropriate tools when it compiles our libc, rather than +# trying to use $TARGET_STAGE1-as when producing binaries. +# 4. Disable stuff that doesn't work when building a cross compiler +# without an existing libc, and generally try to keep this build as +# simple as possible. +- | + export MORPH_ARCH=armv7lhf + export TARGET=armv7lhf-baserock-linux-gnueabi + export TARGET_STAGE1=armv7lhf-none-linux-gnueabi + + case "$MORPH_ARCH" in + armv7lhf) ARCH_FLAGS="--with-arch=armv7-a \ + --with-tune=cortex-a9 \ + --with-fpu=vfpv3-d16 \ + --with-float=hard" ;; + armv7*) ARCH_FLAGS="--with-arch=armv7-a" ;; + esac + + cd o && ../configure \ + $ARCH_FLAGS \ + --build=$(sh ../config.guess) \ + --host=$(sh ../config.guess) \ + --target="$TARGET_STAGE1" \ + --prefix="$PREFIX" \ + `# [1]` --libdir="$PREFIX/lib" \ + `# [2]` --with-sysroot=/nonexistentdir \ + --with-newlib \ + `# [2]` --with-local-prefix="$PREFIX" \ + `# [2]` --with-native-system-header-dir="$PREFIX/include" \ + `# [3]` --with-build-time-tools="$PREFIX/$TARGET/bin" \ + `# [3]` --with-as="$PREFIX/$TARGET/bin/as" \ + `# [3]` --with-ld="$PREFIX/$TARGET/bin/ld" \ + --without-headers \ + --disable-nls \ + --disable-shared \ + `# [4]` --disable-multilib \ + `# [4]` --disable-decimal-float \ + `# [4]` --disable-threads \ + `# [4]` --disable-libatomic \ + `# [4]` --disable-libgomp \ + `# [4]` --disable-libitm \ + `# [4]` --disable-libquadmath \ + `# [4]` --disable-libsanitizer \ + `# [4]` --disable-libssp \ + `# [4]` --disable-libvtv \ + `# [4]` --disable-libcilkrts \ + `# [4]` --disable-libstdc++-v3 \ + --enable-languages=c,c++ + +build-commands: +- | + # See stage1-gcc.morph. + case "$MORPH_ARCH" in + armv7*) sed -i "s/--host=none/--host=armv7a/" o/Makefile + sed -i "s/--target=none/--target=armv7a/" o/Makefile ;; + esac + cd o && make + +install-commands: +- cd o && make DESTDIR="$DESTDIR" install diff --git a/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-gcc.morph b/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-gcc.morph new file mode 100644 index 00000000..d5c1a14a --- /dev/null +++ b/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-gcc.morph @@ -0,0 +1,47 @@ +name: armv7lhf-cross-gcc +kind: chunk + +configure-commands: +- mkdir o + +# Configure flag notes: +# 1. Use the default sysroot path to install to and locate headers +# 2. Avoid having more than one copy of ZLib in use on the system +# 3. Standard flags. See gcc.morph. +- | + export MORPH_ARCH=armv7lhf + export TARGET=armv7lhf-baserock-linux-gnueabi + + case "$MORPH_ARCH" in + armv7lhf) ARCH_FLAGS="--with-arch=armv7-a \ + --with-tune=cortex-a9 \ + --with-fpu=vfpv3-d16 \ + --with-float=hard" ;; + armv7*) ARCH_FLAGS="--with-arch=armv7-a" ;; + esac + + cd o && ../configure \ + $ARCH_FLAGS \ + --build=$(sh ../config.guess) \ + --host=$(sh ../config.guess) \ + --target="$TARGET" \ + --prefix="$PREFIX" \ + `# [1]` --with-sysroot \ + --disable-bootstrap \ + `# [2]` --with-system-zlib \ + `# [3]` --libdir="$PREFIX/lib" \ + `# [3]` --disable-multilib \ + `# [3]` --enable-languages=c,c++,fortran + +build-commands: +- cd o && make + +install-commands: +- cd o && make DESTDIR="$DESTDIR" install +- ln -s gcc "$DESTDIR/$PREFIX/bin/cc" +- | + export TARGET=armv7lhf-baserock-linux-gnueabi + for fortran_alias in f77 f90 f95; do + ln -s "$TARGET-gfortran" \ + "$DESTDIR/$PREFIX/bin/$TARGET-$fortran_alias" + done diff --git a/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-glibc.morph b/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-glibc.morph new file mode 100644 index 00000000..2a692c38 --- /dev/null +++ b/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-glibc.morph @@ -0,0 +1,51 @@ +name: armv7lhf-cross-glibc +kind: chunk + +configure-commands: +- mkdir o + +# Configure flag notes: +# 1. Location of linux-api-headers, needed since glibc doesn't +# support being given a sysroot. +# 2. Location of binutils, since we build binutils for the final +# target triplet, but our gcc of our stage 1 target triplet. +# 3. Normal flags. See strata/build-essential/glibc.morph. +# 4. Force configuration values of certain things that can't be detected +# in a cross-compile. +- | + export MORPH_ARCH=armv7lhf + export TARGET=armv7lhf-baserock-linux-gnueabi + export TARGET_STAGE1=armv7lhf-none-linux-gnueabi + + export CFLAGS="-O2 $CFLAGS" + + # glibc looks for $TARGET-gcc, but not $TARGET_STAGE1-gcc even + # though --build is specified, so we have to override what gcc to + # use here. + export CC="$TARGET_STAGE1-gcc" + + case "$MORPH_ARCH" in + armv7*) + ARCH_FLAGS="--without-fp" ;; + esac + + cd o && ../configure \ + $ARCH_FLAGS \ + --build=$TARGET_STAGE1 --host=$TARGET \ + --prefix="$PREFIX" \ + `# [1]` --with-headers="$PREFIX/$TARGET/sys-root/$PREFIX/include" \ + `# [2]` --with-binutils="$PREFIX/$TARGET/bin" \ + `# [3]` --disable-profile --enable-kernel=2.6.25 \ + `# [4]` libc_cv_c_cleanup=yes libc_cv_ctors_header=yes \ + libc_cv_forced_unwind=yes libc_cv_ssp=no + +build-commands: +- cd o && make localtime=UTC + +install-commands: +- | + # glibc doesn't help with sysroots, so we need to spell out the + # full path ourselves. + export TARGET=armv7lhf-baserock-linux-gnueabi + cd o && make install_root="$DESTDIR/$PREFIX/$TARGET/sys-root/" \ + localtime=UTC install diff --git a/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-libstdc++.morph b/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-libstdc++.morph new file mode 100644 index 00000000..7743bb5b --- /dev/null +++ b/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-libstdc++.morph @@ -0,0 +1,32 @@ +name: armv7lhf-cross-libstdc++ +kind: chunk +configure-commands: +- mkdir o + +# Configure flag notes: +# 1. Use the default sysroot path to install to and locate headers +# 2. From LFS: the header location of C++ needs to be explicitly given +# as we are running the configure script from the top-level +# directory. +- | + export MORPH_ARCH=armv7lhf + export TARGET=armv7lhf-baserock-linux-gnueabi + + # -fPIC must be given, otherwise it will not be possible to create + # shared libraries linked to libstdc++ + export CPPFLAGS="-fPIC" + cd o && ../libstdc++-v3/configure \ + --build=$(sh ../config.guess) \ + --host=$(sh ../config.guess) \ + --target="$TARGET" \ + --prefix="$PREFIX" \ + --disable-nls \ + --disable-shared \ + --disable-multilib \ + `# [1]` --with-sysroot + +build-commands: +- cd o && make + +install-commands: +- cd o && make DESTDIR="$DESTDIR" install diff --git a/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-linux-api-headers.morph b/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-linux-api-headers.morph new file mode 100644 index 00000000..c2654419 --- /dev/null +++ b/old/strata/armv7lhf-cross-toolchain/armv7lhf-cross-linux-api-headers.morph @@ -0,0 +1,10 @@ +name: armv7lhf-cross-linux-api-headers +kind: chunk +install-commands: +- ARCH=arm make INSTALL_HDR_PATH=dest headers_install +- | + # Copy headers to the sysroot where the eglibc build will find them, + # and install its own headers and libraries. + export TARGET=armv7lhf-baserock-linux-gnueabi + install -d "$DESTDIR$PREFIX/$TARGET/sys-root/$PREFIX/include" + cp -r dest/include/* "$DESTDIR/$PREFIX/$TARGET/sys-root/$PREFIX/include" diff --git a/old/strata/baserock-import.morph b/old/strata/baserock-import.morph new file mode 100644 index 00000000..bc01a9a6 --- /dev/null +++ b/old/strata/baserock-import.morph @@ -0,0 +1,24 @@ +name: baserock-import +kind: stratum +description: Tools for importing software into Baserock definitions. +build-depends: +- morph: strata/python-common.morph +- morph: strata/morph-utils.morph +chunks: +- name: ansicolor + repo: upstream:python-packages/ansicolor + ref: 9d3adbaff35bb6cde1d63414a8cc72f572c4d0ef + unpetrify-ref: 0.2.4 + build-system: python-distutils +- name: requests-cache + repo: upstream:python-packages/requests-cache + ref: a1b5e65ccd715f1e8434f18f27913715340d6aaf + unpetrify-ref: 0.4.6 + build-system: python-distutils +- name: baserock-import + repo: baserock:baserock/import + ref: 6406a6992b709b4ae65de5b2f7b27cb005a2ec8d + unpetrify-ref: master + build-system: python-distutils + build-depends: + - ansicolor diff --git a/old/strata/bluetooth.morph b/old/strata/bluetooth.morph new file mode 100644 index 00000000..ea603b30 --- /dev/null +++ b/old/strata/bluetooth.morph @@ -0,0 +1,39 @@ +name: bluetooth +kind: stratum +description: Components required for bluetooth. +build-depends: +- morph: strata/glib-common.morph +- morph: strata/foundation.morph +chunks: +- name: libical + morph: strata/bluetooth/libical.morph + repo: upstream:libical-git + ref: 6c4af23b0a95fd105f38e879908cbc80390f3716 + unpetrify-ref: v2.0.0 +- name: bluez + morph: strata/bluetooth/bluez.morph + repo: upstream:bluez + ref: 6c68ebf4d31a04459285169af83714b610fffb1a + unpetrify-ref: baserock/5.43+service-api + build-depends: + - libical +- name: dbus-glib + repo: upstream:dbus-glib + ref: 397e8297d433547c9bf4150ddd2b9e0b4c39628c + unpetrify-ref: dbus-glib_0.102 + build-system: autotools +- name: bluez-tools + morph: strata/bluetooth/bluez-tools.morph + repo: upstream:bluez-tools + ref: 7350787e96a6ecf2cc5d4afddb3321ccad9fa461 + unpetrify-ref: baserock/morph + build-depends: + - dbus-glib +- name: obexd + repo: upstream:obexd + ref: 4225280022c206762c91beee47c62d05e1baeacc + unpetrify-ref: baserock/morph + build-system: autotools + build-depends: + - bluez + - libical diff --git a/old/strata/bluetooth/bluez-tools.morph b/old/strata/bluetooth/bluez-tools.morph new file mode 100644 index 00000000..80e47ef5 --- /dev/null +++ b/old/strata/bluetooth/bluez-tools.morph @@ -0,0 +1,10 @@ +name: bluez-tools +kind: chunk +description: A set of tools to manage Bluetooth devices for Linux +build-system: autotools +configure-commands: +- sed -i -e 's/-lreadline/-lreadline -lncurses/g' configure.ac +- ./autogen.sh +- ./configure --prefix="$PREFIX" --disable-obex +build-commands: +- LDFLAGS="$LDFLAGS -lncurses" make diff --git a/old/strata/bluetooth/bluez.morph b/old/strata/bluetooth/bluez.morph new file mode 100644 index 00000000..e7208da7 --- /dev/null +++ b/old/strata/bluetooth/bluez.morph @@ -0,0 +1,19 @@ +name: bluez +kind: chunk +description: Bluetooth protocol stack for Linux +build-system: autotools +configure-commands: +- autoreconf -ivf +- ./configure --prefix="$PREFIX" + --enable-tools + --enable-service + --enable-test + --enable-library + --sysconfdir=/etc + --localstatedir=/var + --libexecdir=/lib +install-commands: +- make DESTDIR="$DESTDIR" install +- mkdir -p "$DESTDIR/etc/systemd/system/bluetooth.target.wants" +- ln -s /lib/systemd/system/bluetooth.service "$DESTDIR/etc/systemd/system/bluetooth.target.wants/bluetooth.service" +- ln -s /lib/systemd/system/bluetooth.service "$DESTDIR/etc/systemd/system/dbus-org.bluez.service" diff --git a/old/strata/bluetooth/libical.morph b/old/strata/bluetooth/libical.morph new file mode 100644 index 00000000..2ee7c96c --- /dev/null +++ b/old/strata/bluetooth/libical.morph @@ -0,0 +1,5 @@ +name: libical +kind: chunk +build-system: cmake +configure-commands: +- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$PREFIX" -DCMAKE_INSTALL_LIBDIR=lib diff --git a/old/strata/bsp-armv5l-openbmc-aspeed.morph b/old/strata/bsp-armv5l-openbmc-aspeed.morph new file mode 100644 index 00000000..d7e1f180 --- /dev/null +++ b/old/strata/bsp-armv5l-openbmc-aspeed.morph @@ -0,0 +1,18 @@ +name: bsp-armv5l-openbmc-aspeed +kind: stratum +description: | + The set of platform specific components required for booting + armvl5-openbmc-aspeed based systems +build-depends: +- morph: strata/core.morph +chunks: +- name: linux-armv5l-openbmc-aspeed + morph: strata/bsp-armv5l-openbmc-aspeed/linux-armv5l-openbmc-aspeed.morph + repo: upstream:linux-stable + ref: 5cbce86c2115075b8054e4dba8cdf328aa6fa5b6 + unpetrify-ref: baserock/v2.6.28.9/openbmc_aspeed_wedge +- name: u-boot@aspeed + morph: strata/bsp-armv5l-openbmc-aspeed/u-boot@aspeed.morph + repo: upstream:u-boot + ref: af962087db0b88f4073f8f5a6184cb7f011d224d + unpetrify-ref: baserock/v2013.07+aspeed_wedge diff --git a/old/strata/bsp-armv5l-openbmc-aspeed/linux-armv5l-openbmc-aspeed.morph b/old/strata/bsp-armv5l-openbmc-aspeed/linux-armv5l-openbmc-aspeed.morph new file mode 100644 index 00000000..c6e38c63 --- /dev/null +++ b/old/strata/bsp-armv5l-openbmc-aspeed/linux-armv5l-openbmc-aspeed.morph @@ -0,0 +1,9 @@ +name: linux-armv5l-openbmc-aspeed +kind: chunk +configure-commands: +- make ast2400_defconfig +build-commands: +- make $MAKEFLAGS +install-commands: +- mkdir -p "$DESTDIR"/boot +- cp arch/arm/boot/Image "$DESTDIR/boot/vmlinux" diff --git a/old/strata/bsp-armv5l-openbmc-aspeed/u-boot@aspeed.morph b/old/strata/bsp-armv5l-openbmc-aspeed/u-boot@aspeed.morph new file mode 100644 index 00000000..1ded05c5 --- /dev/null +++ b/old/strata/bsp-armv5l-openbmc-aspeed/u-boot@aspeed.morph @@ -0,0 +1,14 @@ +name: u-boot@aspeed +kind: chunk +configure-commands: +- make ast2400_spi_config +build-commands: +- make +- make tools +install-commands: +- mkdir -p "$DESTDIR$PREFIX/bin" +- install -m 755 tools/img2brec.sh "$DESTDIR$PREFIX/bin/" +- install -m 755 tools/jtagconsole "$DESTDIR$PREFIX/bin/" +- install -m 755 tools/netconsole "$DESTDIR$PREFIX/bin/" +- install -m 755 tools/mkenvimage "$DESTDIR$PREFIX/bin/" +- install -m 755 tools/mkimage "$DESTDIR$PREFIX/bin/" diff --git a/old/strata/bsp-armv7-highbank.morph b/old/strata/bsp-armv7-highbank.morph new file mode 100644 index 00000000..9ac97e6c --- /dev/null +++ b/old/strata/bsp-armv7-highbank.morph @@ -0,0 +1,17 @@ +name: bsp-armv7-highbank +kind: stratum +description: The platform dependent components required to boot an ARM highbank board. +build-depends: +- morph: strata/core.morph +chunks: +- name: linux-armv7-highbank + morph: strata/bsp-armv7-highbank/linux-armv7-highbank.morph + repo: upstream:linux-stable + + # Linux 3.16 and later do not boot on Calxeda. They fail just before + # starting 'init' with this sort of message: + # + # Unhandled fault: imprecise external abort (0xc06) at 0xb6fea878 + + ref: f35b5e46feabab668a44df5b33f3558629f94dfc + unpetrify-ref: v3.15.10 diff --git a/old/strata/bsp-armv7-highbank/linux-armv7-highbank.morph b/old/strata/bsp-armv7-highbank/linux-armv7-highbank.morph new file mode 100644 index 00000000..e904ff45 --- /dev/null +++ b/old/strata/bsp-armv7-highbank/linux-armv7-highbank.morph @@ -0,0 +1,52 @@ +name: linux-armv7-highbank +kind: chunk +configure-commands: +- make multi_v7_defconfig +- scripts/config -e AUTOFS4_FS +- scripts/config -e BLK_DEV_LOOP +- scripts/config -e CGROUPS +- scripts/config -e CONFIG_POSIX_MQUEUE +- scripts/config -e CPU_IDLE +- scripts/config -e EXT4_FS +- scripts/config -e FUSE_FS +#- scripts/config -e OVERLAY_FS # Activate when we build Linux >= 3.18 +- scripts/config -e EXT4_USE_FOR_EXT23 +- scripts/config -e PACKET +- scripts/config -e UNIX +- scripts/config -e INET +- scripts/config -e IP_MULTICAST +- scripts/config -e IP_PNP +- scripts/config -e IP_PNP_DHCP +- scripts/config -e IP_PNP_BOOTP +- scripts/config -e MSDOS_FS +- scripts/config -e NETWORK_FILESYSTEMS +- scripts/config -e NET_KEY +- scripts/config -e NFS_FS +- scripts/config -e NFS_V3 +- scripts/config -e ROOT_NFS +- scripts/config -e LOCKD +- scripts/config -e LOCKD_V4 +- scripts/config -e NFS_COMMON +- scripts/config -e SUNRPC +- scripts/config -e SYSVIPC +- scripts/config -e BTRFS_FS +- scripts/config -e DEVTMPFS +- scripts/config -e DEVTMPFS_MOUNT +- scripts/config -e CONFIG_FHANDLE +- scripts/config -e DEVPTS_MULTIPLE_INSTANCES +- scripts/config --set-str UEVENT_HELPER_PATH '' +- scripts/config -e DM_SNAPSHOT +- scripts/config -e IKCONFIG +- scripts/config -e IKCONFIG_PROC +- scripts/config -e TMPFS +- scripts/config -e TMPFS_POSIX_ACL +- scripts/config -e VFAT_FS +- scripts/config -e VLAN_8021Q +- scripts/config -e BRIDGE_VLAN_FILTERING +- scripts/config -e VETH +- yes '' | make oldconfig +build-commands: +- make zImage $MAKEFLAGS +install-commands: +- mkdir -p "$DESTDIR"/boot +- cp arch/arm/boot/zImage "$DESTDIR"/boot/zImage diff --git a/old/strata/bsp-armv7-versatile.morph b/old/strata/bsp-armv7-versatile.morph new file mode 100644 index 00000000..470f6c56 --- /dev/null +++ b/old/strata/bsp-armv7-versatile.morph @@ -0,0 +1,12 @@ +name: bsp-armv7-versatile +kind: stratum +description: The platform dependent components required to boot an ARM versatile development + board. +build-depends: +- morph: strata/core.morph +chunks: +- name: linux-armv7-versatile + morph: strata/bsp-armv7-versatile/linux-armv7-versatile.morph + repo: upstream:linux-stable + ref: 660613d1a4e94144490850b6c3d350331860fac4 + unpetrify-ref: v3.19.2 diff --git a/old/strata/bsp-armv7-versatile/linux-armv7-versatile.morph b/old/strata/bsp-armv7-versatile/linux-armv7-versatile.morph new file mode 100644 index 00000000..ed0194b8 --- /dev/null +++ b/old/strata/bsp-armv7-versatile/linux-armv7-versatile.morph @@ -0,0 +1,31 @@ +name: linux-armv7-versatile +kind: chunk +configure-commands: +- make ARCH=arm vexpress_defconfig +- scripts/config -e BTRFS_FS +- scripts/config -e BTRFS_FS_POSIX_ACL +- scripts/config -d BTRFS_FS_CHECK_INTEGRITY +- scripts/config -e DEVTMPFS +- scripts/config -e DEVTMPFS_MOUNT +- scripts/config -e FUSE_FS +- scripts/config -e OVERLAY_FS +- scripts/config -e CONFIG_FHANDLE +- scripts/config -e DEVPTS_MULTIPLE_INSTANCES +- scripts/config -e CGROUPS +- scripts/config -e AUTOFS4_FS +- scripts/config -e BLK_DEV_LOOP +- scripts/config --set-str UEVENT_HELPER_PATH '' +- scripts/config -e DM_SNAPSHOT +- scripts/config -e IKCONFIG +- scripts/config -e IKCONFIG_PROC +- scripts/config -e SECCOMP +- scripts/config -d DEBUG_STACK_TRACE +- scripts/config -e FB_VESA +- scripts/config -e VLAN_8021Q +- scripts/config -e BRIDGE_VLAN_FILTERING +- yes '' | make oldconfig +build-commands: +- make ARCH=arm zImage $MAKEFLAGS +install-commands: +- mkdir -p "$DESTDIR"/boot +- cp arch/arm/boot/zImage "$DESTDIR"/boot/zImage diff --git a/old/strata/bsp-armv7b-highbank.morph b/old/strata/bsp-armv7b-highbank.morph new file mode 100644 index 00000000..397b9fcb --- /dev/null +++ b/old/strata/bsp-armv7b-highbank.morph @@ -0,0 +1,17 @@ +name: bsp-armv7b-highbank +kind: stratum +description: The platform dependent components required to boot an ARM highbank board. +build-depends: +- morph: strata/core.morph +chunks: +- name: linux-armv7b-highbank + morph: strata/bsp-armv7b-highbank/linux-armv7b-highbank.morph + repo: upstream:linux-stable + + # Linux 3.16 and later do not boot on Calxeda. They fail just before + # starting 'init' with this sort of message: + # + # Unhandled fault: imprecise external abort (0xc06) at 0xb6fea878 + + ref: f35b5e46feabab668a44df5b33f3558629f94dfc + unpetrify-ref: v3.15.10 diff --git a/old/strata/bsp-armv7b-highbank/linux-armv7b-highbank.morph b/old/strata/bsp-armv7b-highbank/linux-armv7b-highbank.morph new file mode 100644 index 00000000..1b86d320 --- /dev/null +++ b/old/strata/bsp-armv7b-highbank/linux-armv7b-highbank.morph @@ -0,0 +1,53 @@ +name: linux-armv7b-highbank +kind: chunk +configure-commands: +- make multi_v7_defconfig +- scripts/config -e CPU_BIG_ENDIAN +- scripts/config -e CPU_ENDIAN_BE8 +- scripts/config -e CPU_BE8_BOOT_LE +- scripts/config -e PACKET +- scripts/config -e UNIX +- scripts/config -e NET_KEY +- scripts/config -e INET +- scripts/config -e IP_MULTICAST +- scripts/config -e IP_PNP +- scripts/config -e IP_PNP_DHCP +- scripts/config -e IP_PNP_BOOTP +- scripts/config --set-str UEVENT_HELPER_PATH '' +- scripts/config -e DM_SNAPSHOT +- scripts/config -e DEVTMPFS +- scripts/config -e DEVTMPFS_MOUNT +- scripts/config -e CONFIG_FHANDLE +- scripts/config -e DEVPTS_MULTIPLE_INSTANCES +- scripts/config -e BLK_DEV_LOOP +- scripts/config -e BTRFS_FS +- scripts/config -e TMPFS +- scripts/config -e FUSE_FS +#- scripts/config -e OVERLAY_FS # Activate when we build Linux >= 3.18 +- scripts/config -e IKCONFIG +- scripts/config -e IKCONFIG_PROC +- scripts/config -e CGROUPS +- scripts/config -e AUTOFS4_FS +- scripts/config -e NETWORK_FILESYSTEMS +- scripts/config -e NFS_FS +- scripts/config -e NFS_V3 +- scripts/config -e ROOT_NFS +- scripts/config -e LOCKD +- scripts/config -e LOCKD_V4 +- scripts/config -e NFS_COMMON +- scripts/config -e SUNRPC +- scripts/config -e SYSVIPC +- scripts/config -e CONFIG_POSIX_MQUEUE +- scripts/config -e CPU_IDLE +- scripts/config -e EXT4_FS +- scripts/config -e EXT4_USE_FOR_EXT23 +- scripts/config -e MSDOS_FS +- scripts/config -e VFAT_FS +- scripts/config -e VLAN_8021Q +- scripts/config -e BRIDGE_VLAN_FILTERING +- yes '' | make oldconfig +build-commands: +- make zImage $MAKEFLAGS +install-commands: +- mkdir -p "$DESTDIR"/boot +- cp arch/arm/boot/zImage "$DESTDIR"/boot/zImage diff --git a/old/strata/bsp-armv7b-vexpress-tc2.morph b/old/strata/bsp-armv7b-vexpress-tc2.morph new file mode 100644 index 00000000..ea67c386 --- /dev/null +++ b/old/strata/bsp-armv7b-vexpress-tc2.morph @@ -0,0 +1,11 @@ +name: bsp-armv7b-vexpress-tc2 +kind: stratum +description: The platform dependent components required to boot Versatile TC2 board +build-depends: +- morph: strata/core.morph +chunks: +- name: linux-armv7b-vexpress-tc2 + morph: strata/bsp-armv7b-vexpress-tc2/linux-armv7b-vexpress-tc2.morph + repo: upstream:linux-stable + ref: 660613d1a4e94144490850b6c3d350331860fac4 + unpetrify-ref: v3.19.2 diff --git a/old/strata/bsp-armv7b-vexpress-tc2/linux-armv7b-vexpress-tc2.morph b/old/strata/bsp-armv7b-vexpress-tc2/linux-armv7b-vexpress-tc2.morph new file mode 100644 index 00000000..fd6fab15 --- /dev/null +++ b/old/strata/bsp-armv7b-vexpress-tc2/linux-armv7b-vexpress-tc2.morph @@ -0,0 +1,57 @@ +name: linux-armv7b-vexpress-tc2 +kind: chunk +configure-commands: +- make vexpress_defconfig +- scripts/config -e CPU_BIG_ENDIAN +- scripts/config -e CPU_ENDIAN_BE8 +- scripts/config -e CPU_BE8_BOOT_LE +- scripts/config -e PACKET +- scripts/config -e UNIX +- scripts/config -e NET_KEY +- scripts/config -e INET +- scripts/config -e IP_MULTICAST +- scripts/config -e IP_PNP +- scripts/config -e IP_PNP_DHCP +- scripts/config -e IP_PNP_BOOTP +- scripts/config --set-str UEVENT_HELPER_PATH '' +- scripts/config -e DM_SNAPSHOT +- scripts/config -e DEVTMPFS +- scripts/config -e DEVTMPFS_MOUNT +- scripts/config -e BLK_DEV_LOOP +- scripts/config -e BTRFS_FS +- scripts/config -e TMPFS +- scripts/config -e FUSE_FS +- scripts/config -e OVERLAY_FS +- scripts/config -e IKCONFIG +- scripts/config -e IKCONFIG_PROC +- scripts/config -e CGROUPS +- scripts/config -e CONFIG_FHANDLE +- scripts/config -e DEVPTS_MULTIPLE_INSTANCES +- scripts/config -e AUTOFS4_FS +- scripts/config -e NETWORK_FILESYSTEMS +- scripts/config -e NFS_FS +- scripts/config -e NFS_V3 +- scripts/config -e ROOT_NFS +- scripts/config -e LOCKD +- scripts/config -e LOCKD_V4 +- scripts/config -e NFS_COMMON +- scripts/config -e SUNRPC +- scripts/config -e SYSVIPC +- scripts/config -e CONFIG_POSIX_MQUEUE +- scripts/config -e CPU_IDLE +- scripts/config -e EXT4_FS +- scripts/config -e EXT4_USE_FOR_EXT23 +- scripts/config -e MSDOS_FS +- scripts/config -e VFAT_FS +- scripts/config -e VLAN_8021Q +- scripts/config -e BRIDGE_VLAN_FILTERING +- scripts/config -e VETH +- yes '' | make oldconfig +build-commands: +- make zImage vexpress-v2p-ca15_a7.dtb +- | + cat arch/arm/boot/zImage arch/arm/boot/dts/vexpress-v2p-ca15_a7.dtb | + dd conv=sync bs=4 of=kernel.bin +install-commands: +- mkdir -p "$DESTDIR"/boot +- cp kernel.bin "$DESTDIR"/boot/zImage diff --git a/old/strata/bsp-armv7l-altera-socfpga-devkit.morph b/old/strata/bsp-armv7l-altera-socfpga-devkit.morph new file mode 100644 index 00000000..403e04e1 --- /dev/null +++ b/old/strata/bsp-armv7l-altera-socfpga-devkit.morph @@ -0,0 +1,39 @@ +name: bsp-armv7l-altera-socfpga-devkit +kind: stratum +description: | + The platform dependent components required to boot the Altera Cortex-A9 + HPS core on an Altera SoCFPGA development kit. +build-depends: +- morph: strata/coreutils-common.morph +- morph: strata/tools.morph +chunks: +- name: u-boot-tools@socfpga-devkit + morph: strata/bsp-armv7l-altera-socfpga-devkit/u-boot-tools@socfpga-devkit.morph + repo: upstream:u-boot + ref: 905e8f9e53766e606bd4a0ed46d804889e613f32 + unpetrify-ref: v2015.07-rc1 +- name: u-boot@socfpga-devkit + morph: strata/bsp-armv7l-altera-socfpga-devkit/u-boot@socfpga-devkit.morph + repo: upstream:u-boot-socfpga + ref: 32c1d91bc0d10beca54c2dfc5b475d4ffeffc15a + unpetrify-ref: socfpga_v2013.01.01 +- name: bsp-support@socfpga-devkit + morph: strata/bsp-armv7l-altera-socfpga-devkit/bsp-support@socfpga-devkit.morph + repo: baserock:baserock/bsp-support + ref: 95e6be2188ad9dfd13cb8887cdc698519831871d + unpetrify-ref: master + build-depends: + - u-boot-tools@socfpga-devkit +- name: preloader@socfpga-devkit + morph: strata/bsp-armv7l-altera-socfpga-devkit/preloader@socfpga-devkit.morph + repo: upstream:u-boot-socfpga + ref: 32c1d91bc0d10beca54c2dfc5b475d4ffeffc15a + unpetrify-ref: socfpga_v2013.01.01 + build-depends: + - bsp-support@socfpga-devkit + - u-boot-tools@socfpga-devkit +- name: linux-armv7l-altera-socfpga-devkit + morph: strata/bsp-armv7l-altera-socfpga-devkit/linux-armv7l-altera-socfpga-devkit.morph + repo: upstream:linux + ref: e26081808edadfd257c6c9d81014e3b25e9a6118 + unpetrify-ref: v4.1-rc4 diff --git a/old/strata/bsp-armv7l-altera-socfpga-devkit/bsp-support@socfpga-devkit.morph b/old/strata/bsp-armv7l-altera-socfpga-devkit/bsp-support@socfpga-devkit.morph new file mode 100644 index 00000000..2e206b4e --- /dev/null +++ b/old/strata/bsp-armv7l-altera-socfpga-devkit/bsp-support@socfpga-devkit.morph @@ -0,0 +1,17 @@ +name: bsp-support@socfpga-devkit +kind: chunk +build-commands: +# Modify auto-generated source files: +- mv altera-socfpga/* . +- for file in patches/*.diff; do patch -p 1 < "$file"; done +- sed -i 's/^PRELOADER_SETTINGS_DIR := .*$/PRELOADER_SETTINGS_DIR := .\/hps_hps_0/' hardware-handoff/spl_bsp/Makefile +- sed -i 's/^CROSS_COMPILE := .*$/CROSS_COMPILE := \/usr\/bin\//' hardware-handoff/spl_bsp/Makefile +- mkenvimage -s 4096 -o socfpga-devkit-env.img socfpga-devkit-env.txt +- dtc -f -I dts -O dtb dts-generated/socfpga-devkit.dts > socfpga-devkit.dtb +install-commands: +- mkdir -p "$DESTDIR/boot" +- install -m 755 socfpga-devkit-env.img "$DESTDIR/boot" +- install -m 755 socfpga-devkit.dtb "$DESTDIR/boot" +# These files are required later, to be built against U-Boot: +- mkdir -p "$DESTDIR/tmp/preloader" +- cp -R ./hardware-handoff/* "$DESTDIR/tmp/preloader" diff --git a/old/strata/bsp-armv7l-altera-socfpga-devkit/device-tree-compiler.morph b/old/strata/bsp-armv7l-altera-socfpga-devkit/device-tree-compiler.morph new file mode 100644 index 00000000..8abfafc8 --- /dev/null +++ b/old/strata/bsp-armv7l-altera-socfpga-devkit/device-tree-compiler.morph @@ -0,0 +1,6 @@ +name: device-tree-compiler +kind: chunk +build-commands: +- make all +install-commands: +- make install DESTDIR="$DESTDIR" PREFIX="$PREFIX" diff --git a/old/strata/bsp-armv7l-altera-socfpga-devkit/linux-armv7l-altera-socfpga-devkit.morph b/old/strata/bsp-armv7l-altera-socfpga-devkit/linux-armv7l-altera-socfpga-devkit.morph new file mode 100644 index 00000000..be372265 --- /dev/null +++ b/old/strata/bsp-armv7l-altera-socfpga-devkit/linux-armv7l-altera-socfpga-devkit.morph @@ -0,0 +1,34 @@ +name: linux-armv7l-altera-socfpga-devkit +kind: chunk +configure-commands: +- git status +- make ARCH=arm socfpga_defconfig +- scripts/config -e BTRFS_FS +- scripts/config -e BTRFS_FS_POSIX_ACL +- scripts/config -d BTRFS_FS_CHECK_INTEGRITY +- scripts/config -e DEVTMPFS +- scripts/config -e DEVTMPFS_MOUNT +- scripts/config -e FUSE_FS +- scripts/config -e OVERLAY_FS +- scripts/config -e CONFIG_FHANDLE +- scripts/config -e CGROUPS +- scripts/config -e AUTOFS4_FS +- scripts/config -e BLK_DEV_LOOP +- scripts/config --set-str UEVENT_HELPER_PATH '' +- scripts/config -e DM_SNAPSHOT +- scripts/config -e IKCONFIG +- scripts/config -e IKCONFIG_PROC +- scripts/config -e SECCOMP +- scripts/config -d DEBUG_STACK_TRACE +- scripts/config -e FB_VESA +- scripts/config -e VLAN_8021Q +- scripts/config -e BRIDGE_VLAN_FILTERING +- scripts/config -e IPV6 +- scripts/config -d MTD_NAND +- yes '' | make oldconfig +build-commands: +- make ARCH=arm LOADADDR=0x8000 zImage dtbs $MAKEFLAGS +install-commands: +- mkdir -p "$DESTDIR"/boot +- cp arch/arm/boot/zImage "$DESTDIR"/boot/zImage +- cp arch/arm/boot/dts/socfpga_cyclone5*.dtb "$DESTDIR"/boot/ diff --git a/old/strata/bsp-armv7l-altera-socfpga-devkit/preloader@socfpga-devkit.morph b/old/strata/bsp-armv7l-altera-socfpga-devkit/preloader@socfpga-devkit.morph new file mode 100644 index 00000000..c61b10a7 --- /dev/null +++ b/old/strata/bsp-armv7l-altera-socfpga-devkit/preloader@socfpga-devkit.morph @@ -0,0 +1,17 @@ +name: preloader@socfpga-devkit +kind: chunk +configure-commands: +- mkdir uboot-socfpga +- find -maxdepth 1 | egrep -v '^./uboot-socfpga|\.$' | xargs -I {} mv {} uboot-socfpga +- cp -R /tmp/preloader/spl_bsp/* . +- cp -R /tmp/preloader/hps_hps_0 . +build-commands: +- make +- mkimage -T socfpgaimage -d uboot-socfpga/spl/u-boot-spl.bin preloader.bin +# Signed preloader needs to be duplicated four times +# which U-Boot's mkimage tool doesn't support +- dd if=/dev/zero of=socfpga-preloader.img bs=64K count=4 +- for i in $(seq 0 3); do dd if=preloader.bin of=socfpga-preloader.img bs=64K seek="$i" conv=notrunc; done +install-commands: +- mkdir -p "$DESTDIR/boot" +- install -m 755 socfpga-preloader.img "$DESTDIR/boot" diff --git a/old/strata/bsp-armv7l-altera-socfpga-devkit/u-boot-tools@socfpga-devkit.morph b/old/strata/bsp-armv7l-altera-socfpga-devkit/u-boot-tools@socfpga-devkit.morph new file mode 100644 index 00000000..f7d3f7cb --- /dev/null +++ b/old/strata/bsp-armv7l-altera-socfpga-devkit/u-boot-tools@socfpga-devkit.morph @@ -0,0 +1,14 @@ +name: u-boot-tools@socfpga-devkit +kind: chunk +configure-commands: +- git status +- make ARCH=arm socfpga_cyclone5_config +build-commands: +- make ARCH=arm tools +install-commands: +- mkdir -p "$DESTDIR$PREFIX/bin" +- install -m 755 tools/img2brec.sh "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/jtagconsole "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/netconsole "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/mkenvimage "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/mkimage "$DESTDIR$PREFIX/bin/." diff --git a/old/strata/bsp-armv7l-altera-socfpga-devkit/u-boot@socfpga-devkit.morph b/old/strata/bsp-armv7l-altera-socfpga-devkit/u-boot@socfpga-devkit.morph new file mode 100644 index 00000000..2b7ce450 --- /dev/null +++ b/old/strata/bsp-armv7l-altera-socfpga-devkit/u-boot@socfpga-devkit.morph @@ -0,0 +1,9 @@ +name: u-boot@socfpga-devkit +kind: chunk +configure-commands: +- make ARCH=arm socfpga_cyclone5_config +build-commands: +- make ARCH=arm +install-commands: +- mkdir -p "$DESTDIR/boot" +- install -m 755 u-boot.img "$DESTDIR/boot" diff --git a/old/strata/bsp-armv8b64-generic.morph b/old/strata/bsp-armv8b64-generic.morph new file mode 100644 index 00000000..636e62b4 --- /dev/null +++ b/old/strata/bsp-armv8b64-generic.morph @@ -0,0 +1,15 @@ +name: bsp-armv8b64-generic +kind: stratum +description: | + The set of platform specific components required for booting generic ARMv8 + systems in big-endian mode, such as the 64-bit APM XGene ARM based m400 + Moonshot cartridge. +build-depends: +- morph: strata/core.morph +chunks: +- name: linux-armv8b64-generic + morph: strata/bsp-armv8b64-generic/linux-armv8b64-generic.morph + repo: upstream:linux + ref: cd1397b1f6e429b82e94565b0af93c6bd44e4271 + unpetrify-ref: baserock/bjdooks/m400-be3 + build-depends: [] diff --git a/old/strata/bsp-armv8b64-generic/linux-armv8b64-generic.morph b/old/strata/bsp-armv8b64-generic/linux-armv8b64-generic.morph new file mode 100644 index 00000000..9362eb6e --- /dev/null +++ b/old/strata/bsp-armv8b64-generic/linux-armv8b64-generic.morph @@ -0,0 +1,278 @@ +name: linux-armv8b64-generic +kind: chunk +configure-commands: +- make ARCH=arm64 defconfig +- scripts/config -e PACKET +- scripts/config -e SATA_AHCI +- scripts/config -e ATA_GENERIC +- scripts/config -e HAVE_IDE +- scripts/config -d BLK_DEV_IDE_SATA +- scripts/config -e BTRFS_FS +- scripts/config -e BTRFS_FS_POSIX_ACL +- scripts/config -e DEVTMPFS +- scripts/config -e DEVTMPFS_MOUNT +- scripts/config -e CONFIG_FHANDLE +- scripts/config -e DEVPTS_MULTIPLE_INSTANCES +- scripts/config -e CGROUPS +- scripts/config -e AUTOFS4_FS +- scripts/config --set-str UEVENT_HELPER_PATH '' +- scripts/config -e EXT2_FS +- scripts/config -e EXT2_FS_XATTR +- scripts/config -e EXT2_FS_POSIX_ACL +- scripts/config -e EXT2_FS_SECURITY +- scripts/config -e EXT2_FS_XIP +- scripts/config -e EXT3_FS +- scripts/config -d EXT3_DEFAULTS_TO_ORDERED +- scripts/config -e EXT3_FS_XATTR +- scripts/config -e EXT3_FS_POSIX_ACL +- scripts/config -e EXT3_FS_SECURITY +- scripts/config -e EXT4_FS +- scripts/config -e EXT4_FS_XATTR +- scripts/config -e EXT4_FS_POSIX_ACL +- scripts/config -e EXT4_FS_SECURITY +- scripts/config -d EXT4_DEBUG +- scripts/config -e XFS_FS +- scripts/config -e LIBCRC32C +- scripts/config -e FUSE_FS +- scripts/config -e OVERLAY_FS +- scripts/config -d JBD_DEBUG +- scripts/config -d JBD2_DEBUG +- scripts/config -e BLK_DEV_LOOP +- scripts/config -d BLK_DEV_CRYPTOLOOP +- scripts/config -e CEPH_FS +- scripts/config --set-val BLK_DEV_LOOP_MIN_COUNT 8 +- scripts/config -e DM_SNAPSHOT +- scripts/config -e VIRTIO +- scripts/config -e VIRTIO_RING +- scripts/config -e VIRTIO_PCI +- scripts/config -e VIRTIO_BALLOON +- scripts/config -e VIRTIO_BLK +- scripts/config -e VIRTIO_NET +- scripts/config -e VIRTIO_CONSOLE +- scripts/config -e HW_RANDOM_VIRTIO +- scripts/config -e 9P_FS +- scripts/config -e 9P_FSCACHE +- scripts/config -e 9P_FS_POSIX_ACL +- scripts/config -e NET_9P +- scripts/config -e NET_9P_VIRTIO +- scripts/config -e R8169 +- scripts/config -e 8139TOO +- scripts/config -e 8139CP +- scripts/config -e IKCONFIG +- scripts/config -e IKCONFIG_PROC +- scripts/config -e SECCOMP +- scripts/config -d DEBUG_STACK_TRACE +- scripts/config -e NFSD +- scripts/config -e NFSD_V3 +- scripts/config -e KVM +- scripts/config -e TUN +- scripts/config -e BRIDGE +- scripts/config -e VHOST_NET +- scripts/config -e NF_NAT +- scripts/config -e IP_NF_NAT +- scripts/config -e IP_NF_TARGET_MASQUERADE +- scripts/config -e FB_VESA +- scripts/config -e HOTPLUG_PCI +- scripts/config -e HOTPLUG_PCI_ACPI +- scripts/config -e VLAN_8021Q +- scripts/config -e BRIDGE_VLAN_FILTERING +- scripts/config -e IPV6 +- scripts/config -e BLK_DEV_NBD +- scripts/config -e BRIDGE_NF_EBTABLES +- scripts/config -e NETFILTER +- scripts/config -e NETFILTER_ADVANCED +- scripts/config -e NETFILTER_XT_MATCH_ADDRTYPE +- scripts/config -e OPENVSWITCH +- scripts/config -e OPENVSWITCH_VXLAN +- scripts/config -e CONFIG_OPENVSWITCH_GRE +- scripts/config -e NET_CLS_BASIC +- scripts/config -e NET_SCH_INGRESS +- scripts/config -e NET_ACT_POLICE +- scripts/config -e NET_IPGRE_DEMUX +- scripts/config -e NET_SCH_HTB +- scripts/config -e NET_SCH_HFSC +- scripts/config -e VXLAN +- scripts/config -e VETH +- scripts/config -e IP_NF_MATCH_AH +- scripts/config -e IP_NF_MATCH_ECN +- scripts/config -e IP_NF_MATCH_RPFILTER +- scripts/config -e IP_NF_MATCH_TTL +- scripts/config -e IP_NF_TARGET_SYNPROXY +- scripts/config -e IP_NF_TARGET_NETMAP +- scripts/config -e IP_NF_TARGET_REDIRECT +- scripts/config -e IP_NF_TARGET_CLUSTERIP +- scripts/config -e IP_NF_TARGET_ECN +- scripts/config -e IP_NF_TARGET_TTL +- scripts/config -e IP_NF_RAW +- scripts/config -e IP_NF_SECURITY +- scripts/config -e IP_NF_ARPTABLES +- scripts/config -e NETFILTER_NETLINK_QUEUE +- scripts/config -e SCSI_NETLINK +- scripts/config -e NETFILTER_XT_TARGET_MARK +- scripts/config -e NETFILTER_XT_SET +- scripts/config -e IP_SET +- scripts/config -e IP_SET_BITMAP_IP +- scripts/config -e IP_SET_BITMAP_IPMAC +- scripts/config -e IP_SET_BITMAP_PORT +- scripts/config -e IP_SET_HASH_IP +- scripts/config -e IP_SET_HASH_IPMARK +- scripts/config -e IP_SET_HASH_IPPORT +- scripts/config -e IP_SET_HASH_IPPORTIP +- scripts/config -e IP_SET_HASH_IPPORTNET +- scripts/config -e IP_SET_HASH_MAC +- scripts/config -e IP_SET_HASH_NETPORTNET +- scripts/config -e IP_SET_HASH_NET +- scripts/config -e IP_SET_HASH_NETNET +- scripts/config -e IP_SET_HASH_NETPORT +- scripts/config -e IP_SET_HASH_NETIFACE +- scripts/config -e IP_SET_LIST_SET +- scripts/config -e NF_CONNTRACK_TIMEOUT +- scripts/config -e NF_CONNTRACK_TIMESTAMP +- scripts/config -e NF_CONNTRACK_EVENTS +- scripts/config -e NF_CONNTRACK_LABELS +- scripts/config -e NETFILTER_NETLINK_ACCT +- scripts/config -e NETFILTER_NETLINK_QUEUE_CT +- scripts/config -e NF_CT_PROTO_DCCP +- scripts/config -e NF_CT_PROTO_GRE +- scripts/config -e NF_CT_PROTO_SCTP +- scripts/config -e NF_CT_PROTO_UDPLITE +- scripts/config -e NF_CT_NETLINK_TIMEOUT +- scripts/config -e NF_CT_NETLINK_HELPER +- scripts/config -e NF_CONNTRACK_AMANDA +- scripts/config -e NF_CONNTRACK_H323 +- scripts/config -e NF_CONNTRACK_BROADCAST +- scripts/config -e NF_CONNTRACK_NETBIOS_NS +- scripts/config -e NF_CONNTRACK_SNMP +- scripts/config -e NF_CONNTRACK_PPTP +- scripts/config -e NF_CONNTRACK_SANE +- scripts/config -e NF_CONNTRACK_TFTP +- scripts/config -e NF_LOG_COMMON +- scripts/config -e NF_NAT_PROTO_DCCP +- scripts/config -e NF_NAT_PROTO_UDPLITE +- scripts/config -e NF_NAT_PROTO_SCTP +- scripts/config -e NF_NAT_AMANDA +- scripts/config -e NF_NAT_TFTP +- scripts/config -e NF_TABLES +- scripts/config -e NF_TABLES_INET +- scripts/config -e NFT_COMPAT +- scripts/config -e NFT_EXTHDR +- scripts/config -e NFT_META +- scripts/config -e NFT_CT +- scripts/config -e NFT_LIMIT +- scripts/config -e NFT_NAT +- scripts/config -e NFT_QUEUE +- scripts/config -e NFT_REJECT +- scripts/config -e NFT_REJECT_INET +- scripts/config -e NFT_RBTREE +- scripts/config -e NFT_HASH +- scripts/config -e NFT_COUNTER +- scripts/config -e NFT_LOG +- scripts/config -e NFT_MASQ +- scripts/config -e NETFILTER_XT_CONNMARK +- scripts/config -e NETFILTER_XT_TARGET_AUDIT +- scripts/config -e NETFILTER_XT_TARGET_CHECKSUM +- scripts/config -e NETFILTER_XT_TARGET_CLASSIFY +- scripts/config -e NETFILTER_XT_TARGET_CT +- scripts/config -e NETFILTER_XT_TARGET_DSCP +- scripts/config -e NETFILTER_XT_TARGET_HMARK +- scripts/config -e NETFILTER_XT_TARGET_LED +- scripts/config -e NETFILTER_XT_TARGET_LOG +- scripts/config -e NETFILTER_XT_TARGET_NFQUEUE +- scripts/config -e NETFILTER_XT_TARGET_RATEEST +- scripts/config -e NETFILTER_XT_TARGET_TPROXY +- scripts/config -e NETFILTER_XT_TARGET_TCPOPTSTRIP +- scripts/config -e NETFILTER_XT_TARGET_TEE +- scripts/config -e NETFILTER_XT_TARGET_TRACE +- scripts/config -e NETFILTER_XT_TARGET_IDLETIMER +- scripts/config -e NETFILTER_XT_MATCH_BPF +- scripts/config -e NETFILTER_XT_MATCH_CLUSTER +- scripts/config -e NETFILTER_XT_MATCH_COMMENT +- scripts/config -e NETFILTER_XT_MATCH_CONNBYTES +- scripts/config -e NETFILTER_XT_MATCH_CONNLABEL +- scripts/config -e NETFILTER_XT_MATCH_CONNLIMIT +- scripts/config -e NETFILTER_XT_MATCH_CPU +- scripts/config -e NETFILTER_XT_MATCH_DCCP +- scripts/config -e NETFILTER_XT_MATCH_DEVGROUP +- scripts/config -e NETFILTER_XT_MATCH_DSCP +- scripts/config -e NETFILTER_XT_MATCH_ESP +- scripts/config -e NETFILTER_XT_MATCH_HASHLIMIT +- scripts/config -e NETFILTER_XT_MATCH_HELPER +- scripts/config -e NETFILTER_XT_MATCH_IPCOMP +- scripts/config -e NETFILTER_XT_MATCH_IPRANGE +- scripts/config -e NETFILTER_XT_MATCH_IPVS +- scripts/config -e NETFILTER_XT_MATCH_L2TP +- scripts/config -e NETFILTER_XT_MATCH_LENGTH +- scripts/config -e NETFILTER_XT_MATCH_LIMIT +- scripts/config -e NETFILTER_XT_MATCH_MAC +- scripts/config -e NETFILTER_XT_MATCH_MULTIPORT +- scripts/config -e NETFILTER_XT_MATCH_NFACCT +- scripts/config -e NETFILTER_XT_MATCH_OSF +- scripts/config -e NETFILTER_XT_MATCH_OWNER +- scripts/config -e NETFILTER_XT_MATCH_CGROUP +- scripts/config -e NETFILTER_XT_MATCH_PHYSDEV +- scripts/config -e NETFILTER_XT_MATCH_PKTTYPE +- scripts/config -e NETFILTER_XT_MATCH_QUOTA +- scripts/config -e NETFILTER_XT_MATCH_RATEEST +- scripts/config -e NETFILTER_XT_MATCH_REALM +- scripts/config -e NETFILTER_XT_MATCH_RECENT +- scripts/config -e NETFILTER_XT_MATCH_SCTP +- scripts/config -e NETFILTER_XT_MATCH_SOCKET +- scripts/config -e NETFILTER_XT_MATCH_STATISTIC +- scripts/config -e NETFILTER_XT_MATCH_STRING +- scripts/config -e NETFILTER_XT_MATCH_TCPMSS +- scripts/config -e NETFILTER_XT_MATCH_TIME +- scripts/config -e NETFILTER_XT_MATCH_U32 +- scripts/config -e IP_VS +- scripts/config -e BRIDGE_NETFILTER +- scripts/config -e CRYPTO_CRC32C +- scripts/config -e CONFIGFS_FS +- scripts/config -e EXPERT +- scripts/config -e TARGET_CORE +- scripts/config -e ISCSI_TARGET +- scripts/config -e TCM_IBLOCK +- scripts/config -e TCM_FILEIO +- scripts/config -e TCM_PSCSI +- scripts/config -e TCM_USER +- scripts/config -e CONFIG_UIO +- scripts/config -e LOOPBACK_TARGET +- scripts/config -e TCM_FC +- scripts/config -e LIBFC +- scripts/config -e SCSI_FC_ATTRS +- scripts/config -e SCSI_ISCSI_ATTRS +- scripts/config -e ISCSI_TCP +- scripts/config -e SCSI_LOWLEVEL +# Required for M400 +- scripts/config -e SATA_AHCI_PLATFORM +- scripts/config -e AHCI_XGENE +- scripts/config -e GENERIC_PHY +- scripts/config -e PHY_XGENE +- scripts/config -e NET_VENDOR_MELLANOX +- scripts/config -e MLX4_EN +- scripts/config -e MLX4_EN_DCB +- scripts/config -e MLX4_EN_VXLAN +- scripts/config -e MLX4_CORE +- scripts/config -e MLX5_CORE +- scripts/config -e NET_IP_TUNNEL +- scripts/config -e VXLAN +- scripts/config -e UIO +- scripts/config -e UIO_PDRV_GENIRQ +- scripts/config -e GPIO_DWAPB +- scripts/config -e KEYBOARD_GPIO +- scripts/config -e INPUT_POLLDEV +- scripts/config -e KEYBOARD_GPIO_POLLED +- scripts/config -d DMA_CMA +- scripts/config -e POWER_RESET +- scripts/config -e POWER_RESET_GPIO +- scripts/config -e POWER_RESET_SYSCON +- scripts/config -e POWER_AVS +# Big endian kernel +- scripts/config -e CPU_BIG_ENDIAN +- yes '' | make ARCH=arm64 oldconfig +build-commands: +# Only generate Image here, uImage generated in deployment +# due to availability of mkimage build systems +- make vmlinux dtbs $MAKEFLAGS +install-commands: +- mkdir -p "$DESTDIR"/boot +- make install dtbs_install INSTALL_PATH="$DESTDIR/boot" +- cp arch/arm64/boot/Image "$DESTDIR/boot/vmlinux" diff --git a/old/strata/bsp-armv8l64-generic.morph b/old/strata/bsp-armv8l64-generic.morph new file mode 100644 index 00000000..ca74dbe3 --- /dev/null +++ b/old/strata/bsp-armv8l64-generic.morph @@ -0,0 +1,14 @@ +name: bsp-armv8l64-generic +kind: stratum +description: | + The set of platform specific components required for booting + armv8l64-based systems, like the 64-bit APM XGene ARM based m400 + Moonshot cartridge. +build-depends: +- morph: strata/core.morph +chunks: +- name: linux-armv8l64-generic + morph: strata/bsp-armv8l64-generic/linux-armv8l64-generic.morph + repo: upstream:linux + ref: 5f06398ae6a04f414932243de38b5cf3d264ff84 + unpetrify-ref: baserock/apm-xgene-m400-moonshot-cartridge diff --git a/old/strata/bsp-armv8l64-generic/linux-armv8l64-generic.morph b/old/strata/bsp-armv8l64-generic/linux-armv8l64-generic.morph new file mode 100644 index 00000000..dd54b4e4 --- /dev/null +++ b/old/strata/bsp-armv8l64-generic/linux-armv8l64-generic.morph @@ -0,0 +1,276 @@ +name: linux-armv8l64-generic +kind: chunk +configure-commands: +- make ARCH=arm64 defconfig +- scripts/config -e PACKET +- scripts/config -e SATA_AHCI +- scripts/config -e ATA_GENERIC +- scripts/config -e HAVE_IDE +- scripts/config -d BLK_DEV_IDE_SATA +- scripts/config -e BTRFS_FS +- scripts/config -e BTRFS_FS_POSIX_ACL +- scripts/config -e DEVTMPFS +- scripts/config -e DEVTMPFS_MOUNT +- scripts/config -e CONFIG_FHANDLE +- scripts/config -e DEVPTS_MULTIPLE_INSTANCES +- scripts/config -e CGROUPS +- scripts/config -e AUTOFS4_FS +- scripts/config --set-str UEVENT_HELPER_PATH '' +- scripts/config -e EXT2_FS +- scripts/config -e EXT2_FS_XATTR +- scripts/config -e EXT2_FS_POSIX_ACL +- scripts/config -e EXT2_FS_SECURITY +- scripts/config -e EXT2_FS_XIP +- scripts/config -e EXT3_FS +- scripts/config -d EXT3_DEFAULTS_TO_ORDERED +- scripts/config -e EXT3_FS_XATTR +- scripts/config -e EXT3_FS_POSIX_ACL +- scripts/config -e EXT3_FS_SECURITY +- scripts/config -e EXT4_FS +- scripts/config -e EXT4_FS_XATTR +- scripts/config -e EXT4_FS_POSIX_ACL +- scripts/config -e EXT4_FS_SECURITY +- scripts/config -d EXT4_DEBUG +- scripts/config -e FUSE_FS +- scripts/config -e OVERLAY_FS +- scripts/config -e XFS_FS +- scripts/config -e LIBCRC32C +- scripts/config -d JBD_DEBUG +- scripts/config -d JBD2_DEBUG +- scripts/config -e BLK_DEV_LOOP +- scripts/config -d BLK_DEV_CRYPTOLOOP +- scripts/config -e CEPH_FS +- scripts/config --set-val BLK_DEV_LOOP_MIN_COUNT 8 +- scripts/config -e DM_SNAPSHOT +- scripts/config -e VIRTIO +- scripts/config -e VIRTIO_RING +- scripts/config -e VIRTIO_PCI +- scripts/config -e VIRTIO_BALLOON +- scripts/config -e VIRTIO_BLK +- scripts/config -e VIRTIO_NET +- scripts/config -e VIRTIO_CONSOLE +- scripts/config -e HW_RANDOM_VIRTIO +- scripts/config -e 9P_FS +- scripts/config -e 9P_FSCACHE +- scripts/config -e 9P_FS_POSIX_ACL +- scripts/config -e NET_9P +- scripts/config -e NET_9P_VIRTIO +- scripts/config -e R8169 +- scripts/config -e 8139TOO +- scripts/config -e 8139CP +- scripts/config -e IKCONFIG +- scripts/config -e IKCONFIG_PROC +- scripts/config -e SECCOMP +- scripts/config -d DEBUG_STACK_TRACE +- scripts/config -e NFSD +- scripts/config -e NFSD_V3 +- scripts/config -e KVM +- scripts/config -e TUN +- scripts/config -e BRIDGE +- scripts/config -e VHOST_NET +- scripts/config -e NF_NAT +- scripts/config -e IP_NF_NAT +- scripts/config -e IP_NF_TARGET_MASQUERADE +- scripts/config -e FB_VESA +- scripts/config -e HOTPLUG_PCI +- scripts/config -e HOTPLUG_PCI_ACPI +- scripts/config -e VLAN_8021Q +- scripts/config -e BRIDGE_VLAN_FILTERING +- scripts/config -e IPV6 +- scripts/config -e BLK_DEV_NBD +- scripts/config -e BRIDGE_NF_EBTABLES +- scripts/config -e NETFILTER +- scripts/config -e NETFILTER_ADVANCED +- scripts/config -e NETFILTER_XT_MATCH_ADDRTYPE +- scripts/config -e OPENVSWITCH +- scripts/config -e OPENVSWITCH_VXLAN +- scripts/config -e CONFIG_OPENVSWITCH_GRE +- scripts/config -e NET_CLS_BASIC +- scripts/config -e NET_SCH_INGRESS +- scripts/config -e NET_ACT_POLICE +- scripts/config -e NET_IPGRE_DEMUX +- scripts/config -e NET_SCH_HTB +- scripts/config -e NET_SCH_HFSC +- scripts/config -e VXLAN +- scripts/config -e VETH +- scripts/config -e IP_NF_MATCH_AH +- scripts/config -e IP_NF_MATCH_ECN +- scripts/config -e IP_NF_MATCH_RPFILTER +- scripts/config -e IP_NF_MATCH_TTL +- scripts/config -e IP_NF_TARGET_SYNPROXY +- scripts/config -e IP_NF_TARGET_NETMAP +- scripts/config -e IP_NF_TARGET_REDIRECT +- scripts/config -e IP_NF_TARGET_CLUSTERIP +- scripts/config -e IP_NF_TARGET_ECN +- scripts/config -e IP_NF_TARGET_TTL +- scripts/config -e IP_NF_RAW +- scripts/config -e IP_NF_SECURITY +- scripts/config -e IP_NF_ARPTABLES +- scripts/config -e NETFILTER_NETLINK_QUEUE +- scripts/config -e SCSI_NETLINK +- scripts/config -e NETFILTER_XT_TARGET_MARK +- scripts/config -e NETFILTER_XT_SET +- scripts/config -e IP_SET +- scripts/config -e IP_SET_BITMAP_IP +- scripts/config -e IP_SET_BITMAP_IPMAC +- scripts/config -e IP_SET_BITMAP_PORT +- scripts/config -e IP_SET_HASH_IP +- scripts/config -e IP_SET_HASH_IPMARK +- scripts/config -e IP_SET_HASH_IPPORT +- scripts/config -e IP_SET_HASH_IPPORTIP +- scripts/config -e IP_SET_HASH_IPPORTNET +- scripts/config -e IP_SET_HASH_MAC +- scripts/config -e IP_SET_HASH_NETPORTNET +- scripts/config -e IP_SET_HASH_NET +- scripts/config -e IP_SET_HASH_NETNET +- scripts/config -e IP_SET_HASH_NETPORT +- scripts/config -e IP_SET_HASH_NETIFACE +- scripts/config -e IP_SET_LIST_SET +- scripts/config -e NF_CONNTRACK_TIMEOUT +- scripts/config -e NF_CONNTRACK_TIMESTAMP +- scripts/config -e NF_CONNTRACK_EVENTS +- scripts/config -e NF_CONNTRACK_LABELS +- scripts/config -e NETFILTER_NETLINK_ACCT +- scripts/config -e NETFILTER_NETLINK_QUEUE_CT +- scripts/config -e NF_CT_PROTO_DCCP +- scripts/config -e NF_CT_PROTO_GRE +- scripts/config -e NF_CT_PROTO_SCTP +- scripts/config -e NF_CT_PROTO_UDPLITE +- scripts/config -e NF_CT_NETLINK_TIMEOUT +- scripts/config -e NF_CT_NETLINK_HELPER +- scripts/config -e NF_CONNTRACK_AMANDA +- scripts/config -e NF_CONNTRACK_H323 +- scripts/config -e NF_CONNTRACK_BROADCAST +- scripts/config -e NF_CONNTRACK_NETBIOS_NS +- scripts/config -e NF_CONNTRACK_SNMP +- scripts/config -e NF_CONNTRACK_PPTP +- scripts/config -e NF_CONNTRACK_SANE +- scripts/config -e NF_CONNTRACK_TFTP +- scripts/config -e NF_LOG_COMMON +- scripts/config -e NF_NAT_PROTO_DCCP +- scripts/config -e NF_NAT_PROTO_UDPLITE +- scripts/config -e NF_NAT_PROTO_SCTP +- scripts/config -e NF_NAT_AMANDA +- scripts/config -e NF_NAT_TFTP +- scripts/config -e NF_TABLES +- scripts/config -e NF_TABLES_INET +- scripts/config -e NFT_COMPAT +- scripts/config -e NFT_EXTHDR +- scripts/config -e NFT_META +- scripts/config -e NFT_CT +- scripts/config -e NFT_LIMIT +- scripts/config -e NFT_NAT +- scripts/config -e NFT_QUEUE +- scripts/config -e NFT_REJECT +- scripts/config -e NFT_REJECT_INET +- scripts/config -e NFT_RBTREE +- scripts/config -e NFT_HASH +- scripts/config -e NFT_COUNTER +- scripts/config -e NFT_LOG +- scripts/config -e NFT_MASQ +- scripts/config -e NETFILTER_XT_CONNMARK +- scripts/config -e NETFILTER_XT_TARGET_AUDIT +- scripts/config -e NETFILTER_XT_TARGET_CHECKSUM +- scripts/config -e NETFILTER_XT_TARGET_CLASSIFY +- scripts/config -e NETFILTER_XT_TARGET_CT +- scripts/config -e NETFILTER_XT_TARGET_DSCP +- scripts/config -e NETFILTER_XT_TARGET_HMARK +- scripts/config -e NETFILTER_XT_TARGET_LED +- scripts/config -e NETFILTER_XT_TARGET_LOG +- scripts/config -e NETFILTER_XT_TARGET_NFQUEUE +- scripts/config -e NETFILTER_XT_TARGET_RATEEST +- scripts/config -e NETFILTER_XT_TARGET_TPROXY +- scripts/config -e NETFILTER_XT_TARGET_TCPOPTSTRIP +- scripts/config -e NETFILTER_XT_TARGET_TEE +- scripts/config -e NETFILTER_XT_TARGET_TRACE +- scripts/config -e NETFILTER_XT_TARGET_IDLETIMER +- scripts/config -e NETFILTER_XT_MATCH_BPF +- scripts/config -e NETFILTER_XT_MATCH_CLUSTER +- scripts/config -e NETFILTER_XT_MATCH_COMMENT +- scripts/config -e NETFILTER_XT_MATCH_CONNBYTES +- scripts/config -e NETFILTER_XT_MATCH_CONNLABEL +- scripts/config -e NETFILTER_XT_MATCH_CONNLIMIT +- scripts/config -e NETFILTER_XT_MATCH_CPU +- scripts/config -e NETFILTER_XT_MATCH_DCCP +- scripts/config -e NETFILTER_XT_MATCH_DEVGROUP +- scripts/config -e NETFILTER_XT_MATCH_DSCP +- scripts/config -e NETFILTER_XT_MATCH_ESP +- scripts/config -e NETFILTER_XT_MATCH_HASHLIMIT +- scripts/config -e NETFILTER_XT_MATCH_HELPER +- scripts/config -e NETFILTER_XT_MATCH_IPCOMP +- scripts/config -e NETFILTER_XT_MATCH_IPRANGE +- scripts/config -e NETFILTER_XT_MATCH_IPVS +- scripts/config -e NETFILTER_XT_MATCH_L2TP +- scripts/config -e NETFILTER_XT_MATCH_LENGTH +- scripts/config -e NETFILTER_XT_MATCH_LIMIT +- scripts/config -e NETFILTER_XT_MATCH_MAC +- scripts/config -e NETFILTER_XT_MATCH_MULTIPORT +- scripts/config -e NETFILTER_XT_MATCH_NFACCT +- scripts/config -e NETFILTER_XT_MATCH_OSF +- scripts/config -e NETFILTER_XT_MATCH_OWNER +- scripts/config -e NETFILTER_XT_MATCH_CGROUP +- scripts/config -e NETFILTER_XT_MATCH_PHYSDEV +- scripts/config -e NETFILTER_XT_MATCH_PKTTYPE +- scripts/config -e NETFILTER_XT_MATCH_QUOTA +- scripts/config -e NETFILTER_XT_MATCH_RATEEST +- scripts/config -e NETFILTER_XT_MATCH_REALM +- scripts/config -e NETFILTER_XT_MATCH_RECENT +- scripts/config -e NETFILTER_XT_MATCH_SCTP +- scripts/config -e NETFILTER_XT_MATCH_SOCKET +- scripts/config -e NETFILTER_XT_MATCH_STATISTIC +- scripts/config -e NETFILTER_XT_MATCH_STRING +- scripts/config -e NETFILTER_XT_MATCH_TCPMSS +- scripts/config -e NETFILTER_XT_MATCH_TIME +- scripts/config -e NETFILTER_XT_MATCH_U32 +- scripts/config -e IP_VS +- scripts/config -e BRIDGE_NETFILTER +- scripts/config -e CRYPTO_CRC32C +- scripts/config -e CONFIGFS_FS +- scripts/config -e EXPERT +- scripts/config -e TARGET_CORE +- scripts/config -e ISCSI_TARGET +- scripts/config -e TCM_IBLOCK +- scripts/config -e TCM_FILEIO +- scripts/config -e TCM_PSCSI +- scripts/config -e TCM_USER +- scripts/config -e CONFIG_UIO +- scripts/config -e LOOPBACK_TARGET +- scripts/config -e TCM_FC +- scripts/config -e LIBFC +- scripts/config -e SCSI_FC_ATTRS +- scripts/config -e SCSI_ISCSI_ATTRS +- scripts/config -e ISCSI_TCP +- scripts/config -e SCSI_LOWLEVEL +# Required for M400 +- scripts/config -e SATA_AHCI_PLATFORM +- scripts/config -e AHCI_XGENE +- scripts/config -e GENERIC_PHY +- scripts/config -e PHY_XGENE +- scripts/config -e NET_VENDOR_MELLANOX +- scripts/config -e MLX4_EN +- scripts/config -e MLX4_EN_DCB +- scripts/config -e MLX4_EN_VXLAN +- scripts/config -e MLX4_CORE +- scripts/config -e MLX5_CORE +- scripts/config -e NET_IP_TUNNEL +- scripts/config -e VXLAN +- scripts/config -e UIO +- scripts/config -e UIO_PDRV_GENIRQ +- scripts/config -e GPIO_DWAPB +- scripts/config -e KEYBOARD_GPIO +- scripts/config -e INPUT_POLLDEV +- scripts/config -e KEYBOARD_GPIO_POLLED +- scripts/config -d DMA_CMA +- scripts/config -e POWER_RESET +- scripts/config -e POWER_RESET_GPIO +- scripts/config -e POWER_RESET_SYSCON +- scripts/config -e POWER_AVS +- yes '' | make ARCH=arm64 oldconfig +build-commands: +# Only generate Image here, uImage generated in deployment +# due to availability of mkimage build systems +- make vmlinux dtbs $MAKEFLAGS +install-commands: +- mkdir -p "$DESTDIR"/boot +- make install dtbs_install INSTALL_PATH="$DESTDIR/boot" +- cp arch/arm64/boot/Image "$DESTDIR/boot/vmlinux" diff --git a/old/strata/bsp-jetson.morph b/old/strata/bsp-jetson.morph new file mode 100644 index 00000000..746c17a6 --- /dev/null +++ b/old/strata/bsp-jetson.morph @@ -0,0 +1,36 @@ +name: bsp-jetson +kind: stratum +description: | + Platform-specific chunks for NVIDIA Jetson TK1 + + Support for the Tegra platform is still being developed. A very recent + kernel with some patches is currently required to get a fully + accelerated graphics stack on this platform. Note that the SATA and + networking will not work unless you have flashed the bootloader on + your board to the version of U-Boot built in this stratum. Also, the + CPUs on the Jetson run at a slow speed with this version of Linux. +build-depends: +- morph: strata/core.morph +chunks: +- name: device-tree-compiler@jetson + morph: strata/bsp-jetson/device-tree-compiler@jetson.morph + repo: upstream:device-tree-compiler + ref: 302fca9f4c283e1994cf0a5a9ce1cf43ca15e6d2 + unpetrify-ref: v1.4.1 +- name: u-boot@jetson + morph: strata/bsp-jetson/u-boot@jetson.morph + repo: upstream:u-boot + ref: 5ec0003b19cbdf06ccd6941237cbc0d1c3468e2d + unpetrify-ref: v2015.10 + build-depends: + - device-tree-compiler@jetson +- name: linux-jetson-tk1 + morph: strata/bsp-jetson/linux-jetson-tk1.morph + repo: upstream:linux + ref: 69973b830859bc6529a7a0468ba0d80ee5117826 + unpetrify-ref: v4.9 +- name: linux-firmware@jetson + morph: strata/bsp-jetson/linux-firmware@jetson.morph + repo: upstream:linux-firmware + ref: 6ebf5d57d9f6d0cf05558baef1af2b90a3fe98ed + unpetrify-ref: master diff --git a/old/strata/bsp-jetson/device-tree-compiler@jetson.morph b/old/strata/bsp-jetson/device-tree-compiler@jetson.morph new file mode 100644 index 00000000..52c57739 --- /dev/null +++ b/old/strata/bsp-jetson/device-tree-compiler@jetson.morph @@ -0,0 +1,6 @@ +name: device-tree-compiler@jetson +kind: chunk +build-commands: +- make all +install-commands: +- make install DESTDIR="$DESTDIR" PREFIX="$PREFIX" diff --git a/old/strata/bsp-jetson/linux-firmware@jetson.morph b/old/strata/bsp-jetson/linux-firmware@jetson.morph new file mode 100644 index 00000000..e8415e09 --- /dev/null +++ b/old/strata/bsp-jetson/linux-firmware@jetson.morph @@ -0,0 +1,15 @@ +name: linux-firmware@jetson +kind: chunk +install-commands: +- install -d "$DESTDIR/lib/firmware/nvidia/gk20a" +- install -d "$DESTDIR/lib/firmware/nvidia/tegra124" +- install -m644 nvidia/gk20a/fecs_data.bin "$DESTDIR/lib/firmware/nvidia/gk20a" +- install -m644 nvidia/gk20a/fecs_inst.bin "$DESTDIR/lib/firmware/nvidia/gk20a" +- install -m644 nvidia/gk20a/gpccs_data.bin "$DESTDIR/lib/firmware/nvidia/gk20a" +- install -m644 nvidia/gk20a/gpccs_inst.bin "$DESTDIR/lib/firmware/nvidia/gk20a" +- install -m644 nvidia/gk20a/sw_bundle_init.bin "$DESTDIR/lib/firmware/nvidia/gk20a" +- install -m644 nvidia/gk20a/sw_ctx.bin "$DESTDIR/lib/firmware/nvidia/gk20a" +- install -m644 nvidia/gk20a/sw_method_init.bin "$DESTDIR/lib/firmware/nvidia/gk20a" +- install -m644 nvidia/gk20a/sw_nonctx.bin "$DESTDIR/lib/firmware/nvidia/gk20a" +- install -m644 nvidia/tegra124/xusb.bin "$DESTDIR/lib/firmware/nvidia/tegra124" +- install -m644 LICENCE.nvidia "$DESTDIR/lib/firmware" diff --git a/old/strata/bsp-jetson/linux-jetson-tk1.morph b/old/strata/bsp-jetson/linux-jetson-tk1.morph new file mode 100644 index 00000000..b2d56d54 --- /dev/null +++ b/old/strata/bsp-jetson/linux-jetson-tk1.morph @@ -0,0 +1,252 @@ +name: linux-jetson-tk1 +kind: chunk +configure-commands: +- make ARCH=arm tegra_defconfig +- scripts/config -d KERNEL_LZO +- scripts/config -e KERNEL_GZIP +- scripts/config -e NAMESPACES +- scripts/config -e PACKET +- scripts/config -e SATA_AHCI +- scripts/config -e ATA_GENERIC +- scripts/config -e HAVE_IDE +- scripts/config -d BLK_DEV_IDE_SATA +- scripts/config -e BTRFS_FS +- scripts/config -e BTRFS_FS_POSIX_ACL +- scripts/config -e DEVTMPFS +- scripts/config -e DEVTMPFS_MOUNT +- scripts/config -e CONFIG_FHANDLE +- scripts/config -e DEVPTS_MULTIPLE_INSTANCES +- scripts/config -e CGROUPS +- scripts/config -e AUTOFS4_FS +- scripts/config --set-str UEVENT_HELPER_PATH '' +- scripts/config -e EXT2_FS +- scripts/config -e EXT2_FS_XATTR +- scripts/config -e EXT2_FS_POSIX_ACL +- scripts/config -e EXT2_FS_SECURITY +- scripts/config -e EXT2_FS_XIP +- scripts/config -e EXT3_FS +- scripts/config -d EXT3_DEFAULTS_TO_ORDERED +- scripts/config -e EXT3_FS_XATTR +- scripts/config -e EXT3_FS_POSIX_ACL +- scripts/config -e EXT3_FS_SECURITY +- scripts/config -e EXT4_FS +- scripts/config -e EXT4_FS_XATTR +- scripts/config -e EXT4_FS_POSIX_ACL +- scripts/config -e EXT4_FS_SECURITY +- scripts/config -d EXT4_DEBUG +- scripts/config -e OVERLAY_FS +- scripts/config -e XFS_FS +- scripts/config -e LIBCRC32C +- scripts/config -d JBD_DEBUG +- scripts/config -d JBD2_DEBUG +- scripts/config -e BLK_DEV_LOOP +- scripts/config -d BLK_DEV_CRYPTOLOOP +- scripts/config --set-val BLK_DEV_LOOP_MIN_COUNT 8 +- scripts/config -e DM_SNAPSHOT +- scripts/config -e IKCONFIG +- scripts/config -e IKCONFIG_PROC +- scripts/config -e SECCOMP +- scripts/config -d DEBUG_STACK_TRACE +- scripts/config -e NFSD +- scripts/config -e NFSD_V3 +- scripts/config -e DRM_TEGRA_STAGING +- scripts/config -e VLAN_8021Q +- scripts/config -e BRIDGE_VLAN_FILTERING +- scripts/config -e BLK_DEV_NBD +- scripts/config -e BRIDGE_NF_EBTABLES +- scripts/config -e NETFILTER +- scripts/config -e NETFILTER_ADVANCED +- scripts/config -e NETFILTER_XT_MATCH_ADDRTYPE +- scripts/config -e OPENVSWITCH +- scripts/config -e OPENVSWITCH_VXLAN +- scripts/config -e CONFIG_OPENVSWITCH_GRE +- scripts/config -e NET_CLS_BASIC +- scripts/config -e NET_SCH_INGRESS +- scripts/config -e NET_ACT_POLICE +- scripts/config -e NET_IPGRE_DEMUX +- scripts/config -e NET_SCH_HTB +- scripts/config -e NET_SCH_HFSC +- scripts/config -e VXLAN +- scripts/config -e VETH +- scripts/config -e IP_NF_MATCH_AH +- scripts/config -e IP_NF_MATCH_ECN +- scripts/config -e IP_NF_MATCH_RPFILTER +- scripts/config -e IP_NF_MATCH_TTL +- scripts/config -e IP_NF_TARGET_SYNPROXY +- scripts/config -e IP_NF_TARGET_NETMAP +- scripts/config -e IP_NF_TARGET_REDIRECT +- scripts/config -e IP_NF_TARGET_CLUSTERIP +- scripts/config -e IP_NF_TARGET_ECN +- scripts/config -e IP_NF_TARGET_TTL +- scripts/config -e IP_NF_RAW +- scripts/config -e IP_NF_SECURITY +- scripts/config -e IP_NF_ARPTABLES +- scripts/config -e NETFILTER_NETLINK_QUEUE +- scripts/config -e SCSI_NETLINK +- scripts/config -e NETFILTER_XT_TARGET_MARK +- scripts/config -e NETFILTER_XT_SET +- scripts/config -e IP_SET +- scripts/config -e IP_SET_BITMAP_IP +- scripts/config -e IP_SET_BITMAP_IPMAC +- scripts/config -e IP_SET_BITMAP_PORT +- scripts/config -e IP_SET_HASH_IP +- scripts/config -e IP_SET_HASH_IPMARK +- scripts/config -e IP_SET_HASH_IPPORT +- scripts/config -e IP_SET_HASH_IPPORTIP +- scripts/config -e IP_SET_HASH_IPPORTNET +- scripts/config -e IP_SET_HASH_MAC +- scripts/config -e IP_SET_HASH_NETPORTNET +- scripts/config -e IP_SET_HASH_NET +- scripts/config -e IP_SET_HASH_NETNET +- scripts/config -e IP_SET_HASH_NETPORT +- scripts/config -e IP_SET_HASH_NETIFACE +- scripts/config -e IP_SET_LIST_SET +- scripts/config -e NF_CONNTRACK_TIMEOUT +- scripts/config -e NF_CONNTRACK_TIMESTAMP +- scripts/config -e NF_CONNTRACK_EVENTS +- scripts/config -e NF_CONNTRACK_LABELS +- scripts/config -e NETFILTER_NETLINK_ACCT +- scripts/config -e NETFILTER_NETLINK_QUEUE_CT +- scripts/config -e NF_CT_PROTO_DCCP +- scripts/config -e NF_CT_PROTO_GRE +- scripts/config -e NF_CT_PROTO_SCTP +- scripts/config -e NF_CT_PROTO_UDPLITE +- scripts/config -e NF_CT_NETLINK_TIMEOUT +- scripts/config -e NF_CT_NETLINK_HELPER +- scripts/config -e NF_CONNTRACK_AMANDA +- scripts/config -e NF_CONNTRACK_H323 +- scripts/config -e NF_CONNTRACK_BROADCAST +- scripts/config -e NF_CONNTRACK_NETBIOS_NS +- scripts/config -e NF_CONNTRACK_SNMP +- scripts/config -e NF_CONNTRACK_PPTP +- scripts/config -e NF_CONNTRACK_SANE +- scripts/config -e NF_CONNTRACK_TFTP +- scripts/config -e NF_LOG_COMMON +- scripts/config -e NF_NAT_PROTO_DCCP +- scripts/config -e NF_NAT_PROTO_UDPLITE +- scripts/config -e NF_NAT_PROTO_SCTP +- scripts/config -e NF_NAT_AMANDA +- scripts/config -e NF_NAT_TFTP +- scripts/config -e NF_TABLES +- scripts/config -e NF_TABLES_INET +- scripts/config -e NFT_COMPAT +- scripts/config -e NFT_EXTHDR +- scripts/config -e NFT_META +- scripts/config -e NFT_CT +- scripts/config -e NFT_LIMIT +- scripts/config -e NFT_NAT +- scripts/config -e NFT_QUEUE +- scripts/config -e NFT_REJECT +- scripts/config -e NFT_REJECT_INET +- scripts/config -e NFT_RBTREE +- scripts/config -e NFT_HASH +- scripts/config -e NFT_COUNTER +- scripts/config -e NFT_LOG +- scripts/config -e NFT_MASQ +- scripts/config -e NETFILTER_XT_CONNMARK +- scripts/config -e NETFILTER_XT_TARGET_AUDIT +- scripts/config -e NETFILTER_XT_TARGET_CHECKSUM +- scripts/config -e NETFILTER_XT_TARGET_CLASSIFY +- scripts/config -e NETFILTER_XT_TARGET_CT +- scripts/config -e NETFILTER_XT_TARGET_DSCP +- scripts/config -e NETFILTER_XT_TARGET_HMARK +- scripts/config -e NETFILTER_XT_TARGET_LED +- scripts/config -e NETFILTER_XT_TARGET_LOG +- scripts/config -e NETFILTER_XT_TARGET_NFQUEUE +- scripts/config -e NETFILTER_XT_TARGET_RATEEST +- scripts/config -e NETFILTER_XT_TARGET_TPROXY +- scripts/config -e NETFILTER_XT_TARGET_TCPOPTSTRIP +- scripts/config -e NETFILTER_XT_TARGET_TEE +- scripts/config -e NETFILTER_XT_TARGET_TRACE +- scripts/config -e NETFILTER_XT_TARGET_IDLETIMER +- scripts/config -e NETFILTER_XT_MATCH_BPF +- scripts/config -e NETFILTER_XT_MATCH_CLUSTER +- scripts/config -e NETFILTER_XT_MATCH_COMMENT +- scripts/config -e NETFILTER_XT_MATCH_CONNBYTES +- scripts/config -e NETFILTER_XT_MATCH_CONNLABEL +- scripts/config -e NETFILTER_XT_MATCH_CONNLIMIT +- scripts/config -e NETFILTER_XT_MATCH_CPU +- scripts/config -e NETFILTER_XT_MATCH_DCCP +- scripts/config -e NETFILTER_XT_MATCH_DEVGROUP +- scripts/config -e NETFILTER_XT_MATCH_DSCP +- scripts/config -e NETFILTER_XT_MATCH_ESP +- scripts/config -e NETFILTER_XT_MATCH_HASHLIMIT +- scripts/config -e NETFILTER_XT_MATCH_HELPER +- scripts/config -e NETFILTER_XT_MATCH_IPCOMP +- scripts/config -e NETFILTER_XT_MATCH_IPRANGE +- scripts/config -e NETFILTER_XT_MATCH_IPVS +- scripts/config -e NETFILTER_XT_MATCH_L2TP +- scripts/config -e NETFILTER_XT_MATCH_LENGTH +- scripts/config -e NETFILTER_XT_MATCH_LIMIT +- scripts/config -e NETFILTER_XT_MATCH_MAC +- scripts/config -e NETFILTER_XT_MATCH_MULTIPORT +- scripts/config -e NETFILTER_XT_MATCH_NFACCT +- scripts/config -e NETFILTER_XT_MATCH_OSF +- scripts/config -e NETFILTER_XT_MATCH_OWNER +- scripts/config -e NETFILTER_XT_MATCH_CGROUP +- scripts/config -e NETFILTER_XT_MATCH_PHYSDEV +- scripts/config -e NETFILTER_XT_MATCH_PKTTYPE +- scripts/config -e NETFILTER_XT_MATCH_QUOTA +- scripts/config -e NETFILTER_XT_MATCH_RATEEST +- scripts/config -e NETFILTER_XT_MATCH_REALM +- scripts/config -e NETFILTER_XT_MATCH_RECENT +- scripts/config -e NETFILTER_XT_MATCH_SCTP +- scripts/config -e NETFILTER_XT_MATCH_SOCKET +- scripts/config -e NETFILTER_XT_MATCH_STATISTIC +- scripts/config -e NETFILTER_XT_MATCH_STRING +- scripts/config -e NETFILTER_XT_MATCH_TCPMSS +- scripts/config -e NETFILTER_XT_MATCH_TIME +- scripts/config -e NETFILTER_XT_MATCH_U32 +- scripts/config -e IP_VS +- scripts/config -e BRIDGE_NETFILTER +- scripts/config -e CRYPTO_CRC32C +- scripts/config -e CONFIGFS_FS +- scripts/config -e EXPERT +- scripts/config -e TARGET_CORE +- scripts/config -e ISCSI_TARGET +- scripts/config -e TCM_IBLOCK +- scripts/config -e TCM_FILEIO +- scripts/config -e TCM_PSCSI +- scripts/config -e TCM_USER +- scripts/config -e CONFIG_UIO +- scripts/config -e LOOPBACK_TARGET +- scripts/config -e TCM_FC +- scripts/config -e LIBFC +- scripts/config -e SCSI_FC_ATTRS +- scripts/config -e SCSI_ISCSI_ATTRS +- scripts/config -e ISCSI_TCP +- scripts/config -e SCSI_LOWLEVEL +- scripts/config -e NOUVEAU_PLATFORM_DRIVER +- scripts/config -e DRM_TEGRA_STAGING +- scripts/config -e BT +- yes '' | make ARCH=arm oldconfig +build-commands: +- make $MAKEFLAGS ARCH=arm LOADADDR=0x80200000 zImage dtbs +install-commands: +- mkdir -p "$DESTDIR"/boot +- cp arch/arm/boot/zImage "$DESTDIR"/boot/zImage +- cp arch/arm/boot/dts/tegra124-jetson-tk1.dtb "$DESTDIR"/boot/. +- make modules +- make INSTALL_MOD_PATH="$DESTDIR" modules_install +- install -d "$DESTDIR$PREFIX/src/linux" +- | + ( + printf 'Makefile\0' + printf 'Module.symvers\0' + find arch/arm -maxdepth 1 -name 'Makefile*' -print0 + find arch/arm \( -name 'module.lds' -o -name 'Kbuild.platforms' -o -name 'Platform' \) -print0 + find arch/arm \( -type d -a \( -name include -o -name scripts \) \) -o \ + \! -type d -a \( -path '*include/*' -o -path '*scripts/*' \) -print0 + find include -name 'asm*' -prune -o -print0 + find include/asm-generic -print0 + find include/uapi -print0 + find scripts -print0 + ) | cpio -0pumd "$DESTDIR$PREFIX/src/linux" +system-integration: + linux-jetson-tk1-misc: + # This is required for any modules to work correctly. However, it depends + # `depmod` from the 'kmod' chunk in the 'foundation' stratum, so it runs + # conditionally on `depmod` existing to avoid breaking in + # minimal-system-x86_64. + 00-depmod: + - if which depmod; then (cd /usr/lib/modules && for version in *; do depmod -a "$version"; done) fi diff --git a/old/strata/bsp-jetson/u-boot@jetson.morph b/old/strata/bsp-jetson/u-boot@jetson.morph new file mode 100644 index 00000000..533f253a --- /dev/null +++ b/old/strata/bsp-jetson/u-boot@jetson.morph @@ -0,0 +1,20 @@ +name: u-boot@jetson +kind: chunk +configure-commands: +- make ARCH=arm jetson-tk1_config +build-commands: +- make ARCH=arm CROSS_COMPILE=/usr/bin/ +- make ARCH=arm CROSS_COMPILE=/usr/bin/ tools +install-commands: +- mkdir -p "$DESTDIR$PREFIX/bin" +- mkdir -p "$DESTDIR/boot" +- mkdir -p "$DESTDIR/boot/u-boot/" +- install -m 755 u-boot-dtb-tegra.bin "$DESTDIR/boot/u-boot.bin" +- install -m 755 u-boot-nodtb-tegra.bin "$DESTDIR/boot/u-boot/u-boot-nodtb-tegra.bin" +- install -m 755 u-boot.dtb "$DESTDIR/boot/u-boot/u-boot.dtb" +- size -A u-boot | grep -w .bss | tr -s ' ' | cut -d ' ' -f 2 > "$DESTDIR/boot/u-boot/u-boot-bss-size" +- install -m 755 tools/img2brec.sh "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/jtagconsole "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/netconsole "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/mkenvimage "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/mkimage "$DESTDIR$PREFIX/bin/." diff --git a/old/strata/bsp-ppc64-generic.morph b/old/strata/bsp-ppc64-generic.morph new file mode 100644 index 00000000..ea606a75 --- /dev/null +++ b/old/strata/bsp-ppc64-generic.morph @@ -0,0 +1,11 @@ +name: bsp-ppc64-generic +kind: stratum +description: The platform dependent components required to boot a ppc64 board. +build-depends: +- morph: strata/core.morph +chunks: +- name: linux-ppc64 + morph: strata/bsp-ppc64-generic/linux-ppc64.morph + repo: upstream:linux + ref: 39a8804455fb23f09157341d3ba7db6d7ae6ee76 + unpetrify-ref: v4.0 diff --git a/old/strata/bsp-ppc64-generic/linux-ppc64.morph b/old/strata/bsp-ppc64-generic/linux-ppc64.morph new file mode 100644 index 00000000..d2ef0747 --- /dev/null +++ b/old/strata/bsp-ppc64-generic/linux-ppc64.morph @@ -0,0 +1,226 @@ +name: linux-ppc64 +kind: chunk +configure-commands: +- make ARCH=powerpc ppc64_defconfig +- scripts/config -e NAMESPACES +- scripts/config -e PACKET +- scripts/config -e SATA_AHCI +- scripts/config -e ATA_GENERIC +- scripts/config -e HAVE_IDE +- scripts/config -d BLK_DEV_IDE_SATA +- scripts/config -e BTRFS_FS +- scripts/config -e BTRFS_FS_POSIX_ACL +- scripts/config -e DEVTMPFS +- scripts/config -e DEVTMPFS_MOUNT +- scripts/config -e CONFIG_FHANDLE +- scripts/config -e DEVPTS_MULTIPLE_INSTANCES +- scripts/config -e CGROUPS +- scripts/config -e AUTOFS4_FS +- scripts/config --set-str UEVENT_HELPER_PATH '' +- scripts/config -e EXT2_FS +- scripts/config -e EXT2_FS_XATTR +- scripts/config -e EXT2_FS_POSIX_ACL +- scripts/config -e EXT2_FS_SECURITY +- scripts/config -e EXT2_FS_XIP +- scripts/config -e EXT3_FS +- scripts/config -d EXT3_DEFAULTS_TO_ORDERED +- scripts/config -e EXT3_FS_XATTR +- scripts/config -e EXT3_FS_POSIX_ACL +- scripts/config -e EXT3_FS_SECURITY +- scripts/config -e EXT4_FS +- scripts/config -e EXT4_FS_XATTR +- scripts/config -e EXT4_FS_POSIX_ACL +- scripts/config -e EXT4_FS_SECURITY +- scripts/config -d EXT4_DEBUG +- scripts/config -e FUSE_FS +- scripts/config -e OVERLAY_FS +- scripts/config -e XFS_FS +- scripts/config -e LIBCRC32C +- scripts/config -d JBD_DEBUG +- scripts/config -d JBD2_DEBUG +- scripts/config -e BLK_DEV_LOOP +- scripts/config -d BLK_DEV_CRYPTOLOOP +- scripts/config --set-val BLK_DEV_LOOP_MIN_COUNT 8 +- scripts/config -e DM_SNAPSHOT +- scripts/config -e IKCONFIG +- scripts/config -e IKCONFIG_PROC +- scripts/config -e SECCOMP +- scripts/config -d DEBUG_STACK_TRACE +- scripts/config -e NFSD +- scripts/config -e NFSD_V3 +- scripts/config -e IP_PNP +- scripts/config -e IP_PNP_DHCP +- scripts/config -e NFS_FS +- scripts/config -e ROOT_NFS +- scripts/config -e PCI +- scripts/config -e TIGON3 +- scripts/config -e BLK_DEV_NBD +- scripts/config -e BRIDGE_NF_EBTABLES +- scripts/config -e NETFILTER +- scripts/config -e NETFILTER_ADVANCED +- scripts/config -e NETFILTER_XT_MATCH_ADDRTYPE +- scripts/config -e OPENVSWITCH +- scripts/config -e OPENVSWITCH_VXLAN +- scripts/config -e CONFIG_OPENVSWITCH_GRE +- scripts/config -e NET_CLS_BASIC +- scripts/config -e NET_SCH_INGRESS +- scripts/config -e NET_ACT_POLICE +- scripts/config -e NET_IPGRE_DEMUX +- scripts/config -e NET_SCH_HTB +- scripts/config -e NET_SCH_HFSC +- scripts/config -e VXLAN +- scripts/config -e VETH +- scripts/config -e IP_NF_MATCH_AH +- scripts/config -e IP_NF_MATCH_ECN +- scripts/config -e IP_NF_MATCH_RPFILTER +- scripts/config -e IP_NF_MATCH_TTL +- scripts/config -e IP_NF_TARGET_SYNPROXY +- scripts/config -e IP_NF_TARGET_NETMAP +- scripts/config -e IP_NF_TARGET_REDIRECT +- scripts/config -e IP_NF_TARGET_CLUSTERIP +- scripts/config -e IP_NF_TARGET_ECN +- scripts/config -e IP_NF_TARGET_TTL +- scripts/config -e IP_NF_RAW +- scripts/config -e IP_NF_SECURITY +- scripts/config -e IP_NF_ARPTABLES +- scripts/config -e NETFILTER_NETLINK_QUEUE +- scripts/config -e SCSI_NETLINK +- scripts/config -e NETFILTER_XT_TARGET_MARK +- scripts/config -e NETFILTER_XT_SET +- scripts/config -e IP_SET +- scripts/config -e IP_SET_BITMAP_IP +- scripts/config -e IP_SET_BITMAP_IPMAC +- scripts/config -e IP_SET_BITMAP_PORT +- scripts/config -e IP_SET_HASH_IP +- scripts/config -e IP_SET_HASH_IPMARK +- scripts/config -e IP_SET_HASH_IPPORT +- scripts/config -e IP_SET_HASH_IPPORTIP +- scripts/config -e IP_SET_HASH_IPPORTNET +- scripts/config -e IP_SET_HASH_MAC +- scripts/config -e IP_SET_HASH_NETPORTNET +- scripts/config -e IP_SET_HASH_NET +- scripts/config -e IP_SET_HASH_NETNET +- scripts/config -e IP_SET_HASH_NETPORT +- scripts/config -e IP_SET_HASH_NETIFACE +- scripts/config -e IP_SET_LIST_SET +- scripts/config -e NF_CONNTRACK_TIMEOUT +- scripts/config -e NF_CONNTRACK_TIMESTAMP +- scripts/config -e NF_CONNTRACK_EVENTS +- scripts/config -e NF_CONNTRACK_LABELS +- scripts/config -e NETFILTER_NETLINK_ACCT +- scripts/config -e NETFILTER_NETLINK_QUEUE_CT +- scripts/config -e NF_CT_PROTO_DCCP +- scripts/config -e NF_CT_PROTO_GRE +- scripts/config -e NF_CT_PROTO_SCTP +- scripts/config -e NF_CT_PROTO_UDPLITE +- scripts/config -e NF_CT_NETLINK_TIMEOUT +- scripts/config -e NF_CT_NETLINK_HELPER +- scripts/config -e NF_CONNTRACK_AMANDA +- scripts/config -e NF_CONNTRACK_H323 +- scripts/config -e NF_CONNTRACK_BROADCAST +- scripts/config -e NF_CONNTRACK_NETBIOS_NS +- scripts/config -e NF_CONNTRACK_SNMP +- scripts/config -e NF_CONNTRACK_PPTP +- scripts/config -e NF_CONNTRACK_SANE +- scripts/config -e NF_CONNTRACK_TFTP +- scripts/config -e NF_LOG_COMMON +- scripts/config -e NF_NAT_PROTO_DCCP +- scripts/config -e NF_NAT_PROTO_UDPLITE +- scripts/config -e NF_NAT_PROTO_SCTP +- scripts/config -e NF_NAT_AMANDA +- scripts/config -e NF_NAT_TFTP +- scripts/config -e NF_TABLES +- scripts/config -e NF_TABLES_INET +- scripts/config -e NFT_COMPAT +- scripts/config -e NFT_EXTHDR +- scripts/config -e NFT_META +- scripts/config -e NFT_CT +- scripts/config -e NFT_LIMIT +- scripts/config -e NFT_NAT +- scripts/config -e NFT_QUEUE +- scripts/config -e NFT_REJECT +- scripts/config -e NFT_REJECT_INET +- scripts/config -e NFT_RBTREE +- scripts/config -e NFT_HASH +- scripts/config -e NFT_COUNTER +- scripts/config -e NFT_LOG +- scripts/config -e NFT_MASQ +- scripts/config -e NETFILTER_XT_CONNMARK +- scripts/config -e NETFILTER_XT_TARGET_AUDIT +- scripts/config -e NETFILTER_XT_TARGET_CHECKSUM +- scripts/config -e NETFILTER_XT_TARGET_CLASSIFY +- scripts/config -e NETFILTER_XT_TARGET_CT +- scripts/config -e NETFILTER_XT_TARGET_DSCP +- scripts/config -e NETFILTER_XT_TARGET_HMARK +- scripts/config -e NETFILTER_XT_TARGET_LED +- scripts/config -e NETFILTER_XT_TARGET_LOG +- scripts/config -e NETFILTER_XT_TARGET_NFQUEUE +- scripts/config -e NETFILTER_XT_TARGET_RATEEST +- scripts/config -e NETFILTER_XT_TARGET_TPROXY +- scripts/config -e NETFILTER_XT_TARGET_TCPOPTSTRIP +- scripts/config -e NETFILTER_XT_TARGET_TEE +- scripts/config -e NETFILTER_XT_TARGET_TRACE +- scripts/config -e NETFILTER_XT_TARGET_IDLETIMER +- scripts/config -e NETFILTER_XT_MATCH_BPF +- scripts/config -e NETFILTER_XT_MATCH_CLUSTER +- scripts/config -e NETFILTER_XT_MATCH_COMMENT +- scripts/config -e NETFILTER_XT_MATCH_CONNBYTES +- scripts/config -e NETFILTER_XT_MATCH_CONNLABEL +- scripts/config -e NETFILTER_XT_MATCH_CONNLIMIT +- scripts/config -e NETFILTER_XT_MATCH_CPU +- scripts/config -e NETFILTER_XT_MATCH_DCCP +- scripts/config -e NETFILTER_XT_MATCH_DEVGROUP +- scripts/config -e NETFILTER_XT_MATCH_DSCP +- scripts/config -e NETFILTER_XT_MATCH_ESP +- scripts/config -e NETFILTER_XT_MATCH_HASHLIMIT +- scripts/config -e NETFILTER_XT_MATCH_HELPER +- scripts/config -e NETFILTER_XT_MATCH_IPCOMP +- scripts/config -e NETFILTER_XT_MATCH_IPRANGE +- scripts/config -e NETFILTER_XT_MATCH_IPVS +- scripts/config -e NETFILTER_XT_MATCH_L2TP +- scripts/config -e NETFILTER_XT_MATCH_LENGTH +- scripts/config -e NETFILTER_XT_MATCH_LIMIT +- scripts/config -e NETFILTER_XT_MATCH_MAC +- scripts/config -e NETFILTER_XT_MATCH_MULTIPORT +- scripts/config -e NETFILTER_XT_MATCH_NFACCT +- scripts/config -e NETFILTER_XT_MATCH_OSF +- scripts/config -e NETFILTER_XT_MATCH_OWNER +- scripts/config -e NETFILTER_XT_MATCH_CGROUP +- scripts/config -e NETFILTER_XT_MATCH_PHYSDEV +- scripts/config -e NETFILTER_XT_MATCH_PKTTYPE +- scripts/config -e NETFILTER_XT_MATCH_QUOTA +- scripts/config -e NETFILTER_XT_MATCH_RATEEST +- scripts/config -e NETFILTER_XT_MATCH_REALM +- scripts/config -e NETFILTER_XT_MATCH_RECENT +- scripts/config -e NETFILTER_XT_MATCH_SCTP +- scripts/config -e NETFILTER_XT_MATCH_SOCKET +- scripts/config -e NETFILTER_XT_MATCH_STATISTIC +- scripts/config -e NETFILTER_XT_MATCH_STRING +- scripts/config -e NETFILTER_XT_MATCH_TCPMSS +- scripts/config -e NETFILTER_XT_MATCH_TIME +- scripts/config -e NETFILTER_XT_MATCH_U32 +- scripts/config -e IP_VS +- scripts/config -e BRIDGE_NETFILTER +- scripts/config -e CRYPTO_CRC32C +- scripts/config -e CONFIGFS_FS +- scripts/config -e EXPERT +- scripts/config -e TARGET_CORE +- scripts/config -e ISCSI_TARGET +- scripts/config -e TCM_IBLOCK +- scripts/config -e TCM_FILEIO +- scripts/config -e TCM_PSCSI +- scripts/config -e TCM_USER +- scripts/config -e CONFIG_UIO +- scripts/config -e LOOPBACK_TARGET +- scripts/config -e TCM_FC +- scripts/config -e LIBFC +- scripts/config -e SCSI_FC_ATTRS +- scripts/config -e SCSI_ISCSI_ATTRS +- scripts/config -e ISCSI_TCP +- scripts/config -e SCSI_LOWLEVEL +- yes '' | make oldconfig +build-commands: +- make $MAKEFLAGS ARCH=powerpc zImage +install-commands: +- mkdir -p "$DESTDIR"/boot +- cp arch/powerpc/boot/zImage "$DESTDIR"/boot/zImage diff --git a/old/strata/bsp-wandboard.morph b/old/strata/bsp-wandboard.morph new file mode 100644 index 00000000..ba704b1b --- /dev/null +++ b/old/strata/bsp-wandboard.morph @@ -0,0 +1,18 @@ +name: bsp-wandboard +kind: stratum +description: The platform dependent components required to boot an wandboard ARM board. +build-depends: +- morph: strata/core.morph +chunks: +- name: u-boot@wandboard + morph: strata/bsp-wandboard/u-boot@wandboard.morph + repo: upstream:u-boot + ref: fe57382d04b46c37f34cf8d3b3ad876554fd12bf + unpetrify-ref: baserock/morph +- name: linux-armv7-wandboard + morph: strata/bsp-wandboard/linux-armv7-wandboard.morph + repo: upstream:linux-stable + ref: 660613d1a4e94144490850b6c3d350331860fac4 + unpetrify-ref: v3.19.2 + build-depends: + - u-boot@wandboard diff --git a/old/strata/bsp-wandboard/linux-armv7-wandboard.morph b/old/strata/bsp-wandboard/linux-armv7-wandboard.morph new file mode 100644 index 00000000..8137198e --- /dev/null +++ b/old/strata/bsp-wandboard/linux-armv7-wandboard.morph @@ -0,0 +1,70 @@ +name: linux-armv7-wandboard +kind: chunk +configure-commands: +- make ARCH=arm imx_v6_v7_defconfig +- scripts/config -d KERNEL_LZO +- scripts/config -e KERNEL_GZIP +- scripts/config -e NAMESPACES +- scripts/config -e PACKET +- scripts/config -e SATA_AHCI +- scripts/config -e ATA_GENERIC +- scripts/config -e HAVE_IDE +- scripts/config -d BLK_DEV_IDE_SATA +- scripts/config -e BTRFS_FS +- scripts/config -e BTRFS_FS_POSIX_ACL +- scripts/config -e DEVTMPFS +- scripts/config -e DEVTMPFS_MOUNT +- scripts/config -e CONFIG_FHANDLE +- scripts/config -e DEVPTS_MULTIPLE_INSTANCES +- scripts/config -e CGROUPS +- scripts/config -e AUTOFS4_FS +- scripts/config --set-str UEVENT_HELPER_PATH '' +- scripts/config -e EXT2_FS +- scripts/config -e EXT2_FS_XATTR +- scripts/config -e EXT2_FS_POSIX_ACL +- scripts/config -e EXT2_FS_SECURITY +- scripts/config -e EXT2_FS_XIP +- scripts/config -e EXT3_FS +- scripts/config -d EXT3_DEFAULTS_TO_ORDERED +- scripts/config -e EXT3_FS_XATTR +- scripts/config -e EXT3_FS_POSIX_ACL +- scripts/config -e EXT3_FS_SECURITY +- scripts/config -e EXT4_FS +- scripts/config -e EXT4_FS_XATTR +- scripts/config -e EXT4_FS_POSIX_ACL +- scripts/config -e EXT4_FS_SECURITY +- scripts/config -d EXT4_DEBUG +- scripts/config -e FUSE_FS +- scripts/config -e OVERLAY_FS +- scripts/config -d JBD_DEBUG +- scripts/config -d JBD2_DEBUG +- scripts/config -e BLK_DEV_LOOP +- scripts/config -d BLK_DEV_CRYPTOLOOP +- scripts/config --set-val BLK_DEV_LOOP_MIN_COUNT 8 +- scripts/config -e DM_SNAPSHOT +- scripts/config -e IKCONFIG +- scripts/config -e IKCONFIG_PROC +- scripts/config -e SECCOMP +- scripts/config -d DEBUG_STACK_TRACE +- scripts/config -e NFSD +- scripts/config -e NFSD_V3 +- scripts/config -e VLAN_8021Q +- scripts/config -e BRIDGE_VLAN_FILTERING +- scripts/config -e VETH +- yes '' | make oldconfig +build-commands: +- make $MAKEFLAGS ARCH=arm LOADADDR=0x10800000 uImage dtbs +- | + cat >boot.script <<'EOF' + setenv image_addr "0x12000000" + setenv bootargs "console=ttymxc0,115200 root=/dev/nfs rw ip=dhcp nfsroot=${fileserver}:${nfsroot},v3,tcp" + dhcp ${image_addr} ${fileserver}:${tfpboot}/uImage + bootm ${image_addr} + EOF +- mkimage -A arm -T script -C none -n "Wandboard TFTP Boot Script" -d boot.script + boot.scr +install-commands: +- mkdir -p "$DESTDIR"/boot +- cp arch/arm/boot/uImage "$DESTDIR"/boot/uImage +- cp boot.scr "$DESTDIR"/boot/boot.scr +- cp arch/arm/boot/dts/imx6*-wandboard.dtb "$DESTDIR"/boot/. diff --git a/old/strata/bsp-wandboard/u-boot@wandboard.morph b/old/strata/bsp-wandboard/u-boot@wandboard.morph new file mode 100644 index 00000000..8a51ee7c --- /dev/null +++ b/old/strata/bsp-wandboard/u-boot@wandboard.morph @@ -0,0 +1,11 @@ +name: u-boot@wandboard +kind: chunk +build-commands: +- make tools +install-commands: +- mkdir -p "$DESTDIR$PREFIX/bin" +- install -m 755 tools/img2brec.sh "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/jtagconsole "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/netconsole "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/mkenvimage "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/mkimage "$DESTDIR$PREFIX/bin/." diff --git a/old/strata/bsp-x86_32-generic.morph b/old/strata/bsp-x86_32-generic.morph new file mode 100644 index 00000000..bfc47d07 --- /dev/null +++ b/old/strata/bsp-x86_32-generic.morph @@ -0,0 +1,26 @@ +name: bsp-x86_32-generic +kind: stratum +description: The set of platform specific components required for booting a 32-bit + x86 based system. +build-depends: +# nasm wants asciidoc and xmlto for generating its docs +# so include docutils here +- morph: strata/docutils.morph +chunks: +- name: linux-x86-32-generic + morph: strata/bsp-x86_32-generic/linux-x86-32-generic.morph + repo: upstream:linux + ref: a351e9b9fc24e982ec2f0e76379a49826036da12 + unpetrify-ref: v4.11 +- name: nasm + morph: strata/bsp-x86_32-generic/nasm.morph + repo: upstream:nasm + ref: 8fa0fe16408afc76ce1ae4387e1a9d46893cfda6 + unpetrify-ref: nasm-2.11.08 +- name: syslinux + morph: strata/bsp-x86_32-generic/syslinux.morph + repo: upstream:syslinux + ref: 02ab5d34ba0a90e3b6dd78034d7c470c77500119 + unpetrify-ref: baserock/syslinux-4.06-gcc7 + build-depends: + - nasm diff --git a/old/strata/bsp-x86_32-generic/linux-x86-32-generic.morph b/old/strata/bsp-x86_32-generic/linux-x86-32-generic.morph new file mode 100644 index 00000000..a28e43d7 --- /dev/null +++ b/old/strata/bsp-x86_32-generic/linux-x86-32-generic.morph @@ -0,0 +1,299 @@ +name: linux-x86-32-generic +kind: chunk +products: +- artifact: linux-x86-32-generic-devel + include: + - (usr/)?src/linux/.* +- artifact: linux-x86-32-generic-bins + include: + - boot/.* +- artifact: linux-x86-32-generic-libs + include: + - lib/.* +configure-commands: +- make defconfig +- scripts/config -e PACKET +- scripts/config -e SATA_AHCI +- scripts/config -e ATA_GENERIC +- scripts/config -e HAVE_IDE +- scripts/config -d BLK_DEV_IDE_SATA +- scripts/config -e BTRFS_FS +- scripts/config -e BTRFS_FS_POSIX_ACL +- scripts/config -e DEVTMPFS +- scripts/config -e DEVTMPFS_MOUNT +- scripts/config -e CONFIG_FHANDLE +- scripts/config -e DEVPTS_MULTIPLE_INSTANCES +- scripts/config -e CGROUPS +- scripts/config -e AUTOFS4_FS +- scripts/config --set-str UEVENT_HELPER_PATH '' +- scripts/config -e EXT2_FS +- scripts/config -e EXT2_FS_XATTR +- scripts/config -e EXT2_FS_POSIX_ACL +- scripts/config -e EXT2_FS_SECURITY +- scripts/config -e EXT2_FS_XIP +- scripts/config -e EXT3_FS +- scripts/config -d EXT3_DEFAULTS_TO_ORDERED +- scripts/config -e EXT3_FS_XATTR +- scripts/config -e EXT3_FS_POSIX_ACL +- scripts/config -e EXT3_FS_SECURITY +- scripts/config -e EXT4_FS +- scripts/config -e EXT4_FS_XATTR +- scripts/config -e EXT4_FS_POSIX_ACL +- scripts/config -e EXT4_FS_SECURITY +- scripts/config -d EXT4_DEBUG +- scripts/config -e FUSE_FS +- scripts/config -e OVERLAY_FS +- scripts/config -e XFS_FS +- scripts/config -e LIBCRC32C +- scripts/config -d JBD_DEBUG +- scripts/config -d JBD2_DEBUG +- scripts/config -e BLK_DEV_LOOP +- scripts/config -d BLK_DEV_CRYPTOLOOP +- scripts/config -e CEPH_FS +- scripts/config --set-val BLK_DEV_LOOP_MIN_COUNT 8 +- scripts/config -e DM_SNAPSHOT +- scripts/config -e VIRTIO +- scripts/config -e VIRTIO_RING +- scripts/config -e VIRTIO_PCI +- scripts/config -e VIRTIO_BALLOON +- scripts/config -e VIRTIO_BLK +- scripts/config -e VIRTIO_NET +- scripts/config -e VIRTIO_CONSOLE +- scripts/config -e HW_RANDOM_VIRTIO +- scripts/config -e 9P_FS +- scripts/config -e 9P_FSCACHE +- scripts/config -e 9P_FS_POSIX_ACL +- scripts/config -e NET_9P +- scripts/config -e NET_9P_VIRTIO +- scripts/config -e R8169 +- scripts/config -e 8139TOO +- scripts/config -e 8139CP +- scripts/config -e ATL1 +- scripts/config -e ATL1C +- scripts/config -e ATL1E +- scripts/config -e E100 +- scripts/config -e E1000 +- scripts/config -e E1000E +- scripts/config -e USB_USBNET +- scripts/config -e USB_NET_AX8817X +- scripts/config -e USB_NET_AX88179_178A +- scripts/config -e USB_NET_DM9601 +- scripts/config -e IKCONFIG +- scripts/config -e IKCONFIG_PROC +- scripts/config -e SECCOMP +- scripts/config -d DEBUG_STACK_TRACE +- scripts/config -e NFSD +- scripts/config -e NFSD_V3 +- scripts/config -e KVM +- scripts/config -e TUN +- scripts/config -e BRIDGE +- scripts/config -e VHOST_NET +- scripts/config -e NF_NAT +- scripts/config -e IP_NF_NAT +- scripts/config -e IP_NF_TARGET_MASQUERADE +- scripts/config -e FB_VESA +- scripts/config -e HOTPLUG_PCI +- scripts/config -e HOTPLUG_PCI_ACPI +- scripts/config -e VLAN_8021Q +- scripts/config -e BRIDGE_VLAN_FILTERING +- scripts/config -e BLK_DEV_NBD +- scripts/config -e BRIDGE_NF_EBTABLES +- scripts/config -e NETFILTER +- scripts/config -e NETFILTER_ADVANCED +- scripts/config -e NETFILTER_XT_MATCH_ADDRTYPE +- scripts/config -e OPENVSWITCH +- scripts/config -e OPENVSWITCH_VXLAN +- scripts/config -e CONFIG_OPENVSWITCH_GRE +- scripts/config -e NET_CLS_BASIC +- scripts/config -e NET_SCH_INGRESS +- scripts/config -e NET_ACT_POLICE +- scripts/config -e NET_IPGRE_DEMUX +- scripts/config -e NET_SCH_HTB +- scripts/config -e NET_SCH_HFSC +- scripts/config -e VXLAN +- scripts/config -e VETH +- scripts/config -e IP_NF_MATCH_AH +- scripts/config -e IP_NF_MATCH_ECN +- scripts/config -e IP_NF_MATCH_RPFILTER +- scripts/config -e IP_NF_MATCH_TTL +- scripts/config -e IP_NF_TARGET_SYNPROXY +- scripts/config -e IP_NF_TARGET_NETMAP +- scripts/config -e IP_NF_TARGET_REDIRECT +- scripts/config -e IP_NF_TARGET_CLUSTERIP +- scripts/config -e IP_NF_TARGET_ECN +- scripts/config -e IP_NF_TARGET_TTL +- scripts/config -e IP_NF_RAW +- scripts/config -e IP_NF_SECURITY +- scripts/config -e IP_NF_ARPTABLES +- scripts/config -e KVM_INTEL +- scripts/config -e NETFILTER_NETLINK_QUEUE +- scripts/config -e SCSI_NETLINK +- scripts/config -e NETFILTER_XT_TARGET_MARK +- scripts/config -e NETFILTER_XT_SET +- scripts/config -e IP_SET +- scripts/config -e IP_SET_BITMAP_IP +- scripts/config -e IP_SET_BITMAP_IPMAC +- scripts/config -e IP_SET_BITMAP_PORT +- scripts/config -e IP_SET_HASH_IP +- scripts/config -e IP_SET_HASH_IPMARK +- scripts/config -e IP_SET_HASH_IPPORT +- scripts/config -e IP_SET_HASH_IPPORTIP +- scripts/config -e IP_SET_HASH_IPPORTNET +- scripts/config -e IP_SET_HASH_MAC +- scripts/config -e IP_SET_HASH_NETPORTNET +- scripts/config -e IP_SET_HASH_NET +- scripts/config -e IP_SET_HASH_NETNET +- scripts/config -e IP_SET_HASH_NETPORT +- scripts/config -e IP_SET_HASH_NETIFACE +- scripts/config -e IP_SET_LIST_SET +- scripts/config -e NF_CONNTRACK_TIMEOUT +- scripts/config -e NF_CONNTRACK_TIMESTAMP +- scripts/config -e NF_CONNTRACK_EVENTS +- scripts/config -e NF_CONNTRACK_LABELS +- scripts/config -e NETFILTER_NETLINK_ACCT +- scripts/config -e NETFILTER_NETLINK_QUEUE_CT +- scripts/config -e NF_CT_PROTO_DCCP +- scripts/config -e NF_CT_PROTO_GRE +- scripts/config -e NF_CT_PROTO_SCTP +- scripts/config -e NF_CT_PROTO_UDPLITE +- scripts/config -e NF_CT_NETLINK_TIMEOUT +- scripts/config -e NF_CT_NETLINK_HELPER +- scripts/config -e NF_CONNTRACK_AMANDA +- scripts/config -e NF_CONNTRACK_H323 +- scripts/config -e NF_CONNTRACK_BROADCAST +- scripts/config -e NF_CONNTRACK_NETBIOS_NS +- scripts/config -e NF_CONNTRACK_SNMP +- scripts/config -e NF_CONNTRACK_PPTP +- scripts/config -e NF_CONNTRACK_SANE +- scripts/config -e NF_CONNTRACK_TFTP +- scripts/config -e NF_LOG_COMMON +- scripts/config -e NF_NAT_PROTO_DCCP +- scripts/config -e NF_NAT_PROTO_UDPLITE +- scripts/config -e NF_NAT_PROTO_SCTP +- scripts/config -e NF_NAT_AMANDA +- scripts/config -e NF_NAT_TFTP +- scripts/config -e NF_TABLES +- scripts/config -e NF_TABLES_INET +- scripts/config -e NFT_COMPAT +- scripts/config -e NFT_EXTHDR +- scripts/config -e NFT_META +- scripts/config -e NFT_CT +- scripts/config -e NFT_LIMIT +- scripts/config -e NFT_NAT +- scripts/config -e NFT_QUEUE +- scripts/config -e NFT_REJECT +- scripts/config -e NFT_REJECT_INET +- scripts/config -e NFT_RBTREE +- scripts/config -e NFT_HASH +- scripts/config -e NFT_COUNTER +- scripts/config -e NFT_LOG +- scripts/config -e NFT_MASQ +- scripts/config -e NETFILTER_XT_CONNMARK +- scripts/config -e NETFILTER_XT_TARGET_AUDIT +- scripts/config -e NETFILTER_XT_TARGET_CHECKSUM +- scripts/config -e NETFILTER_XT_TARGET_CLASSIFY +- scripts/config -e NETFILTER_XT_TARGET_CT +- scripts/config -e NETFILTER_XT_TARGET_DSCP +- scripts/config -e NETFILTER_XT_TARGET_HMARK +- scripts/config -e NETFILTER_XT_TARGET_LED +- scripts/config -e NETFILTER_XT_TARGET_LOG +- scripts/config -e NETFILTER_XT_TARGET_NFQUEUE +- scripts/config -e NETFILTER_XT_TARGET_RATEEST +- scripts/config -e NETFILTER_XT_TARGET_TPROXY +- scripts/config -e NETFILTER_XT_TARGET_TCPOPTSTRIP +- scripts/config -e NETFILTER_XT_TARGET_TEE +- scripts/config -e NETFILTER_XT_TARGET_TRACE +- scripts/config -e NETFILTER_XT_TARGET_IDLETIMER +- scripts/config -e NETFILTER_XT_MATCH_BPF +- scripts/config -e NETFILTER_XT_MATCH_CLUSTER +- scripts/config -e NETFILTER_XT_MATCH_COMMENT +- scripts/config -e NETFILTER_XT_MATCH_CONNBYTES +- scripts/config -e NETFILTER_XT_MATCH_CONNLABEL +- scripts/config -e NETFILTER_XT_MATCH_CONNLIMIT +- scripts/config -e NETFILTER_XT_MATCH_CPU +- scripts/config -e NETFILTER_XT_MATCH_DCCP +- scripts/config -e NETFILTER_XT_MATCH_DEVGROUP +- scripts/config -e NETFILTER_XT_MATCH_DSCP +- scripts/config -e NETFILTER_XT_MATCH_ESP +- scripts/config -e NETFILTER_XT_MATCH_HASHLIMIT +- scripts/config -e NETFILTER_XT_MATCH_HELPER +- scripts/config -e NETFILTER_XT_MATCH_IPCOMP +- scripts/config -e NETFILTER_XT_MATCH_IPRANGE +- scripts/config -e NETFILTER_XT_MATCH_IPVS +- scripts/config -e NETFILTER_XT_MATCH_L2TP +- scripts/config -e NETFILTER_XT_MATCH_LENGTH +- scripts/config -e NETFILTER_XT_MATCH_LIMIT +- scripts/config -e NETFILTER_XT_MATCH_MAC +- scripts/config -e NETFILTER_XT_MATCH_MULTIPORT +- scripts/config -e NETFILTER_XT_MATCH_NFACCT +- scripts/config -e NETFILTER_XT_MATCH_OSF +- scripts/config -e NETFILTER_XT_MATCH_OWNER +- scripts/config -e NETFILTER_XT_MATCH_CGROUP +- scripts/config -e NETFILTER_XT_MATCH_PHYSDEV +- scripts/config -e NETFILTER_XT_MATCH_PKTTYPE +- scripts/config -e NETFILTER_XT_MATCH_QUOTA +- scripts/config -e NETFILTER_XT_MATCH_RATEEST +- scripts/config -e NETFILTER_XT_MATCH_REALM +- scripts/config -e NETFILTER_XT_MATCH_RECENT +- scripts/config -e NETFILTER_XT_MATCH_SCTP +- scripts/config -e NETFILTER_XT_MATCH_SOCKET +- scripts/config -e NETFILTER_XT_MATCH_STATISTIC +- scripts/config -e NETFILTER_XT_MATCH_STRING +- scripts/config -e NETFILTER_XT_MATCH_TCPMSS +- scripts/config -e NETFILTER_XT_MATCH_TIME +- scripts/config -e NETFILTER_XT_MATCH_U32 +- scripts/config -e IP_VS +- scripts/config -e BRIDGE_NETFILTER +- scripts/config -e CRYPTO_CRC32C +- scripts/config -e CONFIGFS_FS +- scripts/config -e EXPERT +- scripts/config -e TARGET_CORE +- scripts/config -e ISCSI_TARGET +- scripts/config -e TCM_IBLOCK +- scripts/config -e TCM_FILEIO +- scripts/config -e TCM_PSCSI +- scripts/config -e TCM_USER +- scripts/config -e CONFIG_UIO +- scripts/config -e LOOPBACK_TARGET +- scripts/config -e TCM_FC +- scripts/config -e LIBFC +- scripts/config -e SCSI_FC_ATTRS +- scripts/config -e SCSI_ISCSI_ATTRS +- scripts/config -e ISCSI_TCP +- scripts/config -e SCSI_LOWLEVEL +- scripts/config -e SCSI_VIRTIO +- scripts/config -e HYPERVISOR_GUEST +- scripts/config -e PARAVIRT +- scripts/config -e CONFIG_SND_INTEL8X0 +- scripts/config -m CONFIG_DRM_CIRRUS_QEMU +- scripts/config -m CONFIG_DRM_BOCHS +- scripts/config -e BT +- yes '' | make oldconfig +build-commands: +- make $MAKEFLAGS +install-commands: +- mkdir -p "$DESTDIR"/boot +- make INSTALL_PATH="$DESTDIR"/boot install +- make INSTALL_MOD_PATH="$DESTDIR" modules_install +- install -d "$DESTDIR$PREFIX/src/linux" +- | + ( + printf 'Makefile\0' + printf 'Module.symvers\0' + find arch/x86 -maxdepth 1 -name 'Makefile*' -print0 + find arch/x86 \( -name 'module.lds' -o -name 'Kbuild.platforms' -o -name 'Platform' \) -print0 + find arch/x86 \( -type d -a \( -name include -o -name scripts \) \) -o \ + \! -type d -a \( -path '*include/*' -o -path '*scripts/*' \) -print0 + find include -name 'asm*' -prune -o -print0 + find include/asm-generic -print0 + find include/uapi -print0 + find scripts -print0 + ) | cpio -0pumd "$DESTDIR$PREFIX/src/linux" +system-integration: + linux-x86-32-generic-misc: + # This is required for any modules to work correctly. However, it depends + # `depmod` from the 'kmod' chunk in the 'foundation' stratum, so it runs + # conditionally on `depmod` existing to avoid breaking in + # minimal-system-x86_32. + 00-depmod: + - if which depmod; then (cd /usr/lib/modules && for version in *; do depmod -a "$version"; done) fi diff --git a/old/strata/bsp-x86_32-generic/nasm.morph b/old/strata/bsp-x86_32-generic/nasm.morph new file mode 100644 index 00000000..0ab1a629 --- /dev/null +++ b/old/strata/bsp-x86_32-generic/nasm.morph @@ -0,0 +1,5 @@ +name: nasm +kind: chunk +build-system: autotools +install-commands: +- make INSTALLROOT="$DESTDIR" install diff --git a/old/strata/bsp-x86_32-generic/syslinux.morph b/old/strata/bsp-x86_32-generic/syslinux.morph new file mode 100644 index 00000000..4570865b --- /dev/null +++ b/old/strata/bsp-x86_32-generic/syslinux.morph @@ -0,0 +1,12 @@ +name: syslinux +kind: chunk +products: +- artifact: syslinux-devel + include: + - (usr/)?share/syslinux/com32.* +build-commands: +- make clean +- make NO_WERROR=1 +- make NO_WERROR=1 installer +install-commands: +- make INSTALLROOT="$DESTDIR" install diff --git a/old/strata/bsp-x86_64-generic.morph b/old/strata/bsp-x86_64-generic.morph new file mode 100644 index 00000000..e8a88203 --- /dev/null +++ b/old/strata/bsp-x86_64-generic.morph @@ -0,0 +1,26 @@ +name: bsp-x86_64-generic +kind: stratum +description: The set of platform specific components required for booting a 64-bit + x86 based system. +build-depends: +# nasm wants asciidoc and xmlto for generating its docs +# so include docutils here +- morph: strata/docutils.morph +chunks: +- name: linux-x86-64-generic + morph: strata/bsp-x86_64-generic/linux-x86-64-generic.morph + repo: upstream:linux + ref: a351e9b9fc24e982ec2f0e76379a49826036da12 + unpetrify-ref: v4.11 +- name: nasm + morph: strata/bsp-x86_64-generic/nasm.morph + repo: upstream:nasm + ref: 8fa0fe16408afc76ce1ae4387e1a9d46893cfda6 + unpetrify-ref: nasm-2.11.08 +- name: syslinux + morph: strata/bsp-x86_64-generic/syslinux.morph + repo: upstream:syslinux + ref: 02ab5d34ba0a90e3b6dd78034d7c470c77500119 + unpetrify-ref: baserock/syslinux-4.06-gcc7 + build-depends: + - nasm diff --git a/old/strata/bsp-x86_64-generic/linux-x86-64-generic.morph b/old/strata/bsp-x86_64-generic/linux-x86-64-generic.morph new file mode 100644 index 00000000..203ccea0 --- /dev/null +++ b/old/strata/bsp-x86_64-generic/linux-x86-64-generic.morph @@ -0,0 +1,300 @@ +name: linux-x86-64-generic +kind: chunk +products: +- artifact: linux-x86-64-generic-devel + include: + - (usr/)?src/linux/.* +- artifact: linux-x86-64-generic-bins + include: + - boot/.* +- artifact: linux-x86-64-generic-libs + include: + - lib/.* +configure-commands: +- make defconfig +- scripts/config -e PACKET +- scripts/config -e SATA_AHCI +- scripts/config -e ATA_GENERIC +- scripts/config -e HAVE_IDE +- scripts/config -d BLK_DEV_IDE_SATA +- scripts/config -e BTRFS_FS +- scripts/config -e BTRFS_FS_POSIX_ACL +- scripts/config -e DEVTMPFS +- scripts/config -e DEVTMPFS_MOUNT +- scripts/config -e CONFIG_FHANDLE +- scripts/config -e DEVPTS_MULTIPLE_INSTANCES +- scripts/config -e CGROUPS +- scripts/config -e AUTOFS4_FS +- scripts/config --set-str UEVENT_HELPER_PATH '' +- scripts/config -e EXT2_FS +- scripts/config -e EXT2_FS_XATTR +- scripts/config -e EXT2_FS_POSIX_ACL +- scripts/config -e EXT2_FS_SECURITY +- scripts/config -e EXT2_FS_XIP +- scripts/config -e EXT3_FS +- scripts/config -d EXT3_DEFAULTS_TO_ORDERED +- scripts/config -e EXT3_FS_XATTR +- scripts/config -e EXT3_FS_POSIX_ACL +- scripts/config -e EXT3_FS_SECURITY +- scripts/config -e EXT4_FS +- scripts/config -e EXT4_FS_XATTR +- scripts/config -e EXT4_FS_POSIX_ACL +- scripts/config -e EXT4_FS_SECURITY +- scripts/config -d EXT4_DEBUG +- scripts/config -e FUSE_FS +- scripts/config -e OVERLAY_FS +- scripts/config -e XFS_FS +- scripts/config -e LIBCRC32C +- scripts/config -d JBD_DEBUG +- scripts/config -d JBD2_DEBUG +- scripts/config -e BLK_DEV_LOOP +- scripts/config -d BLK_DEV_CRYPTOLOOP +- scripts/config -e CEPH_FS +- scripts/config --set-val BLK_DEV_LOOP_MIN_COUNT 8 +- scripts/config -e DM_SNAPSHOT +- scripts/config -e VIRTIO +- scripts/config -e VIRTIO_RING +- scripts/config -e VIRTIO_PCI +- scripts/config -e VIRTIO_BALLOON +- scripts/config -e VIRTIO_BLK +- scripts/config -e VIRTIO_NET +- scripts/config -e VIRTIO_CONSOLE +- scripts/config -e HW_RANDOM_VIRTIO +- scripts/config -e 9P_FS +- scripts/config -e 9P_FSCACHE +- scripts/config -e 9P_FS_POSIX_ACL +- scripts/config -e NET_9P +- scripts/config -e NET_9P_VIRTIO +- scripts/config -e R8169 +- scripts/config -e 8139TOO +- scripts/config -e 8139CP +- scripts/config -e ATL1 +- scripts/config -e ATL1C +- scripts/config -e ATL1E +- scripts/config -e E100 +- scripts/config -e E1000 +- scripts/config -e E1000E +- scripts/config -e USB_USBNET +- scripts/config -e USB_NET_AX8817X +- scripts/config -e USB_NET_AX88179_178A +- scripts/config -e USB_NET_DM9601 +- scripts/config -e IKCONFIG +- scripts/config -e IKCONFIG_PROC +- scripts/config -e SECCOMP +- scripts/config -d DEBUG_STACK_TRACE +- scripts/config -e NFSD +- scripts/config -e NFSD_V3 +- scripts/config -e KVM +- scripts/config -e TUN +- scripts/config -e BRIDGE +- scripts/config -e VHOST_NET +- scripts/config -e NF_NAT +- scripts/config -e IP_NF_NAT +- scripts/config -e IP_NF_TARGET_MASQUERADE +- scripts/config -e FB_VESA +- scripts/config -e HOTPLUG_PCI +- scripts/config -e HOTPLUG_PCI_ACPI +- scripts/config -e VLAN_8021Q +- scripts/config -e BRIDGE_VLAN_FILTERING +- scripts/config -e BLK_DEV_NBD +- scripts/config -e BRIDGE_NF_EBTABLES +- scripts/config -e NETFILTER +- scripts/config -e NETFILTER_ADVANCED +- scripts/config -e NETFILTER_XT_MATCH_ADDRTYPE +- scripts/config -e OPENVSWITCH +- scripts/config -e OPENVSWITCH_VXLAN +- scripts/config -e CONFIG_OPENVSWITCH_GRE +- scripts/config -e NET_CLS_BASIC +- scripts/config -e NET_SCH_INGRESS +- scripts/config -e NET_ACT_POLICE +- scripts/config -e NET_IPGRE_DEMUX +- scripts/config -e NET_SCH_HTB +- scripts/config -e NET_SCH_HFSC +- scripts/config -e VXLAN +- scripts/config -e VETH +- scripts/config -e IP_NF_MATCH_AH +- scripts/config -e IP_NF_MATCH_ECN +- scripts/config -e IP_NF_MATCH_RPFILTER +- scripts/config -e IP_NF_MATCH_TTL +- scripts/config -e IP_NF_TARGET_SYNPROXY +- scripts/config -e IP_NF_TARGET_NETMAP +- scripts/config -e IP_NF_TARGET_REDIRECT +- scripts/config -e IP_NF_TARGET_CLUSTERIP +- scripts/config -e IP_NF_TARGET_ECN +- scripts/config -e IP_NF_TARGET_TTL +- scripts/config -e IP_NF_RAW +- scripts/config -e IP_NF_SECURITY +- scripts/config -e IP_NF_ARPTABLES +- scripts/config -e KVM_INTEL +- scripts/config -e NETFILTER_NETLINK_QUEUE +- scripts/config -e SCSI_NETLINK +- scripts/config -e NETFILTER_XT_TARGET_MARK +- scripts/config -e NETFILTER_XT_SET +- scripts/config -e IP_SET +- scripts/config -e IP_SET_BITMAP_IP +- scripts/config -e IP_SET_BITMAP_IPMAC +- scripts/config -e IP_SET_BITMAP_PORT +- scripts/config -e IP_SET_HASH_IP +- scripts/config -e IP_SET_HASH_IPMARK +- scripts/config -e IP_SET_HASH_IPPORT +- scripts/config -e IP_SET_HASH_IPPORTIP +- scripts/config -e IP_SET_HASH_IPPORTNET +- scripts/config -e IP_SET_HASH_MAC +- scripts/config -e IP_SET_HASH_NETPORTNET +- scripts/config -e IP_SET_HASH_NET +- scripts/config -e IP_SET_HASH_NETNET +- scripts/config -e IP_SET_HASH_NETPORT +- scripts/config -e IP_SET_HASH_NETIFACE +- scripts/config -e IP_SET_LIST_SET +- scripts/config -e NF_CONNTRACK_TIMEOUT +- scripts/config -e NF_CONNTRACK_TIMESTAMP +- scripts/config -e NF_CONNTRACK_EVENTS +- scripts/config -e NF_CONNTRACK_LABELS +- scripts/config -e NETFILTER_NETLINK_ACCT +- scripts/config -e NETFILTER_NETLINK_QUEUE_CT +- scripts/config -e NF_CT_PROTO_DCCP +- scripts/config -e NF_CT_PROTO_GRE +- scripts/config -e NF_CT_PROTO_SCTP +- scripts/config -e NF_CT_PROTO_UDPLITE +- scripts/config -e NF_CT_NETLINK_TIMEOUT +- scripts/config -e NF_CT_NETLINK_HELPER +- scripts/config -e NF_CONNTRACK_AMANDA +- scripts/config -e NF_CONNTRACK_H323 +- scripts/config -e NF_CONNTRACK_BROADCAST +- scripts/config -e NF_CONNTRACK_NETBIOS_NS +- scripts/config -e NF_CONNTRACK_SNMP +- scripts/config -e NF_CONNTRACK_PPTP +- scripts/config -e NF_CONNTRACK_SANE +- scripts/config -e NF_CONNTRACK_TFTP +- scripts/config -e NF_LOG_COMMON +- scripts/config -e NF_NAT_PROTO_DCCP +- scripts/config -e NF_NAT_PROTO_UDPLITE +- scripts/config -e NF_NAT_PROTO_SCTP +- scripts/config -e NF_NAT_AMANDA +- scripts/config -e NF_NAT_TFTP +- scripts/config -e NF_TABLES +- scripts/config -e NF_TABLES_INET +- scripts/config -e NFT_COMPAT +- scripts/config -e NFT_EXTHDR +- scripts/config -e NFT_META +- scripts/config -e NFT_CT +- scripts/config -e NFT_LIMIT +- scripts/config -e NFT_NAT +- scripts/config -e NFT_QUEUE +- scripts/config -e NFT_REJECT +- scripts/config -e NFT_REJECT_INET +- scripts/config -e NFT_RBTREE +- scripts/config -e NFT_HASH +- scripts/config -e NFT_COUNTER +- scripts/config -e NFT_LOG +- scripts/config -e NFT_MASQ +- scripts/config -e NETFILTER_XT_CONNMARK +- scripts/config -e NETFILTER_XT_TARGET_AUDIT +- scripts/config -e NETFILTER_XT_TARGET_CHECKSUM +- scripts/config -e NETFILTER_XT_TARGET_CLASSIFY +- scripts/config -e NETFILTER_XT_TARGET_CT +- scripts/config -e NETFILTER_XT_TARGET_DSCP +- scripts/config -e NETFILTER_XT_TARGET_HMARK +- scripts/config -e NETFILTER_XT_TARGET_LED +- scripts/config -e NETFILTER_XT_TARGET_LOG +- scripts/config -e NETFILTER_XT_TARGET_NFQUEUE +- scripts/config -e NETFILTER_XT_TARGET_RATEEST +- scripts/config -e NETFILTER_XT_TARGET_TPROXY +- scripts/config -e NETFILTER_XT_TARGET_TCPOPTSTRIP +- scripts/config -e NETFILTER_XT_TARGET_TEE +- scripts/config -e NETFILTER_XT_TARGET_TRACE +- scripts/config -e NETFILTER_XT_TARGET_IDLETIMER +- scripts/config -e NETFILTER_XT_MATCH_BPF +- scripts/config -e NETFILTER_XT_MATCH_CLUSTER +- scripts/config -e NETFILTER_XT_MATCH_COMMENT +- scripts/config -e NETFILTER_XT_MATCH_CONNBYTES +- scripts/config -e NETFILTER_XT_MATCH_CONNLABEL +- scripts/config -e NETFILTER_XT_MATCH_CONNLIMIT +- scripts/config -e NETFILTER_XT_MATCH_CPU +- scripts/config -e NETFILTER_XT_MATCH_DCCP +- scripts/config -e NETFILTER_XT_MATCH_DEVGROUP +- scripts/config -e NETFILTER_XT_MATCH_DSCP +- scripts/config -e NETFILTER_XT_MATCH_ESP +- scripts/config -e NETFILTER_XT_MATCH_HASHLIMIT +- scripts/config -e NETFILTER_XT_MATCH_HELPER +- scripts/config -e NETFILTER_XT_MATCH_IPCOMP +- scripts/config -e NETFILTER_XT_MATCH_IPRANGE +- scripts/config -e NETFILTER_XT_MATCH_IPVS +- scripts/config -e NETFILTER_XT_MATCH_L2TP +- scripts/config -e NETFILTER_XT_MATCH_LENGTH +- scripts/config -e NETFILTER_XT_MATCH_LIMIT +- scripts/config -e NETFILTER_XT_MATCH_MAC +- scripts/config -e NETFILTER_XT_MATCH_MULTIPORT +- scripts/config -e NETFILTER_XT_MATCH_NFACCT +- scripts/config -e NETFILTER_XT_MATCH_OSF +- scripts/config -e NETFILTER_XT_MATCH_OWNER +- scripts/config -e NETFILTER_XT_MATCH_CGROUP +- scripts/config -e NETFILTER_XT_MATCH_PHYSDEV +- scripts/config -e NETFILTER_XT_MATCH_PKTTYPE +- scripts/config -e NETFILTER_XT_MATCH_QUOTA +- scripts/config -e NETFILTER_XT_MATCH_RATEEST +- scripts/config -e NETFILTER_XT_MATCH_REALM +- scripts/config -e NETFILTER_XT_MATCH_RECENT +- scripts/config -e NETFILTER_XT_MATCH_SCTP +- scripts/config -e NETFILTER_XT_MATCH_SOCKET +- scripts/config -e NETFILTER_XT_MATCH_STATISTIC +- scripts/config -e NETFILTER_XT_MATCH_STRING +- scripts/config -e NETFILTER_XT_MATCH_TCPMSS +- scripts/config -e NETFILTER_XT_MATCH_TIME +- scripts/config -e NETFILTER_XT_MATCH_U32 +- scripts/config -e IP_VS +- scripts/config -e BRIDGE_NETFILTER +- scripts/config -e CRYPTO_CRC32C +- scripts/config -e CONFIGFS_FS +- scripts/config -e EXPERT +- scripts/config -e TARGET_CORE +- scripts/config -e ISCSI_TARGET +- scripts/config -e TCM_IBLOCK +- scripts/config -e TCM_FILEIO +- scripts/config -e TCM_PSCSI +- scripts/config -e TCM_USER +- scripts/config -e CONFIG_UIO +- scripts/config -e LOOPBACK_TARGET +- scripts/config -e TCM_FC +- scripts/config -e LIBFC +- scripts/config -e SCSI_FC_ATTRS +- scripts/config -e SCSI_ISCSI_ATTRS +- scripts/config -e ISCSI_TCP +- scripts/config -e SCSI_LOWLEVEL +- scripts/config -e SCSI_VIRTIO +- scripts/config -e HYPERVISOR_GUEST +- scripts/config -e PARAVIRT +- scripts/config -e CONFIG_SND_INTEL8X0 +- scripts/config -m CONFIG_DRM_CIRRUS_QEMU +- scripts/config -m CONFIG_DRM_BOCHS +- scripts/config -m CONFIG_DRM_VIRTIO_GPU +- scripts/config -e BT +- yes '' | make oldconfig +build-commands: +- make $MAKEFLAGS +install-commands: +- mkdir -p "$DESTDIR"/boot +- make INSTALL_PATH="$DESTDIR"/boot install +- make INSTALL_MOD_PATH="$DESTDIR" modules_install +- install -d "$DESTDIR$PREFIX/src/linux" +- | + ( + printf 'Makefile\0' + printf 'Module.symvers\0' + find arch/x86 -maxdepth 1 -name 'Makefile*' -print0 + find arch/x86 \( -name 'module.lds' -o -name 'Kbuild.platforms' -o -name 'Platform' \) -print0 + find arch/x86 \( -type d -a \( -name include -o -name scripts \) \) -o \ + \! -type d -a \( -path '*include/*' -o -path '*scripts/*' \) -print0 + find include -name 'asm*' -prune -o -print0 + find include/asm-generic -print0 + find include/uapi -print0 + find scripts -print0 + ) | cpio -0pumd "$DESTDIR$PREFIX/src/linux" +system-integration: + linux-x86-64-generic-misc: + # This is required for any modules to work correctly. However, it depends + # `depmod` from the 'kmod' chunk in the 'foundation' stratum, so it runs + # conditionally on `depmod` existing to avoid breaking in + # minimal-system-x86_64. + 00-depmod: + - if which depmod; then (cd /usr/lib/modules && for version in *; do depmod -a "$version"; done) fi diff --git a/old/strata/bsp-x86_64-generic/nasm.morph b/old/strata/bsp-x86_64-generic/nasm.morph new file mode 100644 index 00000000..0ab1a629 --- /dev/null +++ b/old/strata/bsp-x86_64-generic/nasm.morph @@ -0,0 +1,5 @@ +name: nasm +kind: chunk +build-system: autotools +install-commands: +- make INSTALLROOT="$DESTDIR" install diff --git a/old/strata/bsp-x86_64-generic/syslinux.morph b/old/strata/bsp-x86_64-generic/syslinux.morph new file mode 100644 index 00000000..4570865b --- /dev/null +++ b/old/strata/bsp-x86_64-generic/syslinux.morph @@ -0,0 +1,12 @@ +name: syslinux +kind: chunk +products: +- artifact: syslinux-devel + include: + - (usr/)?share/syslinux/com32.* +build-commands: +- make clean +- make NO_WERROR=1 +- make NO_WERROR=1 installer +install-commands: +- make INSTALLROOT="$DESTDIR" install diff --git a/old/strata/bsp-x86_both-tools.morph b/old/strata/bsp-x86_both-tools.morph new file mode 100644 index 00000000..5a72caa7 --- /dev/null +++ b/old/strata/bsp-x86_both-tools.morph @@ -0,0 +1,21 @@ +name: bsp-x86_both-tools +kind: stratum +description: The set of platform specific components required for configuring a bootable + x86 based system. +build-depends: +# nasm wants asciidoc and xmlto for generating its docs +# so include docutils here +- morph: strata/docutils.morph +chunks: +- name: nasm + morph: strata/bsp-x86_both-tools/nasm.morph + repo: upstream:nasm + ref: 8fa0fe16408afc76ce1ae4387e1a9d46893cfda6 + unpetrify-ref: nasm-2.11.08 +- name: syslinux + morph: strata/bsp-x86_both-tools/syslinux.morph + repo: upstream:syslinux + ref: 02ab5d34ba0a90e3b6dd78034d7c470c77500119 + unpetrify-ref: baserock/syslinux-4.06-gcc7 + build-depends: + - nasm diff --git a/old/strata/bsp-x86_both-tools/nasm.morph b/old/strata/bsp-x86_both-tools/nasm.morph new file mode 100644 index 00000000..0ab1a629 --- /dev/null +++ b/old/strata/bsp-x86_both-tools/nasm.morph @@ -0,0 +1,5 @@ +name: nasm +kind: chunk +build-system: autotools +install-commands: +- make INSTALLROOT="$DESTDIR" install diff --git a/old/strata/bsp-x86_both-tools/syslinux.morph b/old/strata/bsp-x86_both-tools/syslinux.morph new file mode 100644 index 00000000..4570865b --- /dev/null +++ b/old/strata/bsp-x86_both-tools/syslinux.morph @@ -0,0 +1,12 @@ +name: syslinux +kind: chunk +products: +- artifact: syslinux-devel + include: + - (usr/)?share/syslinux/com32.* +build-commands: +- make clean +- make NO_WERROR=1 +- make NO_WERROR=1 installer +install-commands: +- make INSTALLROOT="$DESTDIR" install diff --git a/old/strata/build-essential.morph b/old/strata/build-essential.morph new file mode 100644 index 00000000..a82cd0c8 --- /dev/null +++ b/old/strata/build-essential.morph @@ -0,0 +1,412 @@ +name: build-essential +kind: stratum +description: | + Toolchain stratum + + Stage 1: build a minimal cross compiler with the host's tools. + + Starting with a cross compiler ensures that (a) nothing from the host + can leak into the build-essential artifacts, and (b) cross-compiling + build-essential is fully tested and supported, since we always use the + cross code paths. + + Stage 2: cross-build the whole of build-essential, using the host's tools + but the cross-compiler toolchain. + + Stage 2 GCC outputs code for the same 'bootstrap' machine as stage 1 GCC, + but because stage 2 GCC is also built to *run* on the bootstrap machine + it can only execute inside the stage 3 chroot (due to being built against + a libc with a non-standard prefix). + + Stage 3: build the whole of build-essential again, this time using a + staging area containing only the output of stage 2. The result of this + build is fully reproducible. + + We do a switch-a-roo between stage 2 and 3: stages 2 chunks are all built + to run on a host *-bootstrap-* while stage 3 chunks are native-built for + a *-baserock-* machine. This works, because the cross build was all for + show (and cleanliness) and the binaries actually still run on the host. + + After build-essential is built we do another trick. See + stage2-fhs-dirs.morph for details. Basically, /bin is a symlink to + /tools/bin during stage 2 but in stage 3 it becomes a real directory + again. + + PLEASE KEEP THE REFS IN 'armv7lhf-cross-toolchain' STRATUM UP TO DATE WITH + THIS ONE! + + Please note that the chunk 'build-depends' field is treated differently in + this stratum to how other strata in definitions.git use it. Other strata + rely on the fact that dependencies of a dependency (called 'transitive + dependencies') are implicitly included in the staging area. Within + build-essential, some chunks list transitive dependencies explicitly to + make clearer what is going on. +products: +- artifact: build-essential-minimal + include: + - fhs-dirs-.* + - busybox-.* + - glibc-nss +chunks: +- name: stage1-binutils + morph: strata/build-essential/stage1-binutils.morph + repo: upstream:binutils-tarball + ref: 5500a97a2ad1735db5b35bc51cfb825c1f4c38df + unpetrify-ref: binutils-2.25 + build-mode: bootstrap + prefix: /tools + +- name: stage1-gcc + morph: strata/build-essential/stage1-gcc.morph + repo: upstream:gcc-tarball + ref: 3b0dbcfa2e5d12bd80cab1b35f08653d61fe7838 + unpetrify-ref: baserock/gcc-7.1.0 + build-depends: + - stage1-binutils + build-mode: bootstrap + prefix: /tools + +- name: stage2-linux-api-headers + morph: strata/build-essential/stage2-linux-api-headers.morph + repo: upstream:linux + ref: a351e9b9fc24e982ec2f0e76379a49826036da12 + unpetrify-ref: v4.11 + build-depends: + - stage1-binutils + - stage1-gcc + build-mode: bootstrap + prefix: /tools + +- name: stage2-glibc + morph: strata/build-essential/stage2-glibc.morph + repo: upstream:glibc + ref: db0242e3023436757bbc7c488a779e6e3343db04 + unpetrify-ref: glibc-2.25 + build-depends: + - stage1-binutils + - stage1-gcc + - stage2-linux-api-headers + build-mode: bootstrap + prefix: /tools + +- name: stage2-libstdc++ + morph: strata/build-essential/stage2-libstdc++.morph + repo: upstream:gcc-tarball + ref: 3b0dbcfa2e5d12bd80cab1b35f08653d61fe7838 + unpetrify-ref: baserock/gcc-7.1.0 + build-depends: + - stage1-binutils + - stage1-gcc + - stage2-linux-api-headers + - stage2-glibc + build-mode: bootstrap + prefix: /tools + +- name: stage2-binutils + morph: strata/build-essential/stage2-binutils.morph + repo: upstream:binutils-tarball + ref: 5500a97a2ad1735db5b35bc51cfb825c1f4c38df + unpetrify-ref: binutils-2.25 + build-depends: + - stage1-binutils + - stage1-gcc + - stage2-linux-api-headers + - stage2-glibc + build-mode: bootstrap + prefix: /tools + +- name: stage2-gcc-fixed-headers + morph: strata/build-essential/stage2-gcc-fixed-headers.morph + repo: upstream:gcc-tarball + ref: 3b0dbcfa2e5d12bd80cab1b35f08653d61fe7838 + unpetrify-ref: baserock/gcc-7.1.0 + build-depends: + - stage1-binutils + - stage1-gcc + - stage2-linux-api-headers + - stage2-glibc + build-mode: bootstrap + prefix: /tools + +- name: stage2-gcc + morph: strata/build-essential/stage2-gcc.morph + repo: upstream:gcc-tarball + ref: 3b0dbcfa2e5d12bd80cab1b35f08653d61fe7838 + unpetrify-ref: baserock/gcc-7.1.0 + build-depends: + - stage1-binutils + - stage1-gcc + - stage2-linux-api-headers + - stage2-glibc + - stage2-gcc-fixed-headers + - stage2-libstdc++ + build-mode: bootstrap + prefix: /tools + +- name: stage2-busybox + morph: strata/build-essential/stage2-busybox.morph + repo: upstream:busybox + ref: 1ecfe811fe2f70380170ef7d820e8150054e88ca + unpetrify-ref: '1_23_1' + build-depends: + - stage1-binutils + - stage1-gcc + - stage2-linux-api-headers + - stage2-glibc + build-mode: bootstrap + prefix: /tools + +- name: stage2-fake-bash + morph: strata/build-essential/stage2-fake-bash.morph + repo: upstream:bash + ref: 3590145af6f1c9fa321dff231f69ae696e7e740b + unpetrify-ref: baserock/bash-4.3-patch-27 + build-mode: bootstrap + prefix: /tools + +- name: stage2-fhs-dirs + morph: strata/build-essential/stage2-fhs-dirs.morph + repo: baserock:baserock/fhs-dirs + ref: 9fafca436000bb57ddd5c498f8a75ea7b274f6c5 + unpetrify-ref: baserock/usr_merge + build-mode: bootstrap + prefix: /tools + +- name: stage2-gawk + morph: strata/build-essential/stage2-gawk.morph + repo: upstream:gawk + ref: 925f9363c4b0a5bb9375298afcdcf404efb32587 + unpetrify-ref: gawk-4.1-stable + build-depends: + - stage1-binutils + - stage1-gcc + - stage2-linux-api-headers + - stage2-glibc + build-mode: bootstrap + prefix: /tools + +- name: stage2-make + morph: strata/build-essential/stage2-make.morph + repo: upstream:make-tarball + ref: 4978d7129e42340ab9efeb0cb9cae4ad0fa052d4 + unpetrify-ref: baserock/make-4.1-ttyname-segfault-fix + build-depends: + - stage1-binutils + - stage1-gcc + - stage2-linux-api-headers + - stage2-glibc + build-mode: bootstrap + prefix: /tools + +- name: stage2-reset-specs + morph: strata/build-essential/stage2-reset-specs.morph + repo: upstream:glibc + ref: fdfc9260b61d3d72541f18104d24c7bcb0ce5ca2 + unpetrify-ref: glibc-2.24 + build-depends: + - stage1-binutils + - stage1-gcc + - stage2-linux-api-headers + - stage2-glibc + build-mode: bootstrap + prefix: /tools + +- name: fhs-dirs + morph: strata/build-essential/fhs-dirs.morph + repo: baserock:baserock/fhs-dirs + ref: 9fafca436000bb57ddd5c498f8a75ea7b274f6c5 + unpetrify-ref: baserock/usr_merge + build-depends: + - stage2-binutils + - stage2-busybox + - stage2-glibc + - stage2-fhs-dirs + - stage2-gawk + - stage2-gcc + - stage2-linux-api-headers + - stage2-make + - stage2-reset-specs + +- name: linux-api-headers + morph: strata/build-essential/linux-api-headers.morph + repo: upstream:linux + ref: a351e9b9fc24e982ec2f0e76379a49826036da12 + unpetrify-ref: v4.11 + build-depends: + - stage2-binutils + - stage2-busybox + - stage2-glibc + - stage2-fhs-dirs + - stage2-gawk + - stage2-gcc + - stage2-linux-api-headers + - stage2-make + - stage2-reset-specs + - fhs-dirs + +- name: glibc + morph: strata/build-essential/glibc.morph + repo: upstream:glibc + ref: db0242e3023436757bbc7c488a779e6e3343db04 + unpetrify-ref: glibc-2.25 + build-depends: + - stage2-binutils + - stage2-busybox + - stage2-fake-bash + - stage2-glibc + - stage2-fhs-dirs + - stage2-gawk + - stage2-gcc + - stage2-linux-api-headers + - stage2-make + - stage2-reset-specs + - linux-api-headers + artifacts: + glibc-gconv: build-essential-runtime + glibc-libs: build-essential-minimal + glibc-nss: build-essential-runtime + +- name: zlib + morph: strata/build-essential/zlib.morph + repo: upstream:zlib + ref: 50893291621658f355bc5b4d450a8d06a563053d + unpetrify-ref: v1.2.8 + build-depends: + - stage2-binutils + - stage2-busybox + - stage2-glibc + - stage2-fhs-dirs + - stage2-gawk + - stage2-gcc + - stage2-linux-api-headers + - stage2-make + - stage2-reset-specs + - glibc + artifacts: + zlib-libs: build-essential-minimal + +- name: binutils + morph: strata/build-essential/binutils.morph + repo: upstream:binutils-tarball + ref: 5500a97a2ad1735db5b35bc51cfb825c1f4c38df + unpetrify-ref: binutils-2.25 + build-depends: + - stage2-binutils + - stage2-busybox + - stage2-glibc + - stage2-fhs-dirs + - stage2-gawk + - stage2-gcc + - stage2-linux-api-headers + - stage2-make + - stage2-reset-specs + - glibc + - zlib + +- name: busybox + morph: strata/build-essential/busybox.morph + repo: upstream:busybox + ref: 1ecfe811fe2f70380170ef7d820e8150054e88ca + unpetrify-ref: '1_23_1' + build-depends: + - stage2-binutils + - stage2-busybox + - stage2-glibc + - stage2-fhs-dirs + - stage2-gawk + - stage2-gcc + - stage2-linux-api-headers + - stage2-make + - stage2-reset-specs + - glibc + +- name: gawk + morph: strata/build-essential/gawk.morph + repo: upstream:gawk + ref: dc5af665700d9b04fdf9c18930526d28eef5d5d9 + unpetrify-ref: gawk-4.1.1 + build-depends: + - stage2-binutils + - stage2-busybox + - stage2-glibc + - stage2-fhs-dirs + - stage2-gawk + - stage2-gcc + - stage2-linux-api-headers + - stage2-make + - stage2-reset-specs + - glibc + +- name: m4-tarball + morph: strata/build-essential/m4-tarball.morph + repo: upstream:m4-tarball + ref: 23c11479b3ad787adc7a651ee0c4347839e47723 + unpetrify-ref: m4-1.4.17 + build-depends: + - stage2-binutils + - stage2-busybox + - stage2-glibc + - stage2-fhs-dirs + - stage2-gawk + - stage2-gcc + - stage2-linux-api-headers + - stage2-make + - stage2-reset-specs + - glibc + +- name: gcc + morph: strata/build-essential/gcc.morph + repo: upstream:gcc-tarball + ref: 3b0dbcfa2e5d12bd80cab1b35f08653d61fe7838 + unpetrify-ref: baserock/gcc-7.1.0 + build-depends: + - stage2-binutils + - stage2-busybox + - stage2-glibc + - stage2-fhs-dirs + - stage2-gawk + - stage2-gcc + - stage2-linux-api-headers + - stage2-make + - stage2-reset-specs + - glibc + - zlib + - m4-tarball + - linux-api-headers + artifacts: + gcc-libs: build-essential-minimal + +- name: make + morph: strata/build-essential/make.morph + repo: upstream:make-tarball + ref: 4978d7129e42340ab9efeb0cb9cae4ad0fa052d4 + unpetrify-ref: baserock/make-4.1-ttyname-segfault-fix + build-depends: + - stage2-binutils + - stage2-busybox + - stage2-glibc + - stage2-fhs-dirs + - stage2-gawk + - stage2-gcc + - stage2-linux-api-headers + - stage2-make + - stage2-reset-specs + - glibc + +- name: ccache + morph: strata/build-essential/ccache.morph + repo: upstream:ccache + ref: 567631456f0899cdf0c382f898d38aadc8901d32 + unpetrify-ref: baserock/build-essential + build-depends: + - stage2-binutils + - stage2-busybox + - stage2-glibc + - stage2-fhs-dirs + - stage2-gawk + - stage2-gcc + - stage2-linux-api-headers + - stage2-make + - stage2-reset-specs + - glibc + - zlib diff --git a/old/strata/build-essential/binutils.morph b/old/strata/build-essential/binutils.morph new file mode 100644 index 00000000..bab52672 --- /dev/null +++ b/old/strata/build-essential/binutils.morph @@ -0,0 +1,8 @@ +name: binutils +kind: chunk +build-system: autotools + +configure-commands: +- | + ./configure --prefix="$PREFIX" --disable-nls --disable-werror \ + --with-system-zlib diff --git a/old/strata/build-essential/busybox.morph b/old/strata/build-essential/busybox.morph new file mode 100644 index 00000000..1bbd97a6 --- /dev/null +++ b/old/strata/build-essential/busybox.morph @@ -0,0 +1,89 @@ +name: busybox +kind: chunk + +configure-commands: +# Busybox's default config has everything enabled. +- make defconfig KCONFIG_NOTIMESTAMP=1 + +- sed -e 's|.*UDHCPC_DEFAULT_SCRIPT.*|CONFIG_UDHCPC_DEFAULT_SCRIPT="'"$PREFIX"/share/udhcpc/default.script'"|' + -i .config +- sed -e 's|.*IFUPDOWN_IFSTATE_PATH.*|CONFIG_IFUPDOWN_IFSTATE_PATH="/run/ifstate"|' + -i .config + +# Avoid dividing applets between $PREFIX/[s]bin and $PREFIX/usr/[s]bin. +- '[ "$PREFIX" = /usr ] || sed -e ''s/.*INSTALL_NO_USR.*/CONFIG_INSTALL_NO_USR=y/'' + -i .config' +# We have GAWK, but in GENIVI baseline we want to get rid of it +# - sed -e 's/CONFIG_AWK=y.*/# CONFIG_AWK is not set/' -i .config + +# Depends on stuff that was removed since eglibc 2.14. +- sed -e 's/CONFIG_INETD=y.*/# CONFIG_INETD is not set/' -i .config + +# Busybox Patch is incompatible enough with GNU Patch that it can't be +# used for GNULib projects built from Git. +- sed -e 's/CONFIG_PATCH=y.*/# CONFIG_PATCH is not set/' -i .config + +# None of this is needed because we have kmod; and it actually breaks the +# Linux build because depmod isn't compatible enough with util-linux's. +- sed -e 's/CONFIG_DEPMOD=y.*/# CONFIG_DEPMOD is not set/' -i .config +- sed -e 's/CONFIG_INSMOD=y.*/# CONFIG_INSMOD is not set/' -i .config +- sed -e 's/CONFIG_MODPROBE=y.*/# CONFIG_MODPROBE is not set/' -i .config +- sed -e 's/CONFIG_MODPROBE_SMALL=y.*/# CONFIG_MODPROBE_SMALL is not set/' -i .config +- sed -e 's/CONFIG_LSMOD=y.*/# CONFIG_LSMOD is not set/' -i .config +- sed -e 's/CONFIG_RMMOD=y.*/# CONFIG_RMMOD is not set/' -i .config + +# General features that we don't need. +- sed -e 's/CONFIG_FEATURE_MOUNT_CIFS=y.*/# CONFIG_FEATURE_MOUNT_CIFS is not set/' + -i .config +- sed -e 's/CONFIG_FEATURE_EXTRA_QUIET=y.*/# CONFIG_FEATURE_EXTRA_QUIET is not set/' + -i .config +- sed -e 's/CONFIG_FEATURE_INIT_COREDUMPS=y.*/# CONFIG_FEATURE_INIT_COREDUMPS is not + set/' -i .config +- sed -e 's/CONFIG_FEATURE_INIT_SCTTY=y.*/# CONFIG_FEATURE_INIT_SCTTY is not set/' + -i .config +- sed -e 's/CONFIG_FEATURE_INIT_SYSLOG=y.*/# CONFIG_FEATURE_INIT_SYSLOG is not set/' + -i .config +- sed -e 's/CONFIG_FEATURE_INITRD=y.*/# CONFIG_FEATURE_INITRD is not set/' -i .config +- sed -e 's/CONFIG_FEATURE_MINIX2=y.*/# CONFIG_FEATURE_MINIX2 is not set/' -i .config +- sed -e 's/CONFIG_FSCK_MINIX=y.*/# CONFIG_FSCK_MINIX is not set/' -i .config +- sed -e 's/CONFIG_LOSETUP=y.*/# CONFIG_LOSETUP is not set/' -i .config +- sed -e 's/CONFIG_LSUSB=y.*/# CONFIG_LSUSB is not set/' -i .config +- sed -e 's/CONFIG_LSPCI=y.*/# CONFIG_LSPCI is not set/' -i .config +- sed -e 's/CONFIG_LZMA=y.*/# CONFIG_LZMA is not set/' -i .config +- sed -e 's/CONFIG_MKFS_EXT2=y.*/# CONFIG_MKFS_EXT2 is not set/' -i .config +- sed -e 's/CONFIG_MKFS_MINIX=y.*/# CONFIG_MKFS_MINIX is not set/' -i .config +- sed -e 's/CONFIG_STRINGS=y.*/# CONFIG_STRINGS is not set/' -i .config +- sed -e 's/CONFIG_UNLZMA=y.*/# CONFIG_UNLZMA is not set/' -i .config +- sed -e 's/CONFIG_UNXZ=y.*/# CONFIG_UNXZ is not set/' -i .config +- sed -e 's/CONFIG_XZ=y.*/# CONFIG_XZ is not set/' -i .config + +# Now turn on some little bits we do need +- sed -e 's/# CONFIG_BBCONFIG is not set/CONFIG_BBCONFIG=y/' -i .config +- sed -e 's/# CONFIG_FEATURE_COMPRESS_BBCONFIG is not set/CONFIG_FEATURE_COMPRESS_BBCONFIG=y/' + -i .config +- sed -e 's/# CONFIG_FEATURE_MOUNT_HELPERS is not set/CONFIG_FEATURE_MOUNT_HELPERS=y/' + -i .config + + +build-commands: +- make KCONFIG_NOTIMESTAMP=1 + +install-commands: +- | + if [ "$PREFIX" = /usr ]; then PREFIX=; fi && + make CONFIG_PREFIX="$DESTDIR$PREFIX" KCONFIG_NOTIMESTAMP=1 install && + chmod 6755 "$DESTDIR$PREFIX"/bin/busybox +# Set up man environment variables +- mkdir -p "$DESTDIR"/etc +- | + cat << EOF > "$DESTDIR/etc/man.conf" + # This file is used by man to provide a manpath for those without one by + # examining their PATH environment variable. + # + # Lines beginning with `#' are comments and are ignored. Any combination of + # tabs or spaces may be used as `whitespace' separators. + + MANDATORY_MANPATH /usr/man + MANDATORY_MANPATH /usr/share/man + MANDATORY_MANPATH /usr/local/share/man + EOF diff --git a/old/strata/build-essential/ccache.morph b/old/strata/build-essential/ccache.morph new file mode 100644 index 00000000..383eee8a --- /dev/null +++ b/old/strata/build-essential/ccache.morph @@ -0,0 +1,12 @@ +name: ccache +kind: chunk +build-system: autotools +configure-commands: +- ./configure --prefix="$PREFIX" +install-commands: +- make DESTDIR="$DESTDIR" install +- mkdir -p "$DESTDIR/$PREFIX/lib/ccache" +- for cc in gcc cc g++ c++; do ln -sf "$PREFIX/bin/ccache" "$DESTDIR/$PREFIX/lib/ccache/$cc"; + done +- for cc in gcc cc g++ c++; do ln -sf "$PREFIX/bin/ccache" "$DESTDIR/$PREFIX/lib/ccache/$TARGET-$cc"; + done diff --git a/old/strata/build-essential/fhs-dirs.morph b/old/strata/build-essential/fhs-dirs.morph new file mode 100644 index 00000000..f4a1b1e9 --- /dev/null +++ b/old/strata/build-essential/fhs-dirs.morph @@ -0,0 +1,49 @@ +name: fhs-dirs +kind: chunk +description: create the FHS 2.3 directory hierarchy and the usual files +install-commands: +- sh ./create-fhs-dirs "$DESTDIR" +- install -m 644 passwd "$DESTDIR/etc/passwd" +- install -m 600 shadow "$DESTDIR/etc/shadow" +- install -m 644 interfaces "$DESTDIR/etc/network/interfaces" +- install -m 644 group "$DESTDIR/etc/group" +- install -m 644 issue "$DESTDIR/etc/issue" +- install -m 644 services "$DESTDIR/etc/services" +- install -m 644 protocols "$DESTDIR/etc/protocols" +- echo baserock > "$DESTDIR"/etc/hostname +devices: +- type: c + filename: /dev/console + gid: 0 + major: 5 + minor: 1 + permissions: '0600' + uid: 0 +- type: c + filename: /dev/full + gid: 0 + major: 1 + minor: 7 + permissions: '0666' + uid: 0 +- type: c + filename: /dev/null + gid: 0 + major: 1 + minor: 3 + permissions: '0666' + uid: 0 +- type: c + filename: /dev/urandom + gid: 0 + major: 1 + minor: 9 + permissions: '0666' + uid: 0 +- type: c + filename: /dev/zero + gid: 0 + major: 1 + minor: 5 + permissions: '0666' + uid: 0 diff --git a/old/strata/build-essential/gawk.morph b/old/strata/build-essential/gawk.morph new file mode 100644 index 00000000..1ad871c6 --- /dev/null +++ b/old/strata/build-essential/gawk.morph @@ -0,0 +1,5 @@ +name: gawk +kind: chunk +build-system: autotools +configure-commands: +- ./configure --prefix="$PREFIX" --disable-nls diff --git a/old/strata/build-essential/gcc.morph b/old/strata/build-essential/gcc.morph new file mode 100644 index 00000000..18459b73 --- /dev/null +++ b/old/strata/build-essential/gcc.morph @@ -0,0 +1,62 @@ +name: gcc +kind: chunk + +products: +- artifact: gcc-libs + include: + - (usr/)lib/lib.*\.so(\.\d+)*$ +- artifact: gcc-doc + include: + - (usr/)?share/doc/.* + - (usr/)?share/man/.* + - (usr/)?share/info/.* +- artifact: gcc-devel + # devel includes everything which isn't documentation or libs, since + # everything else gcc produces is required for compiling + # this is the -devel artifact instead of -misc, since it goes in -devel + # stratum artifacts by default + include: [.*] +configure-commands: +- mkdir o + +# Configure flag notes: +# 1. An attempt to stop anything going in $PREFIX/lib64 (which doesn't +# fully work; we will need to hobble the multilib configuration in +# config/i386/t-linux64 if we really want to kill /lib64). +# 2. Avoid having more than one copy of ZLib in use on the system +# 3. Multilib does not make sense in Baserock. +- | + case "$MORPH_ARCH" in + armv7lhf) ARCH_FLAGS="--with-arch=armv7-a \ + --with-tune=cortex-a9 \ + --with-fpu=vfpv3-d16 \ + --with-float=hard" ;; + armv7*) ARCH_FLAGS="--with-arch=armv7-a" ;; + esac + + cd o && ../configure \ + $ARCH_FLAGS \ + --prefix="$PREFIX" \ + `# [1]` --libdir=$PREFIX/lib \ + --disable-bootstrap \ + `# [2]` --with-system-zlib \ + `# [3]` --disable-multilib \ + --enable-languages=c,c++,fortran + +build-commands: +- | + case "$MORPH_ARCH" in + armv5*) sed -i "s/--host=none/--host=armv5/" o/Makefile + sed -i "s/--target=none/--target=armv5/" o/Makefile ;; + armv7*) sed -i "s/--host=none/--host=armv7a/" o/Makefile + sed -i "s/--target=none/--target=armv7a/" o/Makefile ;; + esac + cd o && make + +install-commands: +- cd o && make DESTDIR="$DESTDIR" install +- ln -s gcc "$DESTDIR/$PREFIX/bin/cc" +- | + for fortran_alias in f77 f90 f95; do + ln -s gfortran "$DESTDIR/$PREFIX/bin/$fortran_alias" + done diff --git a/old/strata/build-essential/glibc.morph b/old/strata/build-essential/glibc.morph new file mode 100644 index 00000000..6c87c5d9 --- /dev/null +++ b/old/strata/build-essential/glibc.morph @@ -0,0 +1,100 @@ +name: glibc +kind: chunk +products: +- artifact: glibc-nss + include: + - etc/nsswitch.conf + - (usr/)?lib/libnss.* +- artifact: glibc-gconv + include: + - (usr/)?lib/gconv/.* +- artifact: glibc-libs + include: + - sbin/ldconfig + - lib(32|64)?/ld-.* + - (usr/)?lib(exec)?/pt_chown +- artifact: glibc-bins + include: + - (usr/)?s?bin/.* + - (usr/)?libexec/getconf/.* + - (usr/)?lib(32|64)?/libSegFault\.so(\.\d+)*$ +- artifact: glibc-libs + include: + # This is processed after bins, so bins can take libSegFault.so + - (usr/)?lib(32|64)?/lib[^/]*\.so(\.\d+)*$ + - etc/ld.so.conf + - etc/ld.so.conf.d +- artifact: glibc-devel + include: + - (usr/)?include/.* + - (usr/)?lib(32|64)?/lib.*\.a + - (usr/)?lib(32|64)?/lib.*\.la + - (usr/)?(lib(32|64)?|share)/pkgconfig/.*\.pc + - (usr/)?lib(32|64)?/.*\.o +- artifact: glibc-locale + include: + - (usr/)?lib/locale/.* + - (usr/)?share/locale/.* + - (usr/)?share/i18n/.* + - (usr/)?share/zoneinfo/.* +- artifact: glibc-misc + include: + - .* +configure-commands: +- mkdir o + +- | + case "$MORPH_ARCH" in + armv7*) + ARCH_FLAGS="--without-fp" ;; + esac + + # We override the PATH here to remove /tools/bin from it. + # Thanks to this glibc finds bash in /bin/bash through the /bin + # symlink. This is important because glibc changes the path to bash + # of the shebang in some scripts and these scripts will be broken if + # they point to bash in /tools/bin/bash. + export PATH="/usr/bin:/sbin:/bin"; + export CFLAGS="-O2 $CFLAGS"; + cd o && ../configure \ + $ARCH_FLAGS \ + --prefix="$PREFIX" \ + --disable-profile \ + --enable-kernel=3.0.0 \ + --without-cvs \ + --without-selinux \ + --enable-obsolete-rpc + +build-commands: +- cd o && make localtime=UTC + +install-commands: +- cd o && make install_root="$DESTDIR" localtime=UTC install +- cd o && make install_root="$DESTDIR" localtime=UTC localedata/install-locales +- mkdir -p "$DESTDIR/etc" +- mkdir -p "$DESTDIR/etc/ld.so.conf.d" +- | + cat <<EOF > nsswitch.conf + passwd: compat + group: compat + shadow: compat + + hosts: files myhostname mdns4_minimal [NOTFOUND=return] dns mdns4 + networks: files + + protocols: db files + services: db files + ethers: db files + rpc: db files + + netgroup: nis + EOF +- install -m 644 -o root -g root nsswitch.conf "$DESTDIR/etc/nsswitch.conf" +- | + cat <<EOF > ld.so.conf + /lib + /usr/lib + /usr/local/lib + include /etc/ld.so.conf.d/*.conf + EOF +- install -m 644 -o root -g root ld.so.conf "$DESTDIR/etc/ld.so.conf" diff --git a/old/strata/build-essential/linux-api-headers.morph b/old/strata/build-essential/linux-api-headers.morph new file mode 100644 index 00000000..62aa22b8 --- /dev/null +++ b/old/strata/build-essential/linux-api-headers.morph @@ -0,0 +1,24 @@ +name: linux-api-headers +kind: chunk +install-commands: +- | + case "$MORPH_ARCH" in + armv5l) + ARCH="arm" ;; + armv7b|armv7l|armv7lhf) + ARCH="arm" ;; + armv8l64|armv8b64) + ARCH="arm64" ;; + x86_32) + ARCH="i386" ;; + x86_64) + ARCH="x86_64" ;; + ppc64) + ARCH="powerpc" ;; + *) + echo "Error: unsupported Morph architecture: $MORPH_ARCH" >&2 + exit 1 + esac + ARCH=$ARCH make INSTALL_HDR_PATH=dest headers_install +- install -d "$DESTDIR${PREFIX-/usr}/include" +- cp -r dest/include/* "$DESTDIR/${PREFIX-/usr}/include" diff --git a/old/strata/build-essential/m4-tarball.morph b/old/strata/build-essential/m4-tarball.morph new file mode 100644 index 00000000..eb16726a --- /dev/null +++ b/old/strata/build-essential/m4-tarball.morph @@ -0,0 +1,5 @@ +name: m4-tarball +kind: chunk +build-system: autotools +configure-commands: +- ./configure --prefix="$PREFIX" --disable-gcc-warnings diff --git a/old/strata/build-essential/make.morph b/old/strata/build-essential/make.morph new file mode 100644 index 00000000..1259b342 --- /dev/null +++ b/old/strata/build-essential/make.morph @@ -0,0 +1,5 @@ +name: make +kind: chunk +build-system: autotools +configure-commands: +- ./configure --prefix="$PREFIX" --disable-nls diff --git a/old/strata/build-essential/stage1-binutils.morph b/old/strata/build-essential/stage1-binutils.morph new file mode 100644 index 00000000..69a79d14 --- /dev/null +++ b/old/strata/build-essential/stage1-binutils.morph @@ -0,0 +1,23 @@ +name: stage1-binutils +kind: chunk +build-system: autotools + +configure-commands: +# We set the sysroot location dynamically at runtime by passing +# `--sysroot` to GCC, so we need to build a linker with sysroot support. +# We set it to a non-existent directory as a safety net to avoid looking +# at the host dirs in case we forget to set the sysroot. Setting the +# lib path is vital to avoid the tools we build linking to the libraries +# on the host system; the '=' makes the path we give relative to the +# sysroot, which we can then set at runtime by passing -Wl,--sysroot to +# GCC. Although nothing should be installed on /lib64, we configure the +# linker to look at that directory as well to make things more robust +# (currently GCC installs libraries to this directory at least on +# x86_64). + +- | + ./configure --prefix="$PREFIX" --disable-nls --disable-werror \ + --build=$(sh config.guess) \ + --host=$(sh config.guess) \ + --target=$TARGET_STAGE1 \ + --with-sysroot=/nonexistentdir --with-lib-path="=$PREFIX/lib:=$PREFIX/lib64" diff --git a/old/strata/build-essential/stage1-gcc.morph b/old/strata/build-essential/stage1-gcc.morph new file mode 100644 index 00000000..f5d828f7 --- /dev/null +++ b/old/strata/build-essential/stage1-gcc.morph @@ -0,0 +1,83 @@ +name: stage1-gcc +kind: chunk + +configure-commands: +# Workaround from LFS due GCC not detecting stack protection correctly +- | + sed -i -e '/k prot/a \ + gcc_cv_libc_provides_ssp=yes + ' gcc/configure + +- mkdir o + +# Configure flag notes: +# 1. See gcc.morph. +# 2. Although we will be setting a sysroot at runtime, giving a +# temporary one at configuration time seems necessary so that +# `--with-native-system-header-dir` produces effect and +# /tools/include is in the include path for the newly built GCC. We +# set it by default to a non-existent directory to avoid GCC looking +# at the host dirs, in case we forget to give it at runtime. +# 3. Disable searching /usr/local/include for headers +# 4. The pass 1 compiler needs to find the libraries we build in pass +# 2. Include path must be set explicility, because it defaults to +# $SYSROOT/usr/include rather than $SYSROOT/include. +# 5. Disable stuff that doesn't work when building a cross compiler +# without an existing libc, and generally try to keep this build as +# simple as possible. +- | + case "$MORPH_ARCH" in + armv7lhf) ARCH_FLAGS="--with-arch=armv7-a \ + --with-tune=cortex-a9 \ + --with-fpu=vfpv3-d16 \ + --with-float=hard" ;; + armv7*) ARCH_FLAGS="--with-arch=armv7-a" ;; + esac + + cd o && CXX="g++ -std=gnu++98" ../configure \ + $ARCH_FLAGS \ + --build=$(sh ../config.guess) \ + --host=$(sh ../config.guess) \ + --target=$TARGET_STAGE1 \ + --prefix="$PREFIX" \ + `# [1]` --libdir="$PREFIX/lib" \ + `# [2]` --with-sysroot=/nonexistentdir \ + --with-newlib \ + `# [3]` --with-local-prefix="$PREFIX" \ + `# [4]` --with-native-system-header-dir="$PREFIX/include" \ + --without-headers \ + --disable-nls \ + --disable-shared \ + --disable-multilib \ + `# [5]` --disable-decimal-float \ + `# [5]` --disable-threads \ + `# [5]` --disable-libatomic \ + `# [5]` --disable-libgomp \ + `# [5]` --disable-libitm \ + `# [5]` --disable-libmpx \ + `# [5]` --disable-libquadmath \ + `# [5]` --disable-libsanitizer \ + `# [5]` --disable-libssp \ + `# [5]` --disable-libvtv \ + `# [5]` --disable-libcilkrts \ + `# [5]` --disable-libstdc++-v3 \ + --enable-languages=c,c++ + +build-commands: +- | + # GCC is not passing the correct host/target flags to GMP's configure + # script, which causes it to not use the machine-dependent code for + # the platform and use the generic one instead. However, the generic + # code results on an undefined reference to `__gmpn_invert_limb' in + # ARMv7. Fix the invocation of GMP's configure script so that GMP can + # use the machine-dependent code. + case "$MORPH_ARCH" in + armv5*) sed -i "s/--host=none/--host=armv5/" o/Makefile + sed -i "s/--target=none/--target=armv5/" o/Makefile ;; + armv7*) sed -i "s/--host=none/--host=armv7a/" o/Makefile + sed -i "s/--target=none/--target=armv7a/" o/Makefile ;; + esac + cd o && make + +install-commands: +- cd o && make DESTDIR="$DESTDIR" install diff --git a/old/strata/build-essential/stage2-binutils.morph b/old/strata/build-essential/stage2-binutils.morph new file mode 100644 index 00000000..b07b56a4 --- /dev/null +++ b/old/strata/build-essential/stage2-binutils.morph @@ -0,0 +1,21 @@ +name: stage2-binutils +kind: chunk +build-system: autotools + +configure-commands: +- | + export STAGE2_SYSROOT="$(dirname $(pwd))" + export CXX="$TARGET_STAGE1-g++ --sysroot=$STAGE2_SYSROOT" + # binutils has its own embedded libtool, which is old and strips out + # `--sysroot`. Work around by modifying the compiler command to + # include the sysroot flag + export CC="$TARGET_STAGE1-gcc --sysroot=$STAGE2_SYSROOT" + ./configure --prefix="$PREFIX" --disable-nls --disable-werror \ + --build=$(sh config.guess) \ + --host=$TARGET_STAGE1 \ + --target=$TARGET_STAGE1 + +build-commands: +- | + export STAGE2_SYSROOT="$(dirname $(pwd))" + make diff --git a/old/strata/build-essential/stage2-busybox.morph b/old/strata/build-essential/stage2-busybox.morph new file mode 100644 index 00000000..f271a40d --- /dev/null +++ b/old/strata/build-essential/stage2-busybox.morph @@ -0,0 +1,80 @@ +name: stage2-busybox +kind: chunk + +configure-commands: +# Explicitly setting HOSTCC is required because we have a 'gcc' earlier in +# the PATH supplied by the stage2-gcc chunk, which can't execute outside of +# the stage 3 staging area. +- make HOSTCC="/usr/bin/gcc" CROSS_COMPILE=$TARGET_STAGE1- KCONFIG_NOTIMESTAMP=1 defconfig + +# Avoid dividing applets between $PREFIX/[s]bin and $PREFIX/usr/[s]bin. +- '[ "$PREFIX" = /usr ] || sed -e ''s/.*INSTALL_NO_USR.*/CONFIG_INSTALL_NO_USR=y/'' + -i .config' +# We have GAWK. +- sed -e 's/CONFIG_AWK=y.*/# CONFIG_AWK is not set/' -i .config + +# Depends on stuff that was removed since eglibc 2.14. +- sed -e 's/CONFIG_INETD=y.*/# CONFIG_INETD is not set/' -i .config + +# Busybox Patch is incompatible enough with GNU Patch that it can't be +# used for GNULib projects built from Git. +- sed -e 's/CONFIG_PATCH=y.*/# CONFIG_PATCH is not set/' -i .config + +# None of this is needed because we have kmod; and it actually breaks the +# Linux build because depmod isn't compatible enough with util-linux's. +- sed -e 's/CONFIG_DEPMOD=y.*/# CONFIG_DEPMOD is not set/' -i .config +- sed -e 's/CONFIG_INSMOD=y.*/# CONFIG_INSMOD is not set/' -i .config +- sed -e 's/CONFIG_MODPROBE=y.*/# CONFIG_MODPROBE is not set/' -i .config +- sed -e 's/CONFIG_MODPROBE_SMALL=y.*/# CONFIG_MODPROBE_SMALL is not set/' -i .config +- sed -e 's/CONFIG_LSMOD=y.*/# CONFIG_LSMOD is not set/' -i .config +- sed -e 's/CONFIG_RMMOD=y.*/# CONFIG_RMMOD is not set/' -i .config + +# General features that we don't need. +- sed -e 's/CONFIG_FEATURE_MOUNT_CIFS=y.*/# CONFIG_FEATURE_MOUNT_CIFS is not set/' + -i .config +- sed -e 's/CONFIG_FEATURE_EXTRA_QUIET=y.*/# CONFIG_FEATURE_EXTRA_QUIET is not set/' + -i .config +- sed -e 's/CONFIG_FEATURE_INIT_COREDUMPS=y.*/# CONFIG_FEATURE_INIT_COREDUMPS is not + set/' -i .config +- sed -e 's/CONFIG_FEATURE_INIT_SCTTY=y.*/# CONFIG_FEATURE_INIT_SCTTY is not set/' + -i .config +- sed -e 's/CONFIG_FEATURE_INIT_SYSLOG=y.*/# CONFIG_FEATURE_INIT_SYSLOG is not set/' + -i .config +- sed -e 's/CONFIG_FEATURE_INITRD=y.*/# CONFIG_FEATURE_INITRD is not set/' -i .config +- sed -e 's/CONFIG_FEATURE_USE_INITTAB=y.*/# CONFIG_FEATURE_USE_INITTAB is not set/' + -i .config +- sed -e 's/CONFIG_FEATURE_MINIX2=y.*/# CONFIG_FEATURE_MINIX2 is not set/' -i .config +- sed -e 's/CONFIG_FSCK_MINIX=y.*/# CONFIG_FSCK_MINIX is not set/' -i .config +- sed -e 's/CONFIG_HALT=y.*/# CONFIG_HALT is not set/' -i .config +- sed -e 's/CONFIG_INIT=y.*/# CONFIG_INIT is not set/' -i .config +- sed -e 's/CONFIG_INIT_TERMINAL_TYPE=y.*/CONFIG_INIT_TERMINAL_TYPE=""/' -i .config +- sed -e 's/CONFIG_LOSETUP=y.*/# CONFIG_LOSETUP is not set/' -i .config +- sed -e 's/CONFIG_LSUSB=y.*/# CONFIG_LSUSB is not set/' -i .config +- sed -e 's/CONFIG_LZMA=y.*/# CONFIG_LZMA is not set/' -i .config +- sed -e 's/CONFIG_MKFS_EXT2=y.*/# CONFIG_MKFS_EXT2 is not set/' -i .config +- sed -e 's/CONFIG_MKFS_MINIX=y.*/# CONFIG_MKFS_MINIX is not set/' -i .config +- sed -e 's/CONFIG_RUNLEVEL=y.*/# CONFIG_RUNLEVEL is not set/' -i .config +- sed -e 's/CONFIG_STRINGS=y.*/# CONFIG_STRINGS is not set/' -i .config +- sed -e 's/CONFIG_UNLZMA=y.*/# CONFIG_UNLZMA is not set/' -i .config +- sed -e 's/CONFIG_UNXZ=y.*/# CONFIG_UNXZ is not set/' -i .config +- sed -e 's/CONFIG_XZ=y.*/# CONFIG_XZ is not set/' -i .config + +build-commands: +- | + export STAGE2_SYSROOT="$(dirname $(pwd))" + export CPPFLAGS="--sysroot=$STAGE2_SYSROOT" + export LDFLAGS="--sysroot=$STAGE2_SYSROOT" + make HOSTCC="/usr/bin/gcc" CROSS_COMPILE=$TARGET_STAGE1- KCONFIG_NOTIMESTAMP=1 + +install-commands: +# We expect to be built with a non-standard prefix in stage 2 (i.e. not +# /usr). The install will break if prefix is set to /usr. +- | + export STAGE2_SYSROOT="$(dirname $(pwd))" + export CPPFLAGS="--sysroot=$STAGE2_SYSROOT" + export LDFLAGS="--sysroot=$STAGE2_SYSROOT" + make CONFIG_PREFIX="$DESTDIR$PREFIX" \ + HOSTCC="/usr/bin/gcc" \ + CROSS_COMPILE=$TARGET_STAGE1- \ + KCONFIG_NOTIMESTAMP=1 install && + chmod 6755 "$DESTDIR$PREFIX"/bin/busybox diff --git a/old/strata/build-essential/stage2-fake-bash.morph b/old/strata/build-essential/stage2-fake-bash.morph new file mode 100644 index 00000000..021fd366 --- /dev/null +++ b/old/strata/build-essential/stage2-fake-bash.morph @@ -0,0 +1,4 @@ +name: stage2-fake-bash +kind: chunk +install-commands: +- printf '#!/bin/sh\nexec /bin/sh "$@"\n' | install -D /proc/self/fd/0 -m 755 "$DESTDIR$PREFIX/bin/bash" diff --git a/old/strata/build-essential/stage2-fhs-dirs.morph b/old/strata/build-essential/stage2-fhs-dirs.morph new file mode 100644 index 00000000..6f842403 --- /dev/null +++ b/old/strata/build-essential/stage2-fhs-dirs.morph @@ -0,0 +1,51 @@ +name: stage2-fhs-dirs +kind: chunk +description: create the FHS 2.3 directory hierarchy and the usual files +install-commands: +- sh ./create-fhs-dirs "$DESTDIR" +- rmdir "$DESTDIR/usr/bin" +- ln -s "$PREFIX/bin" "$DESTDIR/usr/bin" +- install -m 644 passwd "$DESTDIR/etc/passwd" +- install -m 600 shadow "$DESTDIR/etc/shadow" +- install -m 644 interfaces "$DESTDIR/etc/network/interfaces" +- install -m 644 group "$DESTDIR/etc/group" +- install -m 644 issue "$DESTDIR/etc/issue" +- install -m 644 services "$DESTDIR/etc/services" +- install -m 644 protocols "$DESTDIR/etc/protocols" +- echo baserock > "$DESTDIR"/etc/hostname +devices: +- type: c + filename: /dev/console + gid: 0 + major: 5 + minor: 1 + permissions: '0600' + uid: 0 +- type: c + filename: /dev/full + gid: 0 + major: 1 + minor: 7 + permissions: '0666' + uid: 0 +- type: c + filename: /dev/null + gid: 0 + major: 1 + minor: 3 + permissions: '0666' + uid: 0 +- type: c + filename: /dev/urandom + gid: 0 + major: 1 + minor: 9 + permissions: '0666' + uid: 0 +- type: c + filename: /dev/zero + gid: 0 + major: 1 + minor: 5 + permissions: '0666' + uid: 0 diff --git a/old/strata/build-essential/stage2-gawk.morph b/old/strata/build-essential/stage2-gawk.morph new file mode 100644 index 00000000..15c838b6 --- /dev/null +++ b/old/strata/build-essential/stage2-gawk.morph @@ -0,0 +1,9 @@ +name: stage2-gawk +kind: chunk +build-system: autotools +configure-commands: +- STAGE2_SYSROOT="$(dirname $(pwd))" CPPFLAGS="--sysroot=$STAGE2_SYSROOT" CXX=false + LDFLAGS="--sysroot=$STAGE2_SYSROOT" ./configure --prefix="$PREFIX" --disable-nls + --build=$(sh config.guess) --host=$TARGET_STAGE1 +build-commands: +- STAGE2_SYSROOT="$(dirname $(pwd))" make diff --git a/old/strata/build-essential/stage2-gcc-fixed-headers.morph b/old/strata/build-essential/stage2-gcc-fixed-headers.morph new file mode 100644 index 00000000..10794872 --- /dev/null +++ b/old/strata/build-essential/stage2-gcc-fixed-headers.morph @@ -0,0 +1,19 @@ +name: stage2-gcc-fixed-headers +kind: chunk +install-commands: +# Stage 1 GCC's fixincludes process created a limits.h before there was +# a real limits.h available for the target. This step (taken from Linux +# Linux From Scratch) creates a better one so that stage 2 GCC can compile. +# +# THIS IS A FRAGILE HACK! We need to replace the headers. The only way to +# overwrite files in a staging area is to install a new chunk. +# This is undesired behaviour in the long term, as we want to never +# have overlaps, so this functionality may go away. +- | + libgcc_dir=$(dirname $($TARGET_STAGE1-gcc -print-libgcc-file-name)) + sysroot="$(dirname "$(pwd)")" + target_libgcc_dir="${libgcc_dir#$sysroot}" + mkdir -p "$DESTDIR/$target_libgcc_dir/include-fixed" + cat "gcc/limitx.h" "gcc/glimits.h" "gcc/limity.h" \ + >"$DESTDIR/$target_libgcc_dir/include-fixed/limits.h" + diff --git a/old/strata/build-essential/stage2-gcc.morph b/old/strata/build-essential/stage2-gcc.morph new file mode 100644 index 00000000..6f211e83 --- /dev/null +++ b/old/strata/build-essential/stage2-gcc.morph @@ -0,0 +1,81 @@ +name: stage2-gcc +kind: chunk + +configure-commands: +- mkdir o + +# In other projects we specify the sysroot location using CPPFLAGS. +# Here, that breaks because GCC compiles stuff for the *build* machine, +# too ... and this requires using the host's compiler, which cannot use +# the same set of CPPFLAGS as the target. If we specify the sysroot +# using CC instead then we don't interfere, because we are only +# specifying the *host* C compiler. +# +# Configure flag notes: +# 1. It's vital that this compiler runs in the bootstrap machine, and +# targets the same machine (TARGET_STAGE1) so that the stage 1 GCC +# is used instead of the compiler of the build machine. +# 2. See gcc.morph. +# 3. Disable searching /usr/local/include for headers +# 4. This flag causes the correct --sysroot flag to be passed when +# calling stage 1 GCC. +- | + case "$MORPH_ARCH" in + armv7lhf) ARCH_FLAGS="--with-arch=armv7-a \ + --with-tune=cortex-a9 \ + --with-fpu=vfpv3-d16 \ + --with-float=hard" ;; + armv7*) ARCH_FLAGS="--with-arch=armv7-a" ;; + esac + export STAGE2_SYSROOT="$(dirname $(pwd))" + export CC="$TARGET_STAGE1-gcc --sysroot=$STAGE2_SYSROOT" + export CXX="$TARGET_STAGE1-g++ --sysroot=$STAGE2_SYSROOT" + export AR="$TARGET_STAGE1-ar" + export RANLIB="$TARGET_STAGE1-ranlib" + cd o && ../configure \ + $ARCH_FLAGS \ + --build=$(sh ../config.guess) \ + `# [1]` --host=$TARGET_STAGE1 \ + `# [1]` --target=$TARGET_STAGE1 \ + --prefix="$PREFIX" \ + `# [2]` --libdir=$PREFIX/lib \ + `# [3]` --with-local-prefix=$PREFIX \ + `# [4]` --with-build-sysroot="$STAGE2_SYSROOT" \ + --disable-bootstrap \ + --disable-nls \ + --disable-multilib \ + --disable-libgomp \ + --disable-libstdcxx-pch \ + --enable-languages=c,c++ + +build-commands: +- | + case "$MORPH_ARCH" in + armv5*) sed -i "s/--host=none/--host=armv5/" o/Makefile + sed -i "s/--target=none/--target=armv5/" o/Makefile ;; + armv7*) sed -i "s/--host=none/--host=armv7a/" o/Makefile + sed -i "s/--target=none/--target=armv7a/" o/Makefile ;; + esac + export STAGE2_SYSROOT="$(dirname $(pwd))" + cd o && make + +install-commands: +- cd o && make DESTDIR="$DESTDIR" install + +# Stage 3 builds need to link against this file in the location that +# it will be in the final system, so we make a temporary link now. +# +# On x86_64 GCC resolutely installs its libraries into lib64. To fix this +# would require hobbling the MULTILIB_OSDIRNAMES field in +# gcc/config/i386/t-linux64 and this might break things, so for now we +# tolerate the inconsistency. +- | + if [ "$(echo $TARGET | cut -c -6)" = "x86_64" ]; then + libdir=lib64 + else + libdir=lib + fi + + install -d "$DESTDIR/lib" + ln -s "$PREFIX/$libdir/libgcc_s.so" "$DESTDIR/lib/" + ln -s "$PREFIX/$libdir/libgcc_s.so.1" "$DESTDIR/lib/" diff --git a/old/strata/build-essential/stage2-glibc.morph b/old/strata/build-essential/stage2-glibc.morph new file mode 100644 index 00000000..d2ead6c6 --- /dev/null +++ b/old/strata/build-essential/stage2-glibc.morph @@ -0,0 +1,108 @@ +name: stage2-glibc +kind: chunk +build-system: manual + +configure-commands: +- mkdir o + +# Configure flag notes: +# 1. Avoid installing to PREFIX/lib64 on x86_64. +# 2. Location of linux-api-headers. +# 3. Normal flags. See glibc.morph. +# 4. Force configuration values of certain things that can't be detected +# in a cross-compile. +- | + case "$MORPH_ARCH" in + armv7*) + ARCH_FLAGS="--without-fp" ;; + esac + + export CFLAGS="-O2 $CFLAGS"; export CXX=false; \ + cd o && ../configure \ + $ARCH_FLAGS \ + --build=$(../scripts/config.guess) --host=$TARGET_STAGE1 \ + --prefix="$PREFIX" \ + --enable-obsolete-rpc \ + `# [1]` --libdir="$PREFIX/lib" \ + `# [2]` --with-headers="$(pwd)/../../$PREFIX/include" \ + `# [3]` --disable-profile --enable-kernel=2.6.25 \ + `# [4]` libc_cv_c_cleanup=yes libc_cv_ctors_header=yes \ + libc_cv_forced_unwind=yes libc_cv_ssp=no + +build-commands: +- cd o && make localtime=UTC + +install-commands: +- cd o && make install_root="$DESTDIR" localtime=UTC install +- mkdir -p "$DESTDIR/etc" +- mkdir -p "$DESTDIR/etc/ld.so.conf.d" +- | + cat <<EOF > ld.so.conf + /lib + /usr/lib + /usr/local/lib + include /etc/ld.so.conf.d/*.conf + EOF +- install -m 644 -o root -g root ld.so.conf "$DESTDIR/etc/ld.so.conf" +- | + # Fix up GCC to handle the sysroot containing glibc being in a different + # location for each chunk build. + # + # For headers, it's enough to pass -B in the CPPFLAGS. This would work for + # the startup files (crt*.o) as well, except where libtool is involved (in + # which case it strips -B out of your LDFLAGS before calling GCC). We get + # around this by making GCC locate them relative to the environment variable + # STAGE2_SYSROOT, which we can then set along with CPPFLAGS in each stage 2 + # chunk build. + # + # We also force the use of the program loader at PREFIX/lib/ld.so instead + # of its usual home in /lib or /lib64, which is necessary for the output of + # stage 2 to work as a chroot when building stage 3. + + sysroot="$(dirname "$(pwd)")" + specs_dir="$(dirname $($TARGET_STAGE1-gcc --print-libgcc-file-name))" + target_specs_dir="$DESTDIR/${specs_dir#$sysroot}" + mkdir -p "$target_specs_dir" + + $TARGET_STAGE1-gcc -dumpspecs | + sed -e "s@[gMS]\?crt[1in].o%s@%:getenv(STAGE2_SYSROOT $PREFIX/lib/&)@g" \ + -e "s@/lib\(64\)\?/ld@$PREFIX/lib/ld@g" \ + > "$target_specs_dir/specs-for-sysroot" + + # NASTY HACK # + # We create a symlink to the actual specs here, so that later the + # symlink can be replaced with a dangling link. + # + # This is necessary as we need to have gcc use its internal specs, + # which can differ to the specs generated by `gcc -dumpspecs`. + # + # The dangling symlink will not make it onto the final system, just + # like all other bootstrap only components. + ln -s specs-for-sysroot "$target_specs_dir/specs" + +# Install a symlink for the program interpreter (ld.so) so that binaries +# built in stage 3 before the stage 3 glibc is built can use it. +# FIXME: get a better way of finding the name of the loader. The lib64 +# path is hardcoded into glibc in the file +# sysdeps/unix/sysv/linux/configure. +- install -d $DESTDIR/lib +- | + case "$MORPH_ARCH" in + x86_64) + install -d "$DESTDIR/lib64" + ln -s "$PREFIX/lib/ld-linux-x86-64.so.2" \ + "$DESTDIR/lib64/ld-linux-x86-64.so.2" ;; + ppc64l) + install -d "$DESTDIR/lib64" + ln -s "$PREFIX/lib/ld64.so.2" \ + "$DESTDIR/lib64/ld64.so.2" ;; + ppc64|ppc64b) + install -d "$DESTDIR/lib64" + ln -s "$PREFIX/lib/ld64.so.1" \ + "$DESTDIR/lib64/ld64.so.1" ;; + *) + loader=$(basename $(ls "$DESTDIR$PREFIX"/lib/ld-linux*)) + [ -z $loader ] && loader=$(basename $(ls "$DESTDIR$PREFIX"/lib/ld.so*)) + [ -z $loader ] && ( echo "Bug in stage2-glibc ld.so symlinks" ; exit 1 ) + ln -s "$PREFIX/lib/$loader" "$DESTDIR/lib/$loader" + esac diff --git a/old/strata/build-essential/stage2-libstdc++.morph b/old/strata/build-essential/stage2-libstdc++.morph new file mode 100644 index 00000000..79a40308 --- /dev/null +++ b/old/strata/build-essential/stage2-libstdc++.morph @@ -0,0 +1,36 @@ +name: stage2-libstdc++ +kind: chunk +configure-commands: +- mkdir o + +# Configure flag notes: +# 1. The thread C++ library cannot be built, as the thread C library +# was not build in stage1-gcc. +# 2. Prevents the installation of precompiled include files, which are +# not needed at this stage. +# 3. From LFS: the header location of C++ needs to be explicitly given +# as we are running the configure script from the top-level +# directory. +- | + export STAGE2_SYSROOT="$(dirname $(pwd))" + # -fPIC must be given, otherwise it will not be possible to create + # shared libraries linked to libstdc++ + export CPPFLAGS="--sysroot=$STAGE2_SYSROOT -fPIC" + export LDFLAGS="--sysroot=$STAGE2_SYSROOT" + cd o && ../libstdc++-v3/configure \ + --build=$(sh ../config.guess) \ + --host="$TARGET_STAGE1" \ + --target="$TARGET_STAGE1" \ + --prefix="$PREFIX" \ + --disable-nls \ + --disable-shared \ + --disable-multilib \ + `# [1]` --disable-libstdcxx-threads \ + `# [2]` --disable-libstdcxx-pch \ + `# [3]` --with-gxx-include-dir=/tools/"$TARGET_STAGE1"/include/c++/7.1.0 + +build-commands: +- cd o && make + +install-commands: +- cd o && make DESTDIR="$DESTDIR" install diff --git a/old/strata/build-essential/stage2-linux-api-headers.morph b/old/strata/build-essential/stage2-linux-api-headers.morph new file mode 100644 index 00000000..1da94ee9 --- /dev/null +++ b/old/strata/build-essential/stage2-linux-api-headers.morph @@ -0,0 +1,24 @@ +name: stage2-linux-api-headers +kind: chunk +install-commands: +- | + case "$MORPH_ARCH" in + armv5l) + ARCH="arm" ;; + armv7b|armv7l|armv7lhf) + ARCH="arm" ;; + armv8l64|armv8b64) + ARCH="arm64" ;; + x86_32) + ARCH="i386" ;; + x86_64) + ARCH="x86_64" ;; + ppc64) + ARCH="powerpc" ;; + *) + echo "Error: unsupported Morph architecture: $MORPH_ARCH" >&2 + exit 1 + esac + ARCH=$ARCH make INSTALL_HDR_PATH=dest headers_install +- install -d "$DESTDIR${PREFIX-/usr}/include" +- cp -r dest/include/* "$DESTDIR/${PREFIX-/usr}/include" diff --git a/old/strata/build-essential/stage2-make.morph b/old/strata/build-essential/stage2-make.morph new file mode 100644 index 00000000..af5e5347 --- /dev/null +++ b/old/strata/build-essential/stage2-make.morph @@ -0,0 +1,9 @@ +name: stage2-make +kind: chunk +build-system: autotools +configure-commands: +- STAGE2_SYSROOT="$(dirname $(pwd))" CPPFLAGS="--sysroot=$STAGE2_SYSROOT" CXX=false + LDFLAGS="--sysroot=$STAGE2_SYSROOT" ./configure --prefix="$PREFIX" --disable-nls --without-guile + --build=$(sh config/config.guess) --host=$TARGET_STAGE1 +build-commands: +- STAGE2_SYSROOT="$(dirname $(pwd))" make diff --git a/old/strata/build-essential/stage2-reset-specs.morph b/old/strata/build-essential/stage2-reset-specs.morph new file mode 100644 index 00000000..8892f67c --- /dev/null +++ b/old/strata/build-essential/stage2-reset-specs.morph @@ -0,0 +1,21 @@ +name: stage2-reset-specs +kind: chunk + +# Nasty hack to get around being unable to reliably add configuration to gcc, +# hence the gcc specs are modified, combined with Baserock's rootfs protection +# preventing specs being modified before builds. +# The limitation is overcome by installing files as part of a chunk, which +# overwrites previous files. +# New specs were added for the bootstrap builds, but after stage2 we start +# having chrooted builds, so the old specs need to be replaced. +# Unfortunately we can't just replace the specs with the ones gcc produces, +# since gcc behaves differently without specs to with specs it produces! +# So we use a **NASTY HACK** to replace the specs symlink with one that +# points to a file that doesn't exist. +install-commands: +- | + STAGE2_SYSROOT="$(dirname "$(pwd)")" + specs_dir="$(dirname $($TARGET_STAGE1-gcc -print-libgcc-file-name))" + target_specs_dir="$DESTDIR/${specs_dir#$STAGE2_SYSROOT}" + mkdir -p "$target_specs_dir" + ln -s "temporary specs removed by baserock bootstrap" "$target_specs_dir/specs" diff --git a/old/strata/build-essential/zlib.morph b/old/strata/build-essential/zlib.morph new file mode 100644 index 00000000..900648b6 --- /dev/null +++ b/old/strata/build-essential/zlib.morph @@ -0,0 +1,9 @@ +name: zlib +kind: chunk +build-system: manual +configure-commands: +- ./configure --prefix="$PREFIX" +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install diff --git a/old/strata/cloudinit-support.morph b/old/strata/cloudinit-support.morph new file mode 100644 index 00000000..4cb15542 --- /dev/null +++ b/old/strata/cloudinit-support.morph @@ -0,0 +1,21 @@ +name: cloudinit-support +kind: stratum +description: A stratum with cloudinit to fit a system in the OpenStack cloud. +build-depends: +- morph: strata/build-essential.morph +- morph: strata/python2-core.morph +- morph: strata/python-common.morph +- morph: strata/foundation.morph +chunks: +- name: python-cheetah + repo: upstream:python-cheetah + ref: 831aa6b99d9b4fb012ee644d8e80e0bc0eb6d6ed + unpetrify-ref: baserock/morph + build-system: python-distutils +- name: cloud-init + morph: strata/cloudinit-support/cloud-init.morph + repo: upstream:cloud-init + ref: 130d51acc5b0becd64e7007f9dfe41a6e022eaec + unpetrify-ref: baserock/morph + build-depends: + - python-cheetah diff --git a/old/strata/cloudinit-support/cloud-init.morph b/old/strata/cloudinit-support/cloud-init.morph new file mode 100644 index 00000000..5933dbf8 --- /dev/null +++ b/old/strata/cloudinit-support/cloud-init.morph @@ -0,0 +1,6 @@ +name: cloud-init +kind: chunk +build-system: python-distutils +post-install-commands: +- mkdir -p "$DESTDIR"/lib/systemd/system +- cp systemd/* "$DESTDIR"/lib/systemd/system/ diff --git a/old/strata/connectivity.morph b/old/strata/connectivity.morph new file mode 100644 index 00000000..9d1a1b04 --- /dev/null +++ b/old/strata/connectivity.morph @@ -0,0 +1,27 @@ +name: connectivity +kind: stratum +build-depends: +- morph: strata/foundation.morph +chunks: +- name: mobile-broadband-provider-info + repo: upstream:mobile-broadband-provider-info + ref: 4ed19e11c2975105b71b956440acdb25d46a347d + unpetrify-ref: baserock/morph + build-system: autotools +- name: libnl + repo: upstream:libnl + ref: a2c4bd8f094a7247903578860a9c42049991860b + unpetrify-ref: baserock/morph + build-system: autotools +- name: wpa_supplicant + morph: strata/connectivity/wpa_supplicant.morph + repo: upstream:hostap + ref: 2462f347bca0a7cce7e06ff88adbe3aa47c52d54 + unpetrify-ref: hostap_2_6 + build-depends: + - libnl +- name: iptables + repo: upstream:iptables + ref: 482c6d3731e2681cb4baae835c294840300197e6 + unpetrify-ref: v1.4.21 + build-system: autotools diff --git a/old/strata/connectivity/wpa_supplicant.morph b/old/strata/connectivity/wpa_supplicant.morph new file mode 100644 index 00000000..3fdc68a2 --- /dev/null +++ b/old/strata/connectivity/wpa_supplicant.morph @@ -0,0 +1,36 @@ +name: wpa_supplicant +kind: chunk +configure-commands: +- | + cat >"wpa_supplicant/.config" <<EOF + CONFIG_DRIVER_HOSTAP=y + CONFIG_DRIVER_ATMEL=y + CONFIG_DRIVER_WEXT=y + CONFIG_DRIVER_NL80211=y + CONFIG_DRIVER_WIRED=y + CONFIG_IEEE8021X_EAPOL=y + CONFIG_EAP_MD5=y + CONFIG_EAP_MSCHAPV2=y + CONFIG_EAP_TLS=y + CONFIG_EAP_PEAP=y + CONFIG_EAP_TTLS=y + CONFIG_EAP_GTC=y + CONFIG_EAP_OTP=y + CONFIG_EAP_LEAP=y + CONFIG_WPS=y + CONFIG_PKCS12=y + CONFIG_SMARTCARD=y + CONFIG_CTRL_IFACE=y + CONFIG_BACKEND=file + CONFIG_PEERKEY=y + CONFIG_CTRL_IFACE_DBUS=y + CONFIG_CTRL_IFACE_DBUS_NEW=y + CONFIG_CTRL_IFACE_DBUS_INTRO=y + CONFIG_LIBNL32=y + CONFIG_IPV6=y + CFLAGS += -I/usr/include/libnl3 + EOF +build-commands: +- make -C wpa_supplicant +install-commands: +- make -C wpa_supplicant DESTDIR="$DESTDIR" install diff --git a/old/strata/connman-common.morph b/old/strata/connman-common.morph new file mode 100644 index 00000000..55f47726 --- /dev/null +++ b/old/strata/connman-common.morph @@ -0,0 +1,16 @@ +name: connman-common +kind: stratum +build-depends: +- morph: strata/connectivity.morph +- morph: strata/glib-common.morph +chunks: +- name: connman + morph: strata/connman-common/connman.morph + repo: upstream:connman + ref: c47e491bb374fe3992d8938cc30b48beee379f23 + unpetrify-ref: '1.33' +- name: ofono + morph: strata/connman-common/ofono.morph + repo: upstream:ofono + ref: e51b39e92cffb30c4bc0f95a1c24b9ee9ce22b54 + unpetrify-ref: '1.19' diff --git a/old/strata/connman-common/connman.morph b/old/strata/connman-common/connman.morph new file mode 100644 index 00000000..e468bc49 --- /dev/null +++ b/old/strata/connman-common/connman.morph @@ -0,0 +1,6 @@ +name: connman +kind: chunk +build-system: autotools +configure-commands: +- ./bootstrap +- ./configure --prefix="$PREFIX" --disable-wispr --disable-client LIBS=-lncurses diff --git a/old/strata/connman-common/ofono.morph b/old/strata/connman-common/ofono.morph new file mode 100644 index 00000000..a775b0c1 --- /dev/null +++ b/old/strata/connman-common/ofono.morph @@ -0,0 +1,11 @@ +name: ofono +kind: chunk +description: ofono Open Source Telephony +build-system: autotools +configure-commands: +- autoreconf -ivf +- ./configure --prefix="$PREFIX" --sysconfdir=/etc --localstatedir=/var +install-commands: +- make install +- mkdir -p "$DESTDIR/etc/systemd/system/multi-user.target.wants" +- ln -s /lib/systemd/system/ofono.service "$DESTDIR/etc/systemd/system/multi-user.target.wants/ofono.service" diff --git a/old/strata/corba.morph b/old/strata/corba.morph new file mode 100644 index 00000000..d9848f76 --- /dev/null +++ b/old/strata/corba.morph @@ -0,0 +1,17 @@ +name: corba +kind: stratum +build-depends: + - morph: strata/core.morph +chunks: + - name: MPC + repo: upstream:MPC + morph: strata/corba/MPC.morph + ref: c2cddd1335036f1ca3610274a155d2222a8b5f7c + unpetrify-ref: ACE+TAO-6_3_4 + - name: ACE_TAO + morph: strata/corba/ACE_TAO.morph + repo: upstream:ATCD + ref: b9ab94b74529a926864c154675559fd6a1d8998b + unpetrify-ref: ACE+TAO-6_3_4 + build-depends: + - MPC diff --git a/old/strata/corba/ACE_TAO.morph b/old/strata/corba/ACE_TAO.morph new file mode 100644 index 00000000..bfbbb4cc --- /dev/null +++ b/old/strata/corba/ACE_TAO.morph @@ -0,0 +1,32 @@ +name: ACE_TAO +kind: chunk +build-system: manual +configure-commands: +- | + export ACE_ROOT="$PWD/ACE" + export TAO_ROOT="$PWD/TAO" + export MPC_ROOT='/usr/src/MPC' + cd "$TAO_ROOT" + perl "$ACE_ROOT"/bin/mwc.pl TAO_ACE.mwc -type gnuace + +build-commands: +- | + export ACE_ROOT="$PWD/ACE" + export TAO_ROOT="$PWD/TAO" + export MPC_ROOT='/usr/src/MPC' + echo '#include "ace/config-linux.h"' > "$ACE_ROOT"/ace/config.h + echo "include "$ACE_ROOT"/include/makeinclude/platform_linux.GNU" > "$ACE_ROOT"/include/makeinclude/platform_macros.GNU + export LD_LIBRARY_PATH="$ACE_ROOT"/lib:$LD_LIBRARY_PATH + cd "$TAO_ROOT" + make +install-commands: +- | + export ACE_ROOT="$PWD/ACE" + export TAO_ROOT="$PWD/TAO" + export MPC_ROOT='/usr/src/MPC' + cd "$TAO_ROOT" + make DESTDIR="$DESTDIR" INSTALL_PREFIX="$PREFIX" install +system-integration: + ACE_TAO-misc: + 00-remove-build-dependencies: + - rm -rf /usr/src/MPC diff --git a/old/strata/corba/MPC.morph b/old/strata/corba/MPC.morph new file mode 100644 index 00000000..84b015ec --- /dev/null +++ b/old/strata/corba/MPC.morph @@ -0,0 +1,6 @@ +name: MPC +kind: chunk +build-system: manual +install-commands: +- mkdir -p "$DESTDIR/usr/src/MPC" +- cp -r * "$DESTDIR/usr/src/MPC" diff --git a/old/strata/core.morph b/old/strata/core.morph new file mode 100644 index 00000000..d9defc76 --- /dev/null +++ b/old/strata/core.morph @@ -0,0 +1,457 @@ +name: core +kind: stratum +description: Core components of a Baserock base system that are build tools required + for the BSP and Foundation strata, but a step above build-essential +build-depends: +- morph: strata/build-essential.morph +chunks: +- name: gdbm + morph: strata/core/gdbm.morph + repo: upstream:gdbm-tarball + ref: e5faeaaf75ecfb705a9b643b3e4cb881ebb69f48 + unpetrify-ref: gdbm-1.11 +- name: perl + morph: strata/core/perl.morph + repo: upstream:perl + ref: 70f63a4c7dba89e8e48b44de7978faae4319e693 + unpetrify-ref: v5.22.0 + build-depends: + - gdbm +- name: ncurses + morph: strata/core/ncurses.morph + repo: upstream:ncurses + ref: f6d73a10a980bc78969c3af93665cbe7d06c3646 + unpetrify-ref: ncurses-5.9-20150131 +- name: texinfo-tarball + morph: strata/core/texinfo-tarball.morph + repo: upstream:texinfo-tarball + ref: 6a55f074b1f67d02149c13931eb1df9f0e539b15 + unpetrify-ref: texinfo-5.2 + build-depends: + - ncurses + - perl +- name: autoconf-tarball + morph: strata/core/autoconf-tarball.morph + repo: upstream:autoconf-tarball + ref: 55d1d2c339bc5f935f6d8d702e98b7bd5d968e9d + unpetrify-ref: autoconf-2.69 + build-depends: + - perl +- name: automake + morph: strata/core/automake.morph + repo: upstream:automake + ref: db43dd473361d90d8b00362cfef5bac8e722000d + unpetrify-ref: v1.15 + build-depends: + - autoconf-tarball + - perl + - texinfo-tarball +- name: help2man + repo: upstream:help2man + ref: 83bab7e2e8e24a380266a9a247c029c49b0de666 + unpetrify-ref: baserock/v1.46.5 + build-system: autotools + build-depends: + - autoconf-tarball + - automake + - perl + - texinfo-tarball +# Note: autoconf's version number must be set in autoconf's chunk morph, +# so if you update autoconf be sure to also update the version number +# in strata/core/autoconf.morph +- name: autoconf + morph: strata/core/autoconf.morph + repo: upstream:autoconf + ref: 218f9347c9c34919c2b8eef8d9a0513ac567a3c1 + unpetrify-ref: baserock/v2.69-texinfo-fix + build-depends: + - autoconf-tarball + - automake + - help2man + - texinfo-tarball + - perl +- name: libtool-tarball + morph: strata/core/libtool-tarball.morph + repo: upstream:libtool-tarball + ref: c026ca36e37d2643623a75d0d3e9e451023139f3 + unpetrify-ref: libtool-2.4.6 +- name: file + repo: upstream:file + ref: 670c2bbcffe873a2b8589ed140c12e7923ef20c0 + unpetrify-ref: file-5.22 + build-system: autotools +- name: libexpat + morph: strata/core/libexpat.morph + repo: upstream:libexpat + ref: 7cfc09db3e258129ab05811f2f9e351746ddab9f + unpetrify-ref: R_2_1_0 + build-depends: + - autoconf + - automake + - file + - libtool-tarball + - perl +- name: openssl-new + morph: strata/core/openssl-new.morph + repo: upstream:openssl-new + ref: 081314d07705aa58912845c213a48414d8f616a9 + unpetrify-ref: OpenSSL_1_0_2k + build-depends: + - perl +- name: bzip2 + morph: strata/core/bzip2.morph + repo: upstream:bzip2 + ref: 8deafa68e52b230018c0318dc7959ff9af3ad2a5 + unpetrify-ref: baserock/morph +- name: readline + morph: strata/core/readline.morph + repo: upstream:readline + ref: 518937ab89be812ccd45e9b8c1ce4ad721d35ef6 + unpetrify-ref: baserock/genivi/baseline + build-depends: + - automake +- name: libffi + morph: strata/core/libffi.morph + repo: upstream:libffi + ref: 77d4586cc47e8f4c02278afbc220145bba0d442b + unpetrify-ref: baserock/morph + build-depends: + - autoconf + - automake +- name: sqlite3 + repo: upstream:sqlite3 + ref: 24adc227bc29cd17e39df097fbca389c7724cd14 + unpetrify-ref: sqlite-autoconf-3080801 + build-system: autotools +- name: python3 + morph: strata/core/python3.morph + repo: upstream:cpython + ref: 609bc370055e03b3c74c4321a5990929c29a226d + unpetrify-ref: v3.5.2 + build-depends: + - openssl-new + - bzip2 + - libexpat + - libffi + - sqlite3 + - ncurses + - readline +- name: ca-certificates + morph: strata/core/ca-certificates.morph + repo: upstream:ca-certificates + ref: 642c21872876ce2f9ec323b1df44f1cd6c47e91c + unpetrify-ref: baserock/debian/20150426 + build-depends: + - automake + - python3 +- name: curl + morph: strata/core/curl.morph + repo: upstream:curl + ref: 44b9b4d4f56d6f6de92c89636994c03984e9cd01 + unpetrify-ref: curl-7_52_1 + build-depends: + - autoconf + - automake + - file + - libtool-tarball + - openssl-new + - perl +- name: gettext-tarball + morph: strata/core/gettext-tarball.morph + repo: upstream:gettext-tarball + ref: 6eb5949dd99d174393465069c2fd0bab32deddcc + unpetrify-ref: gettext-0.19.7 + build-depends: + - libexpat +- name: git-minimal + morph: strata/core/git-minimal.morph + repo: upstream:git + ref: ed9067f705aa51819c7dfff7e4190dd267beaf5d + unpetrify-ref: v2.8.0-rc2 + build-depends: + - autoconf + - python3 + - curl + - gettext-tarball + - libexpat + - openssl-new + - perl +- name: flex + morph: strata/core/flex.morph + repo: upstream:flex + ref: de10f98e8a2dc2a021796811490d0f30c3cd90bf + unpetrify-ref: baserock/build-essential + build-depends: + - perl + - autoconf + - automake + - file + - gettext-tarball + - texinfo-tarball +- name: mini-utils + morph: strata/core/mini-utils.morph + repo: baserock:baserock/mini-utils + ref: 5293265b29bbf468ab9d7f3302b19dbc81d0f8b8 + unpetrify-ref: master +- name: bison + morph: strata/core/bison.morph + repo: upstream:bison + ref: c4e686a1abd817b4d4da5bdd5b3a5540566fd4a0 + unpetrify-ref: v3.0.4 + build-depends: + - autoconf + - automake + - flex + - gettext-tarball + - git-minimal + - openssl-new + - help2man + - mini-utils + - perl + - texinfo-tarball + submodules: + submodules/autoconf: + url: upstream:autoconf + gnulib: + url: upstream:gnulib +- name: patch + morph: strata/core/patch.morph + repo: upstream:patch + ref: 3b698ab6a13fd3e5890689cd85cf41312c682f8c + unpetrify-ref: v2.7.5 + build-depends: + - autoconf + - automake + - bison + - git-minimal + - openssl-new + - mini-utils + - perl + submodules: + gnulib: + url: upstream:gnulib +- name: xz + repo: upstream:xz + ref: a0cd05ee71d330b79ead6eb9222e1b24e1559d3a + unpetrify-ref: v5.2.0 + build-system: autotools + build-depends: + - autoconf + - automake + - file + - gettext-tarball + - libtool-tarball + - perl +- name: libtool + repo: upstream:libtool + ref: f09d00cbcf924c378573163e244fffeb8d28005f + unpetrify-ref: v2.4.6 + build-system: autotools + build-depends: + - autoconf + - automake + - file + - help2man + - git-minimal + - openssl-new + - patch + - texinfo-tarball + - xz + - perl + - mini-utils + submodules: + gnulib: + url: upstream:gnulib +- name: pkg-config + morph: strata/core/pkg-config.morph + repo: upstream:pkg-config + ref: 74ceac54ef6f9247c00f08eecd8cca811a3c5934 + unpetrify-ref: pkg-config-0.28 + build-depends: + - autoconf + - automake + - libtool + - perl +- name: attr + morph: strata/core/attr.morph + repo: upstream:attr + ref: 4b005410f865895d4dcd56e2c135278a7a315877 + unpetrify-ref: v2.4.47 + build-depends: + - file + - autoconf + - automake + - gettext-tarball + - libtool + - perl +- name: acl + morph: strata/core/acl.morph + repo: upstream:acl + ref: f13e09bd54fd4a501c4952f002ed2752bdd9f93b + unpetrify-ref: v2.2.52 + build-depends: + - autoconf + - automake + - gettext-tarball + - libtool + - attr + - perl +- name: linux-pam + morph: strata/core/linux-pam.morph + repo: upstream:linux-pam + ref: b1521c97e73b10469f7b34c0571d51c647eca83c + unpetrify-ref: Linux-PAM-1.1.8 + build-depends: + - autoconf + - automake + - gettext-tarball + - libtool + - pkg-config + - flex + - attr + - acl + - perl +- name: libcap2 + morph: strata/core/libcap2.morph + repo: upstream:libcap2 + ref: 4f7cca1bc9c2a274edb39d351b65747010d3ba7b + unpetrify-ref: baserock/morph + build-depends: + - autoconf + - automake + - gettext-tarball + - libtool + - pkg-config + - attr + - acl + - linux-pam + - perl +- name: shadow + morph: strata/core/shadow.morph + repo: upstream:shadow + ref: bfaa59229d61adb7fa0c570f0d94fd324c6e05aa + unpetrify-ref: upstream/4.2.1 + build-depends: + - autoconf + - automake + - gettext-tarball + - libtool + - bison + - attr + - acl + - linux-pam + - libcap2 + - perl +- name: util-linux + morph: strata/core/util-linux.morph + repo: upstream:util-linux + ref: 44338f7fe6a529cef1f206dccd95e7282625c483 + unpetrify-ref: v2.28 + build-depends: + - autoconf + - automake + - gettext-tarball + - git-minimal + - openssl-new + - libtool + - pkg-config + - linux-pam + - shadow + - perl +- name: e2fsprogs + morph: strata/core/e2fsprogs.morph + repo: upstream:e2fsprogs + ref: 6a3741ad293031447b95b88431eafa77401a8987 + unpetrify-ref: v1.42.12 + build-depends: + - pkg-config + - util-linux + - file +- name: libxml2 + repo: upstream:libxml2 + ref: 6657afe83a38278f124ace71dc85f60420beb2d5 + unpetrify-ref: v2.9.3 + build-system: autotools + build-depends: + - autoconf + - automake + - file + - libtool + - libexpat + - pkg-config + - python3 + - xz + - perl +- name: libxslt + repo: upstream:libxslt + ref: 73e08bf7c36a9145d38f51d37e66529b873c011a + unpetrify-ref: master + build-system: autotools + build-depends: + - autoconf + - libtool + - automake + - file + - libxml2 + - xz + - perl +- name: XML-Parser + repo: upstream:XML-Parser + ref: e1a3ec157140a699e3020836475a0df622f70f1b + unpetrify-ref: baserock/morph + build-system: cpan + build-depends: + - libexpat + - perl +- name: intltool + repo: upstream:intltool + ref: 12f04c88be9ff8a578d8fd6990ee2448c66dc5f4 + unpetrify-ref: baserock/morph + build-system: autotools + build-depends: + - libexpat + - XML-Parser + - autoconf + - automake + - perl +- name: bash + morph: strata/core/bash.morph + repo: upstream:bash + ref: 3590145af6f1c9fa321dff231f69ae696e7e740b + unpetrify-ref: baserock/bash-4.3-patch-27 +- name: cmake + morph: strata/core/cmake.morph + repo: upstream:cmake + ref: 0d5a2252ef8a586f4fc70a66aabd17fb3fd52110 + unpetrify-ref: v3.8.2 +- name: cython + repo: upstream:cython + ref: 4dd8e762fa51d01775506fbbc102c45dbcea065d + unpetrify-ref: '0.22' + build-system: python3-distutils + build-depends: + - python3 +- name: gperf + morph: strata/core/gperf.morph + repo: upstream:gperf + ref: 5094e4a539adf845111013f82c2c4fcaec637983 + unpetrify-ref: baserock/morph +- name: bc + repo: upstream:bc-tarball + ref: 0956d119432ff6a2e85bae1fa336df799cad70b0 + unpetrify-ref: baserock/morph + build-system: autotools + build-depends: + - perl + - flex + - texinfo-tarball +- name: libseccomp + repo: upstream:libseccomp + ref: 7932b4fa24c1add0d7a315de8387d216334fbcf7 + unpetrify-ref: v2.2.3 + build-system: autotools + build-depends: + - autoconf + - automake + - libtool + - perl diff --git a/old/strata/core/acl.morph b/old/strata/core/acl.morph new file mode 100644 index 00000000..23f08c1f --- /dev/null +++ b/old/strata/core/acl.morph @@ -0,0 +1,6 @@ +name: acl +kind: chunk +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install-lib install-dev diff --git a/old/strata/core/attr.morph b/old/strata/core/attr.morph new file mode 100644 index 00000000..c7b46d31 --- /dev/null +++ b/old/strata/core/attr.morph @@ -0,0 +1,19 @@ +name: attr +kind: chunk +build-system: autotools +pre-configure-commands: +- make configure +configure-commands: +- | + ./configure --prefix="$PREFIX" \ + --exec-prefix="$PREFIX" \ + --sbindir="$PREFIX"/bin \ + --bindir="$PREFIX"/bin \ + --libdir="$PREFIX"/lib \ + --libexecdir="$PREFIX"/lib \ + --enable-lib64=yes \ + --includedir="$PREFIX"/include \ + --mandir="$PREFIX"/share/man \ + --datadir="$PREFIX"/share +install-commands: +- make DESTDIR="$DESTDIR" install-lib install-dev diff --git a/old/strata/core/autoconf-tarball.morph b/old/strata/core/autoconf-tarball.morph new file mode 100644 index 00000000..fbdc5768 --- /dev/null +++ b/old/strata/core/autoconf-tarball.morph @@ -0,0 +1,5 @@ +name: autoconf-tarball +kind: chunk +build-system: autotools +configure-commands: +- ./configure --prefix="$PREFIX" diff --git a/old/strata/core/autoconf.morph b/old/strata/core/autoconf.morph new file mode 100644 index 00000000..63b95ba8 --- /dev/null +++ b/old/strata/core/autoconf.morph @@ -0,0 +1,5 @@ +name: autoconf +kind: chunk +build-system: autotools +pre-configure-commands: +- echo "2.69" > .tarball-version diff --git a/old/strata/core/automake.morph b/old/strata/core/automake.morph new file mode 100644 index 00000000..282535d6 --- /dev/null +++ b/old/strata/core/automake.morph @@ -0,0 +1,8 @@ +name: automake +kind: chunk +build-system: autotools +configure-commands: +- ./bootstrap.sh +- ./configure --prefix="$PREFIX" +build-commands: +- unset DESTDIR; make diff --git a/old/strata/core/bash.morph b/old/strata/core/bash.morph new file mode 100644 index 00000000..59c9e8b4 --- /dev/null +++ b/old/strata/core/bash.morph @@ -0,0 +1,36 @@ +name: bash +kind: chunk +build-system: autotools +configure-commands: +- | + export CFLAGS="${CFLAGS} -DSYS_BASHRC='\"/etc/bash.bashrc\"'"; + ./configure --prefix="$PREFIX" \ + --without-bash-malloc \ + --with-installed-readline \ + --enable-readline +post-install-commands: +- | + cat <<'EOF' >> bash.bashrc + # + # /etc/bash.bashrc + # + + # If not running interactively, don't do anything + [[ $- != *i* ]] && return + + # Configure prompt for different terminals + case ${TERM} in + xterm*|rxvt*|Eterm|aterm|kterm|gnome*) + PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"' + + ;; + screen) + PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"' + ;; + esac + + # Enable bash completion if present + [ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion + EOF +- mkdir -p "$DESTDIR"/etc +- install -m 644 bash.bashrc "$DESTDIR"/etc/bash.bashrc diff --git a/old/strata/core/bison.morph b/old/strata/core/bison.morph new file mode 100644 index 00000000..7b880cb6 --- /dev/null +++ b/old/strata/core/bison.morph @@ -0,0 +1,6 @@ +name: bison +kind: chunk +build-system: autotools +configure-commands: +- sh bootstrap --skip-po --no-git --gnulib-srcdir=gnulib +- ./configure --prefix="$PREFIX" diff --git a/old/strata/core/bzip2.morph b/old/strata/core/bzip2.morph new file mode 100644 index 00000000..f4bdb794 --- /dev/null +++ b/old/strata/core/bzip2.morph @@ -0,0 +1,10 @@ +name: bzip2 +kind: chunk +configure-commands: +- sed -i -rf bzip2.morph-makefix.sed Makefile +build-commands: +- make -f Makefile-libbz2_so +- make +install-commands: +- make DESTDIR="$DESTDIR" PREFIX="$PREFIX" install +- install libbz2.so* "$DESTDIR$PREFIX/lib" diff --git a/old/strata/core/ca-certificates.morph b/old/strata/core/ca-certificates.morph new file mode 100644 index 00000000..0497b283 --- /dev/null +++ b/old/strata/core/ca-certificates.morph @@ -0,0 +1,26 @@ +name: ca-certificates +kind: chunk +build-system: manual +build-commands: +- make +install-commands: +# +# ca-certificates makefile does not properly take responsibility +# for creating the paths it installs to +# +- mkdir -p "$DESTDIR"/usr/share/ca-certificates +- mkdir -p "$DESTDIR"/usr/sbin +- make DESTDIR="$DESTDIR" install +- mkdir "$DESTDIR"/etc +# +# We create the config with all certificates provided +# by the debian package enabled. Some systems may want +# to override the ca-certificates.conf file. +# +- | + cd "$DESTDIR"/usr/share/ca-certificates + find * -type f > "$DESTDIR"/etc/ca-certificates.conf +system-integration: + ca-certificates-misc: + 00-update-ca-certs: + - update-ca-certificates diff --git a/old/strata/core/cmake.morph b/old/strata/core/cmake.morph new file mode 100644 index 00000000..1d310ef4 --- /dev/null +++ b/old/strata/core/cmake.morph @@ -0,0 +1,8 @@ +name: cmake +kind: chunk +configure-commands: +- ./bootstrap --prefix="$PREFIX" --docdir=/share/doc/cmake --mandir=/share/man +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install diff --git a/old/strata/core/curl.morph b/old/strata/core/curl.morph new file mode 100644 index 00000000..d445ee00 --- /dev/null +++ b/old/strata/core/curl.morph @@ -0,0 +1,15 @@ +name: curl +kind: chunk +configure-commands: +# +# Curl must be configured --with-ca-bundle in order to find the +# correct certificate bundle at runtime, which is later generated +# by update-ca-certificates. Other applications such as git, rely +# on curl knowing the default location of the certs. +# +- ./buildconf +- ./configure --disable-manual --prefix="$PREFIX" --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install diff --git a/old/strata/core/e2fsprogs.morph b/old/strata/core/e2fsprogs.morph new file mode 100644 index 00000000..6f32ad38 --- /dev/null +++ b/old/strata/core/e2fsprogs.morph @@ -0,0 +1,27 @@ +name: e2fsprogs +kind: chunk +build-system: autotools +configure-commands: +# Configure with the usual paths for binaries and config +# but also disable whatever we can that is already provided by util-linux +# Disabling e2fsprofs' libblkid does not work, but we don't have to +# install it. +- | + ./configure --prefix="$PREFIX" --sysconfdir=/etc \ + --disable-libuuid --disable-uuidd --disable-libblkid +build-commands: +# Without this, the static archive libcom_err is generated without +# position independant code; later when samba tries to create a shared +# library linking to this archive, we get errors. +- make CFLAGS="-g -O2 -DHAVE_CONFIG_H -fPIC" +install-commands: +# e2fsprogs also includes tools that are provided by util-linux, so we +# need to selectively exclude them. Removing them directly from DESTDIR +# causes problems, so we need to remove them beforehand. +- | + td="$(mktemp -d)" + make DESTDIR="$td" install + make DESTDIR="$td" install-libs + find "$td" \( -name blkid -o -name findfs -o \) -delete + find "$td" \( -name blkid.8 -o -name findfs.8 \) -delete + mv "$td"/* "$DESTDIR" diff --git a/old/strata/core/flex.morph b/old/strata/core/flex.morph new file mode 100644 index 00000000..615bf79e --- /dev/null +++ b/old/strata/core/flex.morph @@ -0,0 +1,14 @@ +name: flex +kind: chunk +pre-configure-commands: +- autoreconf -ivf +configure-commands: +- ./configure --prefix="$PREFIX" +build-commands: +- make dist_doc_DATA= +install-commands: +- make dist_doc_DATA= DESTDIR="$DESTDIR" install +- ln -s libfl.a "$DESTDIR$PREFIX/lib/libl.a" +- echo "#!$PREFIX/bin/sh" >"$DESTDIR$PREFIX/bin/lex" +- echo 'exec '"$PREFIX"'/bin/flex -l "$@"' >>"$DESTDIR$PREFIX/bin/lex" +- chmod 755 "$DESTDIR$PREFIX/bin/lex" diff --git a/old/strata/core/gdbm.morph b/old/strata/core/gdbm.morph new file mode 100644 index 00000000..6bec33e0 --- /dev/null +++ b/old/strata/core/gdbm.morph @@ -0,0 +1,8 @@ +name: gdbm +kind: chunk +configure-commands: +- ./configure --prefix="$PREFIX" --enable-libgdbm-compat --disable-nls +build-commands: +- make MANS= INFO_DEPS= +install-commands: +- make MANS= INFO_DEPS= DESTDIR="$DESTDIR" install diff --git a/old/strata/core/gettext-tarball.morph b/old/strata/core/gettext-tarball.morph new file mode 100644 index 00000000..4983b484 --- /dev/null +++ b/old/strata/core/gettext-tarball.morph @@ -0,0 +1,5 @@ +name: gettext-tarball +kind: chunk +build-system: autotools +configure-commands: +- ./configure --prefix="$PREFIX" diff --git a/old/strata/core/git-minimal.morph b/old/strata/core/git-minimal.morph new file mode 100644 index 00000000..8b562ef6 --- /dev/null +++ b/old/strata/core/git-minimal.morph @@ -0,0 +1,7 @@ +name: git-minimal +kind: chunk +build-system: autotools +pre-configure-commands: +- make configure +build-commands: +- make all diff --git a/old/strata/core/gperf.morph b/old/strata/core/gperf.morph new file mode 100644 index 00000000..e4f598c5 --- /dev/null +++ b/old/strata/core/gperf.morph @@ -0,0 +1,3 @@ +name: gperf +kind: chunk +build-system: autotools diff --git a/old/strata/core/libcap2.morph b/old/strata/core/libcap2.morph new file mode 100644 index 00000000..3e4f205e --- /dev/null +++ b/old/strata/core/libcap2.morph @@ -0,0 +1,6 @@ +name: libcap2 +kind: chunk +build-commands: +- make prefix="$PREFIX" +install-commands: +- make prefix="$PREFIX" DESTDIR="$DESTDIR" RAISE_SETFCAP=no install lib=lib diff --git a/old/strata/core/libexpat.morph b/old/strata/core/libexpat.morph new file mode 100644 index 00000000..05285c0d --- /dev/null +++ b/old/strata/core/libexpat.morph @@ -0,0 +1,6 @@ +name: libexpat +kind: chunk +build-system: autotools +pre-configure-commands: +- ./buildconf.sh +- automake --add-missing --copy || true diff --git a/old/strata/core/libffi.morph b/old/strata/core/libffi.morph new file mode 100644 index 00000000..174477af --- /dev/null +++ b/old/strata/core/libffi.morph @@ -0,0 +1,8 @@ +name: libffi +kind: chunk +build-system: autotools +install-commands: +- make DESTDIR="$DESTDIR"/ install +- mkdir -p "$DESTDIR"/usr/include +- cp "$TARGET"/include/ffi.h "$DESTDIR"/usr/include/ +- cp "$TARGET"/include/ffitarget.h "$DESTDIR"/usr/include/ diff --git a/old/strata/core/libtool-tarball.morph b/old/strata/core/libtool-tarball.morph new file mode 100644 index 00000000..65a3edbc --- /dev/null +++ b/old/strata/core/libtool-tarball.morph @@ -0,0 +1,5 @@ +name: libtool-tarball +kind: chunk +build-system: autotools +configure-commands: +- ./configure --prefix="$PREFIX" diff --git a/old/strata/core/linux-pam.morph b/old/strata/core/linux-pam.morph new file mode 100644 index 00000000..e65caa63 --- /dev/null +++ b/old/strata/core/linux-pam.morph @@ -0,0 +1,9 @@ +name: linux-pam +kind: chunk +build-system: autotools +pre-configure-commands: +- autoreconf -ivf +configure-commands: +# libdir has to be specified or it'll go into lib64. It has to be /usr/lib because +# systemd installs its pam library into /usr/lib/security. +- ./configure --prefix="$PREFIX" --sysconfdir=/etc --libdir="$PREFIX/lib" diff --git a/old/strata/core/mini-utils.morph b/old/strata/core/mini-utils.morph new file mode 100644 index 00000000..a3d1109e --- /dev/null +++ b/old/strata/core/mini-utils.morph @@ -0,0 +1,7 @@ +name: mini-utils +kind: chunk +build-system: manual +build-commands: +- make +install-commands: +- make PREFIX="$PREFIX" DESTDIR="$DESTDIR" install diff --git a/old/strata/core/ncurses.morph b/old/strata/core/ncurses.morph new file mode 100644 index 00000000..42acb481 --- /dev/null +++ b/old/strata/core/ncurses.morph @@ -0,0 +1,45 @@ +name: ncurses +kind: chunk +configure-commands: +- LDCONFIG=true ./configure --with-shared --without-debug --enable-widec +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install +post-install-commands: +- | + # lfs recommends some alterations for software that looks for + # libcurses instead of libncurses + # it's more convenient to have this in a separate file than the + # morph as less strings have to be escaped and comments are possible + + # some software expects to find libcurses in /lib + mkdir -p "$DESTDIR/lib" + mv "$DESTDIR"/"$PREFIX"/lib/libncursesw.so.5* "$DESTDIR"/lib + ln -sf ../../lib/libncursesw.so.5 "$DESTDIR"/"$PREFIX"/lib/libncursesw.so + + # some linker tricks for libraries that look for non-wide character + # versions of ncurses + for lib in ncurses form panel menu; do + # remove non-wide shared object + rm -f "$DESTDIR/${PREFIX}/lib/lib${lib}.so" + # use a linker script to find the wide character variant + echo "INPUT(-l${lib}w)" >"$DESTDIR/${PREFIX}/lib/lib${lib}.so" + # symlink the non-shared library + ln -sf "lib${lib}w.a" "$DESTDIR/${PREFIX}/lib/lib${lib}.a" + done + ln -sf libncurses++w.a "$DESTDIR/${PREFIX}/lib/libncurses++.a" + + # redirect software that looks for libcurses + rm -f "$DESTDIR/${PREFIX}/lib/libcursesw.so" + echo "INPUT(-lncursesw)" >"$DESTDIR/${PREFIX}/lib/libcursesw.so" + ln -sf libncurses.so "$DESTDIR/${PREFIX}/lib/libcurses.so" + ln -sf libncursesw.a "$DESTDIR/${PREFIX}/lib/libcursesw.a" + ln -sf libncurses.a "$DESTDIR/${PREFIX}/lib/libcurses.a" + + # install documentation + mkdir -p "$DESTDIR/${PREFIX}/share/doc/ncurses" + cp -R doc/* "$DESTDIR/${PREFIX}/share/doc/ncurses" + + # remove 'clear' and 'reset' executables, busybox provides them + rm -f "$DESTDIR/${PREFIX}/bin/clear" "$DESTDIR/${PREFIX}/bin/reset" diff --git a/old/strata/core/openssl-new.morph b/old/strata/core/openssl-new.morph new file mode 100644 index 00000000..2ed14ff2 --- /dev/null +++ b/old/strata/core/openssl-new.morph @@ -0,0 +1,15 @@ +name: openssl-new +kind: chunk +max-jobs: 1 +configure-commands: +- sed -i -e 's,^LIBNAMES=\\(.*\\) padlock \\(.*\\),LIBNAMES=\\1 \\2,g' engines/Makefile +- | + if [ "$(uname -m)" = "ppc64" ]; then + sh ./Configure linux-ppc64 --openssldir=/etc/ssl --prefix="${PREFIX-/usr}" --libdir=lib shared + else + ./config --openssldir=/etc/ssl --prefix="${PREFIX-/usr}" --libdir=lib shared + fi +build-commands: +- make +install-commands: +- make INSTALL_PREFIX="$DESTDIR" install_sw diff --git a/old/strata/core/patch.morph b/old/strata/core/patch.morph new file mode 100644 index 00000000..b7f146ef --- /dev/null +++ b/old/strata/core/patch.morph @@ -0,0 +1,5 @@ +name: patch +kind: chunk +build-system: autotools +pre-configure-commands: +- ./bootstrap --skip-po diff --git a/old/strata/core/perl.morph b/old/strata/core/perl.morph new file mode 100644 index 00000000..ce086aa7 --- /dev/null +++ b/old/strata/core/perl.morph @@ -0,0 +1,16 @@ +name: perl +kind: chunk +max-jobs: 1 +configure-commands: +- sh Configure -des -Dprefix="$PREFIX" -Darchlib="$PREFIX/lib/perl" -Dprivlib="$PREFIX/share/perl" + -Dbin="$PREFIX/bin" -Dscriptdir="$PREFIX/bin" -Dman1dir="$PREFIX/share/man/man1" + -Dman3dir="$PREFIX/share/man/man3" -Dsiteprefix="$PREFIX" -Dsitearch="$PREFIX/lib/perl" + -Dsitelib="$PREFIX/share/perl" -Dsitebin="$PREFIX/bin" -Dsitescript="$PREFIX/bin" + -Dsiteman1dir="$PREFIX/share/man/man1" -Dsiteman3dir="$PREFIX/share/man/man3" -Dvendorprefix="$PREFIX" + -Dvendorarch="$PREFIX/lib/perl" -Dvendorlib="$PREFIX/share/perl" -Dvendorbin="$PREFIX/bin" + -Dvendorscript="$PREFIX/bin" -Dvendorman1dir="$PREFIX/share/man/man1" -Dvendorman3dir="$PREFIX/share/man/man3" + -Dpager="$PREFIX/bin/less -isR" -Duseshrplib +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install diff --git a/old/strata/core/pkg-config.morph b/old/strata/core/pkg-config.morph new file mode 100644 index 00000000..ed35a2ac --- /dev/null +++ b/old/strata/core/pkg-config.morph @@ -0,0 +1,5 @@ +name: pkg-config +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --with-internal-glib diff --git a/old/strata/core/python3.morph b/old/strata/core/python3.morph new file mode 100644 index 00000000..54d2e9e7 --- /dev/null +++ b/old/strata/core/python3.morph @@ -0,0 +1,15 @@ +name: python3 +kind: chunk +build-system: autotools +configure-commands: +- | + ./configure --prefix="$PREFIX" \ + --sysconfdir=/etc \ + --enable-shared \ + --with-system-expat \ + --with-system-ffi +post-install-commands: +- test -x "$DESTDIR"/"$PREFIX"/bin/python || ln -s python3.5 "$DESTDIR"/"$PREFIX"/bin/python +- test -x "$DESTDIR"/"$PREFIX"/bin/python3 || ln -s python3.5 "$DESTDIR"/"$PREFIX"/bin/python3 +- test -x "$DESTDIR"/"$PREFIX"/bin/python-config || ln -s python3.5-config "$DESTDIR"/"$PREFIX"/bin/python-config +- test -x "$DESTDIR"/"$PREFIX"/bin/python3-config || ln -s python3.5-config "$DESTDIR"/"$PREFIX"/bin/python3-config diff --git a/old/strata/core/readline.morph b/old/strata/core/readline.morph new file mode 100644 index 00000000..08c9586c --- /dev/null +++ b/old/strata/core/readline.morph @@ -0,0 +1,8 @@ +name: readline +kind: chunk +build-system: autotools +pre-configure-commands: +- cp /usr/share/automake*/config.guess support +- cp /usr/share/automake*/config.sub support +build-commands: +- make SHLIB_LIBS=-lncurses diff --git a/old/strata/core/shadow.morph b/old/strata/core/shadow.morph new file mode 100644 index 00000000..5e3244ae --- /dev/null +++ b/old/strata/core/shadow.morph @@ -0,0 +1,53 @@ +name: shadow +kind: chunk +build-system: autotools +pre-configure-commands: +- autoreconf -vfi +configure-commands: +- | + ./configure --with-selinux=no \ + --sysconfdir=/etc \ + --with-libpam=yes \ + --prefix="$PREFIX" +post-install-commands: +# Disable things handled by pam instead +- | + for OPTION in FAIL_DELAY \ + FAILLOG_ENAB \ + LASTLOG_ENAB \ + MAIL_CHECK_ENAB \ + OBSCURE_CHECKS_ENAB \ + PORTTIME_CHECKS_ENAB \ + QUOTAS_ENAB \ + CONSOLE MOTD_FILE \ + FTMP_FILE \ + NOLOGINS_FILE \ + ENV_HZ \ + PASS_MIN_LEN \ + SU_WHEEL_ONLY \ + CRACKLIB_DICTPATH \ + PASS_CHANGE_TRIES \ + PASS_ALWAYS_WARN \ + CHFN_AUTH \ + ENVIRON_FILE + do + sed -i -e "s/^${OPTION}.*/# & #This option is handled by PAM instead./" \ + "$DESTDIR/etc/login.defs" + done +# ENCRYPT_METHOD is handled specially with PAM, it will use the default as +# provided in login.defs, but it may be overridden in the pam.d config. +# We do not currently override this though, and it's better to guard oursleves +# against accidentally reducing password security by forgetting to include the +# algorithm as an argument to the PAM module, so ENCRYPT_METHOD is configured +# here, rather than in PAM. +- | + if grep -q '[\s#]ENCRYPT_METHOD' "$DESTDIR/etc/login.defs"; then + sed -i -e '/^[\s#]*ENCRYPT_METHOD /s/.*/ENCRYPT_METHOD SHA512/g' "$DESTDIR/etc/login.defs" + else + echo 'ENCRYPT_METHOD SHA512' >>"$DESTDIR/etc/login.defs" + fi + +# The default pam.d config files have pam_selinux.so as a requirement, even +# when shadow is configured '--with-selinux=no'. We change this default config +# to make this requirement optional. +- sed -i -e 's/\(.*\)required\(.*pam_selinux.so.*\)/\1optional\2/' "$DESTDIR"/etc/pam.d/* diff --git a/old/strata/core/texinfo-tarball.morph b/old/strata/core/texinfo-tarball.morph new file mode 100644 index 00000000..5f784ba2 --- /dev/null +++ b/old/strata/core/texinfo-tarball.morph @@ -0,0 +1,9 @@ +name: texinfo-tarball +kind: chunk +configure-commands: +- ./configure --prefix="$PREFIX" +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install +- make DESTDIR="$DESTDIR" TEXMF="$PREFIX/share/texmf" install-tex diff --git a/old/strata/core/util-linux.morph b/old/strata/core/util-linux.morph new file mode 100644 index 00000000..dca8ad4c --- /dev/null +++ b/old/strata/core/util-linux.morph @@ -0,0 +1,10 @@ +name: util-linux +kind: chunk +build-system: autotools +pre-configure-commands: +- ./autogen.sh +configure-commands: +- | + ./configure --prefix="$PREFIX" \ + --enable-libmount-force-mountinfo \ + --disable-use-tty-group diff --git a/old/strata/coreutils-common.morph b/old/strata/coreutils-common.morph new file mode 100644 index 00000000..c22fcfac --- /dev/null +++ b/old/strata/coreutils-common.morph @@ -0,0 +1,67 @@ +name: coreutils-common +kind: stratum +description: | + We need to split this so we can build stuff using coreutils but we can not + having it in the final systems (for example in genivi ones that do not + accept GPLv3 code) +build-depends: +- morph: strata/core.morph +chunks: +- name: coreutils + morph: strata/coreutils-common/coreutils.morph + repo: upstream:coreutils + ref: 68f73f23866d6137e9c8d88d86073b33588d7b56 + unpetrify-ref: v8.25 + submodules: + gnulib: + url: upstream:gnulib +- name: sed + morph: strata/coreutils-common/sed.morph + repo: upstream:sed + ref: ed4b1d7c04f92b330b940d4f0d02cd51d2473ce9 + unpetrify-ref: baserock/morph + build-depends: + - coreutils + submodules: + gnulib: + url: upstream:gnulib +- name: diff + morph: strata/coreutils-common/diff.morph + repo: upstream:diffutils + ref: bd86eb1a1e87ab85a7c8dbb658fa829ce69c252e + unpetrify-ref: baserock/v3.3 + build-depends: + - coreutils + submodules: + gnulib: + url: upstream:gnulib +- name: tar + morph: strata/coreutils-common/tar.morph + repo: upstream:tar + ref: 20b55f0679d314568ec21ae6db1ea635494e292b + unpetrify-ref: baserock/release_1_29 + build-depends: + - coreutils + submodules: + paxutils: + url: upstream:paxutils + gnulib: + url: upstream:gnulib +- name: findutils + repo: upstream:findutils + ref: 992a6b62ab8061531dc0ad40325b8e4c222fce66 + unpetrify-ref: v4.6.0 + build-system: autotools + submodules: + gnulib: + url: upstream:gnulib +- name: less + repo: upstream:less + ref: 09a405d8f652b56944c93ebf5c673cdfe5319b04 + unpetrify-ref: baserock/morph + build-system: autotools +- name: jq + repo: upstream:jq + ref: a5b5cbefb83935ce95ec62b9cadc8ec73026d33a + unpetrify-ref: jq-1.5 + build-system: autotools diff --git a/old/strata/coreutils-common/coreutils.morph b/old/strata/coreutils-common/coreutils.morph new file mode 100644 index 00000000..ad6b2c32 --- /dev/null +++ b/old/strata/coreutils-common/coreutils.morph @@ -0,0 +1,12 @@ +name: coreutils +kind: chunk +build-system: autotools +pre-configure-commands: +- sed -i -e '/^buildreq="/,/^"/{/rsync/d}' bootstrap.conf +- bash bootstrap --skip-po --no-git --gnulib-srcdir=gnulib +configure-commands: +- FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix="$PREFIX" --disable-nls +build-commands: +- make WERROR_CFLAGS= +install-commands: +- make INSTALL_PROGRAM=install DESTDIR="$DESTDIR" install diff --git a/old/strata/coreutils-common/diff.morph b/old/strata/coreutils-common/diff.morph new file mode 100644 index 00000000..c5eb809d --- /dev/null +++ b/old/strata/coreutils-common/diff.morph @@ -0,0 +1,8 @@ +name: diff +kind: chunk +build-system: autotools +pre-configure-commands: +- sed -i -e '/^buildreq="/,/^"/{/rsync/d}' bootstrap.conf +- ./bootstrap --skip-po --no-git --gnulib-srcdir=gnulib +configure-commands: +- ./configure --prefix="$PREFIX" --disable-gcc-warnings diff --git a/old/strata/coreutils-common/sed.morph b/old/strata/coreutils-common/sed.morph new file mode 100644 index 00000000..87ace803 --- /dev/null +++ b/old/strata/coreutils-common/sed.morph @@ -0,0 +1,8 @@ +name: sed +kind: chunk +build-system: autotools +pre-configure-commands: +- sed -i -e '/^buildreq="/,/^"/{/rsync/d}' bootstrap.conf +- ./bootstrap --skip-po --no-git --gnulib-srcdir=gnulib +configure-commands: +- ./configure --prefix="$PREFIX" --disable-gcc-warnings diff --git a/old/strata/coreutils-common/tar.morph b/old/strata/coreutils-common/tar.morph new file mode 100644 index 00000000..11ca9585 --- /dev/null +++ b/old/strata/coreutils-common/tar.morph @@ -0,0 +1,13 @@ +name: tar +kind: chunk +build-system: autotools +configure-commands: +- bash bootstrap --skip-po --gnulib-srcdir="$(pwd)/gnulib" + +# Configure flag notes: +# 1. Needed to run configure as root +# 2. Disable some warning that cause the build to fail +- | + `# [1]` env FORCE_UNSAFE_CONFIGURE=1 \ + ./configure --prefix="$PREFIX" \ + `# [2]` --disable-gcc-warnings diff --git a/old/strata/cpp-common-libs.morph b/old/strata/cpp-common-libs.morph new file mode 100644 index 00000000..470f0155 --- /dev/null +++ b/old/strata/cpp-common-libs.morph @@ -0,0 +1,11 @@ +name: cpp-common-libs +kind: stratum +description: C++ common libraries +build-depends: +- morph: strata/python2-core.morph +chunks: +- name: boost + morph: strata/cpp-common-libs/boost.morph + repo: upstream:boost-tarball + ref: ed232fdd34968697a68783b3195b1da4226915b5 + unpetrify-ref: boost_1_57_0 diff --git a/old/strata/cpp-common-libs/boost.morph b/old/strata/cpp-common-libs/boost.morph new file mode 100644 index 00000000..6aaee8ad --- /dev/null +++ b/old/strata/cpp-common-libs/boost.morph @@ -0,0 +1,9 @@ +name: boost +kind: chunk +build-system: manual +configure-commands: +- ./bootstrap.sh +build-commands: +- ./b2 $MAKEFLAGS +install-commands: +- ./b2 install --prefix="$DESTDIR$PREFIX" diff --git a/old/strata/cross-bootstrap.morph b/old/strata/cross-bootstrap.morph new file mode 100644 index 00000000..9248101a --- /dev/null +++ b/old/strata/cross-bootstrap.morph @@ -0,0 +1,29 @@ +name: cross-bootstrap +kind: stratum +description: The minimal development tools to build a baserock devel system +build-depends: +- morph: strata/core.morph +- morph: strata/python2-core.morph +chunks: +- name: groff + morph: strata/cross-bootstrap/groff.morph + repo: upstream:groff-git + ref: 16305a24e67966ace06d55e2a0b98cc0e3127a93 + unpetrify-ref: 1.22.3 +- name: openssh + morph: strata/cross-bootstrap/openssh.morph + repo: upstream:openssh-git + ref: 782fe9e725243eeb5ad6ab9a1783b5d6bedfe0d7 + unpetrify-ref: baserock/morph + build-depends: + - groff +- name: linux-user-chroot + repo: upstream:linux-user-chroot + ref: d25cc110f69e6e71a95b4ac532dcfc5423d4a16b + unpetrify-ref: baserock/morph + build-system: autotools +- name: rsync + morph: strata/cross-bootstrap/rsync.morph + repo: upstream:rsync + ref: 7cb0de6326c915a72253fd103dae93308031ec3f + unpetrify-ref: v3.1.1 diff --git a/old/strata/cross-bootstrap/groff.morph b/old/strata/cross-bootstrap/groff.morph new file mode 100644 index 00000000..8380a9cc --- /dev/null +++ b/old/strata/cross-bootstrap/groff.morph @@ -0,0 +1,13 @@ +name: groff +kind: chunk +max-jobs: 1 +configure-commands: +- PAGE=A4 ./configure --prefix="$PREFIX" +build-commands: +# hack to avoid a netpbm dependency +- touch doc/gnu.eps +- make +install-commands: +- make DESTDIR="$DESTDIR" install +- ln -s eqn "$DESTDIR$PREFIX/bin/geqn" +- ln -s tbl "$DESTDIR$PREFIX/bin/gtbl" diff --git a/old/strata/cross-bootstrap/openssh.morph b/old/strata/cross-bootstrap/openssh.morph new file mode 100644 index 00000000..6c759cb0 --- /dev/null +++ b/old/strata/cross-bootstrap/openssh.morph @@ -0,0 +1,28 @@ +name: openssh +kind: chunk +configure-commands: +- autoreconf -if +- | + OPENSSL_SEEDS_ITSELF=yes ./configure \ + --prefix="$PREFIX" --sysconfdir=/etc/ssh \ + --datadir="$PREFIX/share/sshd" \ + --libexecdir="$PREFIX/lib/openssh" \ + --with-privsep-path=/var/lib/sshd +build-commands: +- make +- | + sed -e "s|@prefix@|$PREFIX|g" \ + -e 's|@STARTUP_SCRIPT_SHELL@|/bin/sh|g' \ + -e 's|@sysconfdir@|/etc/ssh|g' \ + -e 's|@COMMENT_OUT_ECC@||g' \ + sshd-keygen.in >sshd-keygen +- sed -e "s|@prefix@|$PREFIX|g" opensshd.service.in >opensshd.service +install-commands: +- make DESTDIR="$DESTDIR" install +- mkdir -p "$DESTDIR/$PREFIX/sbin" +- chmod go= "$DESTDIR"/var/lib/sshd +- install -m 744 sshd-keygen "$DESTDIR/$PREFIX/sbin/sshd-keygen" +- install -m 755 contrib/ssh-copy-id "$DESTDIR/$PREFIX/bin/ssh-copy-id" +- mkdir -p "$DESTDIR/lib/systemd/system/multi-user.target.wants" +- install -m 644 opensshd.service "$DESTDIR/lib/systemd/system/opensshd.service" +- ln -s ../opensshd.service "$DESTDIR/lib/systemd/system/multi-user.target.wants/opensshd.service" diff --git a/old/strata/cross-bootstrap/rsync.morph b/old/strata/cross-bootstrap/rsync.morph new file mode 100644 index 00000000..9a92878d --- /dev/null +++ b/old/strata/cross-bootstrap/rsync.morph @@ -0,0 +1,6 @@ +name: rsync +kind: chunk +build-system: autotools +build-commands: +- make proto +- make diff --git a/old/strata/cross-tools.morph b/old/strata/cross-tools.morph new file mode 100644 index 00000000..795d3936 --- /dev/null +++ b/old/strata/cross-tools.morph @@ -0,0 +1,11 @@ +name: cross-tools +kind: stratum +description: Tools used together with cross compilers +build-depends: +- morph: strata/core.morph +chunks: +- name: patchelf + repo: upstream:patchelf + ref: 21a85cc1c63cf3ef060ece59cdd82455e2884703 + unpetrify-ref: baserock/morph + build-system: autotools diff --git a/old/strata/cups.morph b/old/strata/cups.morph new file mode 100644 index 00000000..b10bcd6c --- /dev/null +++ b/old/strata/cups.morph @@ -0,0 +1,11 @@ +name: cups +kind: stratum +description: Cups printer driver +build-depends: +- morph: strata/core.morph +chunks: +- name: cups + morph: strata/cups/cups.morph + repo: upstream:cups + ref: f28bae1aeae3964fba4f0728263657405f63c417 + unpetrify-ref: release-1.7.0 diff --git a/old/strata/cups/cups.morph b/old/strata/cups/cups.morph new file mode 100644 index 00000000..a3c2edf8 --- /dev/null +++ b/old/strata/cups/cups.morph @@ -0,0 +1,12 @@ +name: cups +kind: chunk +build-system: manual +configure-commands: +- autoconf +- ./configure --prefix="$PREFIX" +build-commands: +- make +# Note: BUILDROOT is the variable recommended in INSTALL.txt for the +# destination directory. +install-commands: +- make BUILDROOT="$DESTDIR" install diff --git a/old/strata/data-indexing-management.morph b/old/strata/data-indexing-management.morph new file mode 100644 index 00000000..097f2d72 --- /dev/null +++ b/old/strata/data-indexing-management.morph @@ -0,0 +1,40 @@ +name: data-indexing-management +kind: stratum +description: Components to index data +build-depends: +- morph: strata/graphics-common.morph +- morph: strata/icu-common.morph +- morph: strata/multimedia-gstreamer.morph +- morph: strata/vala-common.morph +chunks: +- name: libexif + repo: upstream:libexif-tarball + ref: 0c6a5fa0d9719a40748d8726b4543f02f70518c1 + unpetrify-ref: libexif-0.6.21 + build-system: autotools +- name: libmediaart + morph: strata/data-indexing-management/libmediaart.morph + repo: upstream:gnome/libmediaart + ref: 52eb6498c97ce0005186946bc9162d87597abc2c + unpetrify-ref: baserock/1.9.0-8-g52eb649 +- name: gmime + morph: strata/data-indexing-management/gmime.morph + repo: upstream:gnome/gmime + ref: 496313fbe956b350c22fa705edbcfdde3d7c9e50 + unpetrify-ref: baserock/GMIME_2_6_20-24-g496313f +- name: totem-pl-parser + repo: upstream:gnome/totem-pl-parser + ref: 1be3144e9a6bf183a61c9596165d52bbe405b5cc + unpetrify-ref: baserock/V_3_10_5-16-g1be3144 + build-system: autotools + build-depends: + - gmime +- name: tracker + repo: upstream:gnome/tracker + ref: ad31f26e3c45dbe3365ff4aaae39269d9210f4a9 + unpetrify-ref: 1.6.0 + build-system: autotools + build-depends: + - libexif + - libmediaart + - totem-pl-parser diff --git a/old/strata/data-indexing-management/gmime.morph b/old/strata/data-indexing-management/gmime.morph new file mode 100644 index 00000000..f71efac4 --- /dev/null +++ b/old/strata/data-indexing-management/gmime.morph @@ -0,0 +1,6 @@ +name: gmime +kind: chunk +build-system: autotools +pre-configure-commands: +# Work around upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=757720 +- sed -i 's/$(INCLUDES)/$(AM_CPPFLAGS)/g' gmime/Makefile.am diff --git a/old/strata/data-indexing-management/libmediaart.morph b/old/strata/data-indexing-management/libmediaart.morph new file mode 100644 index 00000000..43e0812f --- /dev/null +++ b/old/strata/data-indexing-management/libmediaart.morph @@ -0,0 +1,5 @@ +name: libmediaart +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --disable-qt diff --git a/old/strata/device-management.morph b/old/strata/device-management.morph new file mode 100644 index 00000000..e0ed4a25 --- /dev/null +++ b/old/strata/device-management.morph @@ -0,0 +1,12 @@ +name: device-management +kind: stratum +description: libraries that provides access to devices +build-depends: +- morph: strata/foundation.morph +- morph: strata/glib-common.morph +chunks: +- name: libgudev + repo: upstream:libgudev + ref: d722339aae9065a379acc0c421e8bbab866d5a38 + unpetrify-ref: "230" + build-system: autotools diff --git a/old/strata/devtools.morph b/old/strata/devtools.morph new file mode 100644 index 00000000..41dd501c --- /dev/null +++ b/old/strata/devtools.morph @@ -0,0 +1,55 @@ +name: devtools +kind: stratum +description: | + Extra development tools included in the devel system, this stratum + is here to help reduce unnecessary building, chunks added to this + stratum should not have any dependants (please don't build-depend on this + stratum) +build-depends: +- morph: strata/core.morph +- morph: strata/python2-core.morph +- morph: strata/docutils.morph +chunks: +- name: nano + morph: strata/devtools/nano.morph + repo: upstream:nano-tarball + ref: fb040ea36cb8e2158ccd9100600652f94ae90af1 + unpetrify-ref: baserock/morph +- name: vim + morph: strata/devtools/vim.morph + repo: upstream:vim + ref: 07c2c06799e0579e6bfb1a7d98acf38e36a98f79 + unpetrify-ref: baserock/morph +- name: pv + repo: upstream:pv + ref: d6ce7cfec684fa72d7a919d7b1aa817a0ca6102a + unpetrify-ref: baserock/morph + build-system: autotools +- name: screen + morph: strata/devtools/screen.morph + repo: upstream:screen + ref: 7dd4a9e5f385c96a77e8ee5c977a1dde4c0ff467 + unpetrify-ref: baserock/morph +- name: git-review + repo: upstream:git-review + ref: 79262a52301c146a6b60d09a828661a83a5f5ba7 + unpetrify-ref: master + build-system: python-distutils +- name: wget + morph: strata/devtools/wget.morph + repo: upstream:wget + ref: f65f522f58606f125535306e712c2c29921ee8b4 + unpetrify-ref: v1.17.1 + submodules: + gnulib: + url: upstream:gnulib +- name: git + morph: strata/devtools/git.morph + repo: upstream:git + ref: ed9067f705aa51819c7dfff7e4190dd267beaf5d + unpetrify-ref: v2.8.0-rc2 +- name: iotop + repo: upstream:iotop + ref: 59e2537794d91c1375d391293f8fd89ca8b794a8 + unpetrify-ref: iotop-0.6 + build-system: python-distutils diff --git a/old/strata/devtools/git.morph b/old/strata/devtools/git.morph new file mode 100644 index 00000000..40945640 --- /dev/null +++ b/old/strata/devtools/git.morph @@ -0,0 +1,11 @@ +name: git +kind: chunk +build-system: autotools +pre-configure-commands: +- make configure +build-commands: +- make all doc +install-commands: +- make install install-doc +post-install-commands: +- install -D -m 644 -t "$DESTDIR"/etc/bash_completion.d/. contrib/completion/git-completion.bash diff --git a/old/strata/devtools/nano.morph b/old/strata/devtools/nano.morph new file mode 100644 index 00000000..3eeee120 --- /dev/null +++ b/old/strata/devtools/nano.morph @@ -0,0 +1,16 @@ +name: nano +kind: chunk +build-system: autotools +configure-commands: +- ./configure --prefix="$PREFIX" --sysconfdir=/etc +post-install-commands: +- | + cat <<EOF >> nanorc + set smooth + include /usr/share/nano/c.nanorc + include /usr/share/nano/patch.nanorc + include /usr/share/nano/python.nanorc + include /usr/share/nano/sh.nanorc + EOF +- mkdir -p "$DESTDIR"/etc +- install -m 644 nanorc "$DESTDIR"/etc/nanorc diff --git a/old/strata/devtools/screen.morph b/old/strata/devtools/screen.morph new file mode 100644 index 00000000..0b23c5d4 --- /dev/null +++ b/old/strata/devtools/screen.morph @@ -0,0 +1,11 @@ +name: screen +kind: chunk +description: A terminal multiplexer and sanity tool for many +max-jobs: 1 +configure-commands: +- cd ./src && sh autogen.sh +- cd ./src && ./configure --prefix="$PREFIX" +build-commands: +- cd ./src && make +install-commands: +- cd ./src && make DESTDIR="$DESTDIR" install diff --git a/old/strata/devtools/vim.morph b/old/strata/devtools/vim.morph new file mode 100644 index 00000000..58e1403f --- /dev/null +++ b/old/strata/devtools/vim.morph @@ -0,0 +1,10 @@ +name: vim +kind: chunk +build-system: autotools +configure-commands: +- echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >>src/feature.h +- ./configure --prefix="$PREFIX" --enable-multibyte +install-commands: +- make DESTDIR="$DESTDIR" install +- mkdir -p "$DESTDIR"/etc +- install -m 644 runtime/vimrc_example.vim "$DESTDIR"/etc/vimrc diff --git a/old/strata/devtools/wget.morph b/old/strata/devtools/wget.morph new file mode 100644 index 00000000..a3a7995a --- /dev/null +++ b/old/strata/devtools/wget.morph @@ -0,0 +1,10 @@ +name: wget +kind: chunk +build-system: autotools +pre-configure-commands: +# rsync is needed if we want the bootstrap script to download .po files, +# we can't download into our chroot so we remove this dependency +- sed -i '/^buildreq="/,/"/ { /^rsync.*/ d }' bootstrap.conf +- ./bootstrap --no-bootstrap-sync --skip-po +configure-commands: +- ./configure --prefix="$PREFIX" --with-ssl=openssl diff --git a/old/strata/dlna-services.morph b/old/strata/dlna-services.morph new file mode 100644 index 00000000..2c4f1104 --- /dev/null +++ b/old/strata/dlna-services.morph @@ -0,0 +1,51 @@ +name: dlna-services +kind: stratum +description: provides DLNA services +build-depends: +- morph: strata/data-indexing-management.morph +- morph: strata/docutils.morph +- morph: strata/vala-common.morph +chunks: +- name: gssdp + morph: strata/dlna-services/gssdp.morph + repo: upstream:gnome/gssdp + ref: a53a6ac85f1b70192bc75fbbd4601582d6095cfd + unpetrify-ref: gssdp-0.14.12 +- name: gupnp + repo: upstream:gnome/gupnp + ref: c42b9cdda466ae9fef91f6beb370f8dfdebc295c + unpetrify-ref: gupnp-0.20.14 + build-system: autotools + build-depends: + - gssdp +- name: gupnp-av + repo: upstream:gnome/gupnp-av + ref: d277511ae1f456ba804f4c9beb5d36043f5a1659 + unpetrify-ref: gupnp-av-0.12.7 + build-system: autotools + build-depends: + - gupnp +- name: gupnp-igd + repo: upstream:gnome/gupnp-igd + ref: f679a8ad782eee72e2ff7a0a7598b4523ef03bb3 + unpetrify-ref: 0.2.4 + build-system: autotools + build-depends: + - gupnp +- name: gupnp-dlna + repo: upstream:gnome/gupnp-dlna + ref: 1aad765f223e3338d86bc975a2b4925fca43bf58 + unpetrify-ref: gupnp-dlna-0.10.3 + build-system: autotools + build-depends: + - gupnp +- name: rygel + repo: upstream:rygel + ref: 4a42aee4afda9509db1e3d259c5a2907407a7261 + unpetrify-ref: RYGEL_0_28_2 + build-system: autotools + build-depends: + - gssdp + - gupnp + - gupnp-av + - gupnp-dlna diff --git a/old/strata/dlna-services/gssdp.morph b/old/strata/dlna-services/gssdp.morph new file mode 100644 index 00000000..14b810b0 --- /dev/null +++ b/old/strata/dlna-services/gssdp.morph @@ -0,0 +1,5 @@ +name: gssdp +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --disable-Werror diff --git a/old/strata/docutils.morph b/old/strata/docutils.morph new file mode 100644 index 00000000..e76cc7a2 --- /dev/null +++ b/old/strata/docutils.morph @@ -0,0 +1,52 @@ +name: docutils +kind: stratum +description: Stuff for generating documentation +build-depends: +- morph: strata/python2-core.morph +chunks: +- name: xml-catalog + morph: strata/docutils/xml-catalog.morph + repo: baserock:baserock/xml-catalog + ref: 1d4a2abc875c4dda1b5eadc0a097a48a8d2ec82b + unpetrify-ref: master +- name: docbook-xml + morph: strata/docutils/docbook-xml.morph + repo: upstream:docbook-xml + ref: c8f0ce32a8075e9ab21e5cf734fb96195455264d + unpetrify-ref: docbook-xml-4.5 + build-depends: + # This is a little awkward, we don't really build-depend on xml-catalog, + # but if we don't include it as a build dependency + # then we won't have the existing xml catalog in our staging area + # which would cause this chunk to create a new catalog which would + # overwrite the catalog created by the 'xml-catalog' chunk. + # + # construction of the catalog cannot be done at system-integration time + # because we need the catalog *here* in order to build nasm complete with + # man pages. + - xml-catalog +- name: docbook-xsl + morph: strata/docutils/docbook-xsl.morph + repo: upstream:docbook-xsl + ref: 802da9dd5d4bc18f46a916eedc0c5c1980a15e59 + unpetrify-ref: docbook-xsl-1.78.1 + build-depends: + # Same issue as above, except this time we don't want to overwrite + # the catalog that now contains the XML DTDs. + - docbook-xml +- name: asciidoc + repo: upstream:asciidoc + ref: d3a6df0caa94edaf8180bd71bf2fc68390f56520 + unpetrify-ref: 8.6.9 + build-system: autotools + build-depends: + - docbook-xml + - docbook-xsl +- name: xmlto + repo: upstream:xmlto-tarball + ref: 6a590aba95cbcce0f184381fb19d16558e56832d + unpetrify-ref: xmlto-0.0.26 + build-system: autotools + build-depends: + - docbook-xml + - docbook-xsl diff --git a/old/strata/docutils/docbook-xml.morph b/old/strata/docutils/docbook-xml.morph new file mode 100644 index 00000000..91233b6d --- /dev/null +++ b/old/strata/docutils/docbook-xml.morph @@ -0,0 +1,104 @@ +name: docbook-xml +kind: chunk +build-system: manual +install-commands: +- install -v -d -m755 "$DESTDIR$PREFIX/share/xml/docbook/xml-dtd-4.5" +- install -v -d -m755 "$DESTDIR/etc/xml" +- | + cp -v -af docbook.cat *.dtd ent/ *.mod \ + "$DESTDIR$PREFIX/share/xml/docbook/xml-dtd-4.5" +post-install-commands: +- | + # Create (or update) and populate the "$DESTDIR/etc/xml/docbook" catalog file + if [ ! -e /etc/xml/docbook ]; then + xmlcatalog --noout --create "$DESTDIR/etc/xml/docbook" + else + # Copy the existing catalog so we can update it + cp /etc/xml/docbook "$DESTDIR/etc/xml/docbook" + fi + +- | + xmlcatalog --noout --add "public" \ + "-//OASIS//DTD DocBook XML V4.5//EN" \ + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \ + "$DESTDIR/etc/xml/docbook" +- | + xmlcatalog --noout --add "public" \ + "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \ + "$DESTDIR/etc/xml/docbook" +- | + xmlcatalog --noout --add "public" \ + "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \ + "$DESTDIR/etc/xml/docbook" +- | + xmlcatalog --noout --add "public" \ + "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \ + "$DESTDIR/etc/xml/docbook" +- | + xmlcatalog --noout --add "public" \ + "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \ + "$DESTDIR/etc/xml/docbook" +- | + xmlcatalog --noout --add "public" \ + "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \ + "$DESTDIR/etc/xml/docbook" +- | + xmlcatalog --noout --add "public" \ + "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \ + "$DESTDIR/etc/xml/docbook" +- | + xmlcatalog --noout --add "public" \ + "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \ + "$DESTDIR/etc/xml/docbook" +- | + xmlcatalog --noout --add "public" \ + "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \ "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \ + "$DESTDIR/etc/xml/docbook" +- | + xmlcatalog --noout --add "rewriteSystem" \ + "http://www.oasis-open.org/docbook/xml/4.5" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5" \ + "$DESTDIR/etc/xml/docbook" +- | + xmlcatalog --noout --add "rewriteURI" \ + "http://www.oasis-open.org/docbook/xml/4.5" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5" \ + "$DESTDIR/etc/xml/docbook" + +- | + # Create (or update) and populate the "$DESTDIR/etc/xml/catalog" catalog file + if [ ! -e /etc/xml/catalog ]; then + echo 'Creating new xml catalog' + xmlcatalog --noout --create "$DESTDIR/etc/xml/catalog" + else + # Copy the existing catalog so we can update it + cp /etc/xml/catalog "$DESTDIR/etc/xml/catalog" + fi + +- | + xmlcatalog --noout --add "delegatePublic" \ + "-//OASIS//ENTITIES DocBook XML" \ + "file:///etc/xml/docbook" \ + "$DESTDIR/etc/xml/catalog" +- | + xmlcatalog --noout --add "delegatePublic" \ + "-//OASIS//DTD DocBook XML" \ + "file:///etc/xml/docbook" \ + "$DESTDIR/etc/xml/catalog" +- | + xmlcatalog --noout --add "delegateSystem" \ + "http://www.oasis-open.org/docbook/" \ + "file:///etc/xml/docbook" \ + "$DESTDIR/etc/xml/catalog" +- | + xmlcatalog --noout --add "delegateURI" \ + "http://www.oasis-open.org/docbook/" \ + "file:///etc/xml/docbook" \ + "$DESTDIR/etc/xml/catalog" diff --git a/old/strata/docutils/docbook-xsl.morph b/old/strata/docutils/docbook-xsl.morph new file mode 100644 index 00000000..b3bf396d --- /dev/null +++ b/old/strata/docutils/docbook-xsl.morph @@ -0,0 +1,50 @@ +name: docbook-xsl +kind: chunk +install-commands: +- install -v -m755 -d "$DESTDIR$PREFIX/share/xml/docbook/xsl-stylesheets-1.78.1" +- | + cp -v -R VERSION common eclipse epub extensions fo highlighting html \ + htmlhelp images javahelp lib manpages params profiling \ + roundtrip slides template tests tools webhelp website \ + xhtml xhtml-1_1 \ + "$DESTDIR$PREFIX/share/xml/docbook/xsl-stylesheets-1.78.1" + +- ln -s VERSION "$DESTDIR$PREFIX/share/xml/docbook/xsl-stylesheets-1.78.1/VERSION.xsl" + +- install -v -m644 -D README "$DESTDIR$PREFIX/share/doc/docbook-xsl-1.78.1/README.txt" +- | + install -v -m644 RELEASE-NOTES* NEWS* \ + "$DESTDIR$PREFIX/share/doc/docbook-xsl-1.78.1" +post-install-commands: +- if [ ! -d "$DESTDIR/etc/xml" ]; then install -v -m755 -d "$DESTDIR/etc/xml"; fi +- | + if [ ! -e /etc/xml/catalog ]; then + echo "Creating new xml catalog" + xmlcatalog --noout --create "$DESTDIR/etc/xml/catalog" + else + cp /etc/xml/catalog "$DESTDIR/etc/xml/catalog" + fi + +- | + xmlcatalog --noout --add "rewriteSystem" \ + "http://docbook.sourceforge.net/release/xsl/1.78.1" \ + "/usr/share/xml/docbook/xsl-stylesheets-1.78.1" \ + "$DESTDIR/etc/xml/catalog" + +- | + xmlcatalog --noout --add "rewriteURI" \ + "http://docbook.sourceforge.net/release/xsl/1.78.1" \ + "/usr/share/xml/docbook/xsl-stylesheets-1.78.1" \ + "$DESTDIR/etc/xml/catalog" + +- | + xmlcatalog --noout --add "rewriteSystem" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "/usr/share/xml/docbook/xsl-stylesheets-1.78.1" \ + "$DESTDIR/etc/xml/catalog" + +- | + xmlcatalog --noout --add "rewriteURI" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "/usr/share/xml/docbook/xsl-stylesheets-1.78.1" \ + "$DESTDIR/etc/xml/catalog" diff --git a/old/strata/docutils/xml-catalog.morph b/old/strata/docutils/xml-catalog.morph new file mode 100644 index 00000000..34ba0306 --- /dev/null +++ b/old/strata/docutils/xml-catalog.morph @@ -0,0 +1,6 @@ +name: xml-catalog +kind: chunk +install-commands: +- make DESTDIR="$DESTDIR" install +post-install-commands: +- ./post-install.sh diff --git a/old/strata/elixir.morph b/old/strata/elixir.morph new file mode 100644 index 00000000..dd46ed64 --- /dev/null +++ b/old/strata/elixir.morph @@ -0,0 +1,11 @@ +name: elixir +kind: stratum +description: stratum for elixir +build-depends: +- morph: strata/erlang.morph +chunks: +- name: elixir + morph: strata/elixir/elixir.morph + repo: upstream:elixir + ref: 737ac62926db7a692e2fe67c27b696cfd0866674 + unpetrify-ref: v1.2.3 diff --git a/old/strata/elixir/elixir.morph b/old/strata/elixir/elixir.morph new file mode 100644 index 00000000..1efbea87 --- /dev/null +++ b/old/strata/elixir/elixir.morph @@ -0,0 +1,6 @@ +name: elixir +kind: chunk +build-commands: +- make clean +install-commands: +- make install diff --git a/old/strata/erlang.morph b/old/strata/erlang.morph new file mode 100644 index 00000000..3aad68e8 --- /dev/null +++ b/old/strata/erlang.morph @@ -0,0 +1,18 @@ +name: erlang +kind: stratum +description: stratum for erlang/otp and stuff +build-depends: +- morph: strata/core.morph +chunks: +- name: erlang + morph: strata/erlang/erlang.morph + repo: upstream:erlang + ref: 1ab69efa960703b86a13ea6ba96f4fd56f1565f9 + unpetrify-ref: OTP-18.3.3 +- name: rebar + morph: strata/erlang/rebar.morph + repo: upstream:erlang-modules/rebar + ref: d42ed4683576d995f60e3222f076e99f0b081f79 + unpetrify-ref: master + build-depends: + - erlang diff --git a/old/strata/erlang/erlang.morph b/old/strata/erlang/erlang.morph new file mode 100644 index 00000000..feaf04f1 --- /dev/null +++ b/old/strata/erlang/erlang.morph @@ -0,0 +1,9 @@ +name: erlang +kind: chunk +configure-commands: +- ./otp_build autoconf +- ./configure --prefix=$PREFIX +build-commands: +- make +install-commands: +- make install diff --git a/old/strata/erlang/rebar.morph b/old/strata/erlang/rebar.morph new file mode 100644 index 00000000..fa5fd64f --- /dev/null +++ b/old/strata/erlang/rebar.morph @@ -0,0 +1,6 @@ +name: rebar +kind: chunk +build-commands: +- ./bootstrap +install-commands: +- install -D -m 755 rebar "$DESTDIR$PREFIX"/bin/rebar diff --git a/old/strata/foundation.morph b/old/strata/foundation.morph new file mode 100644 index 00000000..50d1e63b --- /dev/null +++ b/old/strata/foundation.morph @@ -0,0 +1,131 @@ +name: foundation +kind: stratum +description: Basic userland runtime system +build-depends: +- morph: strata/coreutils-common.morph +chunks: +- name: bash-completion + repo: upstream:bash-completion + ref: 3085c7e12179817a02a611016606391295c69942 + unpetrify-ref: '2.1' + build-system: autotools +- name: groff + morph: strata/foundation/groff.morph + repo: upstream:groff-git + ref: 16305a24e67966ace06d55e2a0b98cc0e3127a93 + unpetrify-ref: 1.22.3 +- name: kmod + morph: strata/foundation/kmod.morph + repo: upstream:kmod + ref: 42f32b8ae45ad8e3a1da29c9b20af9b5e2e9e676 + unpetrify-ref: v22 +- name: time-zone-database + morph: strata/foundation/time-zone-database.morph + repo: upstream:tz + ref: a0782484f101ac55c916568bc1c490d7761fc904 + unpetrify-ref: 2015a +- name: pciutils + morph: strata/foundation/pciutils.morph + repo: upstream:pciutils + ref: 37c9315c504f266c23d51e62e59d32422dbbe9e7 + unpetrify-ref: v3.4.1 +- name: dbus-pre + morph: strata/foundation/dbus-pre.morph + repo: upstream:dbus + ref: 8f71063e75fd6e06e985c1de711bf62231b504af + unpetrify-ref: baserock/dbus-1.10.14-capi-patches +- name: libgpg-error + morph: strata/foundation/libgpg-error.morph + repo: upstream:libgpg-error + ref: d77c33ae608d67086ea057cca5ddee99a7202f8b + unpetrify-ref: libgpg-error-1.19 +- name: libgcrypt + morph: strata/foundation/libgcrypt.morph + repo: upstream:libgcrypt + ref: b16176769672a659b9a7c1d23325270338323385 + unpetrify-ref: baserock/libgcrypt-1.7.8 + build-depends: + - libgpg-error +- name: systemd + morph: strata/foundation/systemd.morph + repo: upstream:systemd + ref: a1e2ef7ec912902d8142e7cb5830cbfb47dba86c + unpetrify-ref: v232 + build-depends: + - dbus-pre + - kmod + - libgcrypt + - libgpg-error +- name: libusb + repo: upstream:libusb + ref: 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3 + unpetrify-ref: v1.0.21 + build-system: autotools + build-depends: + - systemd +- name: usbutils + repo: upstream:usbutils + ref: 3bafa6940f512357d7aa54d3a76de01662a19e48 + unpetrify-ref: v008 + build-system: autotools + build-depends: + - libusb + - systemd + submodules: + usbhid-dump: + url: upstream:usbhid-dump +- name: lzo + morph: strata/foundation/lzo.morph + repo: upstream:lzo + ref: 338906b389d616a50da0447038d4ec3e1e3f190f + unpetrify-ref: lzo-2.08 +- name: fuse + morph: strata/foundation/fuse.morph + repo: upstream:fuse + ref: e9b2eec7c5856032652bb8ff734174764e444c74 + unpetrify-ref: baserock/fuse_2_9_4-fix-armv8 +- name: btrfs-progs + morph: strata/foundation/btrfs-progs.morph + repo: upstream:btrfs-progs + ref: 19a806f575cd010734fa5793c4b3bfb49926dc62 + unpetrify-ref: v4.0 + build-depends: + - lzo +- name: dbus + morph: strata/foundation/dbus.morph + repo: upstream:dbus + ref: 8f71063e75fd6e06e985c1de711bf62231b504af + unpetrify-ref: baserock/dbus-1.10.14-capi-patches + build-depends: + - systemd + - libgcrypt + - libgpg-error +- name: openssh + morph: strata/foundation/openssh.morph + repo: upstream:openssh-git + ref: 782fe9e725243eeb5ad6ab9a1783b5d6bedfe0d7 + unpetrify-ref: baserock/morph + build-depends: + - groff +- name: tbdiff + morph: strata/foundation/tbdiff.morph + repo: baserock:baserock/tbdiff + ref: e17a444c651451724046e7da1ae2559e71478b3a + unpetrify-ref: master +- name: rsync + morph: strata/foundation/rsync.morph + repo: upstream:rsync + ref: 7cb0de6326c915a72253fd103dae93308031ec3f + unpetrify-ref: v3.1.1 +- name: python-systemd + build-system: python3-distutils + repo: upstream:python-packages/python-systemd + ref: 8ccd64789ab030b76a99b578b5b1e9812b7a8cd8 + unpetrify-ref: v231 + build-depends: + - systemd +- name: libarchive + morph: strata/foundation/libarchive.morph + repo: upstream:libarchive + ref: 19f23e191f9d3e1dd2a518735046100419965804 + unpetrify-ref: v3.1.2 diff --git a/old/strata/foundation/btrfs-progs.morph b/old/strata/foundation/btrfs-progs.morph new file mode 100644 index 00000000..807a115f --- /dev/null +++ b/old/strata/foundation/btrfs-progs.morph @@ -0,0 +1,8 @@ +name: btrfs-progs +kind: chunk +build-system: autotools +pre-configure-commands: +- ./autogen.sh +configure-commands: +# The change in the CFLAGS is needed to make the compilation succeed in armv5l +- export CFLAGS="-O2 $CFLAGS"; ./configure --prefix="$PREFIX" --disable-documentation diff --git a/old/strata/foundation/dbus-pre.morph b/old/strata/foundation/dbus-pre.morph new file mode 100644 index 00000000..3ec008bf --- /dev/null +++ b/old/strata/foundation/dbus-pre.morph @@ -0,0 +1,10 @@ +name: dbus-pre +kind: chunk +build-system: autotools +configure-commands: +- sh autogen.sh --no-configure +- ./configure --prefix="$PREFIX" --localstatedir=/var --sysconfdir=/etc --disable-systemd +build-commands: +- make XMLTO_OUTPUT= +install-commands: +- make XMLTO_OUTPUT= DESTDIR="$DESTDIR" install diff --git a/old/strata/foundation/dbus.morph b/old/strata/foundation/dbus.morph new file mode 100644 index 00000000..23840ce1 --- /dev/null +++ b/old/strata/foundation/dbus.morph @@ -0,0 +1,10 @@ +name: dbus +kind: chunk +build-system: autotools +configure-commands: +- sh autogen.sh --no-configure +- ./configure --prefix="$PREFIX" --localstatedir=/var --sysconfdir=/etc --enable-user-session +build-commands: +- make XMLTO_OUTPUT= +install-commands: +- make XMLTO_OUTPUT= DESTDIR="$DESTDIR" install diff --git a/old/strata/foundation/fuse.morph b/old/strata/foundation/fuse.morph new file mode 100644 index 00000000..5d431307 --- /dev/null +++ b/old/strata/foundation/fuse.morph @@ -0,0 +1,5 @@ +name: fuse +kind: chunk +build-system: autotools +pre-configure-commands: +- ./makeconf.sh diff --git a/old/strata/foundation/groff.morph b/old/strata/foundation/groff.morph new file mode 100644 index 00000000..8380a9cc --- /dev/null +++ b/old/strata/foundation/groff.morph @@ -0,0 +1,13 @@ +name: groff +kind: chunk +max-jobs: 1 +configure-commands: +- PAGE=A4 ./configure --prefix="$PREFIX" +build-commands: +# hack to avoid a netpbm dependency +- touch doc/gnu.eps +- make +install-commands: +- make DESTDIR="$DESTDIR" install +- ln -s eqn "$DESTDIR$PREFIX/bin/geqn" +- ln -s tbl "$DESTDIR$PREFIX/bin/gtbl" diff --git a/old/strata/foundation/kmod.morph b/old/strata/foundation/kmod.morph new file mode 100644 index 00000000..ee1b1254 --- /dev/null +++ b/old/strata/foundation/kmod.morph @@ -0,0 +1,23 @@ +name: kmod +kind: chunk +configure-commands: +- rm -rf libkmod/docs +- sed -i -e'/SUBDIRS/{s/\S*doc\S*//;s/\S*man\S*//}' Makefile.am +- sed -i -e'/AC_CONFIG_FILES(\[/,/])/{/docs/d}' configure.ac +- autoreconf -fiv +- | + ./configure --prefix="$PREFIX" --bindir="$PREFIX"/bin \ + --libdir="$PREFIX"/lib --sysconfdir=/etc \ + --without-xz --with-zlib \ + --disable-manpages --enable-python +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" pkgconfigdir="$PREFIX"/lib/pkgconfig install +post-install-commands: +- ln -s kmod "$DESTDIR/$PREFIX"/bin/modprobe +- ln -s kmod "$DESTDIR/$PREFIX"/bin/lsmod +- ln -s kmod "$DESTDIR/$PREFIX"/bin/rmmod +- ln -s kmod "$DESTDIR/$PREFIX"/bin/insmod +- ln -s kmod "$DESTDIR/$PREFIX"/bin/modinfo +- ln -s kmod "$DESTDIR/$PREFIX"/bin/depmod diff --git a/old/strata/foundation/libarchive.morph b/old/strata/foundation/libarchive.morph new file mode 100644 index 00000000..bf840f58 --- /dev/null +++ b/old/strata/foundation/libarchive.morph @@ -0,0 +1,6 @@ +name: libarchive +kind: chunk +build-system: autotools +configure-commands: +- autoreconf -ivf +- ./configure --prefix="$PREFIX" --disable-acl diff --git a/old/strata/foundation/libgcrypt.morph b/old/strata/foundation/libgcrypt.morph new file mode 100644 index 00000000..ccd5cb8a --- /dev/null +++ b/old/strata/foundation/libgcrypt.morph @@ -0,0 +1,10 @@ +name: libgcrypt +kind: chunk +build-system: autotools + +pre-configure-commands: +- autoreconf -fi + +configure-commands: +# libgcrypt documentation requires fig2dev, which we don't have +- ./configure --prefix="$PREFIX" --disable-doc diff --git a/old/strata/foundation/libgpg-error.morph b/old/strata/foundation/libgpg-error.morph new file mode 100644 index 00000000..bc8dcdab --- /dev/null +++ b/old/strata/foundation/libgpg-error.morph @@ -0,0 +1,7 @@ +name: libgpg-error +kind: chunk +build-system: autotools +pre-configure-commands: +- autoreconf -fi +configure-commands: +- ./configure --prefix="$PREFIX" --disable-doc diff --git a/old/strata/foundation/lzo.morph b/old/strata/foundation/lzo.morph new file mode 100644 index 00000000..a1a7bbc7 --- /dev/null +++ b/old/strata/foundation/lzo.morph @@ -0,0 +1,5 @@ +name: lzo +kind: chunk +build-system: autotools +configure-commands: +- ./configure --enable-shared=yes --prefix="$PREFIX" diff --git a/old/strata/foundation/openssh.morph b/old/strata/foundation/openssh.morph new file mode 100644 index 00000000..7d38791f --- /dev/null +++ b/old/strata/foundation/openssh.morph @@ -0,0 +1,32 @@ +name: openssh +kind: chunk +configure-commands: +- autoreconf -if +- | + OPENSSL_SEEDS_ITSELF=yes ./configure \ + --prefix="$PREFIX" --sysconfdir=/etc/ssh \ + --datadir="$PREFIX/share/sshd" \ + --libexecdir="$PREFIX/lib/openssh" \ + --with-privsep-path=/var/lib/sshd \ + --with-pam +build-commands: +- make +- | + sed -e "s|@prefix@|$PREFIX|g" \ + -e 's|@STARTUP_SCRIPT_SHELL@|/bin/sh|g' \ + -e 's|@sysconfdir@|/etc/ssh|g' \ + -e 's|@COMMENT_OUT_ECC@||g' \ + sshd-keygen.in >sshd-keygen +- sed -e "s|@prefix@|$PREFIX|g" opensshd.service.in >opensshd.service +install-commands: +- make DESTDIR="$DESTDIR" install +- mkdir -p "$DESTDIR/$PREFIX/sbin" +- chmod go= "$DESTDIR"/var/lib/sshd +- install -m 744 sshd-keygen "$DESTDIR/$PREFIX/sbin/sshd-keygen" +- install -m 755 contrib/ssh-copy-id "$DESTDIR/$PREFIX/bin/ssh-copy-id" +- mkdir -p "$DESTDIR$PREFIX/lib/systemd/system/" +- install -m 644 opensshd.service "$DESTDIR$PREFIX/lib/systemd/system/opensshd.service" +system-integration: + openssh-misc: + 00-enable-opensshd-unit: + - systemctl enable opensshd diff --git a/old/strata/foundation/pciutils.morph b/old/strata/foundation/pciutils.morph new file mode 100644 index 00000000..03bd4a23 --- /dev/null +++ b/old/strata/foundation/pciutils.morph @@ -0,0 +1,11 @@ +name: pciutils +kind: chunk +configure-commands: +- make PREFIX="$PREFIX" ZLIB=no lib/config.mk +- echo PREFIX="$PREFIX" >>lib/config.mk +- echo MANDIR="$PREFIX/share/man" >>lib/config.mk # ensure manpages are always installed in share/man +build-commands: +- make PREFIX="$PREFIX" +install-commands: +- make PREFIX="$PREFIX" DESTDIR="$DESTDIR" install +- make PREFIX="$PREFIX" DESTDIR="$DESTDIR" install-lib diff --git a/old/strata/foundation/rsync.morph b/old/strata/foundation/rsync.morph new file mode 100644 index 00000000..54337412 --- /dev/null +++ b/old/strata/foundation/rsync.morph @@ -0,0 +1,9 @@ +name: rsync +kind: chunk +build-system: autotools +build-commands: +- make proto +- make +install-commands: +- make install +- install -D -m 644 packaging/systemd/rsync.service "$DESTDIR$PREFIX"/lib/systemd/system/rsync.service diff --git a/old/strata/foundation/systemd.morph b/old/strata/foundation/systemd.morph new file mode 100644 index 00000000..d0f962a8 --- /dev/null +++ b/old/strata/foundation/systemd.morph @@ -0,0 +1,31 @@ +name: systemd +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh +- ./configure --prefix="$PREFIX" --sysconfdir=/etc --localstatedir=/var + --disable-manpages + --disable-tests + --libexecdir="$PREFIX/libexec" + --enable-split-usr +post-install-commands: +- mkdir -p "$DESTDIR"/sbin +- ln -s "$PREFIX"/lib/systemd/systemd "$DESTDIR"/sbin/init +- for f in telinit runlevel shutdown poweroff reboot halt; do ln -s "$PREFIX"/bin/systemctl + "$DESTDIR/sbin/$f"; done +- touch "$DESTDIR/etc/machine-id" +- | + cat > "$DESTDIR/etc/systemd/network/10-dhcp.network" << "EOF" + [Match] + Name=e* + + [Network] + DHCP=yes + EOF +# Use the pam config systemd provides +- cp -a "$DESTDIR/$PREFIX"/share/factory/etc/pam.d/* "$DESTDIR/etc/pam.d" + +# Add pam_deny.so to the default systemd-auth pam.d config file. Without +# it, if shadow is configured to use PAM, it would be possible to login +# to a system with the wrong password. +- echo 'auth requisite pam_deny.so' >> "$DESTDIR"/etc/pam.d/system-auth diff --git a/old/strata/foundation/tbdiff.morph b/old/strata/foundation/tbdiff.morph new file mode 100644 index 00000000..a907a109 --- /dev/null +++ b/old/strata/foundation/tbdiff.morph @@ -0,0 +1,3 @@ +name: tbdiff +kind: chunk +build-system: autotools diff --git a/old/strata/foundation/time-zone-database.morph b/old/strata/foundation/time-zone-database.morph new file mode 100644 index 00000000..701d781a --- /dev/null +++ b/old/strata/foundation/time-zone-database.morph @@ -0,0 +1,11 @@ +name: time-zone-database +kind: chunk +description: | + Time zone database. +build-system: manual +install-commands: +# ETCDIR is actually where the 'tzselect', 'zdump' and 'zic' commands get +# installed. Note that tzselect from this chunk will overlap with and override +# the tzselect binary from GLIBC. +- make TOPDIR="$PREFIX" ETCDIR="$PREFIX/bin" TZDIR="$PREFIX/share/zoneinfo" DESTDIR="$DESTDIR" + install diff --git a/old/strata/geolocation.morph b/old/strata/geolocation.morph new file mode 100644 index 00000000..f6d654fc --- /dev/null +++ b/old/strata/geolocation.morph @@ -0,0 +1,18 @@ +name: geolocation +kind: stratum +description: libraries/services that provides location information +build-depends: +- morph: strata/glib-common.morph +- morph: strata/libsoup-common.morph +- morph: strata/NetworkManager-common.morph +chunks: +- name: geocode-glib + repo: upstream:gnome/geocode-glib + ref: a3e183e40053b4bd0fd0b25a070f60597270397a + unpetrify-ref: master + build-system: autotools +- name: geoclue + morph: strata/geolocation/geoclue.morph + repo: upstream:geoclue + ref: ae8f7ab2f1e90f61931c652f2f65996c30c79e87 + unpetrify-ref: 2.4.0 diff --git a/old/strata/geolocation/geoclue.morph b/old/strata/geolocation/geoclue.morph new file mode 100644 index 00000000..3be946bb --- /dev/null +++ b/old/strata/geolocation/geoclue.morph @@ -0,0 +1,13 @@ +name: geoclue +kind: chunk +build-system: autotools +configure-commands: +- | + ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc \ + --disable-nmea-source \ + --with-dbus-service-user=geoclue +system-integration: + geoclue-misc: + 00-add-geoclue-user: + - groupadd geoclue + - useradd -c "GeoClue Owner" -r -g geoclue -s /bin/false geoclue diff --git a/old/strata/glib-common.morph b/old/strata/glib-common.morph new file mode 100644 index 00000000..fd1018a3 --- /dev/null +++ b/old/strata/glib-common.morph @@ -0,0 +1,38 @@ +name: glib-common +kind: stratum +description: GLib and dependencies +build-depends: +- morph: strata/python2-core.morph +- morph: strata/pcre-utils.morph +chunks: +- name: gtk-doc-stub + repo: upstream:gtk-doc-stub + ref: 58ec0d8593541ef7ae522ce42ebec6f98536c4e0 + unpetrify-ref: baserock/morph + build-system: autotools +- name: gnome-common + repo: upstream:gnome-common + ref: 5d61b55e8bea32fe2b52e21682ee4b3719b290c5 + unpetrify-ref: 3.14.0 + build-system: autotools +- name: glib + morph: strata/glib-common/glib.morph + repo: upstream:glib + ref: 90bb8778f2eabf00bee5bff1259c48f1e7b791b8 + unpetrify-ref: 2.52.3 +- name: gobject-introspection + repo: upstream:gobject-introspection + ref: 42bf17a25c7379689fe78f31f332a64e3eded5d2 + unpetrify-ref: 1.48.0 + build-system: autotools + build-depends: + - glib +- name: json-glib + repo: upstream:json-glib + ref: 19f5626b70e72a81dae7ee11b4c3a4d75779a7be + unpetrify-ref: 1.2.0 + build-system: autotools + build-depends: + - glib + - gobject-introspection + - gtk-doc-stub diff --git a/old/strata/glib-common/glib.morph b/old/strata/glib-common/glib.morph new file mode 100644 index 00000000..cdfceed2 --- /dev/null +++ b/old/strata/glib-common/glib.morph @@ -0,0 +1,8 @@ +name: glib +kind: chunk +build-system: autotools +system-integration: + glib-misc: + 01-compile-schemas: + - mkdir -p /usr/share/glib-2.0/schemas + - /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas diff --git a/old/strata/graphics-common.morph b/old/strata/graphics-common.morph new file mode 100644 index 00000000..f99e6093 --- /dev/null +++ b/old/strata/graphics-common.morph @@ -0,0 +1,110 @@ +name: graphics-common +kind: stratum +build-depends: +- morph: strata/glib-common.morph +- morph: strata/mesa-common.morph +- morph: strata/x-common.morph +- morph: strata/icu-common.morph +chunks: +- name: pixman + morph: strata/graphics-common/pixman.morph + repo: upstream:pixman + ref: 87eea99e443b389c978cf37efc52788bf03a0ee0 + unpetrify-ref: pixman-0.32.6 +- name: freetype2 + repo: upstream:freetype2 + ref: 66cf29b1bc869b44863b0de2115bd017dfcce849 + unpetrify-ref: VER-2-6-2 + build-system: autotools +- name: colm-tarball + repo: upstream:colm-tarball + ref: 404ae0f284a3b2d41fcdb53826550e4dfec5c65c + unpetrify-ref: colm-0.12.0 + build-system: autotools +- name: ragel-tarball + repo: upstream:ragel-tarball + ref: d13d67a31c451ebd78ce708a4ef85803d429f158 + unpetrify-ref: ragel-6.10 + build-system: autotools + build-depends: + - colm-tarball +- name: harfbuzz + repo: upstream:harfbuzz + ref: 432ffc47a46d41bea17d839d0d3980e654c6e638 + unpetrify-ref: 1.0.4 + build-system: autotools + build-depends: + - freetype2 + - ragel-tarball +- name: freetype2-harfbuzz + repo: upstream:freetype2 + ref: 66cf29b1bc869b44863b0de2115bd017dfcce849 + unpetrify-ref: VER-2-6-2 + build-system: autotools +- name: fontconfig + morph: strata/graphics-common/fontconfig.morph + repo: upstream:fontconfig + ref: 690f822a1b26b089d86e9843746cab80f3c07fe3 + unpetrify-ref: 2.12.3 + build-depends: + - freetype2-harfbuzz +- name: freefont-otf + morph: strata/graphics-common/freefont-otf.morph + repo: upstream:freefont-otf + ref: 75fa95a912718bb94a135d4bf6b13bb38e186ce7 + unpetrify-ref: baserock/morph +- name: ttf-alee + morph: strata/graphics-common/ttf-alee.morph + repo: upstream:ttf-alee + ref: 97ededc81c03d0a7333a15a9a1e6acc4d0e5ac50 + unpetrify-ref: fonts-alee_13.1 +- name: chinese-fonts-truetype-bkai00mp + morph: strata/graphics-common/chinese-fonts-truetype-bkai00mp.morph + repo: upstream:chinese-fonts-truetype/bkai00mp + ref: aa20d88b0ae7945f0956d7d662e8e5cf1e50b53a + unpetrify-ref: bkai00mp.ttf +- name: chinese-fonts-truetype-gkai00mp + morph: strata/graphics-common/chinese-fonts-truetype-gkai00mp.morph + repo: upstream:chinese-fonts-truetype/gkai00mp + ref: 7569dd2d8f31617a87229a4446b294a0d48055dd + unpetrify-ref: gkai00mp.ttf +- name: chinese-fonts-truetype-bsmi00lp + morph: strata/graphics-common/chinese-fonts-truetype-bsmi00lp.morph + repo: upstream:chinese-fonts-truetype/bsmi00lp + ref: 8f1febdd4f74d56670777c8a5fc25dc6d8cf972c + unpetrify-ref: bsmi00lp.ttf +- name: chinese-fonts-truetype-gbsn00lp + morph: strata/graphics-common/chinese-fonts-truetype-gbsn00lp.morph + repo: upstream:chinese-fonts-truetype/gbsn00lp + ref: be390396044728b4b535a067e3a0dca7daa0b8b6 + unpetrify-ref: gbsn00lp.ttf +- name: libpng + repo: upstream:libpng + ref: 88dd30b232362b65cca374dda39096888163dd6b + unpetrify-ref: libpng-1.6.16-signed + build-system: autotools +- name: libjpeg + repo: upstream:libjpeg + ref: f57ac58ac664ede6bc6e8cd9d88e0edaa366e21a + unpetrify-ref: baserock/morph + build-system: autotools +- name: libtiff + repo: upstream:libtiff + ref: 2f83c385ff3d5493602308b62ca6d7707725b4fd + unpetrify-ref: Release-v4-0-3 + build-system: autotools +- name: cairo + morph: strata/graphics-common/cairo.morph + repo: upstream:cairo + ref: f6fd372a8b31a0bebbdfe36090d6ffc7bab9a2f8 + unpetrify-ref: 1.14.0 + build-depends: + - fontconfig + - freetype2-harfbuzz + - pixman + - libpng +- name: libwebp + repo: upstream:libwebp + ref: fcd94e925a9377cccfcf9de6db278126a52b97a4 + unpetrify-ref: v0.4.3-rc1 + build-system: autotools diff --git a/old/strata/graphics-common/cairo.morph b/old/strata/graphics-common/cairo.morph new file mode 100644 index 00000000..cc5a0725 --- /dev/null +++ b/old/strata/graphics-common/cairo.morph @@ -0,0 +1,5 @@ +name: cairo +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --enable-glesv2 diff --git a/old/strata/graphics-common/chinese-fonts-truetype-bkai00mp.morph b/old/strata/graphics-common/chinese-fonts-truetype-bkai00mp.morph new file mode 100644 index 00000000..8dcde50f --- /dev/null +++ b/old/strata/graphics-common/chinese-fonts-truetype-bkai00mp.morph @@ -0,0 +1,5 @@ +name: chinese-fonts-truetype-bkai00mp +kind: chunk +install-commands: +- mkdir -p "$DESTDIR"/usr/share/fonts/truetype/chinese +- install -p *.ttf "$DESTDIR"/usr/share/fonts/truetype/chinese diff --git a/old/strata/graphics-common/chinese-fonts-truetype-bsmi00lp.morph b/old/strata/graphics-common/chinese-fonts-truetype-bsmi00lp.morph new file mode 100644 index 00000000..8e0c060d --- /dev/null +++ b/old/strata/graphics-common/chinese-fonts-truetype-bsmi00lp.morph @@ -0,0 +1,5 @@ +name: chinese-fonts-truetype-bsmi00lp +kind: chunk +install-commands: +- mkdir -p "$DESTDIR"/usr/share/fonts/truetype/chinese +- install -p *.ttf "$DESTDIR"/usr/share/fonts/truetype/chinese diff --git a/old/strata/graphics-common/chinese-fonts-truetype-gbsn00lp.morph b/old/strata/graphics-common/chinese-fonts-truetype-gbsn00lp.morph new file mode 100644 index 00000000..f1a0d15f --- /dev/null +++ b/old/strata/graphics-common/chinese-fonts-truetype-gbsn00lp.morph @@ -0,0 +1,5 @@ +name: chinese-fonts-truetype-gbsn00lp +kind: chunk +install-commands: +- mkdir -p "$DESTDIR"/usr/share/fonts/truetype/chinese +- install -p *.ttf "$DESTDIR"/usr/share/fonts/truetype/chinese diff --git a/old/strata/graphics-common/chinese-fonts-truetype-gkai00mp.morph b/old/strata/graphics-common/chinese-fonts-truetype-gkai00mp.morph new file mode 100644 index 00000000..c08e0736 --- /dev/null +++ b/old/strata/graphics-common/chinese-fonts-truetype-gkai00mp.morph @@ -0,0 +1,5 @@ +name: chinese-fonts-truetype-gkai00mp +kind: chunk +install-commands: +- mkdir -p "$DESTDIR"/usr/share/fonts/truetype/chinese +- install -p *.ttf "$DESTDIR"/usr/share/fonts/truetype/chinese diff --git a/old/strata/graphics-common/fontconfig.morph b/old/strata/graphics-common/fontconfig.morph new file mode 100644 index 00000000..08a228f5 --- /dev/null +++ b/old/strata/graphics-common/fontconfig.morph @@ -0,0 +1,7 @@ +name: fontconfig +kind: chunk +build-system: autotools +system-integration: + fontconfig-misc: + 00-update-fc-cache: + - fc-cache -f -v diff --git a/old/strata/graphics-common/freefont-otf.morph b/old/strata/graphics-common/freefont-otf.morph new file mode 100644 index 00000000..f021480d --- /dev/null +++ b/old/strata/graphics-common/freefont-otf.morph @@ -0,0 +1,5 @@ +name: freefont-otf +kind: chunk +install-commands: +- mkdir -p "$DESTDIR"/usr/share/fonts/opentype/freefont +- install -p *.otf "$DESTDIR"/usr/share/fonts/opentype/freefont diff --git a/old/strata/graphics-common/pixman.morph b/old/strata/graphics-common/pixman.morph new file mode 100644 index 00000000..7942a964 --- /dev/null +++ b/old/strata/graphics-common/pixman.morph @@ -0,0 +1,5 @@ +name: pixman +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --disable-arm-iwmmxt --disable-arm-iwmmxt2 diff --git a/old/strata/graphics-common/ttf-alee.morph b/old/strata/graphics-common/ttf-alee.morph new file mode 100644 index 00000000..b25e699f --- /dev/null +++ b/old/strata/graphics-common/ttf-alee.morph @@ -0,0 +1,5 @@ +name: ttf-alee +kind: chunk +install-commands: +- mkdir -p "$DESTDIR"/usr/share/fonts/truetype/alee +- install -p *.ttf "$DESTDIR"/usr/share/fonts/truetype/alee diff --git a/old/strata/gtk-deps.morph b/old/strata/gtk-deps.morph new file mode 100644 index 00000000..8b1c7b00 --- /dev/null +++ b/old/strata/gtk-deps.morph @@ -0,0 +1,55 @@ +name: gtk-deps +kind: stratum +description: the GTK+ dependencies stratum +build-depends: +- morph: strata/core.morph +- morph: strata/graphics-common.morph +- morph: strata/x-common.morph +chunks: +- name: pango + repo: upstream:pango + ref: 8daf1de02f8ac7e05b4788dcd6a209ef06e6e03a + unpetrify-ref: 1.40.1 + build-system: autotools +- name: shared-mime-info + morph: strata/gtk-deps/shared-mime-info.morph + repo: upstream:shared-mime-info + ref: f4e094740c36c629b5284ac270a0b08d8c75cb85 + unpetrify-ref: Release-1-6 +- name: gdk-pixbuf + morph: strata/gtk-deps/gdk-pixbuf.morph + repo: upstream:gdk-pixbuf + ref: 807bdc165f3c560d12326ebfd12820ef3130664b + unpetrify-ref: 2.34.0 +- name: atk + repo: upstream:atk + ref: 5a0a8577d29eba636aa0573c469a6200cc93db30 + unpetrify-ref: ATK_2_20_0 + build-system: autotools +- name: at-spi2-core + morph: strata/gtk-deps/at-spi2-core.morph + repo: upstream:at-spi2-core + ref: 5c3aa9275bb4d143ed9b0a94c7e7d92f88eb1520 + unpetrify-ref: AT_SPI2_CORE_2_20_1 +- name: at-spi2-atk + morph: strata/gtk-deps/at-spi2-atk.morph + repo: upstream:at-spi2-atk + ref: 176a34174403ab09cd633b04cbbb2219cfe58a9d + unpetrify-ref: AT_SPI2_ATK_2_20_1 + build-depends: + - at-spi2-core + - atk +- name: libcroco + repo: upstream:libcroco + ref: d8a1a160186a45a5852abc06916f9e452ace9e00 + unpetrify-ref: 0.6.11 + build-system: autotools +- name: librsvg + repo: upstream:librsvg + ref: e68ec17827a7116fc418189d474c5fafa08555b5 + unpetrify-ref: 2.40.16 + build-system: autotools + build-depends: + - gdk-pixbuf + - libcroco + - pango diff --git a/old/strata/gtk-deps/at-spi2-atk.morph b/old/strata/gtk-deps/at-spi2-atk.morph new file mode 100644 index 00000000..ae15e7f1 --- /dev/null +++ b/old/strata/gtk-deps/at-spi2-atk.morph @@ -0,0 +1,5 @@ +name: at-spi2-atk +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc diff --git a/old/strata/gtk-deps/at-spi2-core.morph b/old/strata/gtk-deps/at-spi2-core.morph new file mode 100644 index 00000000..ec641284 --- /dev/null +++ b/old/strata/gtk-deps/at-spi2-core.morph @@ -0,0 +1,5 @@ +name: at-spi2-core +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc diff --git a/old/strata/gtk-deps/gdk-pixbuf.morph b/old/strata/gtk-deps/gdk-pixbuf.morph new file mode 100644 index 00000000..92655e30 --- /dev/null +++ b/old/strata/gtk-deps/gdk-pixbuf.morph @@ -0,0 +1,8 @@ +name: gdk-pixbuf +kind: chunk +build-system: autotools +system-integration: + gdk-pixbuf-misc: + 01-query-loaders: + - mkdir -p /usr/lib/gdk-pixbuf-2.0/2.10.0/ + - /usr/bin/gdk-pixbuf-query-loaders > /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache diff --git a/old/strata/gtk-deps/shared-mime-info.morph b/old/strata/gtk-deps/shared-mime-info.morph new file mode 100644 index 00000000..02ae5555 --- /dev/null +++ b/old/strata/gtk-deps/shared-mime-info.morph @@ -0,0 +1,8 @@ +name: shared-mime-info +kind: chunk +max-jobs: 1 +build-system: autotools +system-integration: + shared-mime-info-misc: + 00-update-mime-database: + - update-mime-database /usr/share/mime diff --git a/old/strata/gtk2.morph b/old/strata/gtk2.morph new file mode 100644 index 00000000..4c8db88a --- /dev/null +++ b/old/strata/gtk2.morph @@ -0,0 +1,12 @@ +name: gtk2 +kind: stratum +description: the gtk2 stratum +build-depends: +- morph: strata/gtk-deps.morph +- morph: strata/x-common.morph +chunks: +- name: gtk+ + morph: strata/gtk2/gtk+.morph + repo: upstream:gtk+ + ref: b5b055721378ffe0269613e49ab5741a315eeb00 + unpetrify-ref: 2.24.28 diff --git a/old/strata/gtk2/gtk+.morph b/old/strata/gtk2/gtk+.morph new file mode 100644 index 00000000..bdc14cc6 --- /dev/null +++ b/old/strata/gtk2/gtk+.morph @@ -0,0 +1,15 @@ +name: gtk+ +kind: chunk +build-system: autotools +configure-commands: +- gdk-pixbuf-query-loaders > loader.cache +- NOCONFIGURE=1 ./autogen.sh +- ./configure --prefix="$PREFIX" --sysconfdir=/etc +build-commands: +- GDK_PIXBUF_MODULE_FILE="$(pwd)/loader.cache" make +install-commands: +- GDK_PIXBUF_MODULE_FILE="$(pwd)/loader.cache" make install DESTDIR="$DESTDIR" +system-integration: + gtk2-misc: + 00-update-im2-cache: + - gtk-query-immodules-2.0 --update-cache diff --git a/old/strata/gtk3.morph b/old/strata/gtk3.morph new file mode 100644 index 00000000..7568ab18 --- /dev/null +++ b/old/strata/gtk3.morph @@ -0,0 +1,13 @@ +name: gtk3 +kind: stratum +description: the gtk3 stratum +build-depends: +- morph: strata/gtk-deps.morph +- morph: strata/wayland-generic.morph +- morph: strata/x-common.morph +chunks: +- name: gtk3 + morph: strata/gtk3/gtk3.morph + repo: upstream:gtk+ + ref: 74d51e86af1e983e4eab317da87fdcfc70aac32a + unpetrify-ref: 3.22.16 diff --git a/old/strata/gtk3/gtk3.morph b/old/strata/gtk3/gtk3.morph new file mode 100644 index 00000000..86e15e89 --- /dev/null +++ b/old/strata/gtk3/gtk3.morph @@ -0,0 +1,15 @@ +name: gtk3 +kind: chunk +build-system: autotools +configure-commands: +- gdk-pixbuf-query-loaders > loader.cache +- NOCONFIGURE=1 ./autogen.sh +- ./configure --prefix="$PREFIX" --sysconfdir=/etc +build-commands: +- GDK_PIXBUF_MODULE_FILE="$(pwd)/loader.cache" make +install-commands: +- GDK_PIXBUF_MODULE_FILE="$(pwd)/loader.cache" make install DESTDIR="$DESTDIR" +system-integration: + gtk3-misc: + 00-update-im3-cache: + - gtk-query-immodules-3.0 --update-cache diff --git a/old/strata/icu-common.morph b/old/strata/icu-common.morph new file mode 100644 index 00000000..3ac48524 --- /dev/null +++ b/old/strata/icu-common.morph @@ -0,0 +1,10 @@ +name: icu-common +kind: stratum +build-depends: +- morph: strata/coreutils-common.morph +chunks: +- name: icu + morph: strata/icu-common/icu.morph + repo: upstream:icu + ref: e2bd11ca1374cccfa50b7d27507ba9fe581be76a + unpetrify-ref: icu4c-52_1-src diff --git a/old/strata/icu-common/icu.morph b/old/strata/icu-common/icu.morph new file mode 100644 index 00000000..5c269ee0 --- /dev/null +++ b/old/strata/icu-common/icu.morph @@ -0,0 +1,19 @@ +name: icu +kind: chunk +configure-commands: +- | + # As per commit 8874a7c7, We issue this sed command when + # building ICU libraries on arm architectures. + case "$MORPH_ARCH" in + *arm*) + sed -e 's/LDFLAGSICUDT/#LDFLAGSICUDT/' -i source/config/mh-linux + ;; + *) + ;; + esac + cd source + ./runConfigureICU Linux --prefix=/usr --sysconfdir=/etc +build-commands: +- cd source; unset TARGET ; make +install-commands: +- cd source; unset TARGET ; make DESTDIR="$DESTDIR" install diff --git a/old/strata/initramfs-utils.morph b/old/strata/initramfs-utils.morph new file mode 100644 index 00000000..610997f3 --- /dev/null +++ b/old/strata/initramfs-utils.morph @@ -0,0 +1,11 @@ +name: initramfs-utils +kind: stratum +description: stratum for initramfs +build-depends: +- morph: strata/build-essential.morph +chunks: +- name: initramfs-scripts + repo: baserock:baserock/initramfs-scripts + ref: e5c71f0ca075bd29ffd55ec0c25804585bc21046 + unpetrify-ref: master + build-system: autotools diff --git a/old/strata/input-common.morph b/old/strata/input-common.morph new file mode 100644 index 00000000..c9b8fc20 --- /dev/null +++ b/old/strata/input-common.morph @@ -0,0 +1,46 @@ +name: input-common +kind: stratum +build-depends: +- morph: strata/device-management.morph +- morph: strata/foundation.morph +- morph: strata/glib-common.morph +- morph: strata/xorg-util-macros-common.morph +- morph: strata/x-common.morph +chunks: +- name: mtdev + repo: upstream:mtdev-git + ref: 4381b78fea54de0e775bf54952b2f95e5a06c57d + unpetrify-ref: v1.1.5 + build-system: autotools +- name: xkeyboard-config + morph: strata/input-common/xkeyboard-config.morph + repo: upstream:xkeyboard-config + ref: 26f344c93f8c6141e9233eb68088ba4fd56bc9ef + unpetrify-ref: xkeyboard-config-2.14 +- name: libevdev + repo: upstream:libevdev + ref: 6f03fd49fb949e46ebccb5dfb54489584896c791 + unpetrify-ref: libevdev-1.4.2 + build-system: autotools +- name: libwacom + repo: upstream:linuxwacom/libwacom + ref: 46774c4b0ece2ee326ca5f913303f055de240c64 + unpetrify-ref: libwacom-0.25 + build-system: autotools +- name: libinput + morph: strata/input-common/libinput.morph + repo: upstream:libinput + ref: 401728a1574ef886ddb7fa19cd8ed196420d7931 + unpetrify-ref: 1.8.0 + build-system: autotools + build-depends: + - mtdev + - libevdev + - libwacom +- name: libxkbcommon-no-x11 + repo: upstream:xorg-lib-libxkbcommon + ref: c43c3c866eb9d52cd8f61e75cbef1c30d07f3a28 + morph: strata/input-common/libxkbcommon-no-x11.morph + unpetrify-ref: xkbcommon-0.5.0 + build-depends: + - xkeyboard-config diff --git a/old/strata/input-common/libinput.morph b/old/strata/input-common/libinput.morph new file mode 100644 index 00000000..89ee1961 --- /dev/null +++ b/old/strata/input-common/libinput.morph @@ -0,0 +1,8 @@ +name: libinput +kind: chunk + +build-system: autotools + +configure-commands: + - NOCONFIGURE=1 ./autogen.sh + - ./configure --prefix="$PREFIX" --disable-documentation --disable-debug-gui --disable-tests diff --git a/old/strata/input-common/libxkbcommon-no-x11.morph b/old/strata/input-common/libxkbcommon-no-x11.morph new file mode 100644 index 00000000..95165aaf --- /dev/null +++ b/old/strata/input-common/libxkbcommon-no-x11.morph @@ -0,0 +1,12 @@ +name: libxkbcommon-no-x11 +kind: chunk + +description: | + xkbcommon is a library to handle keyboard descriptions. + + This version is built without X11 support. If built with X11 support, + it depends on the xcb-xkb library. + +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --disable-x11 diff --git a/old/strata/input-common/xkeyboard-config.morph b/old/strata/input-common/xkeyboard-config.morph new file mode 100644 index 00000000..2195befe --- /dev/null +++ b/old/strata/input-common/xkeyboard-config.morph @@ -0,0 +1,7 @@ +name: xkeyboard-config +kind: chunk +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --disable-runtime-deps +install-commands: +- mkdir -p "$DESTDIR"/"$PREFIX"/share/X11/xkb/ +- make install DESTDIR="$DESTDIR" diff --git a/old/strata/installer-utils.morph b/old/strata/installer-utils.morph new file mode 100644 index 00000000..ddc714b6 --- /dev/null +++ b/old/strata/installer-utils.morph @@ -0,0 +1,11 @@ +name: installer-utils +kind: stratum +description: stratum for Baserock installer script. +build-depends: +- morph: strata/build-essential.morph +chunks: +- name: installer-scripts + morph: strata/installer-utils/installer-scripts.morph + repo: baserock:baserock/installer-scripts + ref: a1629ded9eb499b55b547cd8caa0ade8233b32f4 + unpetrify-ref: master diff --git a/old/strata/installer-utils/installer-scripts.morph b/old/strata/installer-utils/installer-scripts.morph new file mode 100644 index 00000000..e42313a8 --- /dev/null +++ b/old/strata/installer-utils/installer-scripts.morph @@ -0,0 +1,4 @@ +name: installer-scripts +kind: chunk +install-commands: +- install -D -m 755 baserock-installer "$DESTDIR/usr/lib/baserock-installer/installer" diff --git a/old/strata/ivi-common.morph b/old/strata/ivi-common.morph new file mode 100644 index 00000000..80c519b1 --- /dev/null +++ b/old/strata/ivi-common.morph @@ -0,0 +1,12 @@ +name: ivi-common +kind: stratum +description: Components shared with different IVI systems +build-depends: +- morph: strata/cpp-common-libs.morph +- morph: strata/glib-common.morph +chunks: +- name: automotive-message-broker + morph: strata/ivi-common/automotive-message-broker.morph + repo: upstream:automotive-message-broker + ref: 5cac4bd2958ea24ac6913be5baa0dfcda6466089 + unpetrify-ref: '0.14' diff --git a/old/strata/ivi-common/automotive-message-broker.morph b/old/strata/ivi-common/automotive-message-broker.morph new file mode 100644 index 00000000..50428735 --- /dev/null +++ b/old/strata/ivi-common/automotive-message-broker.morph @@ -0,0 +1,20 @@ +name: automotive-message-broker +kind: chunk +description: Automotive Message Broker framework +build-system: cmake +post-install-commands: +- mkdir -p "$DESTDIR/usr/lib/systemd/system" +- | + cat >"$DESTDIR/usr/lib/systemd/system/ambd.service" <<EOF + [Unit] + Description=Automotive Message Broker + After=syslog.target + + [Service] + Type=dbus + BusName=org.automotive.message.broker + ExecStart=/usr/bin/ambd + + [Install] + WantedBy=multi-user.target + EOF diff --git a/old/strata/libdrm-common.morph b/old/strata/libdrm-common.morph new file mode 100644 index 00000000..ebaf207e --- /dev/null +++ b/old/strata/libdrm-common.morph @@ -0,0 +1,17 @@ +name: libdrm-common +kind: stratum +build-depends: +- morph: strata/xorg-util-macros-common.morph +chunks: +- name: xorg-lib-libpciaccess + repo: upstream:xorg-lib-libpciaccess + ref: bbd1acdd1d25b9a68f4b7913a4094af20d7cf78f + unpetrify-ref: libpciaccess-0.13.4 + build-system: autotools +- name: drm + repo: upstream:drm + morph: strata/libdrm-common/drm.morph + ref: 81312f3730c14a2930a7784493701809c7f04a26 + unpetrify-ref: libdrm-2.4.81 + build-depends: + - xorg-lib-libpciaccess diff --git a/old/strata/libdrm-common/drm.morph b/old/strata/libdrm-common/drm.morph new file mode 100644 index 00000000..e6b8ed28 --- /dev/null +++ b/old/strata/libdrm-common/drm.morph @@ -0,0 +1,7 @@ +name: drm +kind: chunk +build-system: autotools +configure-commands: +- | + ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc \ + --enable-tegra-experimental-api --enable-udev diff --git a/old/strata/libsoup-common.morph b/old/strata/libsoup-common.morph new file mode 100644 index 00000000..759a842c --- /dev/null +++ b/old/strata/libsoup-common.morph @@ -0,0 +1,11 @@ +name: libsoup-common +kind: stratum +build-depends: +- morph: strata/core.morph +- morph: strata/glib-common.morph +chunks: +- name: libsoup + morph: strata/libsoup-common/libsoup.morph + repo: upstream:libsoup + ref: c29630a8fdb4e6997ec27da4af545bddefab35ad + unpetrify-ref: 2.48.0 diff --git a/old/strata/libsoup-common/libsoup.morph b/old/strata/libsoup-common/libsoup.morph new file mode 100644 index 00000000..804925aa --- /dev/null +++ b/old/strata/libsoup-common/libsoup.morph @@ -0,0 +1,6 @@ +name: libsoup +kind: chunk +build-system: autotools +configure-commands: +- NOCONFIGURE=1 ./autogen.sh +- ./configure --prefix="$PREFIX" --sysconfdir=/etc --disable-tls-check diff --git a/old/strata/lighttpd-server.morph b/old/strata/lighttpd-server.morph new file mode 100644 index 00000000..9aa166fd --- /dev/null +++ b/old/strata/lighttpd-server.morph @@ -0,0 +1,12 @@ +name: lighttpd-server +kind: stratum +description: lighttpd web server +build-depends: +- morph: strata/tools.morph +- morph: strata/pcre-utils.morph +chunks: +- name: lighttpd + morph: strata/lighttpd-server/lighttpd.morph + repo: upstream:lighttpd + ref: 12e4e21763da770034267ff0a7b660876930f789 + unpetrify-ref: baserock/morph diff --git a/old/strata/lighttpd-server/lighttpd.morph b/old/strata/lighttpd-server/lighttpd.morph new file mode 100644 index 00000000..ae371c52 --- /dev/null +++ b/old/strata/lighttpd-server/lighttpd.morph @@ -0,0 +1,6 @@ +name: lighttpd +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh +- ./configure --prefix="$PREFIX" --with-openssl --with-openssl-libs=/usr/lib diff --git a/old/strata/llvm-common.morph b/old/strata/llvm-common.morph new file mode 100644 index 00000000..66bfed43 --- /dev/null +++ b/old/strata/llvm-common.morph @@ -0,0 +1,10 @@ +name: llvm-common +kind: stratum +build-depends: +- morph: strata/core.morph +chunks: +- name: llvm + morph: strata/llvm-common/llvm.morph + repo: upstream:llvm + ref: c8fccc53ed66d505898f8850bcc690c977a7c9a7 + unpetrify-ref: release_40 diff --git a/old/strata/llvm-common/llvm.morph b/old/strata/llvm-common/llvm.morph new file mode 100644 index 00000000..08c32fa5 --- /dev/null +++ b/old/strata/llvm-common/llvm.morph @@ -0,0 +1,24 @@ +name: llvm +kind: chunk +description: Low Level Virtual Machine +build-system: cmake +configure-commands: +- | + mkdir build/ + cd build/ + + CC=gcc CXX=g++ \ + cmake -DCMAKE_INSTALL_PREFIX="$PREFIX" \ + -DLLVM_ENABLE_FFI=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DLLVM_BUILD_LLVM_DYLIB=ON \ + -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \ + -Wno-dev .. +build-commands: +- | + cd build/ + make +install-commands: +- | + cd build/ + make DESTDIR="$DESTDIR" install diff --git a/old/strata/lorry.morph b/old/strata/lorry.morph new file mode 100644 index 00000000..c5913c4f --- /dev/null +++ b/old/strata/lorry.morph @@ -0,0 +1,125 @@ +name: lorry +kind: stratum +description: | + Lorry and tools for working with version control systems other than Git. + + Lorry is a tool for creating and maintaining Git mirrors of source code + repositories, which aims to support most version control systems in use + by software projects that are used Baserock systems. + + The commandline tools 'hg', 'bzr', 'svn', and 'cvs' are also made available + by this stratum. +build-depends: +- morph: strata/foundation.morph +- morph: strata/python-cliapp.morph +- morph: strata/pcre-utils.morph # for swig +chunks: +- name: bzr-tarball + repo: upstream:bzr-tarball + ref: e61c7edb4789abcd0f73c30fe719fa6fea478a52 + unpetrify-ref: baserock/morph + build-system: python-distutils +- name: python-fastimport + repo: upstream:python-fastimport + ref: 6500a5e7d82651ade9002d44e3ecc71a50302616 + unpetrify-ref: baserock/morph + build-system: python-distutils +- name: bzr-fastimport + repo: upstream:bzr-fastimport + ref: b3cda9967f857127bd4dab5eb72223a95916f5ea + unpetrify-ref: baserock/morph + build-system: python-distutils + build-depends: + - bzr-tarball + - python-fastimport +- name: cvs-tarball + morph: strata/lorry/cvs-tarball.morph + repo: upstream:cvs-tarball + ref: ca4cd317a75ef4349563b5a9a734561beb4a4f98 + unpetrify-ref: baserock/morph +- name: libapr + morph: strata/lorry/libapr.morph + repo: upstream:libapr + ref: 10835ec9a2d8bb9f7b867d15f29984d29744f028 + unpetrify-ref: 1.5.1 +- name: libapr-util + morph: strata/lorry/libapr-util.morph + repo: upstream:libapr-util + ref: 718a507e2e33d87ab15ff80cfe80aea8ae6c7163 + unpetrify-ref: 1.5.4 + build-depends: + - libapr +- name: perl-dbi-tarball + morph: strata/lorry/perl-dbi-tarball.morph + repo: upstream:perl-dbi-tarball + ref: 09e269cff811f0c1881ea0d6b7571173bab8377b + unpetrify-ref: baserock/morph +- name: perl-dbd-sqlite-tarball + repo: upstream:perl-dbd-sqlite-tarball + ref: 485b97be9f2f2abf5a40923b5fd85f75714a8c02 + unpetrify-ref: baserock/morph + build-system: cpan + build-depends: + - perl-dbi-tarball +- name: libserf + morph: strata/lorry/libserf.morph + repo: upstream:libserf-tarball + ref: f143c3cab79c59dd57124f19d16ac35253843136 + unpetrify-ref: master + build-depends: + - libapr + - libapr-util +- name: swig + morph: strata/lorry/swig.morph + repo: upstream:swig + ref: 4e23595704d6ddffe4e50ca41bbc90e4b8893f4d + unpetrify-ref: rel-3.0.6 +- name: neon + morph: strata/lorry/neon.morph + repo: upstream:neon + ref: 837374e9d797e216f1de684595cefe791f67c0e4 + unpetrify-ref: baserock/morph +- name: subversion-tarball + morph: strata/lorry/subversion-tarball.morph + repo: upstream:subversion-tarball + ref: bb0ef45f7c46b0ae221b26265ef98a768c33f820 + unpetrify-ref: subversion-1.8.13 + build-depends: + - swig + - libapr + - libapr-util + - libserf + - neon +- name: mercurial-tarball + morph: strata/lorry/mercurial-tarball.morph + repo: upstream:mercurial-tarball + ref: 4b0aa73b8c69bd5b7521337809f7bc4714209a5a + unpetrify-ref: baserock/morph +- name: hg-fast-export + morph: strata/lorry/hg-fast-export.morph + repo: upstream:hg-fast-export + ref: 09a472aa58da0417a11a22bae172785f7cb2e80f + unpetrify-ref: baserock/morph + build-depends: + - mercurial-tarball +- name: cvsps + morph: strata/lorry/cvsps.morph + repo: upstream:cvsps + ref: 71c6d1f5668f405a7b259a0aac0d423f6c9b4d49 + unpetrify-ref: baserock/morph +- name: lorry + morph: strata/lorry/lorry.morph + repo: baserock:baserock/lorry + ref: dd9f0de2bc8aadb57f20ce998fcdefbda91f59b6 + unpetrify-ref: master + build-depends: + - bzr-tarball + - python-fastimport + - bzr-fastimport + - perl-dbi-tarball + - perl-dbd-sqlite-tarball + - cvs-tarball + - cvsps + - subversion-tarball + - mercurial-tarball + - hg-fast-export diff --git a/old/strata/lorry/cvs-tarball.morph b/old/strata/lorry/cvs-tarball.morph new file mode 100644 index 00000000..e03250e2 --- /dev/null +++ b/old/strata/lorry/cvs-tarball.morph @@ -0,0 +1,10 @@ +name: cvs-tarball +kind: chunk +build-system: autotools +pre-configure-commands: +- cp /usr/share/automake*/config.guess build-aux +- cp /usr/share/automake*/config.sub build-aux +configure-commands: +- YACC='bison -y' ./configure --prefix "$PREFIX" --with-external-zlib --without-gssapi + --without-krb4 --disable-dependency-tracking --disable-nls --disable-rpath + --enable-rootcommit diff --git a/old/strata/lorry/cvsps.morph b/old/strata/lorry/cvsps.morph new file mode 100644 index 00000000..ff53784e --- /dev/null +++ b/old/strata/lorry/cvsps.morph @@ -0,0 +1,6 @@ +name: cvsps +kind: chunk +build-commands: +- make +install-commands: +- make install prefix="$DESTDIR$PREFIX" diff --git a/old/strata/lorry/hg-fast-export.morph b/old/strata/lorry/hg-fast-export.morph new file mode 100644 index 00000000..ef99a97a --- /dev/null +++ b/old/strata/lorry/hg-fast-export.morph @@ -0,0 +1,10 @@ +name: hg-fast-export +kind: chunk +install-commands: +- install -d "$DESTDIR/$PREFIX/bin" +- install -m 0755 hg-fast-export.py "$DESTDIR/$PREFIX/bin/" +- install -m 0755 hg-reset.py "$DESTDIR/$PREFIX/bin/" +- install -m 0755 hg-fast-export.sh "$DESTDIR/$PREFIX/bin/hg-fast-export" +- install -m 0755 hg-reset.sh "$DESTDIR/$PREFIX/bin/hg-reset" +- install -d "$DESTDIR/$PREFIX/lib/python2.7/site-packages" +- install -m 0644 hg2git.py "$DESTDIR/$PREFIX/lib/python2.7/site-packages/" diff --git a/old/strata/lorry/libapr-util.morph b/old/strata/lorry/libapr-util.morph new file mode 100644 index 00000000..26db03ba --- /dev/null +++ b/old/strata/lorry/libapr-util.morph @@ -0,0 +1,7 @@ +name: libapr-util +kind: chunk +build-system: autotools +pre-configure-commands: +- ./buildconf --with-apr=/usr/share/apr-1 +configure-commands: +- ./configure --prefix "$PREFIX" --with-apr=/usr/bin/apr-1-config diff --git a/old/strata/lorry/libapr.morph b/old/strata/lorry/libapr.morph new file mode 100644 index 00000000..57d35b84 --- /dev/null +++ b/old/strata/lorry/libapr.morph @@ -0,0 +1,21 @@ +name: libapr +kind: chunk +build-system: autotools +pre-configure-commands: +- ./buildconf +configure-commands: +- | + ./configure \ + --prefix "$PREFIX" \ + --disable-static \ + --with-installbuilddir=/usr/share/apr-1/build +post-install-commands: +- | + # Install files required for apr-util + for file in find_apr.m4 apr_common.m4 install.sh gen-build.py \ + get-version.sh config.guess config.sub + do + cp build/$file "$DESTDIR/$PREFIX"/share/apr-1/build/"$file" + done + # Create a symlink in the build directory to the include directory + ln -sf /usr/include/apr-1 "$DESTDIR/$PREFIX"/share/apr-1/build/ diff --git a/old/strata/lorry/libserf.morph b/old/strata/lorry/libserf.morph new file mode 100644 index 00000000..d4bb415d --- /dev/null +++ b/old/strata/lorry/libserf.morph @@ -0,0 +1,6 @@ +name: libserf +kind: chunk +build-system: autotools +pre-configure-commands: +- cp /usr/share/automake*/config.guess build +- cp /usr/share/automake*/config.sub build diff --git a/old/strata/lorry/lorry.morph b/old/strata/lorry/lorry.morph new file mode 100644 index 00000000..6b8cb355 --- /dev/null +++ b/old/strata/lorry/lorry.morph @@ -0,0 +1,3 @@ +name: lorry +kind: chunk +build-system: python-distutils diff --git a/old/strata/lorry/mercurial-tarball.morph b/old/strata/lorry/mercurial-tarball.morph new file mode 100644 index 00000000..03264f56 --- /dev/null +++ b/old/strata/lorry/mercurial-tarball.morph @@ -0,0 +1,6 @@ +name: mercurial-tarball +kind: chunk +build-commands: +- make build PREFIX="$PREFIX" +install-commands: +- make install-bin PREFIX="$PREFIX" DESTDIR="$DESTDIR" diff --git a/old/strata/lorry/neon.morph b/old/strata/lorry/neon.morph new file mode 100644 index 00000000..19f8e83f --- /dev/null +++ b/old/strata/lorry/neon.morph @@ -0,0 +1,8 @@ +name: neon +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh +- ./configure --prefix="$PREFIX" --with-ssl +install-commands: +- make install-lib install-headers install-config DESTDIR="$DESTDIR" diff --git a/old/strata/lorry/perl-dbi-tarball.morph b/old/strata/lorry/perl-dbi-tarball.morph new file mode 100644 index 00000000..9eb3a537 --- /dev/null +++ b/old/strata/lorry/perl-dbi-tarball.morph @@ -0,0 +1,5 @@ +name: perl-dbi-tarball +kind: chunk +build-system: cpan +build-commands: +- make -j1 diff --git a/old/strata/lorry/subversion-tarball.morph b/old/strata/lorry/subversion-tarball.morph new file mode 100644 index 00000000..8fd1bc08 --- /dev/null +++ b/old/strata/lorry/subversion-tarball.morph @@ -0,0 +1,12 @@ +name: subversion-tarball +kind: chunk +build-system: autotools +pre-configure-commands: +- LIBTOOL_CONFIG=/usr/share/libtool/build-aux/ ./autogen.sh +configure-commands: +- python gen-make.py build.conf +- ./configure --prefix="$PREFIX" --without-berkeley-db +install-commands: +- make install DESTDIR="$DESTDIR" +- make swig-pl +- make install-swig-pl DESTDIR="$DESTDIR" diff --git a/old/strata/lorry/swig.morph b/old/strata/lorry/swig.morph new file mode 100644 index 00000000..8a7d51b6 --- /dev/null +++ b/old/strata/lorry/swig.morph @@ -0,0 +1,7 @@ +name: swig +kind: chunk +build-system: autotools +pre-configure-commands: +- ./autogen.sh +configure-commands: +- ./configure --prefix="$PREFIX" --disable-ccache diff --git a/old/strata/lua53.morph b/old/strata/lua53.morph new file mode 100644 index 00000000..5cea88fb --- /dev/null +++ b/old/strata/lua53.morph @@ -0,0 +1,11 @@ +name: lua53 +kind: stratum +description: Interpreter for the lua 5.3 scripting language. +build-depends: +- morph: strata/core.morph +chunks: +- name: lua53 + morph: strata/lua53/lua53.morph + repo: upstream:lua-github + ref: a7d799273a401040945826dbe1bd9edb8dab0662 + unpetrify-ref: baserock/5.3.2 diff --git a/old/strata/lua53/lua53.morph b/old/strata/lua53/lua53.morph new file mode 100644 index 00000000..c8c43d64 --- /dev/null +++ b/old/strata/lua53/lua53.morph @@ -0,0 +1,9 @@ +name: lua53 +kind: chunk +build-system: manual +build-commands: +- make linux +install-commands: +- make INSTALL_TOP="$DESTDIR/$PREFIX" install +- mkdir -p "$DESTDIR/$PREFIX/lib/pkgconfig/" +- cp lua.pc "$DESTDIR/$PREFIX/lib/pkgconfig/" diff --git a/old/strata/mesa-common.morph b/old/strata/mesa-common.morph new file mode 100644 index 00000000..79215bdc --- /dev/null +++ b/old/strata/mesa-common.morph @@ -0,0 +1,22 @@ +name: mesa-common +kind: stratum +build-depends: +- morph: strata/foundation.morph +- morph: strata/llvm-common.morph +- morph: strata/libdrm-common.morph +- morph: strata/wayland-generic.morph +- morph: strata/python2-core.morph +- morph: strata/x-common.morph +chunks: +- name: mesa + morph: strata/mesa-common/mesa.morph + repo: upstream:mesa + ref: f60875e211388e299724063af40c01738cc5d819 + unpetrify-ref: mesa-17.1.3 +- name: libepoxy + repo: upstream:libepoxy + ref: e2c33af5bfcfc9d168f9e776156dd47c33f428b3 + unpetrify-ref: v1.3.1 + build-system: autotools + build-depends: + - mesa diff --git a/old/strata/mesa-common/mesa.morph b/old/strata/mesa-common/mesa.morph new file mode 100644 index 00000000..abd58b87 --- /dev/null +++ b/old/strata/mesa-common/mesa.morph @@ -0,0 +1,24 @@ +name: mesa +kind: chunk +build-system: autotools +configure-commands: +- | + cpu=$(echo $TARGET | cut -d '-' -f 1) + case "$cpu" in + arm*) + DRIDRIVERS=no + GALLIUMDRIVERS=nouveau,freedreno,svga,swrast,vc4 + VULKANDRIVERS=no + ;; + *) + DRIDRIVERS=yes + GALLIUMDRIVERS=r300,svga,swrast,virgl,swr + VULKANDRIVERS=intel + ;; + esac + ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc \ + --enable-gles2 \ + --with-egl-platforms=drm,wayland,x11 \ + --with-vulkan-drivers="$VULKANDRIVERS" \ + --with-gallium-drivers="$GALLIUMDRIVERS" \ + --with-dri-drivers="$DRIDRIVERS" diff --git a/old/strata/mesa-demos-common.morph b/old/strata/mesa-demos-common.morph new file mode 100644 index 00000000..eb20c822 --- /dev/null +++ b/old/strata/mesa-demos-common.morph @@ -0,0 +1,37 @@ +name: mesa-demos-common +kind: stratum +build-depends: +- morph: strata/mesa-common.morph +chunks: +- name: xorg-util-makedepend + repo: upstream:xorg-util-makedepend + ref: 30859adfd6a6523a92a637ca26bd61ce59680a1b + unpetrify-ref: makedepend-1.0.5 + build-system: autotools +- name: glu + repo: upstream:glu + ref: 069211570c32a8d5848e127975a2943e9d8fc6b9 + unpetrify-ref: glu-9.0.0-2-g0692115 + build-system: autotools +- name: glut + repo: upstream:glut + ref: ee89e9aeb49604b036e06f1df6478d32006b30cd + unpetrify-ref: master + build-system: autotools + build-depends: + - glu + - xorg-util-makedepend +- name: glew + morph: strata/mesa-demos-common/glew.morph + repo: upstream:glew-tarball + ref: 706e5d657396530bbd3d91a4e03b5f6b4cb6fa6f + unpetrify-ref: glew-1.13.0 +- name: mesa-demos + build-system: autotools + repo: upstream:mesa-demos + ref: 887e30bd1cc727150dc29556f228a94ef42dc33c + unpetrify-ref: mesa-demos-8.3.0 + build-depends: + - glu + - glew + - glut diff --git a/old/strata/mesa-demos-common/glew.morph b/old/strata/mesa-demos-common/glew.morph new file mode 100644 index 00000000..202e00a2 --- /dev/null +++ b/old/strata/mesa-demos-common/glew.morph @@ -0,0 +1,6 @@ +name: glew +kind: chunk +build-system: manual +install-commands: +- make LIBDIR="/usr/lib" +- make LIBDIR="/usr/lib" DESTDIR="$DESTDIR" install diff --git a/old/strata/morph-utils.morph b/old/strata/morph-utils.morph new file mode 100644 index 00000000..f713ba18 --- /dev/null +++ b/old/strata/morph-utils.morph @@ -0,0 +1,54 @@ +name: morph-utils +kind: stratum +build-depends: +- morph: strata/core.morph +- morph: strata/ostree-core.morph +- morph: strata/python-cliapp.morph +- morph: strata/python2-core.morph +- morph: strata/python-pygobject.morph +- morph: strata/python-wsgi.morph +chunks: +- name: python-ttystatus + morph: strata/morph-utils/python-ttystatus.morph + repo: upstream:python-ttystatus + ref: 47d871216cea6ce3b9d6efd70e9a0f38ab8604f0 + unpetrify-ref: baserock/morph +- name: git-fat + morph: strata/tools/git-fat.morph + repo: upstream:git-fat + ref: 208f88d0f0ef04c25e8a231979eb0083f57b1610 + unpetrify-ref: baserock/morph +- name: pyfilesystem + morph: strata/morph-utils/pyfilesystem.morph + repo: upstream:pyfilesystem + ref: 821f7db1ce3a3e1ac53fa514ddacbc2871eac0f6 + unpetrify-ref: baserock/morph +- name: cmdtest + morph: strata/morph-utils/cmdtest.morph + repo: upstream:cmdtest + ref: ac91791842c6e7e6eda3213916af413255999c7b + unpetrify-ref: baserock/morph + build-depends: + - python-ttystatus +- name: pylru + repo: upstream:python-packages/pylru + ref: 221dd259f5c34562c835611d1cf62384b9019da4 + unpetrify-ref: master + build-system: python-distutils +- name: morph + repo: baserock:baserock/morph + ref: 74e8d1b9aeb47d957d526250784d2c0087e59bf9 + unpetrify-ref: master + build-system: python-distutils + build-depends: + - cmdtest + - pyfilesystem + - pylru + +# This chunk isn't required to use Morph, but is required to do automated +# migrations within the definitions.git repo. +- name: ruamel.yaml + repo: upstream:python-packages/ruamel.yaml + ref: f3de88b82bf5e3902c44f6c30aed065e56626ee6 + unpetrify-ref: 0.10.5 + build-system: python-distutils diff --git a/old/strata/morph-utils/cmdtest.morph b/old/strata/morph-utils/cmdtest.morph new file mode 100644 index 00000000..3e1c71c6 --- /dev/null +++ b/old/strata/morph-utils/cmdtest.morph @@ -0,0 +1,6 @@ +name: cmdtest +kind: chunk +build-commands: +- python setup.py build +install-commands: +- python setup.py install --prefix=/usr --root "$DESTDIR" diff --git a/old/strata/morph-utils/pyfilesystem.morph b/old/strata/morph-utils/pyfilesystem.morph new file mode 100644 index 00000000..a4931dfa --- /dev/null +++ b/old/strata/morph-utils/pyfilesystem.morph @@ -0,0 +1,6 @@ +name: pyfilesystem +kind: chunk +build-commands: +- python setup.py build +install-commands: +- python setup.py install --prefix="$PREFIX" --root "$DESTDIR" diff --git a/old/strata/morph-utils/python-ttystatus.morph b/old/strata/morph-utils/python-ttystatus.morph new file mode 100644 index 00000000..e45ef7a8 --- /dev/null +++ b/old/strata/morph-utils/python-ttystatus.morph @@ -0,0 +1,6 @@ +name: python-ttystatus +kind: chunk +build-commands: +- python setup.py build +install-commands: +- python setup.py install --prefix=/usr --root "$DESTDIR" diff --git a/old/strata/mtd-utilities.morph b/old/strata/mtd-utilities.morph new file mode 100644 index 00000000..67ff09a8 --- /dev/null +++ b/old/strata/mtd-utilities.morph @@ -0,0 +1,11 @@ +name: mtd-utilities +kind: stratum +build-depends: +- morph: strata/foundation.morph +- morph: strata/core.morph +chunks: +- name: mtd-utils + morph: strata/mtd-utilities/mtd-utils.morph + repo: upstream:mtd-utils + ref: 9f107132a6a073cce37434ca9cda6917dd8d866b + unpetrify-ref: v1.5.1 diff --git a/old/strata/mtd-utilities/mtd-utils.morph b/old/strata/mtd-utilities/mtd-utils.morph new file mode 100644 index 00000000..59dfcc68 --- /dev/null +++ b/old/strata/mtd-utilities/mtd-utils.morph @@ -0,0 +1,6 @@ +name: mtd-utils +kind: chunk +build-commands: +- make +install-commands: +- make install diff --git a/old/strata/multimedia-common.morph b/old/strata/multimedia-common.morph new file mode 100644 index 00000000..3df50d0d --- /dev/null +++ b/old/strata/multimedia-common.morph @@ -0,0 +1,64 @@ +name: multimedia-common +kind: stratum +description: Mutimedia Libraries +build-depends: +- morph: strata/core.morph +chunks: +- name: opus + repo: upstream:opus + ref: 655cc54c564b84ef2827f0b2152ce3811046201e + unpetrify-ref: v1.1.2 + build-system: autotools +- name: ogg + repo: upstream:ogg-git + ref: 9b2ba419aecb4a1c97114545d57174593dc13111 + unpetrify-ref: master + build-system: autotools +- name: libvorbis + repo: upstream:libvorbis-git + ref: 7187e7a48f0c3ba32cc080f6bc3d921fe4ec6cc2 + unpetrify-ref: master + build-system: autotools + build-depends: + - ogg +- name: tremor + repo: upstream:tremor + ref: b56ffce0c0773ec5ca04c466bc00b1bbcaf65aef + unpetrify-ref: master + build-system: autotools + build-depends: + - ogg +- name: flac + repo: upstream:flac + ref: 6ced857c253d5da286bf31adfd74a627aaa43c77 + unpetrify-ref: master + build-system: autotools + build-depends: + - ogg +- name: libmad + morph: strata/multimedia-common/libmad.morph + repo: upstream:libmad-tarball + ref: f2b21c41aef22e81b605afe96e1e6ef1bea0cfdc + unpetrify-ref: baserock/0.15.1b-gstreamer-sdk-fork +- name: yasm + morph: strata/multimedia-common/yasm.morph + repo: upstream:yasm + ref: fefefe262eb29081f0bcb4d48f2d476ce5730562 + unpetrify-ref: baserock/morph +- name: libvpx + morph: strata/multimedia-common/libvpx.morph + repo: upstream:libvpx + ref: cbecf57f3e0d85a7b7f97f3ab7c507f6fe640a93 + unpetrify-ref: v1.5.0 + build-depends: + - yasm +- name: libmpeg2 + morph: strata/multimedia-common/libmpeg2.morph + repo: upstream:libmpeg2-tarball + ref: d1e80dc431815df3ac6eeed654eeccaf8d6beea7 + unpetrify-ref: libmpeg2-0.5.1 +- name: orc + morph: strata/multimedia-common/orc.morph + repo: upstream:orc + ref: 831886d1f70d3cc21a913b2e335da38af4cae524 + unpetrify-ref: orc-0.4.25 diff --git a/old/strata/multimedia-common/libmad.morph b/old/strata/multimedia-common/libmad.morph new file mode 100644 index 00000000..5e9b1987 --- /dev/null +++ b/old/strata/multimedia-common/libmad.morph @@ -0,0 +1,10 @@ +name: libmad +kind: chunk +build-system: autotools +configure-commands: +- | + OPTS= + case $MORPH_ARCH in + mips64*) ARCH_FLAGS="--enable-fpm=64bit" ;; + esac + ./configure --prefix="$PREFIX" --sysconfdir=/etc $ARCH_FLAGS diff --git a/old/strata/multimedia-common/libmpeg2.morph b/old/strata/multimedia-common/libmpeg2.morph new file mode 100644 index 00000000..6e55e59f --- /dev/null +++ b/old/strata/multimedia-common/libmpeg2.morph @@ -0,0 +1,6 @@ +name: libmpeg2 +kind: chunk +build-system: autotools +configure-commands: +# Explicitly just configure, avoid running the boostrap.sh script +- ./configure --prefix="$PREFIX" diff --git a/old/strata/multimedia-common/libvpx.morph b/old/strata/multimedia-common/libvpx.morph new file mode 100644 index 00000000..011642f4 --- /dev/null +++ b/old/strata/multimedia-common/libvpx.morph @@ -0,0 +1,14 @@ +name: libvpx +kind: chunk +build-system: autotools +configure-commands: +# Workarond upstream bug: https://bugs.chromium.org/p/webm/issues/detail?id=1121 +- | + case "$MORPH_ARCH" in + armv7lhf) + CROSS=" " ./configure --prefix="$PREFIX" --target=armv7-linux-gcc + ;; + *) + ./configure --prefix="$PREFIX" + ;; + esac diff --git a/old/strata/multimedia-common/orc.morph b/old/strata/multimedia-common/orc.morph new file mode 100644 index 00000000..97a5da9d --- /dev/null +++ b/old/strata/multimedia-common/orc.morph @@ -0,0 +1,5 @@ +name: orc +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --disable-gtk-doc diff --git a/old/strata/multimedia-common/yasm.morph b/old/strata/multimedia-common/yasm.morph new file mode 100644 index 00000000..437ae97d --- /dev/null +++ b/old/strata/multimedia-common/yasm.morph @@ -0,0 +1,4 @@ +name: yasm +kind: chunk +max-jobs: 1 +build-system: autotools diff --git a/old/strata/multimedia-gstreamer-openmax-generic.morph b/old/strata/multimedia-gstreamer-openmax-generic.morph new file mode 100644 index 00000000..1a006971 --- /dev/null +++ b/old/strata/multimedia-gstreamer-openmax-generic.morph @@ -0,0 +1,14 @@ +name: multimedia-gstreamer-openmax-generic +kind: stratum +description: GStreamer OpenMAX IL wrapper plugin +build-depends: +- morph: strata/multimedia-gstreamer.morph +chunks: +- name: gst-omx + morph: strata/multimedia-gstreamer-openmax-generic/gst-omx.morph + repo: upstream:gst-omx + ref: b4c7c726ef443cf8a89df26026706e391846bb4a + unpetrify-ref: 1.2.0 + submodules: + common: + url: upstream:gstreamer-common diff --git a/old/strata/multimedia-gstreamer-openmax-generic/gst-omx.morph b/old/strata/multimedia-gstreamer-openmax-generic/gst-omx.morph new file mode 100644 index 00000000..3f7be605 --- /dev/null +++ b/old/strata/multimedia-gstreamer-openmax-generic/gst-omx.morph @@ -0,0 +1,7 @@ +name: gst-omx +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" + --disable-gtk-doc + --with-omx-target=generic diff --git a/old/strata/multimedia-gstreamer.morph b/old/strata/multimedia-gstreamer.morph new file mode 100644 index 00000000..debf9610 --- /dev/null +++ b/old/strata/multimedia-gstreamer.morph @@ -0,0 +1,63 @@ +name: multimedia-gstreamer +kind: stratum +description: GStreamer multimedia components +build-depends: +- morph: strata/libsoup-common.morph +- morph: strata/multimedia-common.morph +- morph: strata/mesa-common.morph +- morph: strata/graphics-common.morph +- morph: strata/sound-server-pulseaudio.morph +chunks: +- name: gstreamer + repo: upstream:gstreamer + ref: dd7e23e2b2b599597e60a2c56e1a8d1663511bcd + unpetrify-ref: 1.8.3 + build-system: autotools + submodules: + common: + url: upstream:gstreamer-common +- name: gstreamer-plugins-base + repo: upstream:gstreamer-plugins-base + ref: 793ef9e67127bd77175909b32b5eedf1b4d370a1 + unpetrify-ref: 1.8.3 + build-system: autotools + build-depends: + - gstreamer + submodules: + common: + url: upstream:gstreamer-common +- name: gstreamer-plugins-good + repo: upstream:gstreamer-plugins-good + ref: 5b83b10999fa588d62e9043ff29eb0d07b2a42c8 + unpetrify-ref: 1.8.3 + build-system: autotools + build-depends: + - gstreamer + - gstreamer-plugins-base + submodules: + common: + url: upstream:gstreamer-common +- name: gstreamer-plugins-bad + repo: upstream:gstreamer-plugins-bad + ref: ab536a68db84dd9543993ac0dff255b1885f8fee + unpetrify-ref: 1.8.3 + build-system: autotools + build-depends: + - gstreamer + - gstreamer-plugins-base + submodules: + common: + url: upstream:gstreamer-common +- name: gst-libav + morph: strata/multimedia-gstreamer/gst-libav.morph + repo: upstream:gst-libav + ref: 8612bf25fbc57b4fb867bf5d2b824250f5e015f1 + unpetrify-ref: 1.8.3 + build-depends: + - gstreamer + - gstreamer-plugins-base + submodules: + gst-libs/ext/libav: + url: upstream:ffmpeg + common: + url: upstream:gstreamer-common diff --git a/old/strata/multimedia-gstreamer/gst-libav.morph b/old/strata/multimedia-gstreamer/gst-libav.morph new file mode 100644 index 00000000..2d9c49ad --- /dev/null +++ b/old/strata/multimedia-gstreamer/gst-libav.morph @@ -0,0 +1,5 @@ +name: gst-libav +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --disable-gtk-doc diff --git a/old/strata/multimedia-hardware-codecs-x86.morph b/old/strata/multimedia-hardware-codecs-x86.morph new file mode 100644 index 00000000..9f463d3c --- /dev/null +++ b/old/strata/multimedia-hardware-codecs-x86.morph @@ -0,0 +1,31 @@ +name: multimedia-hardware-codecs-x86 +kind: stratum +description: Hardware accelerated codecs for x86 +build-depends: +- morph: strata/multimedia-gstreamer.morph +- morph: strata/libdrm-common.morph +- morph: strata/wayland-generic.morph +- morph: strata/x-common.morph +chunks: +- name: libva + repo: upstream:libva + ref: 304bc13e244f9d5e185a0d8a87fcf3a3eb5a8bd8 + unpetrify-ref: libva-1.6.2 + build-system: autotools +- name: libva-intel-driver + repo: upstream:libva-intel-driver + ref: 683edeedfdfd769807c18ed3797223f82b7aa0cc + unpetrify-ref: 1.6.2 + build-system: autotools + build-depends: + - libva +- name: gstreamer-vaapi + repo: upstream:gstreamer-vaapi + ref: c1f5efee1d0d286fd804c5456f43f9b7ecfce35b + unpetrify-ref: 1.8.3 + build-system: autotools + build-depends: + - libva + submodules: + common: + url: upstream:gstreamer-common diff --git a/old/strata/navigation.morph b/old/strata/navigation.morph new file mode 100644 index 00000000..669f4084 --- /dev/null +++ b/old/strata/navigation.morph @@ -0,0 +1,11 @@ +name: navigation +kind: stratum +description: Stratum that provides navigation libraries / services +build-depends: +- morph: strata/core.morph +chunks: +- name: navit + morph: strata/navigation/navit.morph + repo: upstream:navit-svn + ref: 358812af2c27c4abe324beb205e6d156b96fb1ea + unpetrify-ref: master diff --git a/old/strata/navigation/navit.morph b/old/strata/navigation/navit.morph new file mode 100644 index 00000000..2bdb09d5 --- /dev/null +++ b/old/strata/navigation/navit.morph @@ -0,0 +1,5 @@ +name: navit +kind: chunk +build-system: cmake +configure-commands: +- cmake . -DSAMPLE_MAP=n diff --git a/old/strata/network-security.morph b/old/strata/network-security.morph new file mode 100644 index 00000000..a80c22f0 --- /dev/null +++ b/old/strata/network-security.morph @@ -0,0 +1,47 @@ +name: network-security +kind: stratum +description: This stratum provides SSL/TLS libraries +build-depends: +- morph: strata/core.morph +chunks: +- name: nspr + morph: strata/network-security/nspr.morph + repo: upstream:nspr-hg + ref: 996918a8942606b640279bcd69ef4fec18e28844 + unpetrify-ref: NSPR_4_12_RTM +- name: nss + morph: strata/network-security/nss.morph + repo: upstream:nss + ref: 711f0416e5f43f6514ad3c169080aed89054d44b + unpetrify-ref: baserock/nss-3.31 + build-depends: + - nspr +- name: libtasn1 + morph: strata/network-security/libtasn1.morph + repo: upstream:libtasn1 + ref: 4bc67882e72929732b1d9cccc73e606f3a44f542 + unpetrify-ref: libtasn1_4_12 +- name: p11-kit + morph: strata/network-security/p11-kit.morph + repo: upstream:p11-kit + ref: ec9e2450bafa1cda47525b38a28c8f981f43c1e1 + unpetrify-ref: 0.23.1 + build-depends: + - libtasn1 +- name: nettle + morph: strata/network-security/nettle.morph + repo: upstream:nettle + ref: 22185d4efbd4c9c9afde9cba21eef0d550e88fab + unpetrify-ref: nettle_3.2_release_20160128 +- name: gnutls + morph: strata/network-security/gnutls.morph + repo: upstream:gnutls + ref: ae8ac9d420e9bd95eba2ce9f990dcd001d83ca42 + unpetrify-ref: gnutls_3_4_14 + build-depends: + - nettle + - libtasn1 + - p11-kit + submodules: + devel/openssl: + url: upstream:openssl-new diff --git a/old/strata/network-security/gnutls.morph b/old/strata/network-security/gnutls.morph new file mode 100644 index 00000000..f31cbf12 --- /dev/null +++ b/old/strata/network-security/gnutls.morph @@ -0,0 +1,6 @@ +name: gnutls +kind: chunk +build-system: autotools +configure-commands: +- make autoreconf +- ./configure --prefix="$PREFIX" --sysconfdir=/etc --with-nettle-mini --disable-tools --disable-doc diff --git a/old/strata/network-security/libtasn1.morph b/old/strata/network-security/libtasn1.morph new file mode 100644 index 00000000..c4f378f2 --- /dev/null +++ b/old/strata/network-security/libtasn1.morph @@ -0,0 +1,6 @@ +name: libtasn1 +kind: chunk +build-system: autotools +pre-configure-commands: +# Add ChangeLog so autoreconf succeeds +- touch ChangeLog diff --git a/old/strata/network-security/nettle.morph b/old/strata/network-security/nettle.morph new file mode 100644 index 00000000..80bdbf51 --- /dev/null +++ b/old/strata/network-security/nettle.morph @@ -0,0 +1,6 @@ +name: nettle +kind: chunk +build-system: autotools +configure-commands: +- ./.bootstrap +- ./configure --prefix="$PREFIX" --libdir="$PREFIX"/lib --sysconfdir=/etc --disable-documentation --enable-mini-gmp diff --git a/old/strata/network-security/nspr.morph b/old/strata/network-security/nspr.morph new file mode 100644 index 00000000..078486e7 --- /dev/null +++ b/old/strata/network-security/nspr.morph @@ -0,0 +1,12 @@ +name: nspr +kind: chunk +build-system: autotools +configure-commands: +- | + case "$MORPH_ARCH" in + x86_64|ppc64) + EXTRA_ARGS="--enable-64bit";; + *) + EXTRA_ARGS="";; + esac + ./configure --prefix="$PREFIX" --sysconfdir=/etc --with-mozilla --with-pthreads $EXTRA_ARGS diff --git a/old/strata/network-security/nss.morph b/old/strata/network-security/nss.morph new file mode 100644 index 00000000..2103622c --- /dev/null +++ b/old/strata/network-security/nss.morph @@ -0,0 +1,32 @@ +name: nss +kind: chunk +max-jobs: 1 +build-system: manual +build-commands: +- | + case "$MORPH_ARCH" in + x86_64|ppc64) + export USE_64=1;; + *) + ;; + esac + cd nss + make BUILD_OPT=1 \ + NSPR_INCLUDE_DIR=/usr/include/nspr \ + USE_SYSTEM_ZLIB=1 \ + ZLIB_LIBS=-lz \ + NSS_USE_SYSTEM_SQLITE=1 +install-commands: +- install -d "$DESTDIR"/usr/lib/pkgconfig +- install -v -m755 dist/Linux*/lib/*.so "$DESTDIR"/usr/lib +- install -v -m644 dist/Linux*/lib/*.chk "$DESTDIR"/usr/lib +- install -v -m644 dist/Linux*/lib/libcrmf.a "$DESTDIR"/usr/lib +- install -v -m755 -d "$DESTDIR"/usr/include/nss +- cp -v -RL dist/public/nss/* "$DESTDIR"/usr/include/nss +- cp -v -RL dist/private/nss/* "$DESTDIR"/usr/include/nss +- chmod -v 644 "$DESTDIR"/usr/include/nss/* +- install -d "$DESTDIR"/usr/bin +- install -v -m755 dist/Linux*/bin/certutil "$DESTDIR"/usr/bin +- install -v -m755 dist/Linux*/bin/nss-config "$DESTDIR"/usr/bin +- install -v -m755 dist/Linux*/bin/pk12util "$DESTDIR"/usr/bin +- install -v -m644 dist/Linux*/lib/pkgconfig/nss.pc "$DESTDIR"/usr/lib/pkgconfig diff --git a/old/strata/network-security/p11-kit.morph b/old/strata/network-security/p11-kit.morph new file mode 100644 index 00000000..8f88969a --- /dev/null +++ b/old/strata/network-security/p11-kit.morph @@ -0,0 +1,5 @@ +name: p11-kit +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --without-trust-paths diff --git a/old/strata/nfs.morph b/old/strata/nfs.morph new file mode 100644 index 00000000..e05d585c --- /dev/null +++ b/old/strata/nfs.morph @@ -0,0 +1,31 @@ +name: nfs +kind: stratum +description: NFS utilities +build-depends: +- morph: strata/foundation.morph +chunks: +- name: libevent + repo: upstream:libevent + ref: 0b49ae34594533daa82c06a506078de9e336a013 + unpetrify-ref: release-2.1.5-beta + build-system: autotools +- name: ti-rpc + morph: strata/nfs/ti-rpc.morph + repo: upstream:ti-rpc + ref: c5a7a19070e74115fc9c26aa6f3dfec1da220c1f + unpetrify-ref: baserock/master +- name: rpcbind + morph: strata/nfs/rpcbind.morph + repo: upstream:rpcbind + ref: aa3ac0d86c258d3e355ae59df31a96da795ecdfa + unpetrify-ref: baserock/master + build-depends: + - ti-rpc +- name: nfs-utils + morph: strata/nfs/nfs-utils.morph + repo: upstream:nfs-utils + ref: 0da9f20a22bb32b2da6b587b4e85dafde087c0f7 + unpetrify-ref: baserock/master + build-depends: + - libevent + - ti-rpc diff --git a/old/strata/nfs/nfs-utils.morph b/old/strata/nfs/nfs-utils.morph new file mode 100644 index 00000000..8116a9f4 --- /dev/null +++ b/old/strata/nfs/nfs-utils.morph @@ -0,0 +1,13 @@ +name: nfs-utils +kind: chunk +build-system: autotools +configure-commands: +- NOCONFIGURE=1 ./autogen.sh +- ./configure --prefix="$PREFIX" --disable-nfsv4 --disable-nfsv41 --disable-gss --with-rpcgen=internal + --without-tcp-wrappers +install-commands: +- make DESTDIR="$DESTDIR" install +- mkdir -p "$DESTDIR"/lib/systemd/system +- install -m644 proc-fs-nfsd.mount "$DESTDIR"/lib/systemd/system +- install -m644 nfs-mountd.service "$DESTDIR"/lib/systemd/system +- install -m644 nfs-server.service "$DESTDIR"/lib/systemd/system diff --git a/old/strata/nfs/rpcbind.morph b/old/strata/nfs/rpcbind.morph new file mode 100644 index 00000000..0ca929dc --- /dev/null +++ b/old/strata/nfs/rpcbind.morph @@ -0,0 +1,11 @@ +name: rpcbind +kind: chunk +build-system: autotools +configure-commands: +- NOCONFIGURE=1 ./autogen.sh +- ./configure --prefix="$PREFIX" --with-rpcuser=nobody --enable-warmstarts +install-commands: +- make DESTDIR="$DESTDIR" install +- mkdir -p "$DESTDIR"/lib/systemd/system +- install -m644 rpcbind.service "$DESTDIR"/lib/systemd/system +- install -m644 rpcbind.socket "$DESTDIR"/lib/systemd/system diff --git a/old/strata/nfs/tcp-wrappers.morph b/old/strata/nfs/tcp-wrappers.morph new file mode 100644 index 00000000..c68671f6 --- /dev/null +++ b/old/strata/nfs/tcp-wrappers.morph @@ -0,0 +1,9 @@ +name: tcp-wrappers +kind: chunk +build-commands: +- make MAJOR=0 MINOR=7 REL=6 linux +install-commands: +- mkdir -p "$DESTDIR"/"$PREFIX"/include +- install -p -m644 tcpd.h "$DESTDIR"/"$PREFIX"/include +- mkdir -p "$DESTDIR"/"$PREFIX"/lib +- cp -a libwrap.so* "$DESTDIR"/"$PREFIX"/lib diff --git a/old/strata/nfs/ti-rpc.morph b/old/strata/nfs/ti-rpc.morph new file mode 100644 index 00000000..3fb91e1f --- /dev/null +++ b/old/strata/nfs/ti-rpc.morph @@ -0,0 +1,6 @@ +name: ti-rpc +kind: chunk +build-system: autotools +configure-commands: +- NOCONFIGURE=1 ./autogen.sh +- ./configure --prefix="$PREFIX" --sysconfdir=/etc diff --git a/old/strata/nodejs.morph b/old/strata/nodejs.morph new file mode 100644 index 00000000..21348105 --- /dev/null +++ b/old/strata/nodejs.morph @@ -0,0 +1,12 @@ +name: nodejs +kind: stratum +description: Stratum for nodejs related stuff +build-depends: +- morph: strata/core.morph +- morph: strata/python2-core.morph +chunks: +- name: node + morph: strata/nodejs/node.morph + repo: upstream:node-new + ref: 01461afb0aaf0e4b763e423884b383a35eb69c04 + unpetrify-ref: v8.1.3 diff --git a/old/strata/nodejs/node.morph b/old/strata/nodejs/node.morph new file mode 100644 index 00000000..be86ed86 --- /dev/null +++ b/old/strata/nodejs/node.morph @@ -0,0 +1,9 @@ +name: node +kind: chunk +build-system: manual +configure-commands: +- ./configure --prefix="$PREFIX" +build-commands: +- make +install-commands: +- make DESTDIR="$DESTDIR" install diff --git a/old/strata/openbmc.morph b/old/strata/openbmc.morph new file mode 100644 index 00000000..b1309a2a --- /dev/null +++ b/old/strata/openbmc.morph @@ -0,0 +1,22 @@ +name: openbmc +kind: stratum +description: OpenBMC components +build-depends: +- morph: strata/build-essential.morph +- morph: strata/core.morph +chunks: +- name: i2c-tools + morph: strata/openbmc/i2c-tools.morph + repo: upstream:i2c-tools + ref: 187dd637f7789c4cb12dfe2ba13f6e01d2a3c698 + unpetrify-ref: V3-1-1 +- name: lm_sensors + morph: strata/openbmc/lm_sensors.morph + repo: upstream:lm-sensors + ref: d9983967a89382f64c65db67026f85f073ef9b74 + unpetrify-ref: master +- name: isc-dhcp + repo: upstream:isc-dhcp-tarball + morph: strata/openbmc/isc-dhcp.morph + ref: f800382616186a5d30e28d8b2c51e97a9a8360f2 + unpetrify-ref: master diff --git a/old/strata/openbmc/i2c-tools.morph b/old/strata/openbmc/i2c-tools.morph new file mode 100644 index 00000000..5fba3b0a --- /dev/null +++ b/old/strata/openbmc/i2c-tools.morph @@ -0,0 +1,16 @@ +name: i2c-tools +kind: chunk +build-commands: +- make -C eepromer && make +install-commands: +- mkdir -p "$DESTDIR$PREFIX"/bin +- | + i2ctools="i2cdetect i2cdump i2cget i2cset" + for f in ${i2ctools}; do + install -m 755 tools/${f} "$DESTDIR$PREFIX"/bin/${f} + done +- | + eepromtools="eepromer eeprom eeprog" + for f in ${eepromtools}; do + install -m 755 eepromer/${f} "$DESTDIR$PREFIX"/bin/${f} + done diff --git a/old/strata/openbmc/isc-dhcp.morph b/old/strata/openbmc/isc-dhcp.morph new file mode 100644 index 00000000..5ee2e66b --- /dev/null +++ b/old/strata/openbmc/isc-dhcp.morph @@ -0,0 +1,3 @@ +name: isc-dhcp +kind: chunk +build-system: autotools diff --git a/old/strata/openbmc/lm_sensors.morph b/old/strata/openbmc/lm_sensors.morph new file mode 100644 index 00000000..27ee10d5 --- /dev/null +++ b/old/strata/openbmc/lm_sensors.morph @@ -0,0 +1,7 @@ +name: lm_sensors +kind: chunk +build-commands: +- make user PROG_EXTRA="sensors" +install-commands: +- make DESTDIR="$DESTDIR" PREFIX="$PREFIX" install +# TODO: If we need sensord too, we'll need rrdtool as a dependency and install instructions for sensord components diff --git a/old/strata/openstack-clients.morph b/old/strata/openstack-clients.morph new file mode 100644 index 00000000..9b0b8337 --- /dev/null +++ b/old/strata/openstack-clients.morph @@ -0,0 +1,154 @@ +name: openstack-clients +kind: stratum +description: Stratum with all the OpenStack clients and their dependencies. +build-depends: +- morph: strata/openstack-common.morph +chunks: +- name: warlock + repo: upstream:warlock + ref: 408ccb82347aabf3dc7cf6eccbd2ed2475cb0d60 + unpetrify-ref: 1.1.0 + build-system: python-distutils +- name: python-keystoneclient + repo: upstream:openstack/python-keystoneclient + ref: 8fa6b6f0b5e95493342ce71489d04f73db2418b8 + unpetrify-ref: 1.3.1 + build-system: python-distutils +- name: python-glanceclient + repo: upstream:openstack/python-glanceclient + ref: b176c28bbdae3eb5b3280c1981ad2b3b255e234e + unpetrify-ref: 0.17.1 + build-system: python-distutils + build-depends: + - python-keystoneclient + - warlock +- name: python-novaclient + repo: upstream:openstack/python-novaclient + ref: e0f5072907a00d48a183dd8fc91a6cf6038ca279 + unpetrify-ref: 2.23.0 + build-system: python-distutils + build-depends: + - python-keystoneclient +- name: python-swiftclient + repo: upstream:openstack/python-swiftclient + ref: bb4d2ab59c4de9389667eeed255642f51e276f1e + unpetrify-ref: 2.3.1 + build-system: python-distutils +- name: python-troveclient + repo: upstream:openstack/python-troveclient + ref: e010a919750f07493afd42a4db867853b925bcbf + unpetrify-ref: 1.0.7 + build-system: python-distutils +- name: python-cinderclient + repo: upstream:openstack/python-cinderclient + ref: ac9b0913904c43f4bf12c8164324d6e6a55dc1ab + unpetrify-ref: 1.1.1 + build-system: python-distutils + build-depends: + - python-keystoneclient +- name: pyparsing + morph: unmaintained/strata/openstack-clients/pyparsing.morph + repo: upstream:python-packages/pyparsing.git + ref: 8062c76ab3958a570052124f17e71f3dd3ec2257 + unpetrify-ref: pyparsing_2.0.3 +- name: cmd2 + repo: upstream:python-packages/cmd2-hg + ref: c0d606bdeb88717ad92ba198bc9232615b83c4cd + unpetrify-ref: 0.6.7 + build-system: python-distutils + build-depends: + - pyparsing +- name: cliff + repo: upstream:openstack/cliff + ref: b703ad32743026d253f872caa1ff2cd727803d14 + unpetrify-ref: 1.10.1 + build-system: python-distutils + build-depends: + - cmd2 + - pyparsing +- name: tablib + morph: unmaintained/strata/openstack-clients/tablib.morph + repo: upstream:python-packages/tablib + ref: 1cc051f3e881289a8b51133c0c1ee73683b2d6fc + unpetrify-ref: v0.10.0 +- name: cliff-tablib + morph: unmaintained/strata/openstack-clients/cliff-tablib.morph + repo: upstream:python-packages/cliff-tablib + ref: a83bf47d7dfbb690dd53e189c532f0859898db04 + unpetrify-ref: "1.1" +- name: python-neutronclient + repo: upstream:openstack/python-neutronclient + ref: aa1215a5ad063b299d32ef319eb63d5210249a9b + unpetrify-ref: 2.4.0 + build-system: python-distutils + build-depends: + - cliff + - python-keystoneclient +- name: python-ceilometerclient + repo: upstream:openstack/python-ceilometerclient + ref: 127aadfd2b2daf9884ad7003e23440048e2efbd8 + unpetrify-ref: 1.0.14 + build-system: python-distutils + build-depends: + - python-keystoneclient +- name: python-heatclient + repo: upstream:openstack/python-heatclient + ref: 6d528f005742263837d05250662bf6214a703da8 + unpetrify-ref: 0.4.0 + build-system: python-distutils + build-depends: + - python-keystoneclient +- name: python-designateclient + repo: upstream:openstack/python-designateclient + ref: a900b41e4d8a9eb40e1812295ba16d773e2b9618 + unpetrify-ref: 1.1.0 + build-system: python-distutils + build-depends: + - cliff + - python-keystoneclient +- name: python-barbicanclient + repo: upstream:openstack/python-barbicanclient + ref: 2919366867af335d59913764a55ca8e95569947d + unpetrify-ref: 3.0.3 + build-system: python-distutils + build-depends: + - python-keystoneclient + - cliff +- name: python-saharaclient + repo: upstream:openstack/python-saharaclient + ref: 319ceb6acf55382218dcd971367613aecb3e4afc + unpetrify-ref: 0.8.0 + build-system: python-distutils + build-depends: + - python-keystoneclient +- name: python-ironicclient + morph: unmaintained/strata/openstack-clients/python-ironicclient.morph + repo: upstream:openstack/python-ironicclient + ref: 4390a21663de3123fac306e9860624ba7deda0e6 + unpetrify-ref: 0.4.1 +# Despite argparse being part of the Python 2.7's standard library, the +# pkg_resources module used by python-openstackclient doesn't look into +# the standard library, resulting in a 'DistributionNotFound: argparse' +# error. Hence, install argparse separately. +- name: argparse + morph: unmaintained/strata/openstack-clients/argparse.morph + repo: upstream:argparse + ref: ec94cd429c56487e89425f226284009f78a596c6 + unpetrify-ref: r130 +# The latest release of python-openstackclient is not being used as it +# requires newer versions of glance, neutron, keystone and nova. +- name: python-openstackclient + morph: unmaintained/strata/openstack-clients/python-openstackclient.morph + repo: upstream:openstack/python-openstackclient + ref: 28f65e665045c1c6d0697f856f06020c7c8e656a + unpetrify-ref: 1.2.0 +- name: os-client-config + morph: unmaintained/strata/openstack-clients/os-client-config.morph + repo: upstream:openstack/os-client-config + ref: a0df67704ace186b18fd1ecdc220a7e56409bc6f + unpetrify-ref: 1.3.0 +- name: appdirs + morph: unmaintained/strata/openstack-clients/appdirs.morph + repo: upstream:python-packages/appdirs + ref: 57f2bc44a8bca99bac6c57496c8b3fdea26f94d5 + unpetrify-ref: 1.4.0 diff --git a/old/strata/openstack-common.morph b/old/strata/openstack-common.morph new file mode 100644 index 00000000..378ae880 --- /dev/null +++ b/old/strata/openstack-common.morph @@ -0,0 +1,140 @@ +name: openstack-common +kind: stratum +description: | + Stratum with the python packages needed to compile openstack + clients and services. +build-depends: +- morph: strata/python-common.morph +- morph: strata/foundation.morph +chunks: +- name: pycparser + repo: upstream:python-packages/pycparser + ref: c926670643ebb5f88a2bf56579fc9934c82be6d2 + unpetrify-ref: master + build-system: python-distutils +- name: cffi + repo: upstream:python-packages/cffi + ref: 40b9759b5bbf9f6a4efa1168acc9a60890527f6f + unpetrify-ref: release-1.6 + build-system: python-distutils + build-depends: + - pycparser +- name: pytz + repo: upstream:pytz-tarball + ref: c414cb801776e11c769fb36c0d37b8d7a7c8712c + unpetrify-ref: pytz-2014.10 + build-system: python-distutils +- name: babel + morph: strata/openstack-common/babel.morph + repo: upstream:babel +# Babel requires core-23.1.zip to be present when compiles +# from source, the following branch adds this file to the +# repository, and stops the date being added to the version +# number when running `python setup.py install`. + ref: 1891d93b10e6c11ab08099b95001b17e88315c2a + unpetrify-ref: baserock/1.3-50-g246996b + build-depends: + - pytz +- name: enum34 + repo: upstream:python-packages/enum34.git + ref: f1fa1787ceaac72b9934f318ea2135d28c05dd55 + unpetrify-ref: enum34-1.0 + build-system: python-distutils +- name: pyasn1 + repo: upstream:python-packages/pyasn1 + ref: fa8e66c5f4367a1e39b53dcddc133d084b10400f + unpetrify-ref: release_0_1_7_tag + build-system: python-distutils +- name: cryptography + repo: upstream:python-packages/cryptography + ref: afcd8f5ad8eb21f13be308c5183ef34ad28f9987 + unpetrify-ref: 1.3.2 + build-system: python-distutils + build-depends: + - pycparser + - pyasn1 + - enum34 + - cffi +- name: pyiso8601 + repo: upstream:pyiso8601 + ref: 9eb87a9bab114e9cc9a8d3dceb04362644d89cab + unpetrify-ref: 0.1.10 + build-system: python-distutils +- name: netaddr + repo: upstream:netaddr + ref: bbb31ed50a5338a7d1c0011fc4429d09954f9f0b + unpetrify-ref: release-0.7.12 + build-system: python-distutils +- name: stevedore + repo: upstream:openstack/stevedore + ref: 218e95d5f09563bd14c50ee0441855f3389af7e7 + unpetrify-ref: 1.3.0 + build-system: python-distutils +- name: oslo-config + repo: upstream:openstack/oslo-config + ref: 3c51838cdffe7a5057ff4823a8ab523bfacc3164 + unpetrify-ref: 1.9.3 + build-system: python-distutils + build-depends: + - netaddr + - stevedore +- name: pyopenssl + repo: upstream:python-packages/pyopenssl + ref: 0146d447e63a737b4f05a1164d5950eff68543e7 + unpetrify-ref: "0.14" + build-system: python-distutils +- name: oslo-i18n + repo: upstream:openstack/oslo-i18n + ref: b0faab7b3d3ea3b14053ab92dd6086956f643e15 + unpetrify-ref: 1.5.0 + build-system: python-distutils + build-depends: + - babel +- name: netifaces + repo: upstream:python-packages/netifaces + ref: 885b200ba717df87f6e8044ec8c66c677c949bcb + unpetrify-ref: release_0_10_4 + build-system: python-distutils +- name: oslo-utils + repo: upstream:openstack/oslo-utils + ref: 91dc782c2f11fb76425effd7a331d63111adf1ce + unpetrify-ref: 1.4.0 + build-system: python-distutils + build-depends: + - babel + - pyiso8601 + - oslo-i18n + - netifaces + - netaddr +- name: futures + repo: upstream:python-packages/futures + ref: 4f7ceedb8a7742e52b0436a4160c7c44665a2597 + unpetrify-ref: 2.2.0 + build-system: python-distutils +- name: oslo-serialization + repo: upstream:openstack/oslo-serialization.git + ref: 7bfd5dece0f22dbdea1c3e524dbc0eca1f70f1b7 + unpetrify-ref: 1.4.0 + build-system: python-distutils +- name: simplejson + repo: upstream:simplejson + ref: 54d5ff15d508c51366986cc4f77f2f287f036582 + unpetrify-ref: v3.6.4 + build-system: python-distutils +- name: greenlet + ref: ed943580bc514144958ebd257156ddfb7584a981 + unpetrify-ref: 0.4.9 + repo: upstream:python-packages/greenlet + build-system: python-distutils +- name: eventlet + ref: dc10af4702115ee92803e432c18ef3a4350e0993 + unpetrify-ref: v0.17.4 + repo: upstream:python-packages/eventlet + build-system: python-distutils + build-depends: + - greenlet +- name: pastedeploy + repo: upstream:python-packages/pastedeploy + ref: 5ad87be617c2cc1dd31625688172e964db2756dc + unpetrify-ref: 1.5.2 + build-system: python-distutils diff --git a/old/strata/openstack-common/babel.morph b/old/strata/openstack-common/babel.morph new file mode 100644 index 00000000..b9dc475c --- /dev/null +++ b/old/strata/openstack-common/babel.morph @@ -0,0 +1,8 @@ +name: babel +kind: chunk +build-system: python-distutils +# NOTE: remember that Babel requires core-23.1.zip to be +# present when compiles from source see baserock/1.3.50-g246996b +# branch in babel repository in gbo for more information. +pre-build-commands: +- python setup.py import_cldr diff --git a/old/strata/ostree-core.morph b/old/strata/ostree-core.morph new file mode 100644 index 00000000..ff9725ce --- /dev/null +++ b/old/strata/ostree-core.morph @@ -0,0 +1,38 @@ +name: ostree-core +kind: stratum +build-depends: +- morph: strata/core.morph +- morph: strata/libsoup-common.morph +- morph: strata/foundation.morph +chunks: +- name: libassuan + morph: strata/ostree-core/libassuan.morph + repo: upstream:libassuan + ref: cdb1e6484d6f094f8e795bfec5b314ec524a90f8 + unpetrify-ref: libassuan-2.3.0 +- name: gpgme + morph: strata/ostree-core/gpgme.morph + repo: upstream:gpgme + ref: 107bff70edb611309f627058dd4777a5da084b1a + unpetrify-ref: gpgme-1.6.0 + build-depends: + - libassuan +- name: libgsystem + repo: upstream:libgsystem + ref: 8231b8ad4a4ee35e4b11fae5f6e7cddabf1c51ae + unpetrify-ref: master + build-system: autotools +- name: ostree + morph: strata/ostree-core/ostree.morph + repo: upstream:ostree + ref: c31cf75552af9be404fbc6a24643c569855c1c3b + unpetrify-ref: v2016.7 + build-depends: + - gpgme + - libgsystem + - libassuan + submodules: + libglnx: + url: upstream:libglnx + bsdiff: + url: upstream:bsdiff diff --git a/old/strata/ostree-core/gpgme.morph b/old/strata/ostree-core/gpgme.morph new file mode 100644 index 00000000..cf938f31 --- /dev/null +++ b/old/strata/ostree-core/gpgme.morph @@ -0,0 +1,7 @@ +name: gpgme +kind: chunk +build-system: autotools +pre-configure-commands: +- autoreconf -fi +configure-commands: +- ./configure --prefix="$PREFIX" --enable-maintainer-mode diff --git a/old/strata/ostree-core/libassuan.morph b/old/strata/ostree-core/libassuan.morph new file mode 100644 index 00000000..baa1e902 --- /dev/null +++ b/old/strata/ostree-core/libassuan.morph @@ -0,0 +1,7 @@ +name: libassuan +kind: chunk +build-system: autotools +pre-configure-commands: +- autoreconf -fi +configure-commands: +- ./configure --prefix="$PREFIX" --enable-maintainer-mode diff --git a/old/strata/ostree-core/ostree.morph b/old/strata/ostree-core/ostree.morph new file mode 100644 index 00000000..2f2d86c7 --- /dev/null +++ b/old/strata/ostree-core/ostree.morph @@ -0,0 +1,7 @@ +name: ostree +kind: chunk +build-system: autotools +configure-commands: +- NOCONFIGURE=1 ./autogen.sh +- ./configure --prefix="$PREFIX" --sysconfdir=/etc --localstatedir=/var + --disable-man diff --git a/old/strata/pcre-utils.morph b/old/strata/pcre-utils.morph new file mode 100644 index 00000000..d747d122 --- /dev/null +++ b/old/strata/pcre-utils.morph @@ -0,0 +1,10 @@ +name: pcre-utils +kind: stratum +build-depends: +- morph: strata/core.morph +chunks: +- name: pcre + repo: upstream:pcre + morph: strata/pcre-utils/pcre.morph + ref: b2b477a2025ee7501243e5b6a54ef4f6dbfb666b + unpetrify-ref: pcre-8.39 diff --git a/old/strata/pcre-utils/pcre.morph b/old/strata/pcre-utils/pcre.morph new file mode 100644 index 00000000..8c44a5b9 --- /dev/null +++ b/old/strata/pcre-utils/pcre.morph @@ -0,0 +1,6 @@ +name: pcre +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh +- ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-unicode-properties --enable-utf diff --git a/old/strata/perl-common.morph b/old/strata/perl-common.morph new file mode 100644 index 00000000..2947f053 --- /dev/null +++ b/old/strata/perl-common.morph @@ -0,0 +1,388 @@ +name: perl-common +kind: stratum +description: Common perl dependencies +build-depends: +- morph: strata/core.morph +chunks: +- name: Try-Tiny + repo: upstream:cpan/Try-Tiny-tarball + ref: b0ac2743153dd707789f7541af790f5a53843a36 + unpetrify-ref: Try-Tiny-0.22 + build-system: cpan +- name: Log-Log4perl + repo: upstream:cpan/Log-Log4perl-tarball + ref: 94566f012421026c8311552f99175a5989eba063 + unpetrify-ref: master + build-system: cpan +- name: Module-Build + repo: upstream:cpan/Module-Build-tarball + ref: 467298a34215401cdcbb1dded51bc2aba5f1f41c + unpetrify-ref: Module-Build-0.4214 + build-system: cpan +- name: Devel-StackTrace + repo: upstream:cpan/Devel-StackTrace-tarball + ref: 22d921a6e9c4fc98cda05e898a8137c7e8dae970 + unpetrify-ref: Devel-StackTrace-2.00 + build-system: cpan +- name: Exporter-Tiny + repo: upstream:cpan/Exporter-Tiny-tarball + ref: a3341f774a4aa00765970301e259be818929a7cf + unpetrify-ref: Exporter-Tiny-0.042 + build-system: cpan +- name: ExtUtils-Config + repo: upstream:cpan/ExtUtils-Config-tarball + ref: c8d851569c1b88d5431700809fe520cbca5023a8 + unpetrify-ref: ExtUtils-Config-0.008 + build-system: cpan +- name: ExtUtils-Helpers + repo: upstream:cpan/ExtUtils-Helpers-tarball + ref: 13016fa7011fc3084536c7b3181d75acb43d3aae + unpetrify-ref: ExtUtils-Helpers-0.022 + build-system: cpan +- name: ExtUtils-InstallPaths + repo: upstream:cpan/ExtUtils-InstallPaths-tarball + ref: 2f62d65d28afdbbd6a417f8e3da3ac6143863ef8 + unpetrify-ref: ExtUtils-InstallPaths-0.011 + build-system: cpan + build-depends: + - ExtUtils-Config +- name: List-MoreUtils + morph: strata/perl-common/List-MoreUtils.morph + repo: upstream:cpan/List-MoreUtils-tarball + ref: 7f3c4eb624730bcc71e75500f295d193b9375fbc + unpetrify-ref: List-MoreUtils-0.413 + build-depends: + - Exporter-Tiny +- name: MRO-Compat + repo: upstream:cpan/MRO-Compat-tarball + ref: 47420dfff2810300d68ea846502dbc4f85d34186 + unpetrify-ref: MRO-Compat-0.12 + build-system: cpan +- name: Module-Build-Tiny + repo: upstream:cpan/Module-Build-Tiny-tarball + ref: 289b859a41b598e5ae4261b978402f3019fd9042 + unpetrify-ref: Module-Build-Tiny-0.039 + build-system: module-build + build-depends: + - ExtUtils-Helpers + - ExtUtils-Config + - ExtUtils-InstallPaths +- name: Module-Runtime + repo: upstream:cpan/Module-Runtime-tarball + ref: 3621e4956cb037811317b0195d3248108c6658c3 + unpetrify-ref: Module-Runtime-0.014 + build-system: cpan + build-depends: + - Module-Build +- name: Dist-CheckConflicts + repo: upstream:cpan/Dist-CheckConflicts-tarball + ref: dfaae12e4d85f7c6821ae4a9fbf7e463d570e7ba + unpetrify-ref: Dist-CheckConflicts-0.11 + build-system: cpan + build-depends: + - Module-Build + - Module-Runtime +- name: Module-Runtime-Conflicts + repo: upstream:cpan/Module-Runtime-Conflicts-tarball + ref: ab45179756d9ce7e63c894d52b2e34cafc10bf6a + unpetrify-ref: Module-Runtime-Conflicts-0.002 + build-system: cpan + build-depends: + - Module-Build-Tiny + - ExtUtils-Config + - Module-Runtime + - ExtUtils-InstallPaths + - Module-Build + - ExtUtils-Helpers + - Dist-CheckConflicts +- name: Package-Stash-XS + repo: upstream:cpan/Package-Stash-XS-tarball + ref: fff2e7a8ec398e4c5229fb61b1107cffda28aabd + unpetrify-ref: Package-Stash-XS-0.28 + build-system: cpan +- name: Params-Util + repo: upstream:cpan/Params-Util-tarball + ref: d8180ea7d4a24afe7b38df93513d224b90d4945f + unpetrify-ref: Params-Util-1.07 + build-system: cpan +- name: Sub-Exporter-Progressive + repo: upstream:cpan/Sub-Exporter-Progressive-tarball + ref: 1f3ec55911f841590a62ed06becc2bd9131a5fc4 + unpetrify-ref: Sub-Exporter-Progressive-0.001011 + build-system: cpan +- name: Devel-GlobalDestruction + repo: upstream:cpan/Devel-GlobalDestruction-tarball + ref: 325e62ad0c0a3e34804212983fe22999b7d1f3bb + unpetrify-ref: Devel-GlobalDestruction-0.13 + build-system: cpan + build-depends: + - Sub-Exporter-Progressive +- name: Sub-Identify + repo: upstream:cpan/Sub-Identify-tarball + ref: bfaf3f426163c10c631d03bf2ce03fb34e74fdd9 + unpetrify-ref: Sub-Identify-0.10 + build-system: cpan +- name: Sub-Install + repo: upstream:cpan/Sub-Install-tarball + ref: cf0894e4fcf980767c57734e9a3ddad3c35da7d2 + unpetrify-ref: Sub-Install-0.928 + build-system: cpan +- name: Data-OptList + repo: upstream:cpan/Data-OptList-tarball + ref: aa2ab3d34edbee7e4fc832394136391fd5f87702 + unpetrify-ref: Data-OptList-0.109 + build-system: cpan + build-depends: + - Sub-Install + - Params-Util +- name: Sub-Exporter + repo: upstream:cpan/Sub-Exporter-tarball + ref: 641cf398662e09a9660e5b4187f8691a3205a3db + unpetrify-ref: Sub-Exporter-0.987 + build-system: cpan + build-depends: + - Data-OptList + - Sub-Install + - Params-Util +- name: Package-DeprecationManager + repo: upstream:cpan/Package-DeprecationManager-tarball + ref: b05516a95f58a288b856d79e7d5be86c46a98110 + unpetrify-ref: Package-DeprecationManager-0.14 + build-system: cpan + build-depends: + - Sub-Install + - Params-Util +- name: Sub-Name + repo: upstream:cpan/Sub-Name-tarball + ref: 5b19971882c74b097f4a052852a67ee81cb2bb5a + unpetrify-ref: Sub-Name-0.14 + build-system: cpan +- name: Task-Weaken + repo: upstream:cpan/Task-Weaken-tarball + ref: 75c7d27b13860660f80913cc8cd46c6c8edf5071 + unpetrify-ref: Task-Weaken-1.04 + build-system: cpan +- name: Eval-Closure + repo: upstream:cpan/Eval-Closure-tarball + ref: cf3c05406f7cde406764915682e4bf5db73b1bdd + unpetrify-ref: Eval-Closure-0.13 + build-system: cpan + build-depends: + - Try-Tiny +- name: Module-Implementation + repo: upstream:cpan/Module-Implementation-tarball + ref: b808141b894ad538db75a7067e0199cbfe6337a9 + unpetrify-ref: Module-Implementation-0.09 + build-system: cpan + build-depends: + - Module-Build + - Module-Runtime + - Try-Tiny +- name: Package-Stash + repo: upstream:cpan/Package-Stash-tarball + ref: 37bd679ad9ac185930fa8fea7cd11b27587ae478 + unpetrify-ref: Package-Stash-0.37 + build-system: cpan + build-depends: + - Module-Runtime + - Try-Tiny + - Module-Implementation + - Module-Build + - Dist-CheckConflicts + - Package-Stash-XS +- name: Class-Load + repo: upstream:cpan/Class-Load-tarball + ref: 7e7ddbe33ca34359d711aee1e0ddebaeb40c2a18 + unpetrify-ref: Class-Load-0.23 + build-system: cpan + build-depends: + - Data-OptList + - Params-Util + - Module-Runtime + - Try-Tiny + - Module-Implementation + - Module-Build + - Package-Stash + - Sub-Install + - Dist-CheckConflicts + - Package-Stash-XS +- name: Devel-OverloadInfo + repo: upstream:cpan/Devel-OverloadInfo-tarball + ref: 918097f3d406ac643ab6caf4387e4c0ab3d80718 + unpetrify-ref: Devel-OverloadInfo-0.002 + build-system: cpan + build-depends: + - Sub-Identify + - Module-Runtime + - Try-Tiny + - Module-Implementation + - Module-Build + - Package-Stash + - MRO-Compat + - Dist-CheckConflicts + - Package-Stash-XS +- name: Class-Load-XS + repo: upstream:cpan/Class-Load-XS-tarball + ref: 60626c51d97a7ef06b364481ae4afd9706ef6ece + unpetrify-ref: Class-Load-XS-0.09 + build-system: cpan + build-depends: + - Data-OptList + - Params-Util + - Module-Runtime + - Try-Tiny + - Module-Implementation + - Module-Build + - Package-Stash + - Sub-Install + - Dist-CheckConflicts + - Class-Load + - Package-Stash-XS +- name: Moose + repo: upstream:cpan/Moose-tarball + ref: 5ac2026f7eed78958d69d051e7a8e993dcf51205 + unpetrify-ref: master + build-system: cpan + build-depends: + - Data-OptList + - Module-Build-Tiny + - Sub-Exporter + - Devel-GlobalDestruction + - Module-Implementation + - Module-Build + - List-MoreUtils + - Class-Load + - ExtUtils-Helpers + - Exporter-Tiny + - Module-Runtime + - Try-Tiny + - Class-Load-XS + - Package-Stash-XS + - Sub-Exporter-Progressive + - Package-DeprecationManager + - Params-Util + - Task-Weaken + - Dist-CheckConflicts + - Sub-Name + - ExtUtils-Config + - Module-Runtime-Conflicts + - ExtUtils-InstallPaths + - Devel-StackTrace + - Sub-Identify + - Package-Stash + - MRO-Compat + - Sub-Install + - Devel-OverloadInfo + - Eval-Closure +- name: Test-Fatal + repo: upstream:cpan/Test-Fatal-tarball + ref: 40b50d9c7952dab50b39612311048d6a02a9eb53 + unpetrify-ref: Test-Fatal-0.014 + build-system: cpan + build-depends: + - Try-Tiny +- name: Test-Requires + repo: upstream:cpan/Test-Requires-tarball + ref: a3ff0e26c1de52421abeff3a5d068bebc1dc8621 + unpetrify-ref: master + build-system: cpan +- name: Params-Validate + repo: upstream:cpan/Params-Validate-tarball + ref: 11197f6fc2fdd0d2a139a74ff1302244c4911e4e + unpetrify-ref: Params-Validate-1.20 + build-system: module-build + build-depends: + - Module-Implementation + - Module-Build + - Module-Runtime + - Try-Tiny + - Test-Fatal + - Test-Requires +- name: Log-Dispatch + repo: upstream:cpan/Log-Dispatch-tarball + ref: 2e0d2bec52bd345ef05ea12ea9052643ef135029 + unpetrify-ref: master + build-system: cpan + build-depends: + - Devel-GlobalDestruction + - Try-Tiny + - Module-Implementation + - Module-Build + - Params-Validate + - Dist-CheckConflicts + - Sub-Exporter-Progressive + - Module-Runtime +- name: App-cpanminus + repo: upstream:cpan/App-cpanminus-tarball + ref: 67241d22c0a425ba7301017796d8a39f7e731999 + unpetrify-ref: App-cpanminus-1.7039 + build-system: cpan +- name: Class-Tiny + repo: upstream:cpan/Class-Tiny-tarball + ref: 7446bb2b9d24fa6b702fbb62d73084a32ade6f75 + unpetrify-ref: Class-Tiny-1.001 + build-system: cpan +- name: JSON + repo: upstream:cpan/JSON-tarball + ref: e84b6340760ed17a22ced0ca110a94fa8322b35e + unpetrify-ref: JSON-2.90 + build-system: cpan +- name: Module-CPANfile + repo: upstream:cpan/Module-CPANfile-tarball + ref: 6b1d736955543538c54f1d8033ce3bdcb175da91 + unpetrify-ref: Module-CPANfile-1.1000 + build-system: cpan +- name: Module-Reader + repo: upstream:cpan/Module-Reader-tarball + ref: 7dd93df1d843cbb36356dbea8071fab21cf04c30 + unpetrify-ref: Module-Reader-0.002003 + build-system: cpan +- name: Path-Tiny + repo: upstream:cpan/Path-Tiny-tarball + ref: b7fb38421c30b0419a30311c1bde34706aa60fb8 + unpetrify-ref: Path-Tiny-0.070 + build-system: cpan +- name: Carton + repo: upstream:carton + ref: 64faf28ed61a6d0278c87831c83258cf8ecc40a9 + unpetrify-ref: baserock/v1.0.21 + build-system: cpan + build-depends: + - Class-Tiny + - Path-Tiny + - Module-CPANfile + - JSON + - App-cpanminus + - Module-Reader +- name: Future + repo: upstream:cpan/Future-tarball + ref: 8cc5160aefb2ba3611d1d5d6b12b996227f9da72 + unpetrify-ref: Future-0.32 + build-system: cpan + build-depends: + - Module-Build +- name: Struct-Dumb + repo: upstream:cpan/Struct-Dumb-tarball + ref: e0788c9e0be87d9d401f38e7f67f28738d613713 + unpetrify-ref: Struct-Dumb-0.03 + build-system: cpan + build-depends: + - Module-Build + - Try-Tiny + - Test-Fatal +- name: IO-Async + repo: upstream:cpan/IO-Async-tarball + ref: 1425eea04dd872dc6313f5315f317b2de288037c + unpetrify-ref: master + build-system: cpan + build-depends: + - Struct-Dumb + - Try-Tiny + - Module-Build + - Future + - Test-Fatal +- name: Archive-Extract + repo: upstream:cpan/Archive-Extract-tarball + ref: 8538680d8b9b92f693f7e03b48332627d4b129a0 + unpetrify-ref: master + build-system: cpan diff --git a/old/strata/perl-common/List-MoreUtils.morph b/old/strata/perl-common/List-MoreUtils.morph new file mode 100644 index 00000000..1fd38042 --- /dev/null +++ b/old/strata/perl-common/List-MoreUtils.morph @@ -0,0 +1,9 @@ +name: List-MoreUtils +kind: chunk +build-system: cpan +pre-configure-commands: +# List::MoreUtils will assume that it needs to try and build a release +# if there's a .git present, we don't want that so we remove the .git here. +# an issue has been filed at +# https://github.com/perl5-utils/List-MoreUtils/issues/14 +- rm -rf .git diff --git a/old/strata/privileges-management.morph b/old/strata/privileges-management.morph new file mode 100644 index 00000000..835ca62a --- /dev/null +++ b/old/strata/privileges-management.morph @@ -0,0 +1,21 @@ +name: privileges-management +kind: stratum +description: Toolkit for controlling system-wide privileges +build-depends: +- morph: strata/foundation.morph +- morph: strata/glib-common.morph +- morph: strata/network-security.morph +- morph: strata/python2-core.morph +chunks: +- name: mozjs17 + morph: strata/privileges-management/mozjs17.morph + repo: upstream:mozilla/mozjs17 + ref: 1c1080f592d4a0005c1765c870f314b3475825ae + unpetrify-ref: baserock/gnome +- name: polkit + morph: strata/privileges-management/polkit.morph + repo: upstream:polkit + ref: 5a7e3b76aa45eea43e4bdc403ddd4c6e1a4c6542 + unpetrify-ref: master + build-depends: + - mozjs17 diff --git a/old/strata/privileges-management/mozjs17.morph b/old/strata/privileges-management/mozjs17.morph new file mode 100644 index 00000000..968bfcc8 --- /dev/null +++ b/old/strata/privileges-management/mozjs17.morph @@ -0,0 +1,18 @@ +name: mozjs17 +kind: chunk +build-system: manual +configure-commands: +- | + cd js/src; + ./configure --prefix="$PREFIX" \ + --sysconfdir=/etc \ + --with-system-nspr \ + --with-system-ffi \ + --enable-threadsafe +build-commands: +- | + cd js/src; + make +install-commands: +- cd js/src; + make DESTDIR="$DESTDIR" install diff --git a/old/strata/privileges-management/polkit.morph b/old/strata/privileges-management/polkit.morph new file mode 100644 index 00000000..6b961600 --- /dev/null +++ b/old/strata/privileges-management/polkit.morph @@ -0,0 +1,11 @@ +name: polkit +kind: chunk +build-system: autotools +max-jobs: 1 +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --disable-man-pages --disable-gtk-doc --enable-libsystemd-login=yes +system-integration: + polkit-misc: + 00-add-polkitd-user: + - groupadd -fg 27 polkitd + - useradd -c "PolicyKit Daemon Owner" -d /etc/polkit-1 -u 27 -g polkitd -s /bin/false polkitd diff --git a/old/strata/python-cliapp.morph b/old/strata/python-cliapp.morph new file mode 100644 index 00000000..d143007d --- /dev/null +++ b/old/strata/python-cliapp.morph @@ -0,0 +1,26 @@ +name: python-cliapp +kind: stratum +description: | + Cliapp command line application framework. +build-depends: +- morph: strata/python2-core.morph +chunks: +- name: python-coveragepy + morph: strata/python-cliapp/python-coveragepy.morph + repo: upstream:python-coveragepy + ref: 77d2e3bfd8fb325092aaed37ba1378054d182d19 + unpetrify-ref: baserock/morph +- name: python-coverage-test-runner + repo: upstream:python-coverage-test-runner + ref: 8ea9421ac3384b2e88e0c36f2cfa52586c4798b7 + unpetrify-ref: baserock/morph + build-system: python-distutils + build-depends: + - python-coveragepy +- name: cliapp + repo: upstream:cliapp + ref: cec20cedd062a3aef1b04f997e77b45090c07806 + unpetrify-ref: baserock/morph + build-system: python-distutils + build-depends: + - python-coverage-test-runner diff --git a/old/strata/python-cliapp/python-coveragepy.morph b/old/strata/python-cliapp/python-coveragepy.morph new file mode 100644 index 00000000..ed5e3d87 --- /dev/null +++ b/old/strata/python-cliapp/python-coveragepy.morph @@ -0,0 +1,6 @@ +name: python-coveragepy +kind: chunk +build-commands: +- python setup.py build +install-commands: +- python setup.py install --prefix=/usr --root "$DESTDIR" diff --git a/old/strata/python-common.morph b/old/strata/python-common.morph new file mode 100644 index 00000000..9777c1df --- /dev/null +++ b/old/strata/python-common.morph @@ -0,0 +1,93 @@ +name: python-common +kind: stratum +description: Common dependencies of some python chunks +build-depends: +- morph: strata/python2-core.morph +chunks: +- name: pycrypto + morph: strata/python-common/pycrypto.morph + repo: upstream:python-packages/pycrypto + ref: af058ee6f5da391a05275470ab4a4a96aa22b350 + unpetrify-ref: v2.7a1 +- name: ecdsa + repo: upstream:python-packages/ecdsa + ref: 36e9cfa80fcf8b53119adc787e54a5892ec1eb2c + unpetrify-ref: python-ecdsa-0.11 + build-system: python-distutils +- name: paramiko + repo: upstream:paramiko + ref: 424ba615c2a94d3b059e7f24db1a1093a92d8d22 + unpetrify-ref: v1.15.2 + build-system: python-distutils + build-depends: + - pycrypto + - ecdsa +- name: markupsafe + repo: upstream:markupsafe + ref: feb1d70c16df62f60dcb521d127fdad8819fc036 + unpetrify-ref: "0.23" + build-system: python-distutils +- name: jinja2 + repo: upstream:jinja2 + ref: 762c612e7276889aac265645da00e62e33d1573c + unpetrify-ref: 2.7.3 + build-system: python-distutils + build-depends: + - markupsafe +- name: python-json-pointer + repo: upstream:python-json-pointer + ref: 34073e561261cb413b9bdff5beac31b070d98ea2 + unpetrify-ref: v1.4 + build-system: python-distutils +- name: python-json-patch + repo: upstream:python-json-patch + ref: e4da658a5dc9f68d3386017ffdcc8e07d22b51a3 + unpetrify-ref: v1.8 + build-system: python-distutils + build-depends: + - python-json-pointer +- name: python-prettytable + repo: upstream:python-prettytable + ref: bea6a50e4da00074b35b57232771cea58b89b3e0 + unpetrify-ref: 0.7.2-RELEASE + build-system: python-distutils +- name: configobj + repo: upstream:configobj-git + ref: 9d2aab01c77dce600b296ba9da1163cc0bbc14e0 + unpetrify-ref: v5.0.6 + build-system: python-distutils +- name: python-mimeparse + repo: upstream:python-packages/python-mimeparse.git + ref: 2d600d3fc4a386af69d20fba433843b4df2b3c92 + unpetrify-ref: master + build-system: python-distutils +- name: kazoo + repo: upstream:python-packages/kazoo.git + ref: 93a718ea4c20df797766742c3d74de281613c651 + unpetrify-ref: "2.0" + build-system: python-distutils +- name: webob + repo: upstream:python-packages/webob + ref: ae0ac90f22f9e1ff351e445f92330efd89195f51 + unpetrify-ref: "1.4" + build-system: python-distutils +- name: python-decorator + repo: upstream:python-packages/python-decorator + ref: b02f7a254c3679dfac57a824e08dd02ced850636 + unpetrify-ref: decorator-3.4.0 + build-system: python-distutils +- name: networkx + repo: upstream:python-packages/networkx + ref: 8ac796aba866ade1a56b83e30f25ed392ca3512c + unpetrify-ref: networkx-1.9.1 + build-system: python-distutils +- name: boto + repo: upstream:boto + ref: 2517f660f8ef9012708d46da3a36ab967993d2f6 + unpetrify-ref: 2.33.0 + build-system: python-distutils +- name: yoyo + repo: upstream:python-packages/yoyo + ref: 7e510acde274d2c806d38057f352e8525ee7ae9d + unpetrify-ref: v5.0.4-release + build-system: python-distutils diff --git a/old/strata/python-common/pycrypto.morph b/old/strata/python-common/pycrypto.morph new file mode 100644 index 00000000..51cc00f0 --- /dev/null +++ b/old/strata/python-common/pycrypto.morph @@ -0,0 +1,3 @@ +name: pycrypto +kind: chunk +build-system: python-distutils diff --git a/old/strata/python-pygobject.morph b/old/strata/python-pygobject.morph new file mode 100644 index 00000000..a6667be2 --- /dev/null +++ b/old/strata/python-pygobject.morph @@ -0,0 +1,13 @@ +name: python-pygobject +kind: stratum +description: | + Python GObject bindings +build-depends: +- morph: strata/python2-core.morph +- morph: strata/glib-common.morph +chunks: +- name: pygobject + morph: strata/python-pygobject/pygobject.morph + repo: upstream:pygobject + ref: 276341d7ddab180020c31e6837bd28fd25784de0 + unpetrify-ref: baserock/morph diff --git a/old/strata/python-pygobject/pygobject.morph b/old/strata/python-pygobject/pygobject.morph new file mode 100644 index 00000000..72382f93 --- /dev/null +++ b/old/strata/python-pygobject/pygobject.morph @@ -0,0 +1,5 @@ +name: pygobject +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --disable-cairo diff --git a/old/strata/python-tools.morph b/old/strata/python-tools.morph new file mode 100644 index 00000000..d61fe150 --- /dev/null +++ b/old/strata/python-tools.morph @@ -0,0 +1,29 @@ +name: python-tools +kind: stratum +description: | + A stratum for useful python tools that we don't want to include in core. +build-depends: +- morph: strata/python2-core.morph +chunks: +- name: virtualenv + repo: upstream:python-packages/virtualenv + ref: 9205ff46a67130e8835f14bb4f802fd59e7dcf2c + unpetrify-ref: 12.0.5 + + build-system: python-distutils +## Pylint - required in openstack-services.morph +- name: astroid + repo: upstream:python-packages/astroid + ref: 194dc114a33b80b4bfbbeb73f36712848f696025 + unpetrify-ref: astroid-1.3.5 + build-system: python-distutils +- name: logilab-common + repo: upstream:python-packages/logilab-common + ref: d1d8f793af6d015d885b9ea67b5741d5a093e2f4 + unpetrify-ref: logilab-common-version-0.62.0 + build-system: python-distutils +- name: pylint + repo: upstream:python-packages/pylint + ref: ba998d7a4e5fce0ea3a3e701ff446bbe4ca406b5 + unpetrify-ref: pylint-1.4.2 + build-system: python-distutils diff --git a/old/strata/python-wsgi.morph b/old/strata/python-wsgi.morph new file mode 100644 index 00000000..cd72e398 --- /dev/null +++ b/old/strata/python-wsgi.morph @@ -0,0 +1,17 @@ +name: python-wsgi +kind: stratum +description: | + Python modules for web applications using Web Server Gateway Interface. +build-depends: +- morph: strata/python2-core.morph +chunks: +- name: bottle + repo: upstream:bottle + ref: 5238c615b3ec198fedebb0fcaad4458e3d68d70f + unpetrify-ref: baserock/morph + build-system: python-distutils +- name: flup + repo: upstream:flup + ref: 0f97c5e0ab7d9827506120efc22af3a9c21d1d70 + unpetrify-ref: baserock/morph + build-system: python-distutils diff --git a/old/strata/python2-core.morph b/old/strata/python2-core.morph new file mode 100644 index 00000000..2ae41d34 --- /dev/null +++ b/old/strata/python2-core.morph @@ -0,0 +1,107 @@ +name: python2-core +kind: stratum +description: | + Some "core" Python 2 packages, including the CPython interpreter itself. + +build-depends: +- morph: strata/core.morph + +chunks: +- name: python2 + morph: strata/python2-core/python2.morph + repo: upstream:cpython + ref: 57af3f22d11600ca98c0c9073d0b3b57d43f7c4b + unpetrify-ref: v2.7.10 + +- name: python2-setuptools + repo: upstream:python-setuptools-bitbucket + ref: 0aa6a4de5931d02876428388678802db2371fd37 + unpetrify-ref: baserock/master + build-system: python-distutils + build-depends: + - python2 + +- name: mako-python2 + repo: upstream:python-packages/mako.git + ref: 285bc818a50ccc0f9549630f7c4f4c250585c3e7 + unpetrify-ref: rel_1_0_0 + build-system: python-distutils + build-depends: + - python2 + - python2-setuptools + +- name: pbr-python2 + repo: upstream:pbr + ref: 6e472b4905411a39e993c81c382a27ca9c771ef5 + unpetrify-ref: 0.11.1 + build-system: python-distutils + build-depends: + - python2 + - python2-setuptools + +- name: python2-requests + repo: upstream:python-requests + ref: b83131779c701720a9ae9efae78996277d416269 + unpetrify-ref: v2.5.1 + build-system: python-distutils + build-depends: + - python2 + +- name: six-python2 + repo: upstream:six + ref: 8cfbff6b764af86d825086fa1637aa009e90d75a + unpetrify-ref: 1.9.0 + build-system: python-distutils + build-depends: + - python2 + +- name: pyyaml-python2 + morph: strata/python2-core/pyyaml-python2.morph + repo: upstream:pyyaml + ref: d9fbcceaed39d955f6871b07c61dc42f824285c1 + unpetrify-ref: baserock/morph + build-depends: + - python2 + - python2-setuptools + +- name: cython2 + repo: upstream:cython + ref: 4dd8e762fa51d01775506fbbc102c45dbcea065d + unpetrify-ref: "0.22" + build-system: python-distutils + build-depends: + - python2 + +- name: python2-lxml + repo: upstream:python-lxml + ref: 14505bc62f5f1fc9fb0ff007955f3e67ab4562bb + unpetrify-ref: lxml-3.4.0 + build-system: python-distutils + build-depends: + - python2 + - cython2 + +- name: python2-markdown + repo: upstream:python-markdown + ref: f0c5b71acbc02af60a33d67c59558bb513b25e74 + unpetrify-ref: 2.5.1-final + build-system: python-distutils + build-depends: + - python2 + +- name: libxml2-python2 + repo: upstream:libxml2 + ref: 6657afe83a38278f124ace71dc85f60420beb2d5 + unpetrify-ref: v2.9.3 + build-system: autotools + build-depends: + - python2 + +- name: jsonschema-python2 + repo: upstream:jsonschema + ref: 35b60f390098d3306c03eee27ceec8cf8a493579 + unpetrify-ref: v2.3.0 + build-system: python-distutils + build-depends: + - python2 + - python2-setuptools diff --git a/old/strata/python2-core/python2.morph b/old/strata/python2-core/python2.morph new file mode 100644 index 00000000..d5f6913a --- /dev/null +++ b/old/strata/python2-core/python2.morph @@ -0,0 +1,13 @@ +name: python2 +kind: chunk +build-system: autotools +configure-commands: +- | + ./configure --prefix="$PREFIX" \ + --enable-shared \ + --with-ensurepip=upgrade \ + --with-system-expat \ + --with-system-ffi +post-install-commands: +- ln -sf python2.7 "$DESTDIR"/"$PREFIX"/bin/python +- test -x "$DESTDIR"/"$PREFIX"/bin/python2 || ln -s python2.7 "$DESTDIR"/"$PREFIX"/bin/python2 diff --git a/old/strata/python2-core/pyyaml-python2.morph b/old/strata/python2-core/pyyaml-python2.morph new file mode 100644 index 00000000..54d2b035 --- /dev/null +++ b/old/strata/python2-core/pyyaml-python2.morph @@ -0,0 +1,6 @@ +name: pyyaml-python2 +kind: chunk +build-commands: +- python2 setup.py --without-libyaml build +install-commands: +- python2 setup.py --without-libyaml install --prefix="$PREFIX" --root "$DESTDIR" diff --git a/old/strata/python3-gobject.morph b/old/strata/python3-gobject.morph new file mode 100644 index 00000000..1e2db195 --- /dev/null +++ b/old/strata/python3-gobject.morph @@ -0,0 +1,13 @@ +name: python3-gobject +kind: stratum +description: | + Python 3 GObject bindings +build-depends: +- morph: strata/core.morph +- morph: strata/glib-common.morph +chunks: +- name: python3-gobject + morph: strata/python3-gobject/python3-gobject.morph + repo: upstream:pygobject + ref: 8e7f6f1458cf1c162c13422c72562b00433b762b + unpetrify-ref: pygobject-3-18 diff --git a/old/strata/python3-gobject/python3-gobject.morph b/old/strata/python3-gobject/python3-gobject.morph new file mode 100644 index 00000000..8f165ad1 --- /dev/null +++ b/old/strata/python3-gobject/python3-gobject.morph @@ -0,0 +1,5 @@ +name: python3-gobject +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --disable-cairo --with-python=python3 diff --git a/old/strata/qt5-sdk.morph b/old/strata/qt5-sdk.morph new file mode 100644 index 00000000..0d556d38 --- /dev/null +++ b/old/strata/qt5-sdk.morph @@ -0,0 +1,15 @@ +name: qt5-sdk +kind: stratum +description: Qt5 Desktop Environment, IDE and Example Apps +build-depends: +- morph: strata/qt5-tools.morph +- morph: strata/qt5-tools-qtwebkit.morph +chunks: +- name: qt-creator + morph: strata/qt5-sdk/qt-creator.morph + repo: upstream:qt-creator + ref: 8895770ba36f96f150fe8dca71f889ff24d07fd6 + unpetrify-ref: baserock/v3.6.1 + submodules: + qbs: + url: upstream:qbs diff --git a/old/strata/qt5-sdk/qt-creator.morph b/old/strata/qt5-sdk/qt-creator.morph new file mode 100644 index 00000000..91fae589 --- /dev/null +++ b/old/strata/qt5-sdk/qt-creator.morph @@ -0,0 +1,8 @@ +name: qt-creator +kind: chunk +configure-commands: +- qmake +build-commands: +- make +install-commands: +- make install INSTALL_ROOT=$DESTDIR diff --git a/old/strata/qt5-sdk/snowshoe.morph b/old/strata/qt5-sdk/snowshoe.morph new file mode 100644 index 00000000..f89ab751 --- /dev/null +++ b/old/strata/qt5-sdk/snowshoe.morph @@ -0,0 +1,8 @@ +name: snowshoe +kind: chunk +configure-commands: +- qmake +build-commands: +- make +install-commands: +- make install INSTALL_ROOT=$DESTDIR diff --git a/old/strata/qt5-tools-qtmultimedia.morph b/old/strata/qt5-tools-qtmultimedia.morph new file mode 100644 index 00000000..4f3484cd --- /dev/null +++ b/old/strata/qt5-tools-qtmultimedia.morph @@ -0,0 +1,12 @@ +name: qt5-tools-qtmultimedia +kind: stratum +description: Qt5 QtMultimedia Development Libraries and Tools +build-depends: +- morph: strata/qt5-tools.morph +- morph: strata/multimedia-gstreamer.morph +chunks: +- name: qtmultimedia + repo: upstream:qt5/qtmultimedia + ref: 631a6f6c38a5140e22c63b0840d9badb87851949 + unpetrify-ref: v5.9.1 + build-system: qmake diff --git a/old/strata/qt5-tools-qtwayland.morph b/old/strata/qt5-tools-qtwayland.morph new file mode 100644 index 00000000..54dcf1e2 --- /dev/null +++ b/old/strata/qt5-tools-qtwayland.morph @@ -0,0 +1,12 @@ +name: qt5-tools-qtwayland +kind: stratum +description: Qt5 Wayland module +build-depends: +- morph: strata/input-common.morph +- morph: strata/qt5-tools.morph +chunks: +- name: qtwayland + morph: strata/qt5-tools-qtwayland/qtwayland.morph + repo: upstream:qt5/qtwayland + ref: ebba84e70fe3610affc3974f51c8ed6d539377aa + unpetrify-ref: baserock/v5.6.0-15-gebba84e+ivi-shell diff --git a/old/strata/qt5-tools-qtwayland/qtwayland.morph b/old/strata/qt5-tools-qtwayland/qtwayland.morph new file mode 100644 index 00000000..06e8ac7c --- /dev/null +++ b/old/strata/qt5-tools-qtwayland/qtwayland.morph @@ -0,0 +1,5 @@ +name: qtwayland +kind: chunk +build-system: qmake +configure-commands: +- qmake -makefile CONFIG+=wayland-compositor diff --git a/old/strata/qt5-tools-qtwebengine.morph b/old/strata/qt5-tools-qtwebengine.morph new file mode 100644 index 00000000..a5ac2000 --- /dev/null +++ b/old/strata/qt5-tools-qtwebengine.morph @@ -0,0 +1,23 @@ +name: qt5-tools-qtwebengine +kind: stratum +description: Qt5 WebEngine Development Libraries and Tools +build-depends: +- morph: strata/multimedia-gstreamer.morph +- morph: strata/qt5-tools.morph +- morph: strata/ruby.morph +chunks: +- name: qtwebchannel + repo: upstream:qt5/qtwebchannel + ref: 392da2b649ce669bf329b49668a69007179e4726 + unpetrify-ref: 5.9.1 + build-system: qmake +- name: qtwebengine + repo: upstream:qt5/qtwebengine + ref: 0340d87b7c12a5e56966e61db156e4a299b57bd9 + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtwebchannel + submodules: + src/3rdparty: + url: upstream:qt5/qtwebengine-chromium.git diff --git a/old/strata/qt5-tools-qtwebkit.morph b/old/strata/qt5-tools-qtwebkit.morph new file mode 100644 index 00000000..7c48d4c3 --- /dev/null +++ b/old/strata/qt5-tools-qtwebkit.morph @@ -0,0 +1,41 @@ +name: qt5-tools-qtwebkit +kind: stratum +description: Qt5 WebKit Development Libraries and Tools +build-depends: +- morph: strata/multimedia-gstreamer.morph +- morph: strata/qt5-tools.morph +- morph: strata/ruby.morph +chunks: +- name: qtwebchannel + repo: upstream:qt5/qtwebchannel + ref: 392da2b649ce669bf329b49668a69007179e4726 + unpetrify-ref: 5.9.1 + build-system: qmake +- name: qtwebkit + repo: upstream:qt5/qtwebkit + ref: d10511e0a3f655ab2b1dfebfd9c17ade151a7cfe + unpetrify-ref: 5.212 + build-system: qmake + build-depends: + - qtwebchannel +- name: qtwebkit-examples + repo: upstream:qt5/qtwebkit-examples + ref: f544b2eec0c18b7674ac4df629ae98e8cacce5c7 + unpetrify-ref: 5.9.1 + build-system: qmake + build-depends: + - qtwebkit +- name: qttools + repo: upstream:qt5/qttools + ref: dfda6f14b3e210a33b71ef1c6fa3c75a9c866cce + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtwebkit +- name: qttranslations + repo: upstream:qt5/qttranslations + ref: ad5a9af215e2b1276893490c7fe92de39cc25005 + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qttools diff --git a/old/strata/qt5-tools.morph b/old/strata/qt5-tools.morph new file mode 100644 index 00000000..87792a12 --- /dev/null +++ b/old/strata/qt5-tools.morph @@ -0,0 +1,132 @@ +name: qt5-tools +kind: stratum +description: Qt5 Development Libraries and Tools +build-depends: +- morph: strata/icu-common.morph +- morph: strata/tools.morph +- morph: strata/x-generic.morph +chunks: +- name: qtbase + morph: strata/qt5-tools/qtbase.morph + repo: upstream:qt5/qtbase + ref: 160533328cae32c8647cecafad21233aa3529659 + unpetrify-ref: v5.9.1 +- name: qtsvg + repo: upstream:qt5/qtsvg + ref: 96d3cb055fe477aa2699682555c3c33c66e0e300 + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtbase +- name: qtscript + repo: upstream:qt5/qtscript + ref: dc65e802cae6751b167ada36b45f5b7ec53a1865 + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtbase +- name: qtdeclarative + repo: upstream:qt5/qtdeclarative + ref: 525de4ff29cfefd9f676ba35a4e8d7494e5198c2 + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtbase + - qtscript + submodules: + tests/auto/qml/ecmascripttests/test262: + url: upstream:qt5/qtdeclarative-testsuites.git +- name: qt3d + repo: upstream:qt5/qt3d + ref: 6310f055965f824f716ccc3fbc99e4209f667635 + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtbase + - qtscript + - qtdeclarative +- name: qtquickcontrols + repo: upstream:qt5/qtquickcontrols + ref: 5362d2d12970e435cc03dbd354fdd781ae666101 + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtbase + - qtdeclarative +- name: qtsensors + repo: upstream:qt5/qtsensors + ref: c67dbe9b0f853bd607fcdc29d8f7a128db7d9f0a + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtbase +- name: qtserialport + repo: upstream:qt5/qtserialport + ref: 385eb5bcb9b230222a99dc8c125b3d13be978465 + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtbase +- name: qtx11extras + repo: upstream:qt5/qtx11extras + ref: a4eef519a7524835c93f5658dbf7064c83e33bbc + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtbase +- name: qtxmlpatterns + repo: upstream:qt5/qtxmlpatterns + ref: 55bf61b68b42a79548bf1bf1358981d40cf75911 + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtbase + submodules: + tests/auto/3rdparty/testsuites: + url: upstream:qt5/qtxmlpatterns-testsuites.git +- name: qtdoc + repo: upstream:qt5/qtdoc + ref: 77ba407df4dc4257f9df37305c25bb6c0f5fb886 + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtbase +- name: qtgraphicaleffects + repo: upstream:qt5/qtgraphicaleffects + ref: ef26dd7c053c3a7a816e78a95898072a8f9b22ed + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtbase + - qtdeclarative +- name: qtimageformats + repo: upstream:qt5/qtimageformats + ref: 6a325512a8d50f68a650ec9822dcd918653567c4 + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtbase +- name: qtconnectivity + repo: upstream:qt5/qtconnectivity + ref: a6772267d013bff5fbdf09634dc60977d83933b3 + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtbase +- name: qtlocation + repo: upstream:qt5/qtlocation + ref: dc70a1ffdcb6ab5753773917642b4d89e68d21e7 + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtbase + submodules: + src/3rdparty/mapbox-gl-native: + url: upstream:qt5/qtlocation-mapboxgl.git +- name: qtwebsockets + repo: upstream:qt5/qtwebsockets + ref: 2818cc3e3d1aeb739eb82d5636a8caf56f5cfaf2 + unpetrify-ref: v5.9.1 + build-system: qmake + build-depends: + - qtbase diff --git a/old/strata/qt5-tools/qtbase.morph b/old/strata/qt5-tools/qtbase.morph new file mode 100644 index 00000000..0a6c61bc --- /dev/null +++ b/old/strata/qt5-tools/qtbase.morph @@ -0,0 +1,5 @@ +name: qtbase +kind: chunk +build-system: qmake +configure-commands: +- ./configure -v -prefix /usr -opensource -confirm-license diff --git a/old/strata/ruby.morph b/old/strata/ruby.morph new file mode 100644 index 00000000..88e4d629 --- /dev/null +++ b/old/strata/ruby.morph @@ -0,0 +1,54 @@ +name: ruby +kind: stratum +description: | + Ruby and common Ruby build dependencies. + + Most Gem dependencies are not required when building or installing the + Gem. They are needed at runtime only. Tools which extend Rake, such as + 'hoe' and 'rake-compiler', are exceptions to that rule, and are kept + in this stratum so they are always available when building other Gems. +build-depends: +- morph: strata/tools.morph +chunks: +- name: ruby-1.8 + morph: strata/ruby/ruby-1.8.morph + repo: upstream:ruby + ref: 7a24f1710028d568ad61d0aa49d5178260178d77 + unpetrify-ref: baserock/morph/ruby_1_8_7 +- name: libyaml + repo: upstream:libyaml-hg + ref: 0577078d6625a7bf06e6bc7fb26a43e27400b17e + unpetrify-ref: master + build-system: autotools +- name: ruby + morph: strata/ruby/ruby.morph + repo: upstream:ruby + ref: 05604af5a6da635b8bca51269db8b433972e82c0 + unpetrify-ref: baserock/ruby_2_0_0 + build-depends: + - ruby-1.8 + - libyaml +- name: bundler + morph: strata/ruby/bundler.morph + repo: upstream:bundler + ref: 0708fbe62617a63300e1cc3b9869cc1280c57ef6 + unpetrify-ref: baserock/v1.6.2 + build-depends: + - libyaml + - ruby +- name: hoe + morph: strata/ruby/hoe.morph + repo: upstream:ruby-gems/hoe + ref: 50a2706d0f70ece52922ddcc56630e1e0655b83e + unpetrify-ref: master + build-depends: + - ruby + - libyaml +- name: rake-compiler + morph: strata/ruby/rake-compiler.morph + repo: upstream:ruby-gems/rake-compiler + ref: aaed621f6fdb0b0395775fea5464cc83e794fbdb + unpetrify-ref: v0.9.3 + build-depends: + - libyaml + - ruby diff --git a/old/strata/ruby/bundler.morph b/old/strata/ruby/bundler.morph new file mode 100644 index 00000000..643ef119 --- /dev/null +++ b/old/strata/ruby/bundler.morph @@ -0,0 +1,6 @@ +name: bundler +kind: chunk +build-commands: +- rake build +install-commands: +- gem install ./pkg/*gem --bindir "$DESTDIR/$PREFIX/bin" --install-dir "$DESTDIR/$PREFIX/lib/ruby/gems/2.0.0" diff --git a/old/strata/ruby/hoe.morph b/old/strata/ruby/hoe.morph new file mode 100644 index 00000000..0d06a82a --- /dev/null +++ b/old/strata/ruby/hoe.morph @@ -0,0 +1,16 @@ +name: hoe +kind: chunk +description: | + Hoe is a rake/rubygems helper for project Rakefiles. It helps you + manage, maintain, and release your project and includes a dynamic + plug-in system allowing for easy extensibility. +products: +- artifact: hoe-doc + include: + - usr/lib/ruby/gems/\d[\w.]*/doc/.* +build-commands: +- rake gem +install-commands: +- mkdir -p "$DESTDIR/$(gem environment home)" +- gem install --install-dir "$DESTDIR/$(gem environment home)" --bindir "$DESTDIR/$PREFIX/bin" + --ignore-dependencies --local ./pkg/hoe-*.gem diff --git a/old/strata/ruby/rake-compiler.morph b/old/strata/ruby/rake-compiler.morph new file mode 100644 index 00000000..9286f14a --- /dev/null +++ b/old/strata/ruby/rake-compiler.morph @@ -0,0 +1,15 @@ +name: rake-compiler +kind: chunk +description: | + Provide a standard and simplified way to build and package Ruby + extensions (C, Java) using Rake as glue. +products: +- artifact: rake-compiler-doc + include: + - usr/lib/ruby/gems/\d[\w.]*/doc/.* +build-commands: +- rake gem +install-commands: +- mkdir -p "$DESTDIR/$(gem environment home)" +- gem install --install-dir "$DESTDIR/$(gem environment home)" --bindir "$DESTDIR/$PREFIX/bin" + --ignore-dependencies --local ./pkg/rake-compiler-*.gem diff --git a/old/strata/ruby/ruby-1.8.morph b/old/strata/ruby/ruby-1.8.morph new file mode 100644 index 00000000..4554e441 --- /dev/null +++ b/old/strata/ruby/ruby-1.8.morph @@ -0,0 +1,9 @@ +name: ruby-1.8 +kind: chunk +build-system: autotools +pre-configure-commands: +- cp /usr/share/automake*/config.guess . +- cp /usr/share/automake*/config.sub . +- autoconf +configure-commands: +- ./configure --prefix=/usr --program-suffix=-1.8 diff --git a/old/strata/ruby/ruby.morph b/old/strata/ruby/ruby.morph new file mode 100644 index 00000000..f9f0ae7c --- /dev/null +++ b/old/strata/ruby/ruby.morph @@ -0,0 +1,9 @@ +name: ruby +kind: chunk +build-system: autotools +pre-configure-commands: +- cp /usr/share/automake*/config.guess tool +- cp /usr/share/automake*/config.sub tool +- autoconf +configure-commands: +- ./configure --prefix=/usr --enable-shared --with-baseruby=/usr/bin/ruby-1.8 diff --git a/old/strata/samba.morph b/old/strata/samba.morph new file mode 100644 index 00000000..97e72c7a --- /dev/null +++ b/old/strata/samba.morph @@ -0,0 +1,13 @@ +name: samba +kind: stratum +description: Simple samba server +build-depends: +- morph: strata/core.morph +- morph: strata/foundation.morph +- morph: strata/python2-core.morph +chunks: +- name: samba + morph: strata/samba/samba.morph + repo: upstream:samba + ref: 704592c14dfedbe98e95d43860d062dc6338bca3 + unpetrify-ref: master diff --git a/old/strata/samba/samba.morph b/old/strata/samba/samba.morph new file mode 100644 index 00000000..748ee886 --- /dev/null +++ b/old/strata/samba/samba.morph @@ -0,0 +1,127 @@ +name: samba +kind: chunk +configure-commands: +- | + # Here are really really ugly hacks: + # + # This fixes a problem with ./configure and recent compilers + # which implement c9x by default. + sed -i "s/#define bool int//" source3/lib/util_sec.c + # + # This fixes the problem with Baserock build environments running + # as root but sandboxed, and preventing certain privileged operations + # from taking effect. eg. seteuid() + # Instead, convince it that we're not running as root so that it + # doesn't run these tests. + sed -i "s/getuid() != 0/1/" source3/lib/util_sec.c + # + # + ./configure \ + --without-ldap \ + --disable-gnutls \ + --without-ad-dc \ + --without-acl-support \ + --without-ads \ + --prefix="$PREFIX" --sysconfdir=/etc --localstatedir=/var --enable-fhs +build-commands: +- make +install-commands: +- make install DESTDIR="$DESTDIR" +# systemd configuration +- mkdir -p "$DESTDIR/etc/tmpfiles.d" +- install -m 644 ./packaging/systemd/samba.conf.tmp "$DESTDIR/etc/tmpfiles.d/samba.conf" +- mkdir -p "$DESTDIR/lib/systemd/system/multi-user.target.wants" +- | + cat <<EOF >"$DESTDIR/lib/systemd/system/nmb.service" + [Unit] + Description=Samba NMB Daemon + After=syslog.target network-online.target + + [Service] + Type=forking + PIDFile=/var/run/samba/nmbd.pid + EnvironmentFile=-/etc/sysconfig/samba + ExecStart=$PREFIX/sbin/nmbd \$NMBDOPTIONS + ExecReload=$PREFIX/bin/kill -HUP \$MAINPID + + [Install] + WantedBy=multi-user.target + EOF +- | + cat <<EOF >"$DESTDIR/lib/systemd/system/smb.service" + [Unit] + Description=Samba SMB Daemon + After=syslog.target network-online.target nmb.service winbind.service + + [Service] + Type=forking + PIDFile=/var/run/samba/smbd.pid + EnvironmentFile=-/etc/sysconfig/samba + ExecStart=$PREFIX/sbin/smbd \$NMBDOPTIONS + ExecReload=$PREFIX/bin/kill -HUP \$MAINPID + + [Install] + WantedBy=multi-user.target + EOF +- | + cat <<EOF >"$DESTDIR/lib/systemd/system/winbind.service" + [Unit] + Description=Samba winbind Daemon + After=syslog.target network-online.target nmb.service + + [Service] + Type=forking + PIDFile=/var/run/samba/winbindd.pid + EnvironmentFile=-/etc/sysconfig/samba + ExecStart=$PREFIX/sbin/winbindd \$NMBDOPTIONS + ExecReload=$PREFIX/bin/kill -HUP \$MAINPID + + [Install] + WantedBy=multi-user.target + EOF +- | + for i in nmb smb winbind + do + ln -s ../$i.service "$DESTDIR/lib/systemd/system/multi-user.target.wants/$i.service" + done +- mkdir -p "$DESTDIR/var/log/samba" +# Install a sample configuration +- mkdir -p "$DESTDIR/etc/samba" +- | + cat <<EOF >"$DESTDIR/etc/samba/smb.conf" + [global] + workgroup = WORKGROUP + dns proxy = no + local master = yes + preferred master = yes + os level = 2 + log file = /var/log/samba/log.%m + max log size = 1000 + syslog = 0 + server role = standalone server + passdb backend = tdbsam + obey pam restrictions = yes + unix password sync = yes + pam password change = yes + map to guest = bad user + usershare allow guests = yes + [homes] + comment = Home Directories + browseable = no + read only = yes + create mask = 0700 + valid users = %S + ;[printers] + ;comment = All Printers + ;browseable = no + ;path = /var/spool/samba + ;printable = yes + ;guest ok = no + ;read only = yes + ;create mask = 0700 + ;[src] + ;comment = Source code + ;path = /src + ;read only = yes + ;guest ok = yes + EOF diff --git a/old/strata/sandboxing.morph b/old/strata/sandboxing.morph new file mode 100644 index 00000000..64de36c3 --- /dev/null +++ b/old/strata/sandboxing.morph @@ -0,0 +1,18 @@ +name: sandboxing +kind: stratum +description: | + Libraries/tools for running programs/commands in a (partially) isolated + environment. +build-depends: +- morph: strata/python2-core.morph +chunks: +- name: sandboxlib + repo: upstream:sandboxlib + ref: ce30050daa10fa32801e8f798911b36aa82343a4 + unpetrify-ref: master + build-system: python-distutils +- name: linux-user-chroot + repo: upstream:linux-user-chroot + ref: 40e0b71d556414dfe150a74937f2c8a68d351d6d + unpetrify-ref: v2015.1 + build-system: autotools diff --git a/old/strata/secret-service.morph b/old/strata/secret-service.morph new file mode 100644 index 00000000..b6f9e896 --- /dev/null +++ b/old/strata/secret-service.morph @@ -0,0 +1,27 @@ +name: secret-service +kind: stratum +description: Service implementing the DBus Secret Service API +build-depends: +- morph: strata/foundation.morph +- morph: strata/glib-common.morph +- morph: strata/gtk3.morph +- morph: strata/network-security.morph +- morph: strata/vala-common.morph +chunks: +- name: gcr + repo: upstream:gnome/gcr + ref: 289ba4859fd170285f51e6bbfe91f2aac3b9170d + unpetrify-ref: 3.18.0 + build-system: autotools +- name: gnome-keyring + morph: strata/secret-service/gnome-keyring.morph + repo: upstream:gnome-keyring + ref: eb16c037431da14d4f1c396357f82f2b35e76e23 + unpetrify-ref: baserock/3.18.3-5-geb16c03 + build-depends: + - gcr +- name: libsecret + morph: strata/secret-service/libsecret.morph + repo: upstream:gnome/libsecret + ref: 4d76cf7dd8e55d93bb58164a1fff38113ba97af5 + unpetrify-ref: master diff --git a/old/strata/secret-service/gnome-keyring.morph b/old/strata/secret-service/gnome-keyring.morph new file mode 100644 index 00000000..73fe5298 --- /dev/null +++ b/old/strata/secret-service/gnome-keyring.morph @@ -0,0 +1,5 @@ +name: gnome-keyring +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --disable-selinux --enable-pam --with-pam-dir=/lib/security --disable-doc diff --git a/old/strata/secret-service/libsecret.morph b/old/strata/secret-service/libsecret.morph new file mode 100644 index 00000000..b8af29b1 --- /dev/null +++ b/old/strata/secret-service/libsecret.morph @@ -0,0 +1,5 @@ +name: libsecret +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --disable-manpages diff --git a/old/strata/sound-server-pulseaudio.morph b/old/strata/sound-server-pulseaudio.morph new file mode 100644 index 00000000..e9f9d830 --- /dev/null +++ b/old/strata/sound-server-pulseaudio.morph @@ -0,0 +1,74 @@ +name: sound-server-pulseaudio +kind: stratum +description: Components required for pulseaudio. +build-depends: +- morph: strata/bluetooth.morph +chunks: +- name: libatomic_ops + repo: upstream:libatomic_ops + ref: 0a58f5d63969c10d2141af89cb7a53df786909ab + unpetrify-ref: baserock/morph + build-system: autotools +- name: alsa-lib + repo: upstream:alsa-lib + ref: 7e86c8c56fba6fd8cdb57ee97aaa731c351a8892 + # Note: ref anchored because alsa-lib is known for rebasing + # tags, and master + unpetrify-ref: baserock/v1.1.3 + build-system: autotools +- name: alsa-utils + morph: strata/sound-server-pulseaudio/alsa-utils.morph + repo: upstream:alsa-utils + ref: 84591f0de015e5c40f5bfea83ca62360b9eaa349 + # Note: ref anchored because alsa-utils is known for rebasing + # tags, and master + unpetrify-ref: baserock/v1.1.3 + build-depends: + - alsa-lib +- name: speex + repo: upstream:speex + ref: e5dc987a403426ee3d0d81768afffa0fe74e20fa + unpetrify-ref: baserock/morph + build-system: autotools +- name: libsndfile + morph: strata/sound-server-pulseaudio/libsndfile.morph + repo: upstream:libsndfile + ref: 6c05c615c95ffef7a8a5a707cde0bb52bdd74244 + unpetrify-ref: baserock/morph +- name: libdaemon + repo: upstream:libdaemon + ref: 9fcc28e0e8f84968d1fb8b6d544a42efb13803ec + unpetrify-ref: v0.14 + build-system: autotools +- name: avahi + morph: strata/sound-server-pulseaudio/avahi.morph + repo: upstream:avahi + ref: 4c0b4cbf9c597f6df6a3220dec5438f4fe9e551b + unpetrify-ref: v0.6.31 + build-depends: + - libdaemon +- name: sbc + repo: upstream:sbc + ref: 24812c660036a693f8770766aa6fdea667de05d0 + unpetrify-ref: "1.3" + build-system: autotools + build-depends: + - libsndfile +- name: webrtc-audio-processing + morph: strata/sound-server-pulseaudio/webrtc-audio-processing.morph + repo: upstream:webrtc-audio-processing + ref: 9a0e28cab06f43d10cd00b69fc14dee78a73c2d0 + unpetrify-ref: v0.2 +- name: pulseaudio + morph: strata/sound-server-pulseaudio/pulseaudio.morph + repo: upstream:pulseaudio + ref: 84952e6a092b6a0c5b153bd7a4f6e490810681c8 + unpetrify-ref: v10.0 + build-depends: + - avahi + - libsndfile + - libatomic_ops + - speex + - alsa-lib + - sbc + - webrtc-audio-processing diff --git a/old/strata/sound-server-pulseaudio/alsa-utils.morph b/old/strata/sound-server-pulseaudio/alsa-utils.morph new file mode 100644 index 00000000..a6a1e041 --- /dev/null +++ b/old/strata/sound-server-pulseaudio/alsa-utils.morph @@ -0,0 +1,7 @@ +name: alsa-utils +kind: chunk +description: ALSA utilities +build-system: autotools +configure-commands: +- autoreconf -ifv +- ./configure --prefix="$PREFIX" --disable-xmlto diff --git a/old/strata/sound-server-pulseaudio/avahi.morph b/old/strata/sound-server-pulseaudio/avahi.morph new file mode 100644 index 00000000..a255ce1e --- /dev/null +++ b/old/strata/sound-server-pulseaudio/avahi.morph @@ -0,0 +1,16 @@ +name: avahi +kind: chunk +build-system: autotools +configure-commands: +- | + ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --localstatedir=/var --disable-werror \ + --with-distro=none --disable-qt3 --disable-qt4 --disable-gtk --disable-gtk3 \ + --disable-pygtk --disable-python-dbus --disable-mono --disable-manpages +system-integration: + avahi-misc: + 00-add-avahi-user: + - groupadd -fg 86 netdev + - groupadd -fg 84 avahi + - useradd -c "Avahi Daemon Owner" -d /var/run/avahi-daemon -u 84 -g avahi -s /bin/false avahi + 00-enable-avahi-service: + - systemctl enable avahi-daemon diff --git a/old/strata/sound-server-pulseaudio/libsndfile.morph b/old/strata/sound-server-pulseaudio/libsndfile.morph new file mode 100644 index 00000000..8d6c2fe0 --- /dev/null +++ b/old/strata/sound-server-pulseaudio/libsndfile.morph @@ -0,0 +1,5 @@ +name: libsndfile +kind: chunk +build-system: autotools +configure-commands: +- ./configure --prefix="$PREFIX" --disable-external-libs diff --git a/old/strata/sound-server-pulseaudio/pulseaudio.morph b/old/strata/sound-server-pulseaudio/pulseaudio.morph new file mode 100644 index 00000000..dfaa9b0d --- /dev/null +++ b/old/strata/sound-server-pulseaudio/pulseaudio.morph @@ -0,0 +1,18 @@ +name: pulseaudio +kind: chunk +description: PulseAudio System +build-system: autotools +pre-configure-commands: +- NOCONFIGURE=1 ./bootstrap.sh +configure-commands: +- ./configure --prefix="$PREFIX" --localstatedir=/var --sysconfdir=/etc --with-database=simple + --with-systemduserunitdir=/usr/lib/systemd/user + --with-system-user=pulse --with-system-group=pulse --with-access-group=pulse-access + --enable-webrtc-aec +system-integration: + pulseaudio-misc: + 00-add-pulse-users: + - groupadd -rf pulse-access + - groupadd -rf pulse-rt + - groupadd -f -g 171 -r pulse + - useradd -r -g pulse -d /var/run/pulse -s /bin/false -c "PulseAudio System Daemon" pulse || exit 0 diff --git a/old/strata/sound-server-pulseaudio/webrtc-audio-processing.morph b/old/strata/sound-server-pulseaudio/webrtc-audio-processing.morph new file mode 100644 index 00000000..ea8cd4e0 --- /dev/null +++ b/old/strata/sound-server-pulseaudio/webrtc-audio-processing.morph @@ -0,0 +1,14 @@ +name: webrtc-audio-processing +kind: chunk +build-system: autotools +configure-commands: +- | + NOCONFIGURE=1 ./autogen.sh + + case "$MORPH_ARCH" in + x86_32) + sed -i -e "s/-O2/& -msse2/" configure + ;; + esac + + ./configure --prefix="$PREFIX" --sysconfdir=/etc --localstatedir=/var diff --git a/old/strata/spell-checking.morph b/old/strata/spell-checking.morph new file mode 100644 index 00000000..dfe8b997 --- /dev/null +++ b/old/strata/spell-checking.morph @@ -0,0 +1,16 @@ +name: spell-checking +kind: stratum +description: Spell checking libraries +build-depends: +- morph: strata/glib-common.morph +chunks: +- name: enchant + repo: upstream:enchant + ref: 6d8b6bb15f09a14c90fb900eb2ecf1172d7cf6cf + unpetrify-ref: master + build-system: autotools +- name: hyphen + repo: upstream:hyphen + ref: 7f28cf7edb54cc1bc4eaa09672e0bc043b1da70b + unpetrify-ref: master + build-system: autotools diff --git a/old/strata/storage-management.morph b/old/strata/storage-management.morph new file mode 100644 index 00000000..c972d0d3 --- /dev/null +++ b/old/strata/storage-management.morph @@ -0,0 +1,40 @@ +name: storage-management +kind: stratum +description: libraries/services that provides access to storage +build-depends: +- morph: strata/device-management.morph +- morph: strata/glib-common.morph +- morph: strata/privileges-management.morph +- morph: strata/secret-service.morph +chunks: +- name: libatasmart + morph: strata/storage-management/libatasmart.morph + repo: upstream:libatasmart + ref: de6258940960443038b4c1651dfda3620075e870 + unpetrify-ref: master +- name: udisks + morph: strata/storage-management/udisks.morph + repo: upstream:udisks + ref: 410cab8f3d749ad2660cda3ba38b6aece42bf10f + unpetrify-ref: master + build-depends: + - libatasmart +- name: libgphoto2 + repo: upstream:libgphoto2 + ref: 3745402108932b457d73b102cbf8b2da8d383a18 + unpetrify-ref: libgphoto2-2_5_9-release + build-system: autotools +- name: libmtp + morph: strata/storage-management/libmtp.morph + repo: upstream:libmtp + ref: 83820ced69dca750b2edd6ac6d5640f246022a10 + unpetrify-ref: libmtp-1-1-11 +- name: gvfs + morph: strata/storage-management/gvfs.morph + repo: upstream:gvfs + ref: d037b5fd56cae878ed7bb5269a40e4bd046551d7 + unpetrify-ref: master + build-depends: + - libgphoto2 + - libmtp + - udisks diff --git a/old/strata/storage-management/gvfs.morph b/old/strata/storage-management/gvfs.morph new file mode 100644 index 00000000..bafd3158 --- /dev/null +++ b/old/strata/storage-management/gvfs.morph @@ -0,0 +1,5 @@ +name: gvfs +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --disable-documentation diff --git a/old/strata/storage-management/libatasmart.morph b/old/strata/storage-management/libatasmart.morph new file mode 100644 index 00000000..e8df654e --- /dev/null +++ b/old/strata/storage-management/libatasmart.morph @@ -0,0 +1,6 @@ +name: libatasmart +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh +- ./configure CFLAGS='-g -O0 -Wp,-U_FORTIFY_SOURCE' --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib --libexecdir=/usr/lib diff --git a/old/strata/storage-management/libmtp.morph b/old/strata/storage-management/libmtp.morph new file mode 100644 index 00000000..8dbb22ba --- /dev/null +++ b/old/strata/storage-management/libmtp.morph @@ -0,0 +1,8 @@ +name: libmtp +kind: chunk +build-system: autotools +configure-commands: +# autogen.sh asks user about autoupdate config.sub and config.guess +- touch config.rpath +- autoreconf -if +- ./configure --prefix="$PREFIX" --sysconfdir=/etc --localstatedir=/var diff --git a/old/strata/storage-management/udisks.morph b/old/strata/storage-management/udisks.morph new file mode 100644 index 00000000..785fab39 --- /dev/null +++ b/old/strata/storage-management/udisks.morph @@ -0,0 +1,5 @@ +name: udisks +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --enable-fhs-media --disable-gtk-doc --disable-man diff --git a/old/strata/swift.morph b/old/strata/swift.morph new file mode 100644 index 00000000..41fd0c75 --- /dev/null +++ b/old/strata/swift.morph @@ -0,0 +1,53 @@ +name: swift +kind: stratum +description: Distributed object storage +build-depends: +# openstack-common is required for simplejson, cffi, greenlet, +# eventlet, pastedeploy, netifaces +- morph: strata/openstack-common.morph +chunks: +- name: dnspython + repo: upstream:python-packages/dnspython + ref: e1369c62d14f82b80ef11197a490ace5d43bb3f3 + unpetrify-ref: v1.12.0 + build-system: python-distutils +- name: xattr + morph: strata/swift/xattr.morph + repo: upstream:python-packages/xattr + ref: dd10d44e3eb9a1d2303c1f7d5126c099d56e97fc + unpetrify-ref: v0.7.6 +- name: liberasurecode + morph: strata/swift/liberasurecode.morph + repo: upstream:liberasurecode + ref: a380246762c16ea8eb7dbfccd50d296c3743b39e + unpetrify-ref: v1.0.7 +- name: gf-complete + morph: strata/swift/gf-complete.morph + repo: upstream:gf-complete + ref: 715443661c00558fe32f004a4be5f93f341b6e59 + unpetrify-ref: v2 +- name: jerasure + repo: upstream:jerasure + ref: ff7032153ea230fb59596f1f8a0e9ad8653addfb + unpetrify-ref: v2 + build-system: autotools + build-depends: + - gf-complete +- name: pyeclib + repo: upstream:python-packages/pyeclib + ref: aa58aa887c2327e1394d6f28b3b6b7ab8f190b2b + unpetrify-ref: v1.0.7 + build-system: python-distutils + build-depends: + - liberasurecode + - gf-complete + - jerasure +- name: swift + repo: upstream:openstack/swift + ref: f8dee761bd36f857aa1288c27e095907032fad68 + unpetrify-ref: 2.3.0 + build-system: python-distutils + build-depends: + - dnspython + - xattr + - pyeclib diff --git a/old/strata/swift/gf-complete.morph b/old/strata/swift/gf-complete.morph new file mode 100644 index 00000000..adbe5a48 --- /dev/null +++ b/old/strata/swift/gf-complete.morph @@ -0,0 +1,19 @@ +name: gf-complete +kind: chunk +build-system: autotools +pre-configure-commands: +- ./autogen.sh +configure-commands: +- | + case "$MORPH_ARCH" in + x86_64) + SSE= + ;; + *) + # Disable SSE4 for any architecture which are not x86_64 bits + # see more information about architecture which support SSE in + # https://en.wikipedia.org/wiki/SSE4#Supporting_CPUs. + SSE=--disable-sse + ;; + esac + ./configure --prefix="$PREFIX" "$SSE" diff --git a/old/strata/swift/liberasurecode.morph b/old/strata/swift/liberasurecode.morph new file mode 100644 index 00000000..68839403 --- /dev/null +++ b/old/strata/swift/liberasurecode.morph @@ -0,0 +1,5 @@ +name: liberasurecode +kind: chunk +build-system: autotools +pre-configure-commands: +- autoreconf -ivf diff --git a/old/strata/swift/xattr.morph b/old/strata/swift/xattr.morph new file mode 100644 index 00000000..65f47dae --- /dev/null +++ b/old/strata/swift/xattr.morph @@ -0,0 +1,8 @@ +name: xattr +kind: chunk +configure-commands: +- cp -r /usr/lib/python2.7/site-packages/cffi . +build-commands: +- python setup.py build +install-commands: +- python setup.py install --prefix "$PREFIX" --root "$DESTDIR" diff --git a/old/strata/tools.morph b/old/strata/tools.morph new file mode 100644 index 00000000..b4710f6b --- /dev/null +++ b/old/strata/tools.morph @@ -0,0 +1,69 @@ +name: tools +kind: stratum +description: Various tools +build-depends: +- morph: strata/core.morph +chunks: +- name: distcc + morph: strata/tools/distcc.morph + repo: upstream:distcc + ref: c9691a9604fdf9d6711204999787d332b7141692 + unpetrify-ref: baserock/morph +- name: gdb + morph: strata/tools/gdb.morph + repo: upstream:binutils-gdb + ref: cf9e333b2158c90752a1eacd16a9443dff4a59f1 + unpetrify-ref: gdb-8.0-branch +- name: lsof + morph: strata/tools/lsof.morph + repo: upstream:lsof + ref: fffb8558208586338587027c265fd0eca44466be + unpetrify-ref: baserock/morph +- name: strace + repo: upstream:strace + ref: 6d8c0637e8dd0f65c667af33c612230552419db1 + unpetrify-ref: v4.8 + build-system: autotools +- name: u-boot + morph: strata/tools/u-boot.morph + repo: upstream:u-boot + ref: fe57382d04b46c37f34cf8d3b3ad876554fd12bf + unpetrify-ref: baserock/morph +- name: kexec-tools + morph: strata/tools/kexec-tools.morph + repo: upstream:kexec-tools + ref: f4d1d2ad474e882df13418239aa3050673a844d7 + unpetrify-ref: baserock/morph +- name: device-tree-compiler + morph: strata/tools/device-tree-compiler.morph + repo: upstream:device-tree-compiler + ref: c92f284c3cf76d471eb27a271de3a51cb45ed058 + unpetrify-ref: baserock/morph +- name: sudo + repo: upstream:sudo + ref: a4769dc7999b53260325fb89945bef85714fb338 + unpetrify-ref: baserock/morph + build-system: autotools +- name: procps-ng + morph: strata/tools/procps-ng.morph + repo: upstream:procps-ng + ref: 85fff468fa263cdd2ff1c0144579527c32333695 + unpetrify-ref: v3.3.9 +- name: ipmitool + morph: strata/tools/ipmitool.morph + repo: upstream:ipmitool + ref: be7917f9f58c8a354bc0960ed57516af5d2bd29a + unpetrify-ref: IPMITOOL_1_8_14 +- name: parted + morph: strata/tools/parted.morph + repo: upstream:parted + ref: 387e96e6eac59d84e9a688422b4b321ae9beaa20 + unpetrify-ref: baserock/v3.2 + submodules: + gnulib: + url: upstream:gnulib +- name: zip + morph: strata/tools/zip.morph + repo: upstream:zip + ref: e52e9d6a339aad5fcff464cf207da51c02996e39 + unpetrify-ref: zip30 diff --git a/old/strata/tools/device-tree-compiler.morph b/old/strata/tools/device-tree-compiler.morph new file mode 100644 index 00000000..8abfafc8 --- /dev/null +++ b/old/strata/tools/device-tree-compiler.morph @@ -0,0 +1,6 @@ +name: device-tree-compiler +kind: chunk +build-commands: +- make all +install-commands: +- make install DESTDIR="$DESTDIR" PREFIX="$PREFIX" diff --git a/old/strata/tools/distcc.morph b/old/strata/tools/distcc.morph new file mode 100644 index 00000000..82adbe50 --- /dev/null +++ b/old/strata/tools/distcc.morph @@ -0,0 +1,10 @@ +name: distcc +kind: chunk +build-system: autotools +pre-configure-commands: +- NOCONFIGURE=1 ./autogen.sh +# distcc doesn't use automake, so we cannot autoreconf it +- cp /usr/share/automake*/config.guess . +- cp /usr/share/automake*/config.sub . +configure-commands: +- ./configure --prefix="$PREFIX" --disable-Werror diff --git a/old/strata/tools/gdb.morph b/old/strata/tools/gdb.morph new file mode 100644 index 00000000..6f60da9e --- /dev/null +++ b/old/strata/tools/gdb.morph @@ -0,0 +1,6 @@ +name: gdb +kind: chunk +build-system: autotools +configure-commands: +- ./configure --prefix="$PREFIX" --disable-werror --disable-gas --disable-binutils + --disable-ld --disable-gold --disable-gprof diff --git a/old/strata/tools/git-fat.morph b/old/strata/tools/git-fat.morph new file mode 100644 index 00000000..c971b07f --- /dev/null +++ b/old/strata/tools/git-fat.morph @@ -0,0 +1,4 @@ +name: git-fat +kind: chunk +install-commands: +- install -D -m 755 git-fat "$DESTDIR/usr/bin/git-fat" diff --git a/old/strata/tools/ipmitool.morph b/old/strata/tools/ipmitool.morph new file mode 100644 index 00000000..db0d5a3a --- /dev/null +++ b/old/strata/tools/ipmitool.morph @@ -0,0 +1,5 @@ +name: ipmitool +kind: chunk +build-system: autotools +pre-configure-commands: +- touch NEWS diff --git a/old/strata/tools/kexec-tools.morph b/old/strata/tools/kexec-tools.morph new file mode 100644 index 00000000..118c1ac2 --- /dev/null +++ b/old/strata/tools/kexec-tools.morph @@ -0,0 +1,6 @@ +name: kexec-tools +kind: chunk +build-system: autotools +configure-commands: +- ./bootstrap +- ./configure --prefix="$PREFIX" diff --git a/old/strata/tools/lsof.morph b/old/strata/tools/lsof.morph new file mode 100644 index 00000000..38183ae6 --- /dev/null +++ b/old/strata/tools/lsof.morph @@ -0,0 +1,12 @@ +name: lsof +kind: chunk +configure-commands: +- tar xf lsof_*_src.tar --no-same-owner +- cd lsof_*_src/ && ./Configure -n linux +build-commands: +- cd lsof_*_src/ && make +install-commands: +- mkdir -p "$DESTDIR$PREFIX"/bin +- mv lsof_*_src/lsof "$DESTDIR$PREFIX"/bin/lsof +- mkdir -p "$DESTDIR$PREFIX"/man/man8 +- mv lsof_*_src/lsof.8 "$DESTDIR$PREFIX"/man/man8 diff --git a/old/strata/tools/parted.morph b/old/strata/tools/parted.morph new file mode 100644 index 00000000..0f279950 --- /dev/null +++ b/old/strata/tools/parted.morph @@ -0,0 +1,12 @@ +name: parted +kind: chunk +build-system: autotools +pre-configure-commands: +- sed -i -e '/^buildreq="/,/^"/{/rsync/d}' bootstrap.conf +- sed -i -e '/^buildreq="/,/^"/{/perl/d}' bootstrap.conf +- ./bootstrap --skip-po --no-git --gnulib-srcdir=gnulib +configure-commands: +# Disable device-mapper as it is not installed on Baserock +- ./configure --prefix="$PREFIX" --disable-device-mapper +build-commands: +- make WERROR_CFLAGS="" diff --git a/old/strata/tools/procps-ng.morph b/old/strata/tools/procps-ng.morph new file mode 100644 index 00000000..fb742a23 --- /dev/null +++ b/old/strata/tools/procps-ng.morph @@ -0,0 +1,16 @@ +name: procps-ng +kind: chunk + +description: | + Process management tools. + + procps-ng is a fork of the original procps project. + +build-system: autotools + +configure-commands: +- NOCONFIGURE=1 ./autogen.sh + # Setting exec-prefix to /usr causes a bunch of stuff to go in /usr/usr/bin + # Setting prefix to / causes files to go in /include and /share + # So don't do either of those things! +- ./configure --prefix="$PREFIX" --exec-prefix=/ diff --git a/old/strata/tools/u-boot.morph b/old/strata/tools/u-boot.morph new file mode 100644 index 00000000..9be30bc7 --- /dev/null +++ b/old/strata/tools/u-boot.morph @@ -0,0 +1,11 @@ +name: u-boot +kind: chunk +build-commands: +- make tools +install-commands: +- mkdir -p "$DESTDIR$PREFIX/bin" +- install -m 755 tools/img2brec.sh "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/jtagconsole "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/netconsole "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/mkenvimage "$DESTDIR$PREFIX/bin/." +- install -m 755 tools/mkimage "$DESTDIR$PREFIX/bin/." diff --git a/old/strata/tools/zip.morph b/old/strata/tools/zip.morph new file mode 100644 index 00000000..070467e0 --- /dev/null +++ b/old/strata/tools/zip.morph @@ -0,0 +1,9 @@ +name: zip +kind: chunk +configure-commands: +- cp unix/Makefile . +build-commands: +- sed -i -e 's/^prefix = .*$/prefix = $$DESTDIR\/$$PREFIX/' Makefile +- make generic +install-commands: +- make install diff --git a/old/strata/unionfs-fuse-group.morph b/old/strata/unionfs-fuse-group.morph new file mode 100644 index 00000000..acb094ea --- /dev/null +++ b/old/strata/unionfs-fuse-group.morph @@ -0,0 +1,20 @@ +name: unionfs-fuse-group +kind: stratum + +description: | + User-space union file system. + + This is used by Morph for systems which are unable to use 'overlayfs'. It is slower + than 'overlayfs', because it runs outside rather than inside the kernel, but 'overlayfs' + is only available in Linux 3.18 and newer. + +build-depends: +# Depends on foundation for 'fuse', and maybe other stuff. +- morph: strata/foundation.morph + +chunks: +- name: unionfs-fuse + morph: strata/unionfs-fuse-group/unionfs-fuse.morph + repo: upstream:unionfs-fuse + ref: efac5b7aa91ec860f8f430a8d21060fe53a07002 + unpetrify-ref: v0.26 diff --git a/old/strata/unionfs-fuse-group/unionfs-fuse.morph b/old/strata/unionfs-fuse-group/unionfs-fuse.morph new file mode 100644 index 00000000..98e1ce1f --- /dev/null +++ b/old/strata/unionfs-fuse-group/unionfs-fuse.morph @@ -0,0 +1,12 @@ +name: unionfs-fuse +kind: chunk + +description: User-space union file system. + +build-system: manual + +build-commands: +- make PREFIX="$PREFIX" + +install-commands: +- make PREFIX="$PREFIX" DESTDIR="$DESTDIR" install diff --git a/old/strata/vala-common.morph b/old/strata/vala-common.morph new file mode 100644 index 00000000..e1438de3 --- /dev/null +++ b/old/strata/vala-common.morph @@ -0,0 +1,35 @@ +name: vala-common +kind: stratum +description: Vala compiler +build-depends: +- morph: strata/core.morph +- morph: strata/glib-common.morph +chunks: +- name: vala-bootstrap + morph: strata/vala-common/vala-bootstrap.morph + repo: upstream:vala + ref: 4e4a02c03445336237b36723b23a91670ef7621b + unpetrify-ref: baserock/bootstrap +- name: vala + repo: upstream:vala + ref: 5f6ebe007050be12bdc4aa7c902ae4059f28874a + unpetrify-ref: 0.28.0 + build-system: autotools + build-depends: + - vala-bootstrap +- name: m4-common + repo: upstream:m4-common + ref: 6e9a4d3b35c5ce8af050e66d8caff96070c57d34 + unpetrify-ref: baserock/2015-12-15 + build-system: autotools + submodules: + autoconf-archive: + url: upstream:autoconf-archive +- name: libgee + repo: upstream:gnome/libgee + ref: 4301ab58efc217409c588a5527f68990b4e3d220 + unpetrify-ref: master + build-system: autotools + build-depends: + - m4-common + - vala diff --git a/old/strata/vala-common/vala-bootstrap.morph b/old/strata/vala-common/vala-bootstrap.morph new file mode 100644 index 00000000..e55b1887 --- /dev/null +++ b/old/strata/vala-common/vala-bootstrap.morph @@ -0,0 +1,7 @@ +name: vala-bootstrap +kind: chunk +build-system: autotools +pre-configure-commands: +- autoreconf -ivf +configure-commands: +- ./configure --prefix="$PREFIX" diff --git a/old/strata/virtualbox-guest-x86_64.morph b/old/strata/virtualbox-guest-x86_64.morph new file mode 100644 index 00000000..fadcec92 --- /dev/null +++ b/old/strata/virtualbox-guest-x86_64.morph @@ -0,0 +1,22 @@ +name: virtualbox-guest-x86_64 +kind: stratum +description: | + VirtualBox Guest Additions for x86_64 +build-depends: +- morph: strata/tools.morph +- morph: strata/bsp-x86_64-generic.morph +- morph: strata/x-common.morph +- morph: strata/x-generic.morph +chunks: +- name: yasm + morph: strata/virtualbox-guest-x86_64/yasm.morph + repo: upstream:yasm + ref: fefefe262eb29081f0bcb4d48f2d476ce5730562 + unpetrify-ref: baserock/morph +- name: vboxguest + morph: strata/virtualbox-guest-x86_64/vboxguest.morph + repo: upstream:VirtualBox + ref: 617aeb5a3c13f4a46423e8c2fb560449403ad56d + unpetrify-ref: baserock/morph + build-depends: + - yasm diff --git a/old/strata/virtualbox-guest-x86_64/vboxguest.morph b/old/strata/virtualbox-guest-x86_64/vboxguest.morph new file mode 100644 index 00000000..1ab7f0f1 --- /dev/null +++ b/old/strata/virtualbox-guest-x86_64/vboxguest.morph @@ -0,0 +1,34 @@ +name: vboxguest +kind: chunk +description: | + VirtualBox guest additions +max-jobs: 1 +build-commands: +- truncate -s0 src/VBox/Additions/common/pam/Makefile.kmk +- env PATH="${PATH}:$(pwd)/kBuild/bin/linux.amd64/" VBOX_ONLY_ADDITIONS=1 VBOX_ONLY_BUILD=1 + kmk +- cd out/linux.amd64/release/bin/additions/src/ && make M="$(pwd)" -C /usr/src/linux + modules +install-commands: +- cd out/linux.amd64/release/bin/additions/src && make M="$(pwd)" -C /usr/src/linux + INSTALL_MOD_PATH="$DESTDIR" modules_install +- install -m 755 -D -o 0 -g 0 out/linux.amd64/release/bin/additions/mount.vboxsf "$DESTDIR/sbin/mount.vboxsf" +- install -m 755 -D -o 0 -g 0 out/linux.amd64/release/bin/additions/VBoxService "$DESTDIR/sbin/VBoxService" +- install -m 755 -D -o 0 -g 0 out/linux.amd64/release/bin/additions/VBoxControl "$DESTDIR/sbin/VBoxControl" +- | + install -m 644 -D -o 0 -g 0 /proc/self/fd/0 "$DESTDIR/lib/systemd/system/virtualbox-guest.service" <<EOS + [Unit] + Description=VirtualBox Guest Additions + + [Service] + ExecStart=/sbin/VBoxService -f + Restart=always + EOS +- mkdir -p "$DESTDIR/lib/systemd/system/basic.target.wants" +- ln -s "/lib/systemd/system/virtualbox-guest.service" "$DESTDIR/lib/systemd/system/basic.target.wants/virtualbox-guest.service" +- mkdir -p "$DESTDIR/etc/modules-load.d" +- echo vboxsf > "$DESTDIR/etc/modules-load.d/virtualbox-guest-filesystem.conf" +system-integration: + vboxguest-misc: + 00-depmod: + - depmod -a $(cd /usr/lib/modules; ls | head -n 1) diff --git a/old/strata/virtualbox-guest-x86_64/yasm.morph b/old/strata/virtualbox-guest-x86_64/yasm.morph new file mode 100644 index 00000000..437ae97d --- /dev/null +++ b/old/strata/virtualbox-guest-x86_64/yasm.morph @@ -0,0 +1,4 @@ +name: yasm +kind: chunk +max-jobs: 1 +build-system: autotools diff --git a/old/strata/wayland-generic.morph b/old/strata/wayland-generic.morph new file mode 100644 index 00000000..5db5868e --- /dev/null +++ b/old/strata/wayland-generic.morph @@ -0,0 +1,17 @@ +name: wayland-generic +kind: stratum +build-depends: +- morph: strata/core.morph +chunks: +- name: wayland + morph: strata/wayland-generic/wayland.morph + repo: upstream:wayland + ref: 47163797f810373c81b6e13b7a8a245eb9877785 + unpetrify-ref: 1.11.0 +- name: wayland-protocols + repo: upstream:wayland-protocols + ref: 26c99346ab5f2273fe5581bc4f6397bbb834f747 + unpetrify-ref: "1.8" + build-system: autotools + build-depends: + - wayland diff --git a/old/strata/wayland-generic/wayland.morph b/old/strata/wayland-generic/wayland.morph new file mode 100644 index 00000000..a65afd05 --- /dev/null +++ b/old/strata/wayland-generic/wayland.morph @@ -0,0 +1,7 @@ +name: wayland +kind: chunk +description: Wayland server +build-system: autotools +configure-commands: +- autoreconf -ivf +- ./configure --prefix="$PREFIX" --sysconfdir=/etc --disable-documentation diff --git a/old/strata/weston-common.morph b/old/strata/weston-common.morph new file mode 100644 index 00000000..93818920 --- /dev/null +++ b/old/strata/weston-common.morph @@ -0,0 +1,14 @@ +name: weston-common +kind: stratum +build-depends: +- morph: strata/graphics-common.morph +- morph: strata/input-common.morph +- morph: strata/mesa-common.morph +- morph: strata/libdrm-common.morph +- morph: strata/wayland-generic.morph +chunks: +- name: weston + morph: strata/weston-common/weston.morph + repo: upstream:weston + ref: 2e5232b980eaa1074023a65dd7941e80b72a763c + unpetrify-ref: baserock/weston-1.11.0/tegra diff --git a/old/strata/weston-common/weston.morph b/old/strata/weston-common/weston.morph new file mode 100644 index 00000000..af0844ed --- /dev/null +++ b/old/strata/weston-common/weston.morph @@ -0,0 +1,7 @@ +name: weston +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc + --enable-demo-clients-install + --enable-systemd-notify diff --git a/old/strata/x-common.morph b/old/strata/x-common.morph new file mode 100644 index 00000000..a1149ae0 --- /dev/null +++ b/old/strata/x-common.morph @@ -0,0 +1,405 @@ +name: x-common +kind: stratum +build-depends: +- morph: strata/xorg-util-macros-common.morph +chunks: +- name: xorg-proto-bigreqsproto + repo: upstream:xorg-proto-bigreqsproto + ref: d6ed3e927a756900ad4c9fd7235f8f7f34f376db + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-compositeproto + repo: upstream:xorg-proto-compositeproto + ref: 39738dbe9438dc80fc6b9e221d9ed26a6d42da6b + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-damageproto + repo: upstream:xorg-proto-damageproto + ref: 015b980e5091492dbe681af59569768ba89fbfe0 + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-dmxproto + repo: upstream:xorg-proto-dmxproto + ref: 395f6fcc0a5635907b5e45829e86b29431316184 + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-fixesproto + repo: upstream:xorg-proto-fixesproto + ref: b6c6bc2aa4b83f8763c75c90e6671052272a2af2 + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-fontsproto + repo: upstream:xorg-proto-fontsproto + ref: df8c05f7c0253a36589d96efa52938215eff9d4d + unpetrify-ref: fontsproto-2.1.3 + build-system: autotools +- name: xorg-proto-glproto + repo: upstream:xorg-proto-glproto + ref: f84853d97d5749308992412a215fa518b6536eb3 + unpetrify-ref: glproto-1.4.17 + build-system: autotools +- name: xorg-proto-inputproto + repo: upstream:xorg-proto-inputproto + ref: 343ff0938f592876b9d82c966f166bf45a78c3c8 + unpetrify-ref: inputproto-2.3.1 + build-system: autotools +- name: xorg-proto-kbproto + repo: upstream:xorg-proto-kbproto + ref: f7022f5775350dce3348b7151845a32390e98791 + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-xineramaproto + repo: upstream:xorg-proto-xineramaproto + ref: 4e77b45e0d6b42a448dab2ec316eeb5c490ecfed + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-randrproto + repo: upstream:xorg-proto-randrproto + ref: 79b63f0e57cd5baf06ff24252d3f1675dcb64467 + unpetrify-ref: randrproto-1.5.0 + build-system: autotools +- name: xorg-proto-recordproto + repo: upstream:xorg-proto-recordproto + ref: 0fd4f8e57c1e637b2aaaaa0f539ddbac8cc50575 + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-renderproto + repo: upstream:xorg-proto-renderproto + ref: 935f5ec95a3718c184ff685f5b79b467483b7844 + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-resourceproto + repo: upstream:xorg-proto-resourceproto + ref: ada91f54c98b5a61d3e116fca6bf239a8604730f + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-scrnsaverproto + repo: upstream:xorg-proto-scrnsaverproto + ref: 614532026e8ec7496216316fb584d6f2af6a7f7b + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-videoproto + repo: upstream:xorg-proto-videoproto + ref: e42cf822e230cff5c6550ca2c050dfa27d2c9611 + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-xcmiscproto + repo: upstream:xorg-proto-xcmiscproto + ref: 83549077a3c2140b9862709004cd873f1c55e395 + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-xextproto + repo: upstream:xorg-proto-xextproto + ref: 66afec3f49e8eb0d4c2e9af7088fc3116d4bafd7 + unpetrify-ref: xextproto-7.3.0 + build-system: autotools +- name: xorg-proto-xf86bigfontproto + repo: upstream:xorg-proto-xf86bigfontproto + ref: f805b328b2195de384c0fb6b82ef5f88c179b2c0 + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-xf86dgaproto + repo: upstream:xorg-proto-xf86dgaproto + ref: c52b205c3175309be7952774668c87dd2d5ce30e + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-xf86driproto + repo: upstream:xorg-proto-xf86driproto + ref: cb03b8d49bf063860859c1ed8bcecd055551e93a + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-x11proto + repo: upstream:xorg-proto-x11proto + ref: d5524e2b8d811aa03ed19c6e8fb2ee4162ca2b23 + unpetrify-ref: xproto-7.0.28 + build-system: autotools +- name: xorg-proto-dri2proto + repo: upstream:xorg-proto-dri2proto + ref: ead89ad84877551cc15d26b95cb19a3e205df71f + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-proto-dri3proto + repo: upstream:xorg-proto-dri3proto + ref: 91df0f88b70c268f3580385a7b37543ab8c544c8 + build-system: autotools +- name: xorg-proto-presentproto + repo: upstream:xorg-proto-presentproto + ref: ef84007fc4a23d3897b4776906139de9d0698c2a + build-system: autotools +- name: xcb-proto + repo: upstream:xcb-proto + ref: 4b384d2a015c50d0e93dcacda4b8260a3fd37640 + unpetrify-ref: '1.11' + build-system: autotools +- name: xorg-lib-libxshmfence + repo: upstream:xorg-lib-libxshmfence + ref: 9c4f070e1304a3503cfab08f68573443025fc4c9 + unpetrify-ref: master + build-system: autotools + build-depends: + - xorg-proto-x11proto +- name: xorg-lib-libXau + repo: upstream:xorg-lib-libXau + ref: 1a8a1b2c68967b48c07b56142799b1020f017027 + unpetrify-ref: baserock/morph + build-system: autotools + build-depends: + - xorg-proto-x11proto +- name: xcb-libxcb + repo: upstream:xcb-libxcb + ref: d1e8ec96fca4862f37ec9f0e9407bb989c4c161a + unpetrify-ref: '1.11' + build-system: autotools + build-depends: + - xcb-proto + - xorg-lib-libXau +- name: xcb-util + repo: upstream:xcb-util + ref: 4de010f122da40e17b52866d07d1d501a66bf007 + unpetrify-ref: baserock/0.4.0 + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + submodules: + m4: + url: upstream:xcb/util-common-m4 +- name: util-wm + repo: upstream:util-wm + ref: fb7afc3f291c8cc072d327cd8d97ab1db3283c21 + unpetrify-ref: baserock/0.4.1 + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + submodules: + m4: + url: upstream:xcb/util-common-m4 +- name: util-keysyms + repo: upstream:util-keysyms + ref: edb763a8837d3932690b9d6d77cb7e20a9ab8013 + unpetrify-ref: baserock/0.4.0 + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + submodules: + m4: + url: upstream:xcb/util-common-m4 +- name: util-image + repo: upstream:util-image + ref: f20f25a1c017c58d5d7dfffc6e9adc8d31879152 + unpetrify-ref: baserock/0.4.0 + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + - xcb-util + submodules: + m4: + url: upstream:xcb/util-common-m4 +- name: xorg-lib-libxtrans + repo: upstream:xorg-lib-libxtrans + ref: 7cbad9fe2e61cd9d5caeaf361826a6f4bd320f03 + unpetrify-ref: xtrans-1.3.5 + build-system: autotools +- name: xorg-lib-libX11 + repo: upstream:xorg-lib-libX11 + ref: cb107760df33ffc8630677e66e2e50aa37950a5c + unpetrify-ref: libX11-1.6.2 + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + - xorg-lib-libxtrans + - xorg-proto-inputproto + - xorg-proto-kbproto + - xorg-proto-x11proto + - xorg-proto-xextproto + - xorg-proto-xf86bigfontproto +- name: xorg-lib-libXext + repo: upstream:xorg-lib-libXext + ref: 8eee1236041d46a21faba32e0d27c26985267d89 + unpetrify-ref: baserock/morph + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libX11 + - xorg-lib-libXau + - xorg-proto-x11proto + - xorg-proto-xextproto +- name: xorg-lib-libXfixes + repo: upstream:xorg-lib-libXfixes + ref: 0cb446962381f750e05d97bfb974ca1e32481d5d + unpetrify-ref: libXfixes-5.0.1 + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + - xorg-lib-libXext + - xorg-proto-fixesproto +- name: xorg-lib-libXi + repo: upstream:xorg-lib-libXi + ref: f180dff710dc54d00e0e26b84de053151f8f207e + unpetrify-ref: libXi-1.7.5 + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + - xorg-lib-libX11 + - xorg-lib-libXext + - xorg-lib-libXfixes + - xorg-proto-fixesproto + - xorg-proto-inputproto + - xorg-proto-x11proto + - xorg-proto-xextproto +- name: xorg-lib-libXcomposite + repo: upstream:xorg-lib-libXcomposite + ref: eda48b1bedaa344ada8e13930c9ab3058b836190 + unpetrify-ref: baserock/morph + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + - xorg-lib-libX11 + - xorg-lib-libXfixes + - xorg-proto-compositeproto +- name: xorg-lib-libXrender + repo: upstream:xorg-lib-libXrender + ref: 1af52cb334377611233d7dc156bc1e6f7923756d + unpetrify-ref: baserock/morph + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + - xorg-lib-libX11 + - xorg-proto-renderproto +- name: xorg-lib-libXrandr + repo: upstream:xorg-lib-libXrandr + ref: 99a63d10cbbab7d69a52d25d78795a3278506ea9 + unpetrify-ref: baserock/morph + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + - xorg-lib-libX11 + - xorg-lib-libXext + - xorg-lib-libXrender + - xorg-proto-randrproto + - xorg-proto-renderproto + - xorg-proto-xextproto +- name: xorg-lib-libXinerama + repo: upstream:xorg-lib-libXinerama + ref: 470b9356af961ff7d3968b164aa73872b49a5dcc + unpetrify-ref: baserock/morph + build-system: autotools + build-depends: + - xorg-lib-libX11 + - xorg-lib-libXext + - xorg-proto-xextproto + - xorg-proto-xineramaproto +- name: xorg-lib-libXtst + repo: upstream:xorg-lib-libXtst + ref: 2aafac9474a0a0a0c39797862f823255918cf368 + unpetrify-ref: baserock/morph + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + - xorg-lib-libX11 + - xorg-lib-libXext + - xorg-lib-libXi + - xorg-proto-inputproto + - xorg-proto-recordproto + - xorg-proto-xextproto +- name: xorg-lib-libXdamage + repo: upstream:xorg-lib-libXdamage + ref: 0d35761dc39409b70e04dd0786aef6537f92976a + unpetrify-ref: baserock/morph + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + - xorg-lib-libXfixes + - xorg-proto-damageproto +- name: xorg-lib-libXcursor + repo: upstream:xorg-lib-libXcursor + ref: 1b98fd6a2e8c00a563187849a585e68c7344468b + unpetrify-ref: baserock/morph + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXrender + - xorg-lib-libXfixes + - xorg-proto-fixesproto + - xorg-lib-libXau + - xorg-lib-libX11 +- name: xorg-lib-libICE + repo: upstream:xorg-lib-libICE + ref: 0dfab4253e26d5c6e5f058126eb5e9f7a7732ae8 + unpetrify-ref: libICE-1.0.9 + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + - xorg-proto-x11proto + - xorg-lib-libxtrans +- name: xorg-lib-libSM + repo: upstream:xorg-lib-libSM + ref: 0fd7aa17da41779129a3acfdad28e07c0072a160 + unpetrify-ref: libSM-1.2.2 + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + - xorg-proto-x11proto + - xorg-lib-libICE + - xorg-lib-libxtrans +- name: xorg-lib-libXt + repo: upstream:xorg-lib-libXt + ref: e7411e7e5299116604ff1f01d9415802607f1051 + unpetrify-ref: libXt-1.1.5 + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + - xorg-proto-kbproto + - xorg-lib-libX11 + - xorg-lib-libSM + - xorg-lib-libICE +- name: xorg-lib-libXmu + repo: upstream:xorg-lib-libXmu + ref: 2539e539eafdac88177c8ee30b043c5d52f017e4 + unpetrify-ref: libXmu-1.1.2 + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + - xorg-lib-libX11 + - xorg-lib-libXext + - xorg-lib-libXt + - xorg-proto-xextproto + - xorg-lib-libICE + - xorg-lib-libSM +- name: xorg-lib-libXv + repo: upstream:xorg-lib-libXv + ref: 736d7ac5a94c7aa6761d50ab58339a3d9a116c51 + unpetrify-ref: libXv-1.0.10 + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + - xorg-lib-libX11 + - xorg-lib-libXext + - xorg-proto-xextproto + - xorg-proto-videoproto +- name: xorg-lib-libxkbfile + repo: upstream:xorg-lib-libxkbfile + ref: 7381c2f9013ef7784c78091fa671e652a62ca706 + unpetrify-ref: baserock/morph + build-system: autotools + build-depends: + - xcb-libxcb + - xorg-lib-libXau + - xorg-lib-libX11 + - xorg-proto-kbproto diff --git a/old/strata/x-drivers.morph b/old/strata/x-drivers.morph new file mode 100644 index 00000000..faf646f2 --- /dev/null +++ b/old/strata/x-drivers.morph @@ -0,0 +1,26 @@ +name: x-drivers +kind: stratum +build-depends: +- morph: strata/input-common.morph +- morph: strata/x-generic.morph +chunks: +- name: xorg-driver-xf86-video-fbdev + repo: upstream:xorg-driver-xf86-video-fbdev + ref: 679ed9a4e6b54227df191c580e3ef641e075db19 + unpetrify-ref: xf86-video-fbdev-0.4.4 + build-system: autotools +- name: xorg-driver-xf86-video-vesa + repo: upstream:xorg-driver-xf86-video-vesa + ref: b49c293e67cd88424ff40a2ca4e58b28528691d7 + unpetrify-ref: xf86-video-vesa-2.3.4 + build-system: autotools +- name: xorg-driver-xf86-video-intel + repo: upstream:xorg-driver-xf86-video-intel + ref: 57725564179b8ddb48d5c9437fde91a6c02c0740 + unpetrify-ref: 2.99.917-381-g5772556 + build-system: autotools +- name: xorg-driver-xf86-input-libinput + repo: upstream:xorg-driver-xf86-input-libinput + ref: 44f4b2ed7075d424e3621f30815e11875b364c27 + unpetrify-ref: xf86-input-libinput-0.15.0 + build-system: autotools diff --git a/old/strata/x-generic.morph b/old/strata/x-generic.morph new file mode 100644 index 00000000..d9462426 --- /dev/null +++ b/old/strata/x-generic.morph @@ -0,0 +1,46 @@ +name: x-generic +kind: stratum +build-depends: +- morph: strata/foundation.morph +- morph: strata/libdrm-common.morph +- morph: strata/mesa-common.morph +- morph: strata/x-common.morph +- morph: strata/graphics-common.morph +chunks: +- name: xorg-font-util + repo: upstream:xorg-font-util + ref: 5f01ea79f1cb2328bfc4130b1e693f71be916b87 + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-lib-libfontenc + repo: upstream:xorg-lib-libfontenc + ref: f5d1208172e965fdd7fae8927bd3e29b3cc3a975 + unpetrify-ref: baserock/morph + build-system: autotools + build-depends: + - xorg-font-util +- name: xorg-lib-libXfont + repo: upstream:xorg-lib-libXfont + ref: ad4f4d8a2d0730c0ea3c09210bf921638b4682bc + unpetrify-ref: libXfont-1.5.0 + build-system: autotools + build-depends: + - xorg-lib-libfontenc +- name: xserver + morph: strata/x-generic/xserver.morph + repo: upstream:xserver + ref: 93d4224ccf3dee5a51815a66f76c905450419b50 + unpetrify-ref: xorg-server-1.18.2 + build-depends: + - xorg-font-util + - xorg-lib-libXfont +- name: xorg-app-xkbcomp + repo: upstream:xorg-app-xkbcomp + ref: 705b9bbb426410f9510601c7010da51184919b36 + unpetrify-ref: baserock/morph + build-system: autotools +- name: xorg-app-xinit + repo: upstream:xorg-app-xinit + ref: 4e85bce64acef1fa0ddff04d59737444e942ff12 + unpetrify-ref: baserock/morph + build-system: autotools diff --git a/old/strata/x-generic/xserver.morph b/old/strata/x-generic/xserver.morph new file mode 100644 index 00000000..4e15605b --- /dev/null +++ b/old/strata/x-generic/xserver.morph @@ -0,0 +1,12 @@ +name: xserver +kind: chunk +build-system: autotools +configure-commands: +- | + ./autogen.sh --prefix="$PREFIX" \ + --disable-xvfb \ + --disable-xnest \ + --disable-xquartz \ + --disable-xwin \ + --enable-glamor \ + --enable-xwayland diff --git a/old/strata/xorg-util-macros-common.morph b/old/strata/xorg-util-macros-common.morph new file mode 100644 index 00000000..7e252a90 --- /dev/null +++ b/old/strata/xorg-util-macros-common.morph @@ -0,0 +1,17 @@ +name: xorg-util-macros-common +kind: stratum +build-depends: +- morph: strata/core.morph +chunks: +- name: xorg-util-macros + repo: upstream:xorg-util-macros + ref: 9a54b858601bd305de2737b06e609084a2a114c2 + unpetrify-ref: util-macros-1.19.0 + build-system: autotools +- name: xcb-pthread-stubs + repo: upstream:xcb-pthread-stubs + ref: 431d2c0be218d878b9dd3862e4232243c599df4b + unpetrify-ref: baserock/morph + build-system: autotools + build-depends: + - xorg-util-macros |