Compare commits

...

4 Commits

Author SHA1 Message Date
fosslinux 8504c35685
Merge pull request #113 from stikonas/default
helpers.sh: Add a helper function to call appropriate default stage f…
2021-05-08 07:51:20 +10:00
Andrius Štikonas c6bb5e25a4
Merge pull request #114 from fgeorgatos/patch-1
fix minor typos
2021-05-06 22:51:27 +01:00
Fotis Georgatos 3d4f0e9290
fix minor typos 2021-05-06 03:14:11 +02:00
Andrius Štikonas a2c5745da4 helpers.sh: Add a helper function to call appropriate default stage function. 2021-05-03 23:48:06 +01:00
35 changed files with 62 additions and 52 deletions

View File

@ -83,7 +83,7 @@ class SysA:
def get_file(self, url, mkbuild=False, output=None):
"""
Download and prepares source packages
Download and prepare source packages
url can be either:
1. a single URL
@ -131,7 +131,7 @@ class SysA:
def prepare(self):
"""
Prepare directory structore for System A.
Prepare directory structure for System A.
We create an empty tmpfs, unpack stage0-posix.
Rest of the files are unpacked into more structured directory /after
"""

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
rm Makefile.in */Makefile.in */*/Makefile.in aclocal.m4 configure
rm doc/standards.info doc/autoconf.info

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
./bootstrap
}

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
./bootstrap
}

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
./bootstrap

View File

@ -4,7 +4,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
rm configure Makefile.in

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
mv lib/textstyle.in.h lib/textstyle.h

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
mv lib/textstyle.in.h lib/textstyle.h

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
mv lib/textstyle.in.h lib/textstyle.h

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
mv lib/fnmatch.in.h lib/fnmatch.h
# Rebuild bison pre-generated file

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
touch config.h
}

View File

@ -5,7 +5,7 @@
# When we rebuild flex it no longer needs patching
# and can use simplified makefile
src_prepare() {
default_src_prepare
default
touch config.h
rm parse.c parse.h scan.c skel.c
@ -19,5 +19,5 @@ src_install() {
rm -f "${PREFIX}/lib/libl.a"
fi
default_src_install
default
}

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
mv Makefile src/
touch src/config.h
@ -12,13 +12,13 @@ src_prepare() {
src_compile() {
cd src
default_src_compile
default
cd ..
}
src_install() {
cd src
default_src_install
default
cd ..
# Remove yacc, we won't need it any longer

View File

@ -3,12 +3,12 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
rm awktab.c
}
src_install() {
default_src_install
default
# Install data files
install -d "${DESTDIR}${PREFIX}/share/awk/"

View File

@ -4,11 +4,11 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_unpack() {
default_src_unpack
default
}
src_prepare() {
default_src_prepare
default
# This is needed for building with TCC
sed -i 's/ix86_attribute_table\[\]/ix86_attribute_table\[10\]/' gcc/config/i386/i386.c
# Needed for musl

View File

@ -4,11 +4,11 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_unpack() {
default_src_unpack
default
}
src_prepare() {
default_src_prepare
default
# Needed for musl
sed -i 's/struct siginfo/siginfo_t/' gcc/config/i386/linux-unwind.h

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
# Remove bison and flex generated files
rm demos/calc/calc.{c,h} demos/calc/calclex.c

View File

@ -40,21 +40,26 @@ build () {
fi
echo "${pkg}: unpacking source."
call src_unpack
build_stage=src_unpack
call $build_stage
cd "${pkg}" || (echo "Cannot cd into build/${pkg}!"; kill $$)
echo "${pkg}: preparing source."
call src_prepare
build_stage=src_prepare
call $build_stage
echo "${pkg}: configuring source."
call src_configure
build_stage=src_configure
call $build_stage
echo "${pkg}: compiling source."
call src_compile
build_stage=src_compile
call $build_stage
echo "${pkg}: installing."
call src_install
build_stage=src_install
call $build_stage
cd ../..
@ -139,3 +144,8 @@ call() {
default_"${1}"
fi
}
# Call default build stage function
default() {
"default_${build_stage}"
}

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
AUTOCONF=autoconf-2.13 AUTOHEADER=autoheader-2.13 ACLOCAL=aclocal-1.4 AUTOMAKE=automake-1.4 ./bootstrap

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
find . -name '*.info' -delete
autoreconf-2.69 -fi

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
find . -name '*.info' -delete
autoreconf-2.69 -fi

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
# tcc does not support complex types
rm -rf src/complex

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
# tcc does not support complex types
rm -rf src/complex

View File

@ -3,13 +3,13 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_unpack() {
default_src_unpack
default
mv perl5-perl-5.000 perl-5.000
}
src_prepare() {
default_src_prepare
default
# Remove and regenerate bison files
rm perly.c perly.h

View File

@ -3,13 +3,13 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_unpack() {
default_src_unpack
default
mv perl5-perl-5.003 perl-5.003
}
src_prepare() {
default_src_prepare
default
# Regenerate bison files
rm perly.c perly.h

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
# Regenerate bison files
sed -i '/yydestruct/d' perly.y
@ -37,5 +37,5 @@ src_install() {
# Remove old perl
rm -rf "${PREFIX}"/lib/perl5/
default_src_install
default
}

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
# Regenerate bison files
rm perly.c perly.h
@ -22,5 +22,5 @@ src_install() {
# Remove old perl
rm -rf "${PREFIX}"/lib/perl5/
default_src_install
default
}

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
# Regenerate bison files
rm perly.c perly.h
@ -26,5 +26,5 @@ src_install() {
# Remove old perl
rm -rf "${PREFIX}"/lib/perl5/
default_src_install
default
}

View File

@ -3,12 +3,12 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
cp lib/regex_.h lib/regex.h
touch config.h
}
src_install() {
default_src_install
default
}

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
. ../../import-gnulib.sh

View File

@ -4,7 +4,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
touch config.h
}

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
touch config.h
}

View File

@ -4,7 +4,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
touch config.h
}

View File

@ -4,7 +4,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
touch config.h
}

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
default
autoreconf-2.65 -f
}