summaryrefslogtreecommitdiffstats
path: root/build-aux
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded ltmain patchAllan McRae2020-01-271-33/+0
| | | | | | | | | | | | | | | Many moons ago, libtool was bad - I mean worse than today! It gobbled all --as-needed and we ended up with an overlinked libalpm. This was annoying, particularly when dealing with soname bumps in libraries pacman/libalpm had no business linking to. Luckily we had a fix, stolen from GNOME I believe. And with that fix, we lived in harmony with libtool for many years. Until one day, unbeknownst to us, libtool was "fixed". We kept applying our patch, because it still applied, but it did worse than nothing. It gobbled up our other LDFLAGS, and our libalpm started missing out on RELRO and BIND_NOW. This made the Arch Security Team unhappy. We will make them happy again by stopping the patch. Signed-off-by: Allan McRae <allan@archlinux.org>
* meson: make non-symlink scripts install for real, and use a better wrapperEli Schwartz2019-11-261-6/+0
| | | | | | | | | | | | We now generate the scripts using their real name, install them using meson's builtin facility instead of an install_script, and generate the wrapper scripts in the root of the build directory, instead of a subdirectory. This gets us closer to resolving FS#64394. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
* Remove "Generated from ...; do not edit by hand" from scriptsAllan McRae2019-11-061-1/+0
| | | | | | This is a useless piece of information. Signed-off-by: Allan McRae <allan@archlinux.org>
* makepkg: replaces sed in-place with built in substitutionEthan Sommer2019-11-061-2/+0
| | | | | | | | | | | | | | Reads PKGBUILD into an array and replaces the pkgver and pkgrel with bash parameter substitution, then uses shell redirection to write to to the file. Because shell redirection follows symlinks, this accomplishes the same thing as the previous default of using the GNU-specific --follow-symlinks sed flag. Removes SEDPATH and SEDINPLACEFLAGS from the build systems as they are not used elsewhere. Signed-off-by: Ethan Sommer <e5ten.arch@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
* Move update-copyright into build-auxAllan McRae2019-11-051-0/+8
| | | | | | | This is a useful function to update all our copyright years. Move it into build-aux so that it is not lost in the switch to meson. Signed-off-by: Allan McRae <allan@archlinux.org>
* Support file with seccomp enabledEli Schwartz2019-10-071-0/+1
| | | | | | | | | | | | | | | Not all compression types can be detected in the seccomp sandbox, so we need to disable it. This requires either configuring makepkg to know the sandbox is available, or checking for file >= 5.38 in which the sandbox option is a no-op even when seccomp is disabled. - Requires autoconf-archive for autotools version compare macro. - meson version comparison could be made a lot simpler using meson-git. Fixes FS#58626 Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
* meson: remove tap-driver.py, use meson's TAP protocolDave Reisner2019-08-121-296/+0
| | | | | | | This includes a patch from Andrew to fix pactest's TAP output for subtests. Original TAP support in meson was added in 0.50, but 0.51 contains a bugfix that ensures the test still work with the --verbose flag passed to meson test, so let's depend on that.
* build-aux: detect build dir based on build.ninjaDave Reisner2019-08-051-1/+1
| | | | | | | .ninja.log is only present after building (successful or otherwise) the project, but build.ninja is output as soon as the build dir is setup. Signed-off-by: Allan McRae <allan@archlinux.org>
* drop DU* config variablesSantiago Torres2019-03-191-2/+0
| | | | | | | | Since DUFLAGS and DUPATH are not needed anymore remove them from the source Signed-off-by: Santiago Torres <santiago@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
* build: remove references to variable replacements from pacman-optimizeEli Schwartz2019-03-191-2/+0
| | | | | | | | MODECMD and OWNERCMD are not used by pacman itself, so we don't need to check for and replace them now that pacman-optimize is removed. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
* meson: be more accurate in comments when generating processed scriptsEli Schwartz2018-11-281-1/+1
| | | | | | | Instead of assuming all scripts are .sh.in and leaving a comment to that effect, just take the input file directly. Signed-off-by: Allan McRae <allan@archlinux.org>
* build-aux: rm annoying and useless fileEli Schwartz2018-11-281-652/+0
| | | | | | | | | | | tap-driver.sh is added to the build tree by autoreconf, and contains upstream modifications as such. This results in dirty working trees. It was originally added in commit 403c175dbc84a8198b92bbe76f66eade613cff48 which made the testsuite use automake, but as far as I can tell, never served any purpose. Signed-off-by: Allan McRae <allan@archlinux.org>
* meson: add a wrapper to bootstrap scripts from within build dirDave Reisner2018-11-022-0/+12
| | | | | | | | | This doesn't do quite as good of a job of "hiding away" the real script as we did with autotools, but it satisfies the need for being able to run scripts which depend on libmakepkg with the local copy within the repo. We do, however, improve upon the autotools script by ensuring that the bash path used in configuring pacman is the interpreter used to run the underlying script.
* Add meson.build files to build with mesonDave Reisner2018-11-024-0/+380
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide both build systems in parallel for now, to ensure that we work out all the differences between the two. Some time from now, we'll give up on autotools. Meson tends to be faster and probably easier to read/maintain. On my machine, the full meson configure+build+install takes a little under half as long as a similar autotools-based invocation. Building with meson is a two step process. First, configure the build: meson build Then, compile the project: ninja -C build There's some mild differences in functionality between meson and autotools. specifically: 1) No singular update-po target. meson only generates individual update-po targets for each textdomain (of which we have 3). To make this easier, there's a build-aux/update-po script which finds all update-po targets and runs them. 2) No 'make dist' equivalent. Just run 'git archive' to generate a suitable tarball for distribution.
* integrate tests with automakeAndrew Gregory2013-08-211-0/+652
| | | | | Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
* Patch ltmain on autoreconfAllan McRae2013-07-222-1/+35
| | | | | | | | We used to carry a patched version of ltmain in our repos to fix libtools issues with -Wl,-as-needed. Now that ltmain is "generated" by autoreconf, we manually patch it afterwards. Signed-off-by: Allan McRae <allan@archlinux.org>
* Update gitignore files for use with autoreconfAllan McRae2013-07-221-0/+1
| | | | Signed-off-by: Allan McRae <allan@archlinux.org>
* Remove autotools filesAllan McRae2013-07-229-15674/+0
| | | | Signed-off-by: Allan McRae <allan@archlinux.org>
* update to automake 1.14Allan McRae2013-06-266-471/+1084
| | | | Signed-off-by: Allan McRae <allan@archlinux.org>
* Update "missing" fileAllan McRae2013-01-281-311/+150
| | | | | | | The latest automake release causes complaints about an out of date 'missing' file during configure. Sync with upstream. Signed-off-by: Allan McRae <allan@archlinux.org>
* buildsys: move autotools bloat to build-auxDave Reisner2012-04-088-0/+15222
Signed-off-by: Dave Reisner <dreisner@archlinux.org>