Commit Graph

270 Commits

Author SHA1 Message Date
Panu Matilainen 8078d0ba24 LZMA -> XZ renaming
- what we support now in payloads is XZ, not the former LZMA format, rename
  user- and header-visible parts to match this
- rpmlib(PayloadIsXz) dependency versioned 5.2-1 to avoid unnecessary
  incompatibility with what rpm5 has and what Mandriva is already using
- only provide the rpmlib dependency if actually built with xz support
- rpmFileIsCompressed() attempts to guess the magicless old lzma format
  by file suffix, so it can handle both right now
2009-03-18 09:42:23 +02:00
Jindrich Novy 74c9a96c3c Port XZ payload compression to xz-4.999.8 API
- use SHA256 digests for archive error detection
- use 100MiB peak memory usage for decoding
- use better XZ detection in configure.ac
2009-03-09 20:20:42 +01:00
Panu Matilainen 0643dd44e6 Test for fakechroot in configure
- only needed by the testsuite
- optimally testsuite should skip parts needing fakechroot if it's not
  there but at least this'll leave a trace into rpmtests.log...
2008-12-09 13:23:00 +02:00
Jindrich Novy 73c17671de Add AC_CONFIG_MACRO_DIR for the new libtool 2008-11-18 11:23:26 +01:00
Panu Matilainen e0e0a5e035 Fix capability verification
- the previous implementation was pretty busted up, cap_size() is the
  size of external representation, not sizeof(*cap_t) as pointed out by
  Andrew Morgan
- check for cap_compare() in configure and use it if available (it's
  a Linux-specific extension to the posix draft and only very recent
  libcap has it)
- if cap_compare() isn't available, use internal variant that does it
  the hard way by converting the capabilities to external presentation
  and comparing those
2008-11-14 09:47:43 +02:00
Panu Matilainen 9a509e9f1a Avoid leaking C99 options into stock %{__cc} macro 2008-11-04 11:37:09 +02:00
Panu Matilainen f4b5bd55db Beginnings of acl (POSIX.1e draft 17) verification support
- if built with --with-acl, check that files and directories don't have
  any extra acl's set
- for now, any acl beyond the regular unix permission set is reported as
  file mode difference as the acl's cannot have been set by rpm itself
- patch from Andreas Gruenbacher, modified to use libacl instead of raw
  xattrs for portability, BUT atm this uses non-portable acl_equiv_mode()
  Linux libacl extension, the posix draft doesn't seem to have much in
  the way of comparing entries :-/
2008-10-26 14:18:17 +02:00
Panu Matilainen 770a0f34c9 Beginnings of file capability (POSIX.1e draft 15) verification support
- add minimal bits and pieces to check for capabilities in files on verify
- for now, any capability set is a verification failure as the capability
  cannot have been set by rpm itself
- patch from Andreas Gruenbacher, modified to use libcap instead of raw
  xattrs for portability
2008-10-26 14:17:16 +02:00
Jindrich Novy ca40fafedb Remove timezone autoconf checks and system.h reference
- timezone is no more used so it's no more needed
2008-10-24 12:32:31 +02:00
Panu Matilainen df8b431be8 Bump version 2008-10-16 17:09:28 +03:00
Panu Matilainen 0b31ec61cc Add configure detection for SuSE too
- distro detection in configure is pretty futile but while we still have it...
2008-10-14 16:32:58 +03:00
Panu Matilainen 085dcab72f Move luaext include fiddling out of toplevel configure 2008-10-14 15:49:57 +03:00
Panu Matilainen a1b05720b0 Sanitize libluaext linkage 2008-10-14 15:36:23 +03:00
Panu Matilainen 9397bb61ba Kick out ancient and unused LDFLAGS_STATIC configure.ac-hackery 2008-10-14 14:17:14 +03:00
Panu Matilainen 79fe0e0e3b Use standard auto*foo checks for NSS
- upstream NSPR/NSS doesn't ship pkg-config files (unfortunately)
- hardcoded guesses are always wrong for somebody, expect builder to
  pass in appropriate CPPFLAGS etc
2008-08-19 13:33:21 +03:00
Panu Matilainen 77ecf321bf Fix segfault on zero-length %policy file 2008-08-14 15:02:52 +03:00
Panu Matilainen 27a6edd36d Add a new legacy compatibility header, kill rpmints.h
- build-time generated rpmints.h causes issues with distcheck and is
  not really worth the trouble
- we have all sorts of legacy junk to deal with, sticking them all into
  rpmints.h would be just wrong...
2008-07-08 18:54:28 +03:00
Panu Matilainen 7985d6afb5 Bump version to resemble library versioning 2008-07-04 16:09:47 +03:00
Panu Matilainen 90e10708f8 Fixup paths and Makefiles for rpmdb/ elimination 2008-05-12 12:28:12 +03:00
Panu Matilainen 4ad7f40395 Rip useless ROOT_GROUP checking from configure
- it was only used for an ancient RH-specific %_fixgroup anyway which
  in turn only ever did anything when building as root - bad bad...
2008-05-08 14:37:29 +03:00
Panu Matilainen a306a04a89 RIP alloca() 2008-04-30 14:38:09 +03:00
Panu Matilainen 811e7be604 Drop va_copy check, it's already done by C99 checks 2008-04-28 14:02:51 +03:00
Panu Matilainen 48f19e86b5 Require C99 capable compiler in configure
- also enable C99 mode if not on by default
2008-04-28 14:02:51 +03:00
Jindrich Novy 3d8e0ef13a Check for lzma library in configure.ac and reference it in Makefile.am 2008-04-22 12:36:27 +02:00
Panu Matilainen d48e6c8380 Start phasing out internal copy of Lua
- don't build internal copy of Lua
- move 3rd party extensions (posix and rexlib) to toplevel luaext/
  directory, built by default (unless --without-lua specified)
- auto*foo checks for external Lua
- minimal tweaks to lposix.c and rpmlua.c to get them build with Lua 5.1
2008-04-16 15:37:52 +03:00
Jindrich Novy 58fdb16e75 Require mkstemp()
- mktemp() and tempnam() are dangerous
2008-04-16 13:01:06 +02:00
Panu Matilainen babade1594 Enable stack protector by default if gcc supports it 2008-04-03 12:59:13 +03:00
Panu Matilainen 0c0d812b0d Remove unused RPMUSER, GROUP etc from configure.ac 2008-03-07 12:36:22 +02:00
Panu Matilainen 61189cb868 Add super-H arch support (rhbz#432496)
Patch from Masaki Chikama
2008-03-04 08:16:02 +02:00
Panu Matilainen e1ca3be052 Rip the horrible (ia64) autorelocate kludgery. RIP.
- we don't support relocated x86 on ppc in qemu either...
2008-02-05 10:08:44 +02:00
Panu Matilainen 924007789d Drop internal db from dist tarballs
- tarball down to almost 1/4 of earlier size
- check if internal db is present in configure, point to INSTALL if not
- distcheck needs --with-external-db now to have any chance at working
- leaving to hg for now for easy reversal if getting second thoughts ;)
2008-01-09 19:07:20 +02:00
Panu Matilainen 20bfd34975 Drop duplicate locale.h check 2007-12-19 09:01:39 +02:00
Panu Matilainen bef37587d3 Don't bother configuring db3 directory if using external db 2007-12-17 11:38:12 +02:00
Ralf Corsépius f407b391c0 test == is a bashism. 2007-12-11 09:12:12 +01:00
Panu Matilainen d4cc1de207 Rename apidocs to hackingdocs, only build on request 2007-12-05 11:56:33 +02:00
Ralf Corsépius 333f10c56e Adjust comment. 2007-11-26 15:41:24 +01:00
Ralf Corsépius 8f82c7309e s/build_os/host_os/ 2007-11-26 15:38:20 +01:00
Ralf Corsépius 5831404601 Add header preinstallation. 2007-11-22 15:54:42 +01:00
Ralf Corsépius 5787b3f7c1 Eliminate egrep (Abandoned by POSIX many years ago). 2007-11-22 09:43:40 +01:00
Ralf Corsépius d58b2666e3 Add AC_USE_SYSTEM_EXTENSIONS.
Remove AC_AIX, AC_MINIX.
Do not add -D_GNU_SOURCE to CFLAGS.
2007-11-21 16:51:57 +01:00
Ralf Corsépius 4990a44984 s/build_cpu/host_cpu/ 2007-11-21 11:34:30 +01:00
Panu Matilainen b359165445 Fix build without O2
HAVE_LOCALE_H is used by system.h, ensure it is defined properly
(the issue only occurs when compiling without __OPTIMIZE__ (ie -O2)
 otherwise libintl.h do include locale.h)

Patch from Pascal Rigaux
2007-11-13 13:03:38 +02:00
Panu Matilainen df84cabff6 Disable -Wstrict-prototypes for now due to noise from NSPR headers 2007-11-08 12:57:02 +02:00
Panu Matilainen 8afe81c214 Use NSS instead of beecrypt for encryption (Tomas Mraz) 2007-11-02 10:02:40 +02:00
Ralf Corsépius a100133e56 Replace AC_CHECK_FUNCS by AC_REPLACE_FUNCS for basename, getcwd, getwd, putenv, realpath, setenv, stpcpy, stpncpy, strcspn, strdup, strtol, strtoul, strspn, strstr. 2007-10-30 15:51:53 +01:00
Ralf Corsépius d255841988 Remove AM_C_PROTOTYPES. 2007-10-29 07:28:15 +01:00
Ralf Corsépius b85e0d00ca Abandon addlib().
Stop messing around with /usr/ucblib.
2007-10-27 06:38:35 +02:00
Ralf Corsépius bfb5e17e77 Eliminate AC_TRY_COMPILE (Obsolete). 2007-10-27 06:28:06 +02:00
Ralf Corsépius 6765e53464 Remove AC_PROG_GCC_TRADITIONAL (Obsolete). 2007-10-27 06:13:03 +02:00
Ralf Corsépius d4988efe1b Remove AC_ISC_POSIX (Obsolete). 2007-10-27 06:10:13 +02:00