Panu Matilainen
3125bac65f
Lose the hysterical fakefork hack
...
- we're not particularly interested in AmigaOS quirks from 1996
2010-01-04 15:27:25 +02:00
Panu Matilainen
33404070cd
Remove further replacement functions for POSIX 2001 required bits
...
- getwd(), getcwd(), basename() and realpath() are all POSIX 2001
defined, we dont care about older stuff
2010-01-04 15:27:05 +02:00
Panu Matilainen
bb803d630c
Remove unnecessary setenv() replacement function
...
- setenv() and unsetenv() are required by POSIX 2001, we dont care about
older systems
2010-01-04 14:21:42 +02:00
Panu Matilainen
580f9625e1
Remove largely unnecessary putenv() replacement
...
- only the lua posix extension "uses" this by providing putenv()
to Lua, make it conditional and return error if not supported by
the underlying operating system
2010-01-04 14:15:20 +02:00
Panu Matilainen
60dc809db1
Eliminate myrealloc() replacement function
...
- realloc(NULL, size) is defined as equal to malloc(size) in C99 and
POSIX 2001, we dont care about anything older than that
2010-01-04 13:46:43 +02:00
Panu Matilainen
7c62eb237f
Remove replacements for C99 mandated functions
...
- rpm requires C99 compiler anyway, no point in carrying these around
2009-12-23 14:52:49 +02:00
Panu Matilainen
2753a5e934
Dont include <pwd.h> from system.h, dont bother checking for it either
...
- no much point conditionalizing something we can't live without
- just three places need, no point polluting include space everywhere
2009-12-23 13:40:10 +02:00
Panu Matilainen
68a5dd5803
Dont bother including <sys/socket.h>, we dont use anything from there
2009-12-23 13:36:29 +02:00
Panu Matilainen
a39dc445fc
Dont include grp.h from system.h, dont bother checking in configure either
...
- no much point conditionalizing something we can't live without
- just two places need, no point polluting include space everywhere
2009-12-23 13:15:59 +02:00
Panu Matilainen
0fbf88d34c
Dont bother checking and including a header we dont use or need
2009-12-23 12:58:17 +02:00
Panu Matilainen
c47b96630c
Dont bother checking for a header we dont use
2009-12-23 12:37:37 +02:00
Panu Matilainen
5c31864598
Dont bother checking for functions we dont use
...
- some of this stuff was used in 4.4.x but not anymore
- additionally we dont even use getdomainnname(), check for gethostname()
instead
2009-12-23 12:25:32 +02:00
Panu Matilainen
0de16638aa
Use AC_PROG_MKDIR_P for testing mkdir -p capability
...
- for rpmbuild's purposes MKDIR_P doesn't cut it though, we need to
point it to something that exists on an installed system
2009-12-23 11:40:55 +02:00
Panu Matilainen
6760122281
Remove unused h_errno test from configure.ac
2009-12-22 14:55:54 +02:00
Florian Festi
e2c217b4b7
Remove support for sqlite based rpm database
...
Also remove abstraction layer between rpmdb.h and the back end
in lib/backend/
2009-12-07 15:59:13 +01:00
Panu Matilainen
139c031d2c
Preparing for 4.8.0-beta1
2009-12-07 13:51:48 +02:00
Panu Matilainen
105518cf57
Bump up the python version requirement to match reality
...
- Python >= 2.6 is known to work, 2.5 might be possible with __future__
imports but until somebody tests it...
2009-12-05 11:05:39 +02:00
Panu Matilainen
46d1ba0448
Fix the posix chown test for selinux enabled systems (RhBug:543035)
...
- on selinux enabled systems, 'ls -l' mode string is longer than
expected here, just trim the ls output to our expected length
2009-12-02 15:30:27 +02:00
Panu Matilainen
480095ab2a
Use AS_HELP_STRING() for configure option output
2009-11-27 15:57:44 +02:00
Panu Matilainen
63175d4d31
Avoid using python's print for Python 3.x compatibility
...
- print chanced from statement to a function in python 3, for our
purposes sys.stdout.write() is sufficient and avoids dealing with
the incompatibilities between Python 2.x and 3.x
- suggested by David Malcolm / Ville Skyttä
2009-10-19 10:30:48 +03:00
Ville Skyttä
1c83af6e10
Deprecate %__lzma, use %__xz in it.
2009-10-06 10:47:43 +03:00
Panu Matilainen
9f9ab48f71
Add -Wempty-body to default options if gcc supports it
...
- ...to help protect against screwups like
2ee45ef12a
2009-09-07 18:41:32 +03:00
Panu Matilainen
db5ac1e44a
Bump version to appear newer than 4.7.x branch
2009-08-13 10:35:01 +03:00
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
Ralf Corsépius
a468d3004d
Use AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER.
2007-10-27 05:48:53 +02:00
Ralf Corsépius
6d13cf177d
Check for stdarg.h.
...
Check for va_copy.
2007-10-27 04:12:19 +02:00
Ralf Corsépius
4b185fc48d
Add rpmdb/rpmints.h.in.
2007-10-24 18:38:18 +02:00
Ralf Corsépius
dd8bbe42a3
Remove AC_CHECK_FUNC(fchmod).
2007-10-24 03:11:19 +02:00
Ralf Corsépius
b9d56b6dc9
Remove WITH_APIDOCS, WITH_APIDOCS_TARGET.
...
Add AM_CONDITIONALS DOXYGEN and APIDOCS. Don't generate Doxyfile.
2007-10-18 16:04:00 +02:00
Ralf Corsépius
0a7a487724
Use DOXYGEN instead of __DOXYGEN.
2007-10-18 08:34:37 +02:00
Ralf Corsépius
a6c8f8086e
Add automake option nostdinc.
2007-10-17 16:42:21 +02:00
Panu Matilainen
38fe2fd973
Use HAVE_DB_H for both internal and external BDB
...
- rpmdb only cares whether we have BDB or no, internal vs external
doesn't matter
- makes external BDB actually work
2007-10-17 14:55:41 +03:00
Ralf Corsépius
0f22ea8830
Add __LZMA.
2007-10-08 17:12:10 +02:00
Ralf Corsépius
4f7db64d7c
Add HAVE_DOT.
2007-10-05 10:37:55 +02:00
Ralf Corsépius
9cf8f9c31a
Stop checking for machine/types.h (Private header of some OSes not supposed to be used).
2007-10-04 08:55:07 +02:00
Ralf Corsépius
249dad1475
Remove $dirs (unused).
2007-10-03 05:07:12 +02:00
Ralf Corsépius
6e4e9c7516
Remove AC_CHECK_HEADERS(thread.h).
...
Remove duplicate check for pthread.h.
2007-10-01 12:58:32 +02:00
Ralf Corsépius
e1b4af366a
Remove checks for synch.h, semaphore.h, aio.h (unused).
2007-09-20 14:57:04 +02:00
Ralf Corsépius
48f4ff6583
Make zlib conditional.
2007-09-20 14:45:40 +02:00
Ralf Corsépius
2d157c07f0
Tighten check for libbz2.
2007-09-20 06:53:19 +02:00
Ralf Corsépius
88b0e2c093
Cosmetics.
2007-09-19 15:02:40 +02:00
Ralf Corsépius
fa1f65cef6
Rename --with-internal-db into --with-external-db.
...
Add AC_ARG_WITH(external_db).
2007-09-19 05:32:03 +02:00
Ralf Corsépius
211a30a615
Remove NPTL games.
2007-09-19 05:15:57 +02:00
Ralf Corsépius
6503abadc9
Add check for db_threadid_t in db.h.
2007-09-18 19:18:09 +02:00
Ralf Corsépius
eacf1841db
Rename BZIP2BIN->__BZIP2.
...
Rename GZIPBIN->__GZIP.
Rename UNZIPBIN->__UNZIP.
2007-09-18 14:55:58 +02:00
Ralf Corsépius
4f250b5c36
Remove WITH_POPT (Unused).
2007-09-18 12:44:29 +02:00
Ralf Corsépius
c89c1481eb
s/libary/library/
2007-09-18 12:41:47 +02:00
Ralf Corsépius
a0558abcf2
Fix ancient typo.
2007-09-18 10:49:20 +02:00
Ralf Corsépius
2607d282e7
Invert logic to setup WITH_INTERNAL_DB.
2007-09-18 08:09:43 +02:00
Ralf Corsépius
f2a250702a
Add preliminary --with/without-internal-db processing.
2007-09-18 05:01:45 +02:00
Ralf Corsépius
7bf56f5829
Eliminate WITH_DB_SUBDIR.
2007-09-17 17:58:29 +02:00