168 Commits

Author SHA1 Message Date
kili
0cb5d3570e - Change the first argument to pledge (the promises) to Maybe String,
following the recent change to pledge(2) (passing NULL doesn't change
  the value).

- Use maybeWith instead of pattern matching to distinguish between
  Nothing and Just x.

- Add some minimal documentation.
2016-03-15 19:41:18 +00:00
kili
01fbbeeaa4 New bootstrappers. Still cheating (7.10.2, bootstrapped from 7.8.4),
but hopefully we're a little bit closer to build bootstrappers from
the installed ghc package.
2016-02-26 07:50:52 +00:00
kili
7d8da70e1a Merge -main and -doc subpackages. 2016-01-20 16:08:29 +00:00
kili
fed7c764ef Add a module System.OpenBSD.Process to package unix with currently
only one function giving access to the pledge(2) system call:

pledge :: String -> Maybe [FilePath] -> IO ()

Help and testing by semarie@ and abieber@. Thanks!

No bump yet, because there'll be some more churn (so please wait a
little bit for other haskell commits before starting to build it).
2016-01-20 16:02:06 +00:00
kili
c620b77563 Update to use ghc-7.10.3b distfiles. No changes to ghc-main, only
ghc-doc is affected.

BTW: a merge of -main and -doc will be done later, and some other
changes are in my queue.
2015-12-28 19:18:52 +00:00
kili
4fb1811aac Update to ghc-7.10.3. 2015-12-20 11:04:27 +00:00
kili
0535eeb7f0 Remind myself to not mess up the upcoming update to 7.10.3. 2015-12-10 19:50:01 +00:00
kili
2770b76153 Try to build a bootstrapper based on ghc-7.10.
Asked for and tested by Martijn Rijkeboer.

Note: the bootstrapper itself has not yet been tested to build the
regular ghc port.
2015-11-30 22:22:24 +00:00
naddy
8dfb488522 don't pick up gpatch in configure 2015-11-13 12:27:04 +00:00
kili
6670570fa5 Fix TRANSFORMERS_VER (part of SUBST_VARS).
No real plist change in the resulting package.
2015-11-02 21:31:26 +00:00
kili
0fe32c6343 New bootstrapper. 2015-10-26 21:43:01 +00:00
kili
7325eff544 Disable stripping of hs libraries in Cabal.
It appears that strip --strip-unneeded sometimes strips too much.

For example, if you take libHStf-random-0.5-926BwEbiHzi7pBkp4dTxOe.a
from the hs-tf-random package on i386 and run strip --strip-unneeded
on it, the T Threefish_256_Process_Block symbol (from threefish_block.o)
is stripped, which shouldn't happen. Note: this specific case applies
to i386, not to amd64. But...

doug@ reported a similar problem for the haskell library texmath,
which we don't yet have in the ports tree, and he made some even
more weird observation: texmath contains the two C source files
cbits/{key,val}ToASCII.c, defining the symbols keylookup (in
keyToAscii.c) and toASCIILut (in valToASCII.c), where both are just
some lookup tables. With strip --strip-unneeded enabled, the resulting
libHStexmath-*.a archive is missing keylookup. doug@ then concatenated
both .c files to a new one and changed the .cabal file of texmath
to use that single one instead, and suddenly the symbol keylookup
no longer was removed.

I'll try to make a port for texmath (which would be required anyway
for porting pandoc) so people who want help to debug this don't
have to build all the haskell goo themselves.
2015-09-27 20:07:47 +00:00
kili
7e53383774 Update to ghc-7.10.2.
Updates to all hs-* ports related to meta/haskell-platform will
follow soon. Other hs-* ports will be fixed during the next days.
2015-09-19 07:42:56 +00:00
kili
c5ca4bd627 New bootstrapper again after libc crank (linked against libc.so.83.0).
The previous bootstrapper will be removed in two days.
2015-09-14 18:39:06 +00:00
kili
ab6d151fdc New bootstrapper after libc crank. 2015-09-11 17:44:12 +00:00
kili
04b85e65bd Add a little helper script that fixes / cleans up plists of hs-* ports. 2015-09-01 09:58:00 +00:00
kili
d9a6097ae9 New bootstrapper 2015-08-29 23:00:43 +00:00
juanfra
789e7c59a1 ghc hardcodes ${WRKDIR}/bin/gcc. OK kili@ to a similar diff. 2015-08-27 09:33:25 +00:00
naddy
899839f2f5 bump -doc subpackage due to HOMEPAGE change 2015-06-25 11:40:08 +00:00
kili
e009b7cc20 Use a fresh bootstrapper to let it build on a clean current install.
While here, move homepage, master_sites and master_sites0 to https.
2015-06-23 20:15:18 +00:00
kili
3be62c269d register / unregister haskell packages bundled with ghc in the
correct order to reduce noise during pkg_add/pkg_delete.

problem noticed by aja@
2015-06-02 21:17:43 +00:00
kili
fde896eb00 Don't throw away output of {,un}register.sh (used in @exec and @unexec).
In theory, those should never fail, but espie@ frequently noticed failure
of register.sh (with a broken / incomplete ghc package db resulting in
hs libraries like Prelude or Distribution/Simple not found).

No bump yet, because it only adds spam during pkg_add.
2015-05-11 22:54:57 +00:00
kili
1515283c08 Yet another bootstrapper, based on ghc-7.8.3 (because building 7.8.4
with  a 7.8.4 bootstarapper doesn't work).
2015-04-09 21:19:50 +00:00
kili
b440df8a43 New bootstrapping binaries. Not yet tested (will it blend?)
SHA256 (ghc-7.8.4.20150408-amd64-unknown-openbsd.tar.bz2) = 4ce463b64001635445e1f229888614de9b16ae858e346432b947e1621e722416
SHA256 (ghc-7.8.4.20150408-i386-unknown-openbsd.tar.bz2) = 9f248fba238914b78260f2623cd61ca935032a7fe60b01ee92a4fe31f83c0131
2015-04-08 21:05:22 +00:00
kili
331044c401 Reenable ghc builds. 2015-01-07 20:45:28 +00:00
kili
04c1e03900 Bugfix udpate to ghc-7.8.4.
Also, use a new(er) bootstrapper; note that we have to use 7.8.3
for this, because if the built ghc and the bootstrapper have identical
versions, things will fail badly. May be it's not the ghc but the
cabal version which is problematic, but at the moment, I really
don'y call about *this* problem.
Still marked as broken. I hope to send promised diffs and new ports
for discussion tomorrow and then enable ghc and haskell-platform
on monday.
2015-01-01 19:25:36 +00:00
kili
8c02305e01 Oops! I disabled a little bit too much here. pPrPr_disableITimers() is
actually needed.

No bump, because ghc is still marked as broken.
2014-11-24 13:39:19 +00:00
kili
d4c487a9ff Update to ghc-7.8.3, but mark as broken until all other
hs ports are done.

Please note that it still doesn't use shared libraries, so
still no ghci (and a lot of hs-ports not buildable) on i386.
2014-11-22 20:23:22 +00:00
kili
825553537f For the new ghc, we need a newer bootstrapper.
Strange enough, at least our current ghc (7.6.3) doesn't
build with integer-simple, so use integer-gmp instead.
2014-10-19 19:08:48 +00:00
dcoppa
ac2390de35 Build ghc with '-fno-pie' on i386
ok kili@ (maintainer)
2014-09-16 10:07:00 +00:00
kili
7eb2711b9b Add comments to ports which meta/haskell-platform depends on, to
stop other people wasting time on updates which should not be done.

ian@ ran into this (while working on devel/hs-aeson and
textproc/hs-attoparsec), and even I didn't notice before trying to
build all Haskell ports (including meta/haskell-platform) with his
diffs.
2014-06-19 18:58:01 +00:00
kili
748a5c63c6 Interactive ghc (ghci, runghc etc.) is currently broken again on i386.
So let's switch to compiling Setup scripts once more, to give at least
a few more hs packages to be built on i386, until I figure out a fix
for rts/Linker.c.
Unfortunately, the current breakage also affects template haskell,
which still leads to a lot of unbuildable ports, for example
devel/hs-vector.
2014-01-11 20:22:21 +00:00
kili
72c6b12f41 Remove postscript and pdf documentation.
ok dcoppa@
2013-12-12 22:13:37 +00:00
sthen
701c91e413 kill VMEM_WARNING 2013-11-25 14:16:22 +00:00
kili
f10123589d Bump because of library signature changes for base, ghc, haskell98,
old-time and time. After comparing all the .hi files before and
after (using ghc --show-iface) I guess this changes had been triggered
by the suseconds_t change some weeks ago (my previous ghc build was
from october 23rd, so just a little bit before that change).

People following -current and using Haskell for serious work should
wait with updates until the new ghc and hs-packages are built and
copied out to the mirrors. Any Haskell additional libraries built
manually (i.e. using cabal something) should be rebuilt. If in
doubt, run ghc-pkg check to see if anything is broken for you.
2013-11-11 20:46:30 +00:00
kili
48a59515ed Adjust MASTER_SITES to follow the new layout of hackage.haskell.org, which switched
to hackage 2.
2013-10-22 20:03:21 +00:00
kili
b0549ccdb2 Reenable. We have new bootstrappers. 2013-08-16 13:40:49 +00:00
kili
c6160daa4d Mark as BROKEN until I get the time to build new bootstrappers after
the 64 bit time_t switch.

If anyone wants to beat me, grab ~kili/ghc-bootstrap.sh from cvs
(or http://openbsd.dead-parrot.de/ghc-bootstrap.sh), *read and try
to understand it*, downgrade the lang/ghc port to the last 7.4.
version (for example, cvs -q up -dP -D 2013-07-09) and then run
ghc-boostrap.sh (but be aware that you'll need a lot of time, disk
space, memory, and alcohol).

This may work or not (it worked for 5.3-current back in may). If
it doesn't work, either wait or go using some real programming
language.
2013-08-14 20:20:33 +00:00
kili
18cdd711c6 Remove broken marker, everything should be fine now. 2013-07-19 07:12:55 +00:00
kili
5df364205b Update to ghc-7.6.3, revert my last two obsolete changes and
mark it as broken until all depending ports have been updated.
2013-07-18 21:43:23 +00:00
kili
27523cc810 Now is a good time to prepare for a bootstrapper update. 2013-07-07 20:15:34 +00:00
kili
9cdc33f441 Fix the no_doc pseudo flavor: don't add -doc to MULTI_PACKAGES
when FLAVOR=no_doc.
2013-07-07 13:35:27 +00:00
espie
f5cca2b075 convert to using intermediate *TARGET, as discussed with a few people.
(the waf version actually works, contrary to my former patch, as
CONFIGURE_STYLE must be set before modules)
2013-07-02 08:36:16 +00:00
kili
ccd495619c Remove redundant (and incomplete) comment. 2013-07-01 21:42:51 +00:00
kili
aa07dd31f2 Now that we have shm_open(3), it's picked up by configure when
building the `unix' package, which causes a package signature change.

Bump to get all hs-* packages updated.
2013-06-04 22:02:33 +00:00
kili
c8721eefa9 Remove stray line continuation backslash. 2013-05-13 21:01:37 +00:00
kili
14814c23fc Let the bootstrap target fail early if autoconf-2.61 or
automake-1.4 aren't installed.
2013-05-11 22:13:30 +00:00
kili
dbfb42c0f4 Mention that the bootstrap target needs autoconf-2.61. 2013-05-09 05:54:31 +00:00
kili
fff4ff2d25 The ghc-pwd hack is no longer needed.
I'm currently testing a new ghc-bootstrap.sh version which I'll
copy around if the test succeeds.
2013-05-08 15:31:47 +00:00
kili
ae14bc2b1c Move the stuff from post-extract to post-patch to help
the build after time_t changes.
(this still isn't enough)
2013-05-08 13:38:09 +00:00