summaryrefslogtreecommitdiffhomepage
path: root/build.sh
AgeCommit message (Collapse)AuthorFilesLines
2016-09-11Fixes ./build.sh BUILD_CPUS=<n>.Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+2
2016-09-10Adds msgfmt and Perl {autodie,ExtUtils::MakeMaker} prerequisite dependencies.Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+7
2016-09-10Adds -d (disable script) and -e (disable script.)Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+2
2016-07-21Adds -pi (old -i, insert build script) and -pr (remove build script.)Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+2
2016-07-20- Drops {bash,coreutils}_host in favour of dynamically-linked ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+7
${PREFIX_MINIPIX} binaries and libraries. - Manually install ncursesw {bin,lib,share}/ files to ${PREFIX_MINIPIX}.
2016-07-19- Additionally install ncursesw and ntctty into ${PREFIX_MINIPIX} and create ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-4/+6
Minipix tarball in 999.tarballs.build which solely contains ${PREFIX_MINIPIX}. - Adds {bash,coreutils}_static which are linked statically and installed to ${PREFIX_MINIPIX} as opposed to {bash_coreutils} which are not linked statically and installed to ${PREFIX_NATIVE}. - Adds file v5.28. - Add support for ${PREFIX_MINIPIX} to midipix.sh (either automatically detected or specified via -m.) - Adds verbosity flag -v wrt. secure_{cd,rm}() and insecure_mkdir(). - Build slibtool{_host,} w/ `--prefix='. - Export ${ARG_TARBALL} instead of special-casing build level 9. - Fix mc configure failure (error: could not determine how to read list of mounted file systems.)
2016-07-14kill(1) the build.sh background process w/ SIGTERM instead of SIGINT in ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-4/+6
build.sh.
2016-07-11Replaces rm_if_exists() [-m] [-c] w/ secure_rm(), insecure_mkdir(), and ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-4/+4
secure_cd(). secure_{rm,cd}() verify whether all pathnames supplied are rooted beneath ${PREFIX_ROOT}.
2016-07-11- Build slibtool_host in build level 0 and slibtool in build level 1.Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+4
- Fetch lazy in 006.musl.full.build. - Infer the default number of make(1) jobs to run simultaneously from /proc/cpuinfo. - Merges <https://ftp.gnu.org/gnu/bash/bash-4.3-patches/> into bash-4.3.local.patch. - Print all attributes off SGR at the start of a message in log_msg(). - Simplify 009.gcc.full.build and fetch{,_git}(). - Only create library archives for shared objects that have actually been installed. - Only invoke git-clone(1) and wget(1) in fetch{_git,}() when necessary.
2016-07-10Adds rxvt-unicode v9.22, xeyes v1.1.1 and xwd v1.0.6 and their dependencies ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-5/+6
libICE v1.0.9, libSM v1.2.2, libxkbfile v1.0.9, libXaw v1.0.13, libXext v1.3.3, libXmu v1.1.2, libXpm v3.5.11, libXt v1.1.5, and renderproto v0.11.1.
2016-07-10Adds pseudo-build step `diff.'Lucio Andrés Illanes Albornoz (arab, vxp)1-6/+8
2016-07-10- Check if build script exists and if build level is valid w/ -r.Lucio Andrés Illanes Albornoz (arab, vxp)1-2/+12
- Removes build levels {configure,build,install}{1,2}.
2016-07-10General cleanup; user-visible changes: -a nt{32,64}, -b {debug,release}.Lucio Andrés Illanes Albornoz (arab, vxp)1-60/+102
2016-06-23build.{sh,subr,vars}: adds check_prereq_files() and ${CHECK_PREREQ_FILES} ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+3
checking for gmp, mpc, and mpfr. (/usr/include/gmpxx.h /usr/include/mpc.h /usr/include/mpfr.h)
2016-06-23- Adds and integrates pkgconf_host and pkgconf; fixes Irssi and otherLucio Andrés Illanes Albornoz (arab, vxp)1-4/+7
packages that depend on pkg-config(1) and makes their build variables significantly less hacky (apk_tools, irssi, nano, ncurses, ncursestw ncursesw, and pacman.) pkgconf_host installs a ${TARGET}-pkg-config wrapper script that passes --define-variable=prefix=${PREFIX_NATIVE} when cross-compiling. - Adds -i flag to insert a link to pkg.build for a new build script and automatically rename build scripts with higher consecutive build levels. - Consistently quote [(1) operands correctly wherever necessary. - Reorganise build level 3 script levels: 1) 300-319: library dependencies, ordered by dependencies and alphabetically, 2) 320-389: leaf packages, ordered alphabetically.
2016-06-22Create ${PREFIX} if absent.Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+3
2016-06-22Fix wrong variable name when calling check_prereqs().Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+1
2016-06-11Moved tarball creation logic into its own build script; level 9 buildLucio Andrés Illanes Albornoz (arab, vxp)1-42/+3
scripts are only invoked when ${ARG_TARBALL} is set (-t.) Allow specification of the compression algorithm to use via -t{.bz2,gz,xz}. (via noninc)
2016-06-09Create ASCII armored output when signing tarballs.Lucio Andrés Illanes Albornoz (arab, vxp)1-2/+2
2016-06-09Adds and integrates slibtool:Lucio Andrés Illanes Albornoz (arab, vxp)1-3/+2
- Adds ${PKG_SLIBTOOL}. - pkg.build: export ${MAKE} as `make LIBTOOL=${PKG_SLIBTOOL}'. - binutils{_host,}: use slibtool-static. - git: add NEEDS_SSL_WITH_CURL=1 to ${PKG_GIT_MAKEFLAGS_BUILD_EXTRA}. - pacman-5.0.1: add `LIBALPM_LIBS=-lssl -lbz2 -llzma -lz' to ${PKG_PACMAN_ENV_VARS_EXTRA}; Makefile.am patch. Introduces 32-bit (i686-nt32-midipix) support, selected by ARCH=nt32 and defaulting to 64-bit builds: - Create ${PREFIX_TARGET}/lib. - Remove ${PREFIX_TARGET} when cleaning the prefix if -c has been specified. - Set ${HOST_NATIVE}, ${TARGET}, and ${TARBALL_{SRC_,}FNAME_PREFIX} from ${ARCH}. - pkg.build: use ${TARGET}-dlltool instead of x86_64-nt64-midipix-dlltool. - glib-2.46.2: broken at present. - libffi-3.2.1/src/x86/win32.S: fix symbol prefix. - musl-1.1.12/arch/nt32/bits/syscall.h: copied from musl-1.1.12/arch/nt64/bits/syscall.h. - perl-5.22.1: Set --target from ${TARGET}. Bug fixes: - psxstub: make {_,__}so_entry_point weak symbols to express preference for the real psxscl shared object. - bash-4.3: fix lib/intl/libgnuintl.h issue. - libarchive-3.1.2: import FreeBSD-SA-16:23.libarchive and FreeBSD-SA-16:22.libarchive security fixes. Include all directories beneath ${WORKDIR} in the source tarball. Updated TODO list at the end of README.
2016-05-27Followup to last commit.Lucio Andrés Illanes Albornoz (arab, vxp)1-4/+4
2016-05-26- Adds README to the repository and $PREFIX after a successful build.Lucio Andrés Illanes Albornoz (arab, vxp)1-4/+12
- Replaces SHA-256 message digest w/ PGP signatures.
2016-05-26Copy `midipix.sh' and `Create `Midipix mintty shell' shortcut.vbs' into $PREFIX.Lucio Andrés Illanes Albornoz (arab, vxp)1-3/+3
2016-05-25- Followup to <ffcc9c6a9dfeb481fb342accb71579ae5478ea74>.Lucio Andrés Illanes Albornoz (arab, vxp)1-3/+3
- Fix pseudo-local variable leaks in build.subr. - Log $PKG_* environment variables prior to building w/ pkg.build. - Always build musl w/ -g2 -O0. - Remove obsolete export CFLAGS=${CFLAGS_LVL${BUILD_LVL}} command from build.sh. - Handle bin/libpsxscl.{last,log} in midipix.sh. - Add autoconf to $CHECK_PREREQ_CMDS. - Include `Create `Midipix mintty shell' shortcut.vbs' in the tarball. - Changes the $PKG_ENV_VARS_EXTRA variable name-value pair separator from `,' to `:'. - Link bash and coreutils statically. - Changes the level 2 package --prefix to `', installing to DESTDIR=$PREFIX_LVL2.
2016-04-23Followup to <15af12934ba6acb4bf38345ef33e3fdd4d946ae1>.Lucio Andrés Illanes Albornoz (arab, vxp)1-4/+4
2016-04-21- Adds perl via perl-cross, Redfoxmoon, and ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+8
<https://github.com/lalbornoz/perl-cross>. - Ensure ${PREFIX}/usr and ${PREFIX_NATIVE}/usr are symbolic links to `.'
2016-03-18Create sha256sum(1) sums when creating tarballs.Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+5
2016-03-07Source ${HOME}/midipix_build.vars and/or ../midipix_build.vars.Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+2
2016-03-07- Make the midipix shell window shell script less useless.Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+1
It now defaults to "/c/Midipix /z" if no arguments are specified. - Include midipix.sh in distribution tarball.
2016-03-07Create source tarball when and after creating distribution tarball.Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+7
2016-03-06Followup to last commit.Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+1
2016-03-06- Force non-widec ncurses build.Lucio Andrés Illanes Albornoz (arab, vxp)1-2/+2
- Fix $PREFIX_NATIVE/lib.bak exclusion in tarball creation. - Create lib.a files for all shared objects linked. - Fix bzip2 shared object installation.
2016-03-06- Adds glib2, irssi, and libffi.Lucio Andrés Illanes Albornoz (arab, vxp)1-12/+11
- Fixes signal handling wrt. build status files. - Simplify tarball creation procedure. - Forcibly remove all \*.la files from $PREFIX_LVL3/lib after each installation build step.
2016-03-05- Followup to last commit.Lucio Andrés Illanes Albornoz (arab, vxp)1-5/+4
- Replaced -[LI]${PREFIX_LVL3}/{lib,include} w/ --sysroot ${PREFIX_LVL3}.
2016-03-05- Followup to last commit.Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+1
- Fixed bzip2 and musl (libc) installation wrt. $PREFIX_LVL/bin/{bz*,ldd} symlinks (reported by avih.)
2016-03-02- Emit warnings whenever a potentially dangerous operation is invoked by the ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+1
build scripts. Currently, this only includes rm_if_exists(). - Adds pedantic mode (-pt,) which additionally adds manual confirmation of each potentially dangerous operation.
2016-03-01- Fix tarball creation procedures and use xz(1) instead of bzip2(1).Lucio Andrés Illanes Albornoz (arab, vxp)1-7/+11
- Honour $ARG_NO_DOWNLOAD in fetch_git() (reported by daurnimator.) - Fix libressl installation issue (reported by noninc.)
2016-02-27- Followup to b947460aacf5861255b5d7f1e521b0daf30b3b11: don't exit 1, exit ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+0
normally. - Fix typo in PKG_UTIL_LINUX_LDFLAGS_CONFIGURE_EXTRA preventing util-linux from being built under some circumstances (reported by noninc.) - Add pkg-config to CHECK_PREREQ_CMDS as packages depending on ncurses need this. (reported by noninc.)
2016-02-27Followup to 0724e525c8f3144b7fc689e5762ee04202dbd715.Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+1
2016-02-27- Followup to b947460aacf5861255b5d7f1e521b0daf30b3b11.Lucio Andrés Illanes Albornoz (arab, vxp)1-2/+2
- Set V=99 when building util-linux.
2016-02-27Adds -x (xtrace) and -X (xtrace and create debug tarball.)Lucio Andrés Illanes Albornoz (arab, vxp)1-6/+25
2016-02-27- Implements -c (clean) and -nd (no download (unless necessary.))Lucio Andrés Illanes Albornoz (arab, vxp)1-40/+30
- General cleanup; consistent build status files in $PREFIX, LICENSE -> LICENCE., fix libelf's pkg_libelf_install_post(), rotate status files and tarballs.
2016-02-27Replaced [ "x${... constructions w/ the equally portable [ "${....Lucio Andrés Illanes Albornoz (arab, vxp)1-4/+4
2016-02-27- Don't leak BUILD_IN_PROGRESS into $PWD.Lucio Andrés Illanes Albornoz (arab, vxp)1-19/+18
- Fixes -r.
2016-02-27Add patch(1) as prerequisite command.Lucio Andrés Illanes Albornoz (arab, vxp)1-1/+1
2016-02-27- build.{sh,subr } cleanup including Cygwin compatibility fixes and ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-20/+39
[gs]et_var_dyn(). - Replaced --build-{scripts,steps} w/ -r, --tarball w/ -t, and --help w/ -h. - Create BUILD_{FINISHED,STARTED}_AT_..., BUILD_IN_PROGRESS, and TARBALL_STARTED_AT files and BUILD_FINISHED_AT symlink in $PREFIX whenever appropriate.
2016-02-25Exclude src/midipix_build{,/*} from being included in tarballs.Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+2
2016-02-23- Prepend local variable names w/ a function-unique prefix to prevent ↵Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+3
collisions and leaks. - Implemented consistent build/configure/install variable handling with per-level [0123] defaults. Fixes lack of uniform CFLAGS (-g3 -O0) usage. The new build variables include: - {AR,CC,RANLIB}_{BUILD,CONFIGURE,INSTALL}, - {{C,LD,MAKE}FLAGS_{BUILD,CONFIGURE,INSTALL}}{,_EXTRA}, - CONFIGURE_ARGS{,_EXTRA}, ENV_VARS_EXTRA, LIBTOOL_MIDIPIX, and PREFIX_EXTRA.
2016-02-13Fixed rsync and util_linux, removed popt.Lucio Andrés Illanes Albornoz (arab, vxp)1-0/+6
2016-02-12- Major cleanup in general.Lucio Andrés Illanes Albornoz (arab, vxp)1-38/+47
- Added --{build-{scripts,steps},help,tarball}. Variables can now be overriden on the command-line. - Integrated bzip2, dash, less, ncurses, popt, rsync, tar, util-linux, which, and xz; as there are no patches in portage/ for util-linux just yet, this presently requires integrated local patches. Git is included in build.vars only as it requires OpenSSL. - Include ntapi.local.patch and psxscl.local.patch in the repository.