Commit Graph

10 Commits

Author SHA1 Message Date
Pavel Raiskup
01d964b7f4 multilib-fix: document that c-wrapper can be shorter
Idea by Vít Ondruch.
2017-01-25 17:34:29 +01:00
Pavel Raiskup
5d02c918d6 multilib-fix: document why not to use __WORDSIZE
Fedora's PackagingDrafts/MultilibTricks suggests the following
c-header wrapper example:

  #include <bits/wordsize.h>
  #if __WORDSIZE == 32
  #include "config-32.h"
  #elif __WORDSIZE == 64
  #include "config-64.h"
  #else
  #error "Unknown word size"
  #endif

Installing and using this wrapper is not really no-op, however; it
has been proven to cause include-ordering issues.  So, even though
the shorter stub works in most cases, document why we still prefer
the longer #ifdef wrapper.  Thanks to Vít Ondruch for pointing
this out.

Related: rhbz#1412274
2017-01-25 17:32:48 +01:00
Pavel Raiskup
657cae1dad macros: add %multilib_capable macro
Version: 1-5
2016-06-22 13:21:40 +02:00
Pavel Raiskup
f2fed8528f multilib-fix: document why we don't need '#else'
Version: 1-5
2016-06-22 08:22:06 +02:00
Pavel Raiskup
aeb305b797 fix typos 2016-06-13 23:52:54 +02:00
Pavel Raiskup
9f438cfd13 multilib-fix: use '-' as field separator by default
Also remove --additional-suffix and add --field-separator option
instead.

Fixes https://github.com/devexp-db/db-rpm-config/issues/2.
2016-06-13 23:52:54 +02:00
Pavel Raiskup
1a9b5b63f2 multilib-fix: separate docs and copyright statement
Version: 1-2
2016-06-13 23:52:53 +02:00
Pavel Raiskup
d22c0cbc3b licensing: Use GPLv2+ for scripts, LGPLv2+ for libraries
Version: 1-2
2016-06-13 23:52:53 +02:00
Pavel Raiskup
ccd34dc8ab multilib-fix: simplify interface
Don't use --basename && --destdir but rather --file only.
2016-06-13 23:52:53 +02:00
Pavel Raiskup
189cced957 multilib-fix: initial commit
Macro and is taken from actual Fedora's postgresql.spec.
2016-06-13 23:52:52 +02:00