Commit graph

220 commits

Author SHA1 Message Date
Leah Neukirchen
6b81302e38 environment/configure/hardening.sh: enable -fstack-clash-protection
This flag will make GCC 8 touch all space allocated using alloca(3)
and thus detect code jumping over the "stack gap".
2019-01-11 16:20:18 +01:00
q66
151f876627 common: add ppc64 build profiles and other ppc64 bits
This adds the build profiles for ppc64 targets as well as
modifications in other parts of the infra.

These targets are supported:

- ppc64le (glibc little endian elfv2)
- ppc64le-musl (musl little endian)
- ppc64-musl (musl big endian)

ELFv1 targets are explicitly not supported at this point.

Big endian musl supports ppc 970 or newer, while little endian
targets are set to a generic powerpc64le which effectively means
POWER8 and newer. Tuning is always set for POWER9, which is the
most likely target hardware. We also make sure AltiVec is always
on, because it is supported on all hardware we target.

[ci skip]
2019-01-05 23:38:00 +01:00
Andy Weidenbaum
afdfdf9991 build_style=perl6-dist: add 2018-11-26 04:11:50 -02:00
Johannes
5f5a55c2bb build-style/cargo.sh: export common variables to avoid static linking 2018-11-22 18:18:11 -02:00
Johannes
3aa797cb3a build-style cargo: move cargo config from wrksrc to home
since cargo 0.31.0 ${wrksrc}/.cargo/config is ignored for cargo install
fixes: https://github.com/void-linux/void-packages/issues/4328
2018-11-02 13:39:53 +01:00
maxice8
03ea181231 build_style: Add gemspec build_style 2018-11-02 07:15:08 -03:00
maxice8
49e11e1ca5 build_style: Add gem build_style 2018-11-02 07:15:08 -03:00
maxice8
c714d13f37 setup/install.sh: support bzipped (.bz2) manpages 2018-10-17 11:28:58 -03:00
Johannes
acd2241ba4 build-style cargo: do not pull complete rustc for target 2018-10-16 00:23:41 +02:00
Rasmus Thomsen
0318d0385a build-style/cargo.sh: add 2018-10-15 20:58:51 +02:00
Toyam Cox
1edc8846ca xbps-src: Migrate from build_style for 32bit pkgs
This allows dxpb to have a simpler test for whether or not a 32bit
package will be built.
2018-10-04 10:28:27 +02:00
Alessio Sergi
08408ed943 common/environment/setup/python.sh: always expose py{2,3}_* vars
Their values are static now, so remove the tests.
2018-09-15 01:49:45 +02:00
Jürgen Buchmüller
e9cbfacb5a
build style go.sh: split gocache for glibc/muslc
Closes: #2542

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-09-11 12:39:29 +02:00
Michael Aldridge
a4dd50388a xbps-src: Always enable the gocache
[ci_skip]
2018-09-01 22:05:07 -07:00
maxice8
b2221a8071
build-style/scons.sh: add scons to hostmakedepends= 2018-08-21 20:37:47 -03:00
maxice8
e42406c070
setup/install.sh: transparently deal with gzipped manpages
[ci skip]
2018-08-12 04:21:46 -03:00
Piotr Wójcik
31097aca86 common/environment/fetch/misc.sh: use https for MOZILLA_SITE
Closes #14901.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-06-05 09:17:45 +02:00
Duncaen
94ed33657b Revert "common/: add support for changelog field."
This reverts commit 8599efd9fd.
2018-05-04 16:46:46 +02:00
maxice8
daf68c6d59 rename vopt_onoff to vopt_bool which returns -D<prop>=true|false
This makes it more generic and allows us to use it freely between
cmake and meson build styles.
2018-05-04 10:56:26 +02:00
maxice8
8599efd9fd common/: add support for changelog field.
This commits allows ./xbps-src show to show the changelog field and for
changelog to be included with the -c/--changelog option via xbps-create.

Closes: #14102 [via git-merge-pr]
2018-05-03 22:58:27 -04:00
Michael Carlberg
d5c58a3c60 xbps-src: new vopt_onoff helper
CMake helper function used to set bool argument values

Usage example:

    configure_args+=" $(vopt_onoff logging WITH_LOGGING)"

    configure_args+=" -DWITH_LOGGING=OFF"
2018-05-03 01:26:32 -04:00
maxice8
babcd991bc common/environment/fetch/misc.sh: add KDE_SITE.
there are 272 occourences of download.kde.org/stable, to avoid
repetition add a KDE_SITE variable to be used instead.
2018-04-22 19:16:50 -04:00
Jürgen Buchmüller
f274d7728c
04-generate-runtime-deps.sh: introduce skiprdeps
Yet another variable to permit skipping of runtime dependency checks
for a list of files, specifying their absolute path in the $DESTDIR,
allows us to handle known bad detections due to e.g. binaries or
shared libraries not meant to be run or loaded in the host.

This will be used to fix the android-studio template to skip
a number of files which would create a bogus dependency on libc.so.

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-04-10 17:54:13 +02:00
Alessio Sergi
7737976464 xbps-src: lib32disabled=yes for python{2,3}-module too 2018-03-26 19:01:36 +02:00
Piotr Wójcik
92fd2f3d4b build-styles/waf{,3}: python{,3} in hostmakedepends
Closes: #11592 [via git-merge-pr]
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-03-25 20:00:51 +02:00
Michael Gehring
7c20248a20 common/environment/build-style/go.sh: drop go-cross-linux dep 2018-03-19 08:29:05 +01:00
Michael Gehring
b137c5393a xbps-src: ensure GIT_CMD is invoked on the distdir 2018-03-14 15:47:56 +00:00
Michael Gehring
a4a229cf64 xbps-src: use HEAD commit time for SOURCE_DATE_EPOCH
In order to make builds more reproducible SOURCE_DATE_EPOCH was set to
the time of the last commit that touched the template. Since trying to
reproduce a build from a different revision is futile (the most obvious
reason is that the source-revisions property includes the HEAD commit
hash) and looking up the commit in question can take several seconds,
stop wasting time an just use HEAD.

Closes: #12314 [via git-merge-pr]
2018-03-14 12:58:36 +00:00
Jürgen Buchmüller
fa8becd3e1 autoconf_cache/arm-linux: fix sizeof(wchar_t) 2018-02-04 13:39:47 +01:00
Alessio Sergi
7cac47c7d5 common/environment/setup/python.sh: hardcode values 2018-01-31 16:38:53 +01:00
Jürgen Buchmüller
5bef4d8ad8 autoconf_cache: aarch64 add ac_cv_sizeof_bool=1 2018-01-16 00:29:42 +01:00
Michael Aldridge
92d6e1a521 go build style: move GOPATH creation to do_configure() 2017-11-26 00:41:26 -08:00
Leah Neukirchen
986d4dbc7d common/environment/setup/git.sh: ensure untracked files are checked. 2017-11-24 14:10:00 +01:00
hipperson0
fb26ec4a5b New package: cross-mips-linux-muslhf-0.24 2017-11-24 10:11:23 +01:00
Enno Boland
0d446641e7 build-style/gnu-configure.sh: use generic do_check function 2017-11-19 20:50:48 +01:00
Michael Gehring
a8b8efe636 common/environment/setup/sourcepkg.sh: unset {pre,do,post}_check, checkdepends 2017-11-18 14:24:12 +01:00
Jürgen Buchmüller
546228d62a autoconf_cache/musl-linux: use 64 bit off_t etc. 2017-11-13 16:24:11 +01:00
Jürgen Buchmüller
b55932255d configure/hardening.sh: use PIE and SSP by default, drop -specs hacks. 2017-11-02 15:57:31 +01:00
Sir_Boops
c0aa21a3f2 xbps-src: you need meson to build with meson 2017-09-12 08:58:51 -06:00
Leah Neukirchen
83909fc6b9 common/environment/setup/misc.sh: set CPAN_SITE to www.cpan.org.
cpan.perl.org is currently broken.
2017-08-19 17:29:05 +02:00
Toyam Cox
ef77435890 Merge pull request #6733 from The-Fred/xorg-to-https-and-new-url
xbps-src: use https and new url for XORG_SITE
2017-06-15 00:40:50 -04:00
The_Fred
6ec374fa2d xbps-src: use https and new url for XORG_SITE 2017-06-14 21:11:32 -07:00
Enno Boland
5da5cd7c0e Merge pull request #6693 from The-Fred/freedesktop-to-https
xbps-src: use https for FREEDESKTOP_SITE
2017-06-13 09:29:10 +02:00
The_Fred
95bbfa6a6e xbps-src: use https for FREEDESKTOP_SITE 2017-06-12 09:18:45 -07:00
Florian Wagner
f2c0f7885e Add and document R-cran build style; support CRAN in update-check. 2017-06-08 13:32:40 +02:00
Jürgen Buchmüller
5a11957d14 Merge branch 'master' into check 2017-05-02 09:18:52 +02:00
Toyam Cox
2b19b7eb58 build_style/gnu-makefile: allow good makefiles 2017-04-25 16:20:59 -04:00
Alessio Sergi
49931349ed xbps-src: use https for KERNEL_SITE 2017-03-09 13:51:18 +01:00
Jürgen Buchmüller
272114cd05 xbps-src: trying to fix FFLAGS construction
This still isn't perfect. When the common/xbps-src/shutils/chroot.sh
function chroot_init() is called, the value for $XBPS_FFLAGS, which is
defined in common/build-profiles/bootstrap.sh, is empty.

Put the immediate value into the generated /etc/xbps/xbps-src.conf
file until someone finds out where passing the value of $XBPS_FFLAGS
throughout the scripts is missing.
2017-03-08 17:36:22 +01:00
Jürgen Buchmüller
c31dd888f6 xbps-src: implement a 'check' stage
Add another stage 'check' between 'build' and 'install'. It is be enabled using the
variable XBPS_CHECK_PKGS=yes and disabled if unset, set to "0" or "no" in your
local etc/conf.

A new xbps-src option `-q` for `quick` will disable XBPS_CHECK_PKGS by overriding it to 0.
If enabled, `common/xbps-src/shutils/xbps-src-docheck.sh` checks for an existing
`do_check()` function in the package's template and, if it exists, calls it.

A new template variable `checkdepends` may be present and list packages required
to run the `do_check()` function. Example: `checkdepends="bc unittest-cpp"`.
2017-03-08 11:33:48 +01:00