Commit Graph

76 Commits

Author SHA1 Message Date
Panu Matilainen
1cff11580f - require dwz, enable dwarf compression for debuginfo packages (#833311) 2014-01-25 00:11:43 +02:00
Dennis Gilmore
36225c3b7c Revert "macros: Globally add --disable-silent-rules to configure"
This reverts commit 8174ec3d10.

remove patch that forces --disable-silent-rules to configure it breaks anything set to not ignore unknown configure options
2014-01-24 23:55:03 +02:00
Adam Jackson
5034f24e6a Expose %_hardening_{c,ld}flags independently to make it easier for packages to apply them to selected components 2014-01-24 23:45:05 +02:00
Colin Walters
8174ec3d10 macros: Globally add --disable-silent-rules to configure
Various projects have been adding AM_SILENT_RULES from Automake to
their Makefiles for "developer convenience"; the goal being that they
see warnings more easily.

Now really the right way to do this is to have a make wrapper (or an IDE)
that knows how to filter out warnings, but let's leave that aside for now.

But for debugging builds, we really need the full log data.  Being
able to see exactly how e.g. libtool is being run helps a lot for
debugging link problems as an example.
2014-01-24 23:42:25 +02:00
Adam Jackson
0ae4b38eee redhat-hardened-{cc1,ld}: Move some of the rewrite magic to gcc specs so we don't end up with both -fPIC and -fPIE on the command line 2014-01-24 23:41:09 +02:00
Adam Jackson
51811936c4 redhat-rpm-config-9.1.0-hardened.patch: Add macro magic for %_hardened_build 2014-01-24 23:36:04 +02:00
Adam Jackson
4b29a24132 redhat-rpm-config-9.1.0-relro.patch: LDFLAGS, not CFLAGS. 2014-01-24 23:34:16 +02:00
Adam Jackson
60aea2849e Add -z relro 2014-01-24 23:24:07 +02:00
Panu Matilainen
055d0b77e1 Don't run brp-strip-comment-note when find-debuginfo.sh is run (#568924)
- brp-strip-comment-note is not only unnecessary here but is also
  now messing up things by resetting EI_OSABI to zero (#568921)
- patch from  Roland McGrath
2010-03-01 10:58:17 +02:00
Panu Matilainen
7cf1ad2dbb Enable strict python bytecompile mode (if rpm supports it)
- with %_python_bytecompile_errors_terminate_build set to non-zero,
  byte-compilation errors will abort the build, this helps catch out
  silly "improt foo" syntax errors early on
- not all .py files are valid python (they can be templates, inteded for
  jython consumption etc), and what's valid can depend on the python
  version (notably 2.x vs 3.x) so allow overriding from spec
2010-02-03 12:52:30 +02:00
Panu Matilainen
c73da1f920 Leave rpm's hkp keyserver configuration alone
- rpm < 4.6 used to try and fetch and import any missing keys from
  keyserver automatically on rpmdb iteration if hkp_keyserver was set, which
  caused hideous slowdowns and huge load on pgp keyservers AND was a
  security hazard as rpm thinks imported == trusted key. This is safe
  enable now as rpm will only ever import keys when explicitly told to do
  so with --import
- this makes pgp import directly from PGP servers work, ie
   'rpm --import 0x<keyid>'
2010-01-26 17:48:44 +02:00
Panu Matilainen
2a452bba1e Permit using different python version for brp-python-bytecompile (#521141)
- pass %{__python} macro to brp-python-bytecompile instead of using
  hardwired /usr/bin/python, as suggested by Bowe Strickland
2010-01-26 13:55:54 +02:00
Panu Matilainen
f359c096c2 Remove redundant %find_lang definition
- this was only useful back when we were using our own find-lang.sh
2010-01-22 15:59:04 +02:00
Panu Matilainen
56ed371d31 Remove redundant and deprecated %_initrddir definition (#455279)
- this has been provided by rpm since forever, no need to carry it here
2010-01-22 15:47:15 +02:00
Panu Matilainen
850eda59f8 Disable autotools dependency tracking in %configure (#496522)
- autotools dependency tracking isn't generally useful in rpm builds;
  disabling it results in cleaner build logs and possibly slight build speedups
- patch from Ville Skyttä
2010-01-22 15:43:38 +02:00
Panu Matilainen
c9d2ffe123 Don't set --target in %configure (#458648)
- --target is only ever useful for handful of compiler toolchain packages
  and cross-compiler packages are better off setting it themselves if
  necessary, rpm messing here only gets in the way
- patch originally from Stepan Kasal
2010-01-22 15:39:38 +02:00
Panu Matilainen
f2e3413ddb Enable overriding the default ./configure path of %configure (#489942)
- syncs up with rpm upstream setup
- FFLAGS has a Fedora-specific override forcing us to carry this %configure
  copy, need to fix rpm to permit more fine-grained overrides...
2010-01-22 15:37:33 +02:00
Panu Matilainen
b5b2aedbc1 Add filtering framework for external dependency generator (#516240)
- patch from Chris Weyl
2010-01-22 15:30:02 +02:00
Panu Matilainen
e56e816f47 Enable use of XZ compression for binary rpm payloads
- as per https://fedoraproject.org/wiki/Features/XZRpmPayloads
  - lowish compression preset level to keep deltarpm rebuild time tolerable
  - source rpms dont really benefit from XZ compression as the contents are
    typically tarballs which are already compressed
- patch from Bill Nottingham
2010-01-22 15:26:19 +02:00
Panu Matilainen
159a65fb61 Ensure empty buildroot for %install
- remove any existing buildroot contents and safely create a new one
- patch originally from OpenSUSE / Michael Schroeder, adopted to Fedora
  by Tom "spot" Callaway
2010-01-22 15:24:29 +02:00
Panu Matilainen
e2a80f379c Change default hashing algorithm in file digests to SHA-256 (#485826)
- as per https://fedoraproject.org/wiki/Features/StrongerHashes
- patch from  Miloslav Trmač
2010-01-22 15:22:42 +02:00
Panu Matilainen
3a2d93f311 Limit _smp_mflags to max 16
- patch from Dennis Gilmore
2010-01-22 15:20:08 +02:00
Jonathan Masters
9ed9b4e345 A variety of small cleanups 2008-05-06 19:08:20 -04:00
Jon Masters
83405d773d Update config.guess|sub, sync with RHEL-5. 2008-04-03 03:11:24 -04:00
Jesse Keating
9b11fc216b Enable buildroot check by default 2007-07-05 12:41:21 -04:00
Jeremy Katz
9ffd969654 use stock find-lang rather than the (old) copy (#213041) 2007-06-19 14:38:34 -04:00
Jeremy Katz
d82d89ec83 %{_gnu} gets defined in the platform definitions and _shouldn't_ be
-gnu on some arm arches (Lennert Buytenhek, #243523)
2007-06-19 14:36:18 -04:00
Jeremy Katz
85ff3763b6 allow disabling jar repacking (#219731) 2007-06-19 14:28:50 -04:00
Jeremy Katz
a959c1f92d hardlink identical .pyc and .pyo files to save some space. patch from
Ville Skyttä <ville DOT skytta AT iki DOT fi>
2007-06-19 14:20:53 -04:00
Jeremy Katz
feffba404a add support for kmps/kmodtool stuff (from jcm) 2007-06-19 15:21:46 +00:00
Jeremy Katz
e053cecd41 add script that does repacking of jar files to avoid multilib conflicts.
originally written by Ben Konrath <bkonrath AT redhat DOT com>
2007-06-19 15:13:23 +00:00
Elliot Lee
12233c1d7b fix #165416 2005-08-17 00:27:33 +00:00
Elliot Lee
d5e4ed68cb add wall back in 2005-08-01 17:53:18 +00:00
Elliot Lee
1986646f85 8.0.37:
On Fri, 29 Jul 2005, Ulrich Drepper wrote:

> Please find attached the hopefully final changes for the compile flags.
>  It's a patch against redhat-rpm-config-8.0.36-1.src.rpm.  The changes are:
>
> ~ enable stack protector with minimal size 4 (default is 8, too high
>   IMO).  Vlad ran some tests on SPEC.  SPEC is highly CPU intensive,
>   unlike 90%+ of the distribution.  Even in those tests the performance
>   decrease was below 1%, probably even in the noise.  Especially the
>   decrease of the minimum size to 4 made no measurable impact.
>
> ~ remove the -fsigned-char flag for ppc.  glibc has not been compiled
>   with the flag anyway, so if anything changes, we eliminate some bugs.
>   The only theoretical issue would be if a library we ship uses CHAR_MAX
>   in an interface.  I personally haven't seen this for good reasons.
>   The only interface I know is localeconv(3) in glibc and this interface
>   is now corrected.
>
> ~ minor fix for SPARC
2005-08-01 17:44:57 +00:00
Elliot Lee
f20fd09542 fix 2005-06-16 15:42:31 +00:00
Elliot Lee
b8c7c4c827 Enable python, pkgconfig provides 2005-06-15 22:18:12 +00:00
Elliot Lee
ded130c1dd new version 2005-03-23 20:05:40 +00:00
Elliot Lee
f41aa8c35f #147961 2005-03-22 03:30:56 +00:00
Elliot Lee
1518ff2d14 Fix java builds 2005-02-09 15:09:11 +00:00
Elliot Lee
d10e27e7b7 add _FORTIFY_SOURCE 2004-11-15 15:23:30 +00:00
Elliot Lee
2eb59b7156 sync 2004-03-01 17:29:43 +00:00
Elliot Lee
ecdfe2c6d3 fix 108049 2003-11-03 20:35:50 +00:00
Elliot Lee
4ccbbe76dc 8.0.27-1 2003-07-15 13:44:02 +00:00
Elliot Lee
a2894a5e9a 8.0.27-1 2003-07-15 13:38:58 +00:00
Jens Petersen
7bf42f4c8d * Mon Jul 07 2003 Jens Petersen <petersen@redhat.com> - 8.0.25-1
- update config.{guess,sub} to 2003-06-17
- define VENDOR to be redhat only when /etc/redhat-release present
  [suggested by jbj]
- put VENDOR in vendor field in our config.guess file for
  ia64, ppc, ppc64, s390, s390x, x86_64 and elf32-i386 Linux
- drop the --host, --build, --target and --program-prefix configure options
  from %%configure, since this causes far too many problems
2003-07-07 01:18:33 +00:00
Jens Petersen
2a08d46318 - add config.guess and config.sub (2003-02-22)
- make %%configure use them
2003-05-01 08:13:14 +00:00
Elliot Lee
4410abdbbb Unset $DISPLAY in macros 2003-03-03 16:16:20 +00:00
Elliot Lee
ae8ce229ab 8.0.21 2003-02-24 18:39:29 +00:00
Elliot Lee
e7eb34f089 Reorganize rpmrc/macros to set cflags in a nicer manner. 2003-02-13 16:33:31 +00:00
Elliot Lee
47b9f849d4 8.0.19 2003-01-22 18:30:56 +00:00