Jens Petersen
57481f9394
ghc_set_gcc_flags: disable brp-strip-lto to avoid strip timestamp warnings
3 years ago
Jens Petersen
b47d44f086
%ghc_set_gcc_flags: always sed CFLAGS whether pre-set or not
...
Needed for F36 https://fedoraproject.org/wiki/Changes/SetBuildFlagsBuildCheck
3 years ago
Jens Petersen
9a341be0e1
ghc_set_gcc_flags disable _lto_cflags for all archs
3 years ago
Jens Petersen
22d34de16e
disable package notes, which break all Haskell packages ( #2043092 )
...
occurred during F36 mass rebuild
3 years ago
Jens Petersen
6a30ca822b
put docs/haddocks under %ghc_name if defined
3 years ago
Jens Petersen
400c117550
_arch fits Cabal better for ghclibplatform
3 years ago
Jens Petersen
ad76ca4d4c
ghclibplatform: Cabal calls i686 as i386
3 years ago
Jens Petersen
f5f72c49ec
%ghc_pkg_recache is not deprecated
3 years ago
Jens Petersen
f8ff148f18
Hadrian haddock dirs are not versioned
3 years ago
Jens Petersen
f75a976e04
move Cabal_arch into ghclibplatform macro
3 years ago
Jens Petersen
8b135f0a25
fixup ghc_arch renaming it to Cabal_arch
3 years ago
Jens Petersen
430af17a2c
define %ghcliblib and %ghclibplatform globally
3 years ago
Jens Petersen
ac98514a64
use ghcliblib/ghclibplatform paths for Hadrian dependency generation
3 years ago
Jens Petersen
839272fa3a
Cabal uses ppc64 in paths instead of ppc64le
3 years ago
Jens Petersen
3f7e41039a
ghc_gen_filelists: support ghc Hadrian install
3 years ago
Jens Petersen
12a6c28236
drop dependency generation for rhel6
3 years ago
Jens Petersen
16df5d8f6d
cabal_configure: add -fhide-source-paths to ghc-options
3 years ago
Jens Petersen
db0d821b08
fix ghc_fix_doc_perms only to touch files not dirs
...
testcase: MissingH announcements/
4 years ago
Jens Petersen
192fd2f9c3
restore %ghc_fix_rpath for compat and drop it from %ghc_libs_install
4 years ago
Jens Petersen
cc8736d28d
rename %ghc_fix_rpaths to %ghc_delete_rpaths
4 years ago
Jens Petersen
9e31d7dd7d
change %ghc_fix_rpath %{subpkgs} to %ghc_fix_rpaths for all executables
...
needed for
https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild
and rpminspect runpath DT_RUNPATH errors
4 years ago
Jens Petersen
63e6e932d7
%ghc_fix_doc_perms: quote backslashes in the regexp
4 years ago
Jens Petersen
708a38ba61
add ghc-filesystem subpkg for ghc doc dirs
4 years ago
Jens Petersen
8ed58df419
%ghc_fix_doc_perms to workaround Cabal extra-source-files perm issue
4 years ago
Jens Petersen
4b53d0e949
disable LTO on (unregisterised) s390x ( #1863601 )
4 years ago
Jens Petersen
bc06ab77b4
only add dynlib to filelist if found to allow for metapkg subpackage
...
eg base-noprelude subpackage of pandoc
5 years ago
Jens Petersen
0bb1bc2091
doc subpackages should own %{_docdir}/ghc/html/libraries/ and parents ( #1795526 )
5 years ago
Jens Petersen
3e574ed460
use -package Cabal to build Setup
5 years ago
Jens Petersen
a11ad68d65
check if doc haddock dir exists
5 years ago
Jens Petersen
6dd89e3044
output args to %ghc_fix_rpath
5 years ago
Jens Petersen
4288e26af9
%ghc_gen_filelists: condition haddock
5 years ago
Jens Petersen
75b540630f
%ghc_gen_filelists: fix listing of libHS*.so
5 years ago
Jens Petersen
8e03288604
revert to handling subpackage license in %ghc_gen_filelists
5 years ago
Jens Petersen
35cd9d015e
switch from without_prof/haddock to with_ghc_prof/haddock
...
We now have build config consistent with standard bcond across our packages
5 years ago
Jens Petersen
a848de7b31
add pkg-doc.files
...
initial use-case: adding ghc-prim and integer-gmp to base
5 years ago
Jens Petersen
1862405783
%ghc_fix_rpath: remove _libdir
5 years ago
Jens Petersen
7c7ff554ce
implement doc and prof subpackages
5 years ago
Jens Petersen
07a1493141
drop deprecated %ghc_fix_dynamic_rpath
...
deprecated since Sept 2016
5 years ago
Jens Petersen
03ef976954
strip with Cabal again; obsolete ghc-hoopl
...
unfortunately libs and exe's were not getting stripped by rpm
6 years ago
Jens Petersen
5a531e47b6
re-instate ghc_without_shared since useful for standalone builds
6 years ago
Jens Petersen
14a65baa2a
%ghc_fix_rpath was a no-op for ghc_without_dynamic
6 years ago
Jens Petersen
fcee7ff4cb
always build Setup with -no-user-package-db
6 years ago
Jens Petersen
c1326d82af
use C.utf8 for building instead of en_US.utf8
6 years ago
Jens Petersen
b60ddd4560
leave stripping to generic rpm macros
6 years ago
Jens Petersen
b82b10135e
use haddock --hyperlink-source unconditionally
6 years ago
Jens Petersen
e35da2ef75
disable debuginfo by undefining _enable_debug_packages
6 years ago
Jens Petersen
4e2983c83c
disable -Werror=format-security too on s390x
...
cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]
cc1: some warnings being treated as errors
`gcc' failed in phase `C Compiler'. (Exit code: 1)
6 years ago
Jens Petersen
5b2544a8cc
silence C Wunused-label warnings flood on s390x again
6 years ago
Jens Petersen
153f50041f
keep %ghc_set_gcc_flags name
6 years ago
Jens Petersen
975f21c108
disable hardened ldflags again
...
only breaks x86_64 and armv7hl for static linking?:
/usr/bin/ld.gold: error: /usr/lib64/ghc-8.2.2/rts/libHSrts_thr.a(MarkWeak.thr_o): requires unsupported dynamic reloc 11; recompile with -fPIC
/usr/bin/ld.gold: error: /usr/lib/ghc-8.2.2/rts/libHSrts_thr.a(GCUtils.thr_o): requires unsupported dynamic reloc R_ARM_MOVW_ABS_NC; recompile with -fPIC
6 years ago