Panu Matilainen
1da827724c
Eliminate unused id -u tests
...
- this was used by _fixowner and _fixgroup macros back in the day but they
no longer exist as they're unusable without building as root
2010-01-04 16:31:10 +02:00
Panu Matilainen
4cb02aa928
Re-enable mmap test in configure & fix the code build again
...
- this stuff has been disabled for years, lets see what breaks...
2010-01-04 16:20:56 +02:00
Panu Matilainen
8dd92d661d
Remove unnecessary stdint check from configure
...
- a leftover from pre-C99 requirement times
2010-01-04 16:10:44 +02:00
Panu Matilainen
190d2b4783
Remove S_IFSOCK and S_IFLNK kludgery for ancient unixes
...
- these are specified by POSIX 2001, it's not really rpm's job to
provide them if the system doesn't
2010-01-04 16:07:11 +02:00
Panu Matilainen
5f0c9a3882
Require lchown() and remove ancient broken chown kludgery
...
- lchown() is POSIX 2001, we dont care about older / nonconformant stuff
2010-01-04 15:58:55 +02:00
Panu Matilainen
8ca9ce53be
Check for our POSIX 2001 requirements and abort if not found
2010-01-04 15:27:31 +02:00
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