Commit graph

75 commits

Author SHA1 Message Date
joerg
a2bf097c37 Allow more memory for GHC to waste. Allow dropping extra compat
libraries in FILESDIR.
2020-03-30 19:36:03 +00:00
riastradh
5f0bbd2011 Set LD_LIBRARY_PATH for compat80 emul in configure step too. 2020-03-27 04:13:57 +00:00
bsiegert
23f9d8e845 Revbump packages depending on libffi after .so version change.
Requested by Matthias Ferdinand and Oskar on pkgsrc-users.
2020-03-08 16:42:24 +00:00
jperkin
5eeb26f913 ghc7: Update SunOS bootstrap kit and fix a couple of issues. 2020-02-14 23:36:54 +00:00
pho
4cb86cb111 Update the bootkit for FreeBSD/i386
It's now built on FreeBSD 12.1.
2020-01-13 01:06:52 +00:00
pho
e9b18774ec Fix build on platforms where bootkit version doesn't match PKGVERSION 2020-01-12 11:07:46 +00:00
pho
3620264eed Explicitly set the ld command to ${LD}
Without doing this the resulting compiler will have a cwrapper ld
embedded, and will be unable to bootstrap later versions of GHC.
2020-01-03 11:11:29 +00:00
pho
b22c32f447 More patches to suppress linker warnings 2019-12-31 07:10:30 +00:00
pho
23ba2e9cf1 Update to GHC 7.10.3
Changes from 7.6.3 are as follows:
* https://www.haskell.org/ghc/docs/7.8.1/html/users_guide/release-7-8-1.html
* https://www.haskell.org/ghc/docs/7.8.2/html/users_guide/release-7-8-2.html
* https://www.haskell.org/ghc/docs/7.8.3/html/users_guide/release-7-8-3.html
* https://www.haskell.org/ghc/docs/7.8.4/html/users_guide/release-7-8-4.html
* https://www.haskell.org/ghc/docs/7.10.1/html/users_guide/release-7-10-1.html
* https://downloads.haskell.org/~ghc/7.10.2/docs/html/users_guide/release-7-10-2.html
* https://downloads.haskell.org/~ghc/7.10.3/docs/html/users_guide/release-7-10-3.html
2019-12-29 16:59:08 +00:00
rillig
8c6aee8563 lang: align variable assignments
pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
2019-11-03 19:03:56 +00:00
gutteridge
f43653b461 ghc7: refine NetBSD 9.x build fix for sandboxed pbulk 2019-11-01 06:10:23 +00:00
gutteridge
f8d7bb5f75 ghc7: build fix (workaround) for NetBSD 9.x
NetBSD 9.x have libcurses with a newer major version than the
bootstrap kit is linked against. For now, work around this with
compat80. (This could also be dealt with by creating versioned
bootstrap kits, but that's more involved, and NetBSD 9.x is pre-
release software, so best to leave this off for now.) Thanks to
Greg Troxel for the compat80 hint.
2019-10-29 05:12:47 +00:00
gutteridge
daf6f0c123 ghc7: minor comment fix in bootstrap.mk (NFC) 2019-10-14 02:36:30 +00:00
wiz
84e123ddd2 Bump PKGREVISIONs for perl 5.30.0 2019-08-11 13:17:48 +00:00
nia
c66ee34855 Follow some http->https redirects. 2019-07-08 10:36:25 +00:00
wiz
860d8d16e2 ghc7: manually add SHA512 checksums for two bootstrap files
XXX: some bootstraps (e.g. solaris) seem to be missing completely
from distinfo. I'll leave this for someone on those platforms who cares
2019-05-02 08:21:49 +00:00
maya
75abe8ec6b ghc7: not aslr safe, either. bump PKGREVISION
Fix PR pkg/53842. ghci dies with:
ghc: mmap 593920 bytes at 0x40000000: Cannot allocate memory
2019-01-10 18:11:56 +00:00
jperkin
6db6f6b0af *: Add CTF_SUPPORTED/CTF_FILES_SKIP where necessary. 2018-11-12 14:40:20 +00:00
jperkin
0fe12e75be ghc7: Add STRIP_FILES_SKIP for a problematic file. 2018-11-12 13:49:16 +00:00
rillig
21e91749b0 lang/ghc7: fix typo in error message 2018-09-10 01:04:41 +00:00
wiz
93b46879c7 Recursive bump for perl5-5.28.0 2018-08-22 09:43:40 +00:00
jperkin
3a3724fdb6 ghc7: Set _XOPEN_SOURCE correctly on SunOS. 2018-05-25 15:24:02 +00:00
rillig
9050884761 lang/ghc7: download from https instead of http (redirected) 2018-03-03 19:43:20 +00:00
szptvlfn
dba11c5f0e Bump PKGREVISION for NOT_PAX_MPROTECT_SAFE 2016-09-10 23:23:20 +00:00
wiz
2b0a009d0e Bump PKGREVISION for perl-5.24.0 for everything mentioning perl. 2016-07-09 06:37:46 +00:00
joerg
1a41bd36d6 Fix libffi linkage, so that it actually picks up the right version and
includes the rpath. Seen by a not so happy devel/happy. Bump revision.
2016-05-07 10:02:06 +00:00
joerg
64f27262f7 Look in DESTDIR for the dynamic PLIST additions, fixing my own snafu in
the last revision.
2016-04-14 19:56:44 +00:00
joerg
aea50c92b8 Adjust checks for _USE_DESTDIR != no or incorrect references to
USE_DESTDIR.
2016-04-10 16:39:27 +00:00
agc
54622f28e2 Add SHA512 digests for distfiles for lang category
Problems found with existing digests:
	Package nhc98 distfile nhc98src-1.22.tar.gz
	a8adc8f22371998ee0657bc0e01058a57d876abc [recorded]
	81975fcb5f1dda5efeaabc30ce8c6dceae55e591 [calculated]

Problems found locating distfiles:
	Package gcc-aux: missing distfile ada-bootstrap.i386.dragonfly.36A.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.i386.freebsd.84.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.dragonfly.36A.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.freebsd.84.tar.bz2
	Package gcc-aux: missing distfile ada-bootstrap.x86_64.solaris.511.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.i386.dragonfly.36A.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.i386.freebsd.84.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.dragonfly.36A.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.freebsd.84.tar.bz2
	Package gcc5-aux: missing distfile ada-bootstrap.x86_64.solaris.511.tar.bz2
	Package ghc7: missing distfile ghc-7.6.3-boot-i386-unknown-freebsd.tar.xz
	Package icc11: missing distfile l_cproc_p_11.1.080.tgz
	Package jini: missing distfile jini-1_2_1_001-src.zip
	Package oo2c: missing distfile oo2c_32-2.0.11.tar.bz2
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-5-i386-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-6-i386-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-earmv6hf-20150306.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-sparc64-20150301.tar.xz
	Package openjdk7: missing distfile openjdk7/bootstrap-jdk7u60-bin-dragonfly-3.8-amd64-20140719.tar.bz2
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-freebsd-10-amd64-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-5-i386-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-6-i386-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-earmv6hf-20150306.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk-1.7.76-netbsd-7-sparc64-20150301.tar.xz
	Package openjdk8: missing distfile openjdk7/bootstrap-jdk7u60-bin-dragonfly-3.8-amd64-20140719.tar.bz2
	Package oracle-jdk8: missing distfile jdk-8u60-linux-i586.tar.gz
	Package oracle-jdk8: missing distfile jdk-8u60-solaris-x64.tar.gz
	Package oracle-jre8: missing distfile jre-8u60-linux-i586.tar.gz
	Package oracle-jre8: missing distfile jre-8u60-solaris-x64.tar.gz
	Package sun-jdk6: missing distfile jdk-6u45-linux-i586.bin
	Package sun-jdk6: missing distfile jdk-6u45-solaris-i586.sh
	Package sun-jdk7: missing distfile jdk-7u72-linux-i586.tar.gz
	Package sun-jdk7: missing distfile jdk-7u72-solaris-i586.tar.gz
	Package sun-jre6: missing distfile jce_policy-6.zip
	Package sun-jre6: missing distfile jre-6u45-linux-x64.bin
	Package sun-jre6: missing distfile jre-6u45-solaris-x64.sh
	Package sun-jre7: missing distfile jre-7u72-linux-i586.tar.gz
	Package sun-jre7: missing distfile jre-7u72-solaris-i586.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 22:50:31 +00:00
tnn
b0d27fc1df Don't conflict with system's execvpe(3). Fixes build on NetBSD-current. 2015-10-23 20:46:22 +00:00
wiz
c7383780db Bump all packages that depend on curses.bui* or terminfo.bui* since they
might incur ncurses dependencies on some platforms, and ncurses just bumped
its shlib.
Some packages were bumped twice now, sorry for that.
2015-08-18 07:31:00 +00:00
wiz
0982effce2 Recursive PKGREVISION bump for all packages mentioning 'perl',
having a PKGNAME of p5-*, or depending such a package,
for perl-5.22.0.
2015-06-12 10:48:20 +00:00
tnn
072c461ff0 needs gzip(1) during build (to unpack bundled libffi) 2015-03-17 21:15:28 +00:00
pho
bdef23c9b2 Update TODO: in ghc-7.10 the top-level ./configure will have --with-curses-{includes,libraries} 2015-02-23 23:17:20 +00:00
pho
e877bbb0be Leave CONF_LD_LINKER_OPTS_STAGE{0,1,2} undefined
These flags are only used for creating static GHCi libraries
(HS*.o). Setting them to ${LDFLAGS} does more harm than good because
our ${LDFLAGS} contains -Wl,* flags. It's true that
../../mk/wrapper/cmd-sink-ld transforms them but those flags will also
be baked into the compiler (see ${WRKSRC}/compiler/ghc.mk) so they
cause problems when used outside the buildlink.
2015-02-20 19:10:29 +00:00
joerg
11820995c5 Silence missing ghc. 2015-02-17 21:12:13 +00:00
pho
3c1f659e8a Add upstream Trac URL for our workaround to non-standard curses path 2015-02-17 09:29:17 +00:00
pho
2d995f8a1b Add upstream Trac URL 2015-02-16 07:04:58 +00:00
pho
534e7dc7ce Suppress linker warnings about compatibility syscall wrappers by using "capi" instead of "ccall"
In Haskell FFI, "ccall" is actually an interface to C ABI rather than
C API. That is, GHC generates direct references to the symbol even if
it's actually defined as a cpp macro or something like that, because
GHC knows nothing about those macros in foreign headers.

I will later send these patches to the upstream.
2015-02-13 19:28:40 +00:00
pho
a65793c720 On FreeBSD we need pkgsrc libiconv
See bootstrap.mk for details.
2015-02-13 19:26:49 +00:00
pho
3aadb59630 Use BROKEN_EXCEPT_ON_PLATFORM instead of ONLY_FOR_PLATFORM because it's merely broken on unlisted platforms, not inappropriate 2015-02-11 13:38:42 +00:00
pho
3075a19c62 Uploaded bootkits for NetBSD/amd64, FreeBSD/i386 and Darwin/ppc to LOCAL_PORTS
They derived from safe bootkits in wip/ghc. See my previous commit for
details.
2015-02-11 09:38:08 +00:00
pho
33d62cc145 Oops, I forgot to replace some of ${PKGNAME} with ${PKGNAME_NOREV} 2015-02-11 07:49:51 +00:00
pho
571687122f Preparing to upload some of bootkits to LOCAL_PORTS
Refactored bootstrap.mk with no semantic changes in this commit. I
will soon upload some of bootkits derived from wip/ghc to LOCAL_PORTS
but only for safe ones. Here's a note about safety:

* NetBSD/amd64, FreeBSD/i386, Darwin/ppc [SAFE]: These kits were built
  on my secured private machines under my exclusive control. I'm
  planning to upload them.

* Linux/amd64 [UNSAFE]: I built my kit for this one on a machine
  shared with my co-workers with root access. I won't upload it.

* NetBSD/i386 [UNSAFE]: I built my kit for this one on an Amazon EC2
  instance (although it's private). I won't upload it either.

For other developers, please do not upload any bootkits derived from
unsafe ones mentioned above, because they have some degree of
possibility of being compromised. And please keep in mind that
machines shared with someone or on a cloud hosting service should be
avoided for building bootkits.
2015-02-11 07:47:16 +00:00
joerg
0159b3daaa Provide (invalid) value for BOOT_ARCHIVE for unknown architectures to
avoid warnings in the rest of the while.
2015-02-07 20:08:30 +00:00
pho
87549afed2 Bootkit for FreeBSD needs to use pkgsrc libiconv 2015-02-07 09:35:55 +00:00
pho
3872d9873e ${MAKE} bootstrap: Build bootkits with -static-libgcc
We don't want our bootkits to have a run-time dependency on libgcc. In
fact GHC's implementation of Haskell exception handling does not
depend on libgcc's facilities so it is attractive to do the same for
"normal" build... but we can't. This is because Haskell programs may
call C functions via FFI, and those C functions may call C++ functions
in turn, possibly in a different shared library.

But on some platforms, gcc automagically inserts a dependency on a
shared libgcc when -lpthread is given, which is seemingly unavoidable.
2015-02-06 06:57:13 +00:00
pho
4717122dd9 patches/patch-rts_ghc.mk: dtrace hack is no longer needed
The problem only occurs when $(WhatGccIsCalled) is an absolute path to
the "real" gcc (e.g. "/usr/bin/gcc"), which happens if we run
${WRKSRC}/configure with an option something like
"--with-gcc=/usr/bin/gcc". As long as we use "--with-gcc" with a
command name (i.e. ${CC}, not ${CCPATH}), everything works fine
without any problems.

This is because dtrace(1) executes cpp in a rather weird way: it calls
execvp("/usr/bin/gcc", argv) with argv set to {"gcc", "-E", "-xc",
...}, not {"/usr/bin/gcc", "-E", "-xc", ...}.

When GCC is called that way, it needs to find platform-specific
subprograms by walking through ${PATH}. And if it sees an executable
named "gcc" which in fact isn't actually gcc, it gets confused and
dies with an error:

  % cat dtrace-emu.c
  #include <unistd.h>
  #include <stdio.h>
  int main() {
      char *argv[] = {"gcc", "-E", NULL};
      execvp("/usr/bin/gcc", argv);
      return 0;
  }
  % gcc dtrace-emu.c -o /tmp/gcc
  % /tmp/gcc
  powerpc-apple-darwin9-gcc-4.0.1: no input files
  % PATH=/tmp/gcc /tmp/gcc
  gcc: installation problem, cannot exec '/tmp/powerpc-apple-darwin9-gcc-4.0.1':
  No such file or directory

And even if the problem should really be addressed, it should be done
in the wrapper framework because dtrace(1) is actually a part of
compiler toolchain.
2015-02-06 01:24:48 +00:00
pho
cc42e98e8c patches/patch-rts_ghc.mk: Fix build failure on Darwin
See the comment for details.
2015-02-05 17:45:20 +00:00
pho
718cd4346a Add upstream Trac URL to patches/patch-rts_StgCRun.c 2015-02-05 00:59:10 +00:00