summaryrefslogtreecommitdiffhomepage
path: root/vars/gcc.vars
AgeCommit message (Collapse)AuthorFilesLines
2023-02-17Make everything a bit faster.Lucía Andrea Illanes Albornoz1-59/+164
0) Issues several prayers and sacrifices to Enki under threat of a terrible deluge sent down by Ellil 1) Convert fork-write/read exprs to be non-forking 2) Pass mostly everything by reference 3) Don't bother cleaning the variable namespace because Bourne shell is an abomination 4) Removes broken ./pkgtool.sh -s, --restart-at, --update-diff & ./build.sh --dump-{in,on-abort} 5) Cleanup
2021-05-11vars/gcc.vars: correctly set finish build step state.Lucio Andrés Illanes Albornoz1-6/+12
2021-05-07Implements extended -r syntax.Lucio Andrés Illanes Albornoz1-22/+22
build.sh:buildp_ast(): only reset package build step state if ${ARG_RESET_PKG} is 1. etc/{build.usage,README.md}: updated. etc/build.usage.short, subr/build_init.subr: implement short help screen. midipix.env: correctly escape multi-line variable assignment expressions. subr.rtl/rtl_list.subr: updated. subr.rtl/rtl_state.subr:rtl_state_set(): correctly implement invalidation. subr.rtl/rtl_state.subr:rtl_state_test(): honour `LAST'. subr/build_init.subr:buildp_init_getopts(): implements --reset-pkg. subr/build_init.subr:buildp_{expand_restart_{at,recursive},process_restart_spec}(): initial implementation. subr/ex_pkg_{dispatch,env}.subr: updated. subr/ex_pkg_exec.subr:ex_pkg_exec(): honour `ALL' and `LAST'. vars/gcc.vars: updated.
2021-04-05subr/pkg_fetch_{download,extract}.subr: download into & auto-cleanup ↵Lucio Andrés Illanes Albornoz1-11/+21
${BUILD_DLCACHEDIR}/${PKG_NAME}/ vs. ${BUILD_DLCACHEDIR}/. vars/{gcc,python[23]{,_host}}.vars: updated.
2021-01-24Reimplements Git repository mirroring because Git is a special snowflake.Lucio Andrés Illanes Albornoz1-2/+9
etc/{README.md,pkgtool.usage}: updated. groups/221.native_packages_dev.group:cparser:${PKG_DISABLED}: disabled due to repository unavailability. groups/251.native_packages_lib.group:libfirm:${PKG_DISABLED}: disabled due to repository unavailability. midipix.env:${DEFAULT_BUILD_VARS}: adds MIRRORS_GIT. midipix.env:${DEFAULT_MIRRORS{,_GIT}}: split; mirror Git repositories via https://midipix.lucioillanes.de/repos_git/. pkgtool.sh:pkgtoolp_mirror_fetch(): call rtl_fetch_mirror_urls_git() vs. rtl_fetch_urls_git(). pkgtool.sh:pkgtoolp_mirror_fetch(): symlink instead of downloading given package w/ parent package. pkgtool.sh:pkgtoolp_mirror{,_fetch}(): split archives vs. Git repositories directory name. subr.rtl/rtl_fetch.subr: factor out ${DEFAULT_GIT_ARGS}. subr.rtl/rtl_fetch.subr:rtl_fetch_mirror_urls_git(): initial implementation. subr.rtl/rtl_fetch.subr:rtlp_fetch_url_git(): always return on failure. subr.rtl/rtl_fetch.subr:rtlp_fetch_url_git(): correctly attempt to git-clone(1) from ${PKG_URL} and then via ${PKG_MIRRORS}. subr.rtl/rtl_fetch.subr:{rtlp_fetch_url_git,rtl_fetch_urls_git}(): cleanup. {subr/pkg_fetch_download.subr,vars/{gcc,python[23]{,_host}}.vars}: call rtl_fetch_urls_git() w/ ${PKG_NAME} and ${PKG_MIRRORS_GIT:-}.
2021-01-23Implements setting up & fetching from mirrors.Lucio Andrés Illanes Albornoz1-2/+2
etc/pkgtool.usage: updated. etc/README.md: updated. pkgtool.sh:pkgtoolp_mirror{,_fetch}(): initial implementation. subr/pkg_fetch_download.subr: default to empty ${PKG_MIRRORS}. subr/pkg_fetch_download.subr: factor out ${ARG_FETCH_FORCE} check and ${BUILD_DLCACHEDIR}. subr/pkgtool_init.subr: updated. subr.rtl/rtl_fetch.subr:rtl_fetch_urls_{git,wget}(): factor out ${ARG_FETCH_FORCE} check and ${BUILD_DLCACHEDIR}; minor cleanup. subr.rtl/rtl_fetch.subr:rtl_fetch_url_wget(): return vs. exit on fatal failure. subr.rtl/rtl_fetch.subr:rtlp_fetch_url_git(): copy only if ${_cache_dname} != ${_tgtdir}. subr.rtl/rtl_fetch.subr:rtlp_fetch_url_git(): return if unable to git-clone(1). subr.rtl/rtl_fetch.subr:{rtlp_fetch_url_git,rtl_fetch_urls_git}(): implement Git repository mirroring. vars/{gcc,python[23]{,_host}}.vars: updated.
2020-03-15Set -o nounset in addition to +o errexit -o nounset.Lucio Andrés Illanes Albornoz1-2/+2
groups/000.host_tools.group:libtool_host:${PKG_LIBTOOL}: build w/ `none'. subr/build_init.subr:buildp_init_getopts(): set ${DEFAULT_BUILD_CPUS} prior to ex_pkg_load_vars() call. subr/pkg_{build,install_make}.subr: only pass `LIBTOOL=${PKG_LIBTOOL}' if set and not `none'. vars/libtool_host.vars: removes obsolete vars file.
2020-03-15General cleanup.Lucio Andrés Illanes Albornoz1-231/+262
2020-03-01General cleanup, pt. III.Lucio Andrés Illanes Albornoz1-1/+1
dist/dist_digest.dist: removes obsolete dist file. etc/{build.usage,README.md}: updated. groups/000.host_tools.group:{autoconf,automake,gettext_tiny,install_strip,libtool,m4}_host: moved from groups/010.host_deps.group. groups/221.native_packages_dev.group:lua: moved from groups/231.native_packages_etc.group. groups/221.native_packages_dev.group:lua:${PKG_FORCE_AUTORECONF}: set. groups/231.native_packages_etc.group:{mlogin,tdnf}:${PKG_FORCE_AUTORECONF}: set. groups/241.native_packages_inet.group:nullmailer:${PKG_FORCE_AUTORECONF}: set. groups/251.native_packages_lib.group:lib{asr,gpg_error}:${PKG_FORCE_AUTORECONF}: set. midipix.env, etc/README.md, subr/pkg_configure_autotools.subr: adds FORCE_NO_AUTORECONF. subr/rtl_fileop.subr: adds ch{mod,own} fileops. vars/{check_updates,jamvm,lib{asr,gpg_error},lua,mlogin,tdnf}.vars: removes obsolete vars file.
2020-02-26General cleanup, pt. II.Lucio Andrés Illanes Albornoz1-24/+24
2020-02-25General cleanup, pt. I.Lucio Andrés Illanes Albornoz1-1/+1
2020-02-12vars/build.vars:{host,native}_toolchain: merges {host,native}_toolchain_mingw32.Lucio Andrés Illanes Albornoz1-47/+22
vars/build.vars:native_toolchain: fix group variables. vars/build.vars:ncurses: moved into native_packags_deps_deps. vars/build.vars:{bzip2,expat,lib{elf,ffi,readline,z}}: moved into native_packages_deps. vars/build.vars:{gdb,python2}: moved into native_packages. vars/gcc.vars: minor cleanup. etc/build.usage: updated. subr/ex_pkg_dispatch.subr: disable dependency expansion given -r.
2020-02-11vars/gcc.vars:pkg_gcc_stage1_all(): create ${PREFIX_CROSS}/usr{,/include} ↵Lucio Andrés Illanes Albornoz1-0/+2
when building gcc_stage1_host.
2020-02-11vars/build.vars:{host_toolchain,invariants,native_{runtime,tools,toolchain_m ↵Lucio Andrés Illanes Albornoz1-24/+24
ingw32}}: adds dependencies. vars/build.vars:native_toolchain: merges native_toolchain_deps, adds dependencies. vars/build.vars:{bzip2,expat,gdb,python2}: moved into native_toolchain, adds dependencies. vars/build.vars:native_packages_deps{,_{deps,x11}}:${PKG_IN_TREE}: set. vars/env.vars:${DEFAULT_BUILD_VARS}: adds IN_TREE. vars/gcc.vars: continuously echo build status messages to pipe fd #3. etc/build.usage: updated. subr/ex_pkg_dispatch.subr: enforce in-order building given ${PKG_IN_TREE} set on group.
2020-02-09vars/gcc.vars: continuously echo build status messages to pipe fd #3.Lucio Andrés Illanes Albornoz1-24/+24
2020-02-09vars/build.vars:gcc_stage1_cross_mingw32:${PKG_CFLAGS_CONFIGURE}: configure ↵Lucio Andrés Illanes Albornoz1-0/+24
w/ -I${PREFIX}/include. vars/gcc.vars: continuously echo build status messages to pipe fd #3.
2020-02-09vars/build.vars:host_toolchain_deps:${PKG_PREFIX}: set to ${PREFIX}.Lucio Andrés Illanes Albornoz1-3/+10
vars/build.vars:mpfr_host:${PKG_CONFIGURE_ARGS_EXTRA}: configure w/ --with-gmp=${PREFIX}. vars/build.vars:mpc_host:${PKG_CONFIGURE_ARGS_EXTRA}: configure w/ --with-gmp=${PREFIX} --with-mpfr=${PREFIX}. vars/build.vars:psxtypes_host:${PKG_PREFIX}: override w/ ${PREFIX_CROSS}. vars/build.vars:gcc_stage1_host:${PKG_CFLAGS_CONFIGURE}: configure w/ -I${PREFIX}/include. vars/build.vars:gcc_stage1_host:${PKG_LDFLAGS_CONFIGURE}: configure w/ -Wl,-rpath,${PREFIX_CROSS}/lib. vars/gcc.vars:pkgp_gcc_setup_env(): pass ${LDFLAGS} from ${PKG_LDFLAGS_CONFIGURE}. vars/gcc.vars:pkg_gcc_stage1_{cross,native}_mingw32_all(): correctly mkdir w/ ex_rtl_fileop. vars/gcc.vars:pkg_gcc_stage1_all(): pass --with-{gmp,mpc,mpfr}="${PREFIX}".
2020-02-04Revert "subr/pkg_{build,install_make}.subr: default to LIBTOOL=rdlibtool ↵Lucio Andrés Illanes Albornoz1-5/+5
(via midipix.)" This reverts commit fde9ee5a1385d14a8bd82ae548f1d7c1e1de551a.
2020-02-03subr/pkg_{build,install_make}.subr: default to LIBTOOL=rdlibtool (via midipix.)Lucio Andrés Illanes Albornoz1-5/+5
vars/{gcc,midipix}.vars: default to LIBTOOL=rdlibtool (via midipix.)
2019-06-29vars/gcc.vars:pkgp_gcc_configure(): CONFIGURE WITH ↵Lucio Andrés Illanes Albornoz1-1/+2
--enable-languages=c,c++,fortran,objc,lto (VIA REDFOXMOON.)
2019-03-12vars/gcc.vars: build runtime libraries with ${DEFAULT_CFLAGS_DEBUG_RUNTIME.midipix1-0/+2
Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
2019-03-12vars/gcc.vars: update target flags to match new SEH bits.midipix1-0/+7
Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
2019-03-11vars/gcc.vars:pkgp_gcc_setup_env(): don't include -midata in ↵Lucio Andrés Illanes Albornoz1-1/+1
${GCCTARGET_FLAGS} for gcc_stage1_host (via midipix.)
2019-03-11vars/gcc.vars:pkgp_gcc_setup_env(): don't include -midata in ↵Lucio Andrés Illanes Albornoz1-1/+1
${GCCTARGET_FLAGS} for gcc_full (via midipix.)
2019-02-18gcc: midipix targets: explicitly apply hidden visibility when building libgcc.midipix1-4/+6
Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
2018-04-30Correctly (zero-)initialise all locals.Lucio Andrés Illanes Albornoz1-3/+3
2017-12-15vars/build.vars:gcc*: default ${PKG_GITROOT} to ${DEFAULT_GITROOT}.Lucio Andrés Illanes Albornoz (arab, vxp)1-2/+2
vars/env.vars:${DEFAULT_BUILD_VARS}: adds GITROOT. vars/gcc.vars: always use ${PKG_GITROOT}. vars/gcc_{libstdcpp_v3,runtime}.vars: removes unused package vars.
2017-12-03vars/build.vars:{gcc,musl}_full: process within ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+10
${BUILD_WORKDIR}/{gcc,musl}-build-native. vars/gcc.vars:pkg_gcc_full_all(): add {fetch,patch} build steps.
2017-12-03Separate front end (build.sh, subr/build_*) from dispatcher.Lucio Andrés Illanes Albornoz (arab, vxp)1-87/+141
2017-11-22build.sh, subr/ex_pkg_dispatch.subr: splits build logging and job control logic.Lucio Andrés Illanes Albornoz (arab, vxp)1-5/+0
subr/ex_pkg_dispatch.subr: dispatch background jobs w/ redirected std{err,out} & FIFO. subr/ex_pkg_state.subr:ex_pkg_state_init(): trap(1) signals to abort build. vars/{gcc,musl}.vars: don't exit(1) from within package subroutine.
2017-11-22subr/*: reorganised as {ex{,_{pkg,rtl,setup}},pkg}_*.Lucio Andrés Illanes Albornoz (arab, vxp)1-48/+48
2017-11-21vars/build.vars: wake up disabled packages.Lucio Andrés Illanes Albornoz (arab, vxp)1-15/+15
vars/env.vars: fix ${DEFAULT_BUILD_CPUS} reference. vars/{gcc,libfirm,psxstub}.vars: fix ${PKG_MAKEFLAGS_BUILD} reference. vars/git.vars:pkg_git_install_post(): process files in destdir. subr/pkg_install_libs.subr:pkgp_install_lib_link(): ln(1) w/ target's basename. subr/pkg_install_libs.subr:pkg_install_libs(): sanity-check filenames. subr/pkg_setup_env.subr:pkg_setup_env(): rm(1) ${PKG_BASE_DIR} during -r. etc/build.usage: updated.
2017-11-21Refactors build steps along the sequence {setup,fetch,configure,build,install}.Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+1
subr/mode_check_updates.subr: seperated into check_updates.sh. subr/post_{copy_etc,sha256sums,tarballs}.subr: absorbed into `dist' target.
2017-11-20subr/pkg_{autoconf,configure,patch}.subr: reference ${PKG_BASE_DIR} instead ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-12/+12
of ${WORKDIR}. subr/pkg_build_dir.subr: {build,install} packages nested within ${PKG_BUILD_DIR}/. subr/pkg_distclean.subr: removed from repository. subr/pkg_{extract,fetch}.subr: {extract,fetch} within ${PKG_BASE_DIR}. subr/pkg_install.subr: install to ../destdir to facilitate post-installation processing. subr/pkg_setup_env.subr: set & create ${PKG_BASE_DIR}. subr/pre_subdirs.subr: always create ${PREFIX}/bin. vars/build.vars: consistently use ${PKG_{PREFIX,MAKE_INSTALL_VNAME,MAKEFLAGS_INSTALL}}. vars/env.vars, *: cleanup.
2017-10-25vars/build.vars: build mdso_host prior to toolchain and {psxtypes,ldso}_host ↵Lucio Andrés Illanes Albornoz1-1/+1
prior to the runtime components. vars/build.vars:mdso{,_host}: additionally install mdso to ${TARGET}/bin/mdso. vars/build.vars:ldso_host: additionally install libldso.a to ${PREFIX}/lib/libldso.a. vars/build.vars:ldso: additionally install libldso.a to ${TARGET}/lib/libldso.a. vars/build.vars:python3: pass -mout-dsolib vs. -mout-implib in ${BLDSHARED} (via midipix.) subr/build.subr:install_files(): fix -v flag & only prepend ${_prefix} w/ relative pathnames during {ln,mkdir,cp}. subr/pre_subdirs.subr:pre_subdirs(): mkdir ${PREFIX_TARGET}/bin. vars/gcc.vars:pkgp_gcc_setup_env(): pass -midata in ${GCCTARGET_FLAGS} (via midipix.)
2017-05-30patches/gcc.local.patch: removed (merged upstream.)Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+3
patches/gcc_stage1_cross_x86_64_w64_mingw32.local.patch: reintroduce patch deleted in <17e78c61e7677341ec4b3787abbe857bb2b6da26>. vars/gcc.vars: always apply ${PKG_NAME}.local.patch if it exists.
2017-05-29patches/gcc.local.patch: fix cbb-gcc-4.6.4/gcc/doc/gcc.texi when building w/ ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-2/+5
GNU texinfo v6.3+ (via Redfoxmoon & rqou.) patches/gcc_stage1_{cross,native}_x86_64_w64_mingw32.local.patch: removes obsolete patch. vars/gcc.vars: apply patches/gcc.local.patch during pkg_gcc_stage1_all().
2017-02-06build.sh, {subr,vars}/*: general cleanup.Lucio Andrés Illanes Albornoz (arab, vxp)1-9/+13
2017-02-06build.sh, {subr,vars}/*: general cleanup.Lucio Andrés Illanes Albornoz (arab, vxp)1-84/+88
2017-02-05build.sh, {subr,vars}/*: general cleanup.Lucio Andrés Illanes Albornoz (arab, vxp)1-34/+33
2017-02-03build.sh, etc/build.usage, {subr,vars}/*: general cleanup.Lucio Andrés Illanes Albornoz (arab, vxp)1-14/+14
2017-02-01vars/gcc.vars: consistent build dirs for all flavours of gcc (via midipix.)Lucio Andrés Illanes Albornoz (arab, vxp)1-2/+2
2017-02-01subr/{pkg,pkg_fetch}.subr: merges fetch{,_git}() into pkg_fetch.subr and ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-27/+40
introduces ${PKG_URLS_GIT}. subr/pkg_extract.subr: only extract if ${PKG_URL} is set. var/build.vars: updated to use ${PKG_URLS_GIT}. vars/{cparser,gcc,libfirm,musl,perl}.vars: updated to call pkg_fetch() instead of fetch{,_git}(). vars/gcc.vars: cleanup pkgp_gcc_setup_env() and pkg_gcc_stage1_all().
2017-01-31vars/{build,gcc}.vars: fix build & cleanup.Lucio Andrés Illanes Albornoz (arab, vxp)1-54/+60
2017-01-31vars/gcc.vars, subr/build.subr: cleanup.Lucio Andrés Illanes Albornoz (arab, vxp)1-290/+105
2017-01-30build.sh: 2nd refactoring pt. I.Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+413
build/{gcc,musl}.*.build: refactored into vars/{gcc,musl}.*.build. build/pkg.build: merged w/ build.sh (structurally) and refactored into subr/pkg_*.subr (implementations.) patches/gcc_native_x86_64_w64_mingw32.local.patch: fix wrong filename. subr/build.subr: merges source_scripts() into build.sh. subr/pkg.subr: accept either of ${PKG_..._{URL,VERSION}} when checking for missing entries in var/build.vars. vars/build.vars: adds vars for {gcc,musl}_*. vars/psxstub.vars: convert to pkg_..._all(); call pkg_fetch().