Skip to content

Commit

Permalink
Merge pull request #247 from rhubert/remove-build-prequisites
Browse files Browse the repository at this point in the history
Remove build prequisites
  • Loading branch information
jkloetzke authored Feb 23, 2025
2 parents e81aaf0 + 4035b46 commit 1069b36
Show file tree
Hide file tree
Showing 20 changed files with 82 additions and 14 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Docs](https://bob-build-tool.readthedocs.io/projects/basement/en/latest/index.ht
* gcc >= 5.x
* bash
* POSIX awk (GNU awk version >= 3.1.5)
* GNU m4
* GNU make >= 3.80
* perl >= 5.6.1
* GNU tar
Expand Down
2 changes: 1 addition & 1 deletion classes/autoconf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ privateEnvironment:
APPLY_LIBTOOL_PATCH: "no"

checkoutDeterministic: True
checkoutTools: [autotools]
checkoutTools: [autotools, m4]
checkoutSetup: |
# Other classes can add paths to this array to pick up additional aclocal
# m4 files.
Expand Down
9 changes: 9 additions & 0 deletions classes/basement/rootrecipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ depends:
- name: devel::make
use: [tools]
forward: True
- name: devel::m4
use: [tools]
forward: True
- name: devel::help2man
use: [tools]
forward: True
- name: devel::texinfo
use: [tools]
forward: True
- name: devel::autotools
use: [tools]
forward: True
Expand Down
1 change: 0 additions & 1 deletion doc/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ To use the basement layer, the following prerequisites should be fulfilled:
* gcc >= 5.x
* bash
* POSIX awk (GNU awk version >= 3.1.5)
* GNU m4
* perl >= 5.6.1
* GNU tar
* gzip
Expand Down
4 changes: 4 additions & 0 deletions recipes/devel/autoconf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ checkoutScript: |
# Prevent that...
touch man/*.1
buildTools: [m4]
buildScript: |
export EMACS="no"
export HELP2MAN=false
Expand All @@ -30,3 +31,6 @@ packageScript: |
find -name '*.m4f' -delete
sed -i -e 's/Generated from __file__/Generated/' \
usr/share/autoconf/m4sugar/m4sh.m4
provideTools:
autoconf: "usr/bin"
4 changes: 4 additions & 0 deletions recipes/devel/automake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ checkoutDeterministic: True
checkoutScript: |
patchApplySeries $<@automake/*.patch@>
buildTools: [m4, help2man]
buildScript: |
export PATH="${BOB_DEP_PATHS[devel::autoconf]}/usr/bin:$PATH"
autotoolsNoarchBuild $1
packageScript: |
autotoolsNoarchPackageTgt
provideTools:
automake: "usr/bin"
2 changes: 1 addition & 1 deletion recipes/devel/binutils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ checkoutSCM:

# Some parts are compiled for the host during compilation. Hence we need the
# host toolchain too.
buildTools: [host-toolchain, bison]
buildTools: [host-toolchain, bison, m4]
multiPackage:
"":
buildVars: [AUTOCONF_HOST, AUTOCONF_TARGET, BINUTILS_PREFIX]
Expand Down
13 changes: 12 additions & 1 deletion recipes/devel/bootstrap-sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ depends:
name: devel::make
use: [tools]
forward: True
-
name: devel::m4
use: [tools]
forward: True
-
name: devel::help2man
use: [tools]
forward: True
-
name: devel::texinfo
use: [tools]
forward: True
-
name: devel::autotools
use: [tools]
Expand Down Expand Up @@ -57,7 +69,6 @@ depends:
- core::coreutils
- core::util-linux
- devel::diffutils
- devel::m4
- devel::patch
- editors::ed
- net::make-ca
Expand Down
2 changes: 1 addition & 1 deletion recipes/devel/compat/binutils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ checkoutSCM:

# Some parts are compiled for the host during compilation. Hence we need the
# host toolchain too.
buildTools: [host-toolchain]
buildTools: [host-toolchain, m4]

buildVars: [AUTOCONF_HOST, AUTOCONF_TARGET, BINUTILS_PREFIX]
buildScript: |
Expand Down
2 changes: 1 addition & 1 deletion recipes/devel/compat/gcc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ checkoutScript: |
$<<gcc/buildroot-libtool-v2.2.patch>> \
$<<gcc/0003-fix-canadian-cross-includes.patch>>
buildTools: [host-toolchain]
buildTools: [host-toolchain, m4]
buildVars: [AUTOCONF_BUILD, AUTOCONF_HOST, AUTOCONF_TARGET,
GCC_TARGET_ARCH, GCC_TARGET_FLOAT_ABI, GCC_TARGET_FPU]
buildScript: |
Expand Down
2 changes: 1 addition & 1 deletion recipes/devel/flex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ checkoutSCM:
stripComponents: 1

checkoutDeterministic: True
checkoutTools: [gettext]
checkoutTools: [gettext, m4]
checkoutScript: |
patchApplySeries $<@flex/*.patch@>
autoconfReconfigure
Expand Down
1 change: 1 addition & 0 deletions recipes/devel/gcc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ checkoutScript: |
buildVars: [AUTOCONF_BUILD, AUTOCONF_HOST, AUTOCONF_TARGET,
GCC_TARGET_ARCH, GCC_TARGET_FLOAT_ABI, GCC_TARGET_FPU,
GCC_MULTILIB]
buildTools: [m4]
buildScript: |
GCC_SRC=$1
mkdir -p build install
Expand Down
19 changes: 19 additions & 0 deletions recipes/devel/help2man.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
inherit: [autotools]
metaEnvironment:
PKG_VERSION: "1.49.3"

checkoutSCM:
scm: url
url: "https://ftp.gnu.org/gnu/help2man/help2man-${PKG_VERSION}.tar.xz"
digestSHA1: "3ed88430c97af3c5b57949f6f030b913044af507"
stripComponents: 1

buildTools: [host-toolchain]
buildScript: |
autotoolsBuild $1
packageScript: |
autotoolsPackageTgt
provideTools:
help2man: "usr/bin"
9 changes: 9 additions & 0 deletions recipes/devel/host-compat-toolchain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ depends:
- name: devel::make
use: [tools]
forward: True
- name: devel::m4
use: [tools]
forward: True
- name: devel::help2man
use: [tools]
forward: True
- name: devel::texinfo
use: [tools]
forward: True
- name: devel::autotools
use: [tools]
forward: True
Expand Down
3 changes: 3 additions & 0 deletions recipes/devel/m4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ buildScript: |
packageScript: |
autotoolsPackageTgt
provideTools:
m4: "usr/bin"
14 changes: 12 additions & 2 deletions recipes/devel/sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ depends:
name: devel::make
use: [tools]
forward: True
-
name: devel::m4
use: [tools]
forward: True
-
name: devel::help2man
use: [tools]
forward: True
-
name: devel::texinfo
use: [tools]
forward: True
-
name: devel::autotools
use: [tools]
Expand Down Expand Up @@ -68,9 +80,7 @@ depends:
- devel::fakeroot
- devel::git
- devel::gperf
- devel::m4
- devel::patch
- devel::texinfo
- editors::ed
- net::make-ca
- perl::perl
Expand Down
2 changes: 1 addition & 1 deletion recipes/kernel/linux-libc-headers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ checkoutSCM:
digestSHA256: "d6ecff966f8c95ec4cb3bb303904f757b7de6a6bcfef0d0771cb852158e61c20"
stripComponents: 1

buildTools: [bison, flex, host-toolchain]
buildTools: [bison, flex, host-toolchain, m4]
buildVars: [ARCH]
buildScript: |
# prevent timestamps in configuration
Expand Down
2 changes: 1 addition & 1 deletion recipes/libs/compat/glibc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ checkoutScript: |
patchApplySeries $<@glibc/*.diff@>
buildVars: [AUTOCONF_TARGET]
buildTools: [host-toolchain, target-toolchain, bison]
buildTools: [host-toolchain, target-toolchain, bison, m4]
buildToolsWeak: [python3]
buildScript: |
EXTRA=
Expand Down
2 changes: 1 addition & 1 deletion recipes/libs/glibc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ checkoutSCM:
stripComponents: 1

buildVars: [AS, CC, CXX, LD, AUTOCONF_HOST, GCC_MULTILIB, GLIBC_ENABLE_KERNEL]
buildTools: [host-toolchain, target-toolchain, bison]
buildTools: [host-toolchain, target-toolchain, bison, m4]
buildToolsWeak: [python3]
buildScript: |
EXTRA=
Expand Down
2 changes: 1 addition & 1 deletion recipes/libs/gmp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ checkoutScript: |
updateConfigFile config.sub configfsf.sub
autoconfReconfigure
buildTools: [host-toolchain]
buildTools: [host-toolchain, m4]
buildScript: |
autotoolsBuild $1
Expand Down

0 comments on commit 1069b36

Please sign in to comment.