Age | Commit message (Collapse) | Author | Files | Lines |
|
- We were adding a trailing newline to urlhelper command line passed
to execvp(), with the newline ending up in the URL passed to curl.
Many servers dont seem to mind the extra newline, but some do. Oh well...
|
|
- RFC-4880 doesn't requires unix-style line-endings, we shouldn't either.
This is probably still oversly strict as RFC-4880 appears to permit
any whitespace to follow armor headers but ... shrug.
|
|
- The equivalent used to be possible in 4.4.x era as the value tables
were all exported, but this way we need to export far less
and the implementation details stay internal.
|
|
- as all the value tables are static inside rpmpgp.c, exposing this
is pointless (should've been unexported long time ago)
|
|
- these have been unused since rpm 4.6.0, and can be implemented
without access to rpmio internals too if somebody cares...
|
|
- these have been unused since rpm 4.6.0, and rpm is not in the
url business, rip.
|
|
- instead of blowing up with asserts, return error codes / NULLs
|
|
|
|
- blowing up with an assert failure deep inside io "library" is not
a very friendly thing to do...
|
|
- the rpmio API always had this goo, should've gotten rid of it
back in commit dbdbe8010cd944f026a5a4e5d071eb31d29d81c4 but .. oh well
|
|
|
|
- Returns the newly created argv instead of useless "this always returns 0"
- By default make a "real" split, including empty strings
- Flags argument allows controlling behavior, for now only flag is to
preserve argvSplit() behavior but leaves room for future enhancements
such as quoted splitting etc
|
|
- Elf dependency extraction code code lifted from rpmfcELF() and refactored
to saner pieces. Having it in separate executable also frees librpmbuild
of libelf dependency, clean up the unnecessary linkage etc from
autofoo
- This lets internal dependency generator for elf files be
overridden without losing file coloring (which is required for
correct multilib handling). It also permits non-native elf files
(eg when cross-building) to be handled by providing a custom
elf dependency helper
- On the flip side, this inevitably slows down builds somewhat as
two fork-exec's are needed for every elf file, but unlike invoking
something like the python interpreter, this is a slim helper...
- All dependency extractors of the internal dependency generator are now
external helpers (how twisted is that, huh? :) and thus can be customized
and filtered through %__foo_provides|requires macros
|
|
|
|
- the "fix" breaks seemingly legitimate use in fedora font package
macros, possibly some funky interaction with %{lua: } macros or something
- this reverts commit f895acd285366cf58cc3c97b5f188fecbfd782a8.
|
|
|
|
|
|
|
|
- most of the places get it through <rpm/rpmstring.h> already
|
|
- also loose the related ancient compatibility goo
|
|
- this has been masked by system.h including <netdb.h> which apparently
brought in <stdint.h> as a side-effect
- commit 5c084f842ae21d861818a33922b5c77cb17ad8e4 broke compilation
without capability support as <sys/capability.h> also happens to bring
in <stdint.h>
|
|
- no point conditionalizing what we cant live without
|
|
- just two places where needed, dont pollute system.h needlessly
- include depending on HAVE_MMAP instead of separately checking for
sys/mman.h, if sys/mman.h doesn't exist or is broken HAVE_MMAP wont be set
|
|
- there's no fallback for missing netdb.h so there's little point
conditionalizing it
- avoid yet more system.h pollution
|
|
- move the includes out of system.h, not commonly needed
- <poll.h> is conditional as we actually provide a fallback through select(),
but for <sys/select.h> missing there's no fallback so doesn't make
much sense to test for (and both poll.h and sys/select.h are posix anyway...)
|
|
|
|
- this stuff has been disabled for years, lets see what breaks...
|
|
- getwd(), getcwd(), basename() and realpath() are all POSIX 2001
defined, we dont care about older stuff
|
|
- setenv() and unsetenv() are required by POSIX 2001, we dont care about
older systems
|
|
- 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
|
|
- realloc(NULL, size) is defined as equal to malloc(size) in C99 and
POSIX 2001, we dont care about anything older than that
|
|
- rpmio's own version is always there and portable, this is not needed
|
|
- Prior to this, local defines in constructs like %{!?foo: %define foo bar}
would remain defined until a parametrized macro gets called, causing
obscure and confusing errors in specs such as RhBug:551971 and countless
others. Use of %global is now always required for such constructs.
|
|
|
|
|
|
- only macro.c needs, no point polluting includes everywhere
|
|
- only rpmmalloc.c needs, no need to pollute system.h
|
|
- while the "really public" API of librpmio has only been enhanced,
librpm and librpmbuild use some supposedly internal bits which *have*
changed considerably, so just to prevent anybody thinking they can
combine librpmio from rpm 4.7 and librpm from this...
- librpmbuild hasn't seen much real change but some (unfortunately)
exposed struct members have changed so...
- librpm is mostly compatible but as rpmal has become internal API,
we need to bump (annoyingly, as nothing actually uses rpmal ... sigh)
|
|
- parsing subkeys ends up overwriting data in the main key, causing
bogus signature checking failures
- this is the final missing piece of RhBug:436812, short of adding
proper support for subkeys (maybe someday...)
|
|
- revert part of b0d1038190be5cb4b45e2c2c7c84ee7022164ba2 which broke
the split-personality lzdio/xzdio
|
|
- also differentiate between lzdio and xzdio here
|
|
- we're only dealing with local files once fd is opened
|
|
|
|
- we dont do network IO anymore so ufdio only differs from fdio by
downloading the file on open if necessary, after that it's just fdio
|
|
|
|
|
|
|
|
- add getter for fd digest bundle, uninline the setter
|
|
- only the FSM cares about cpio position, move it there - there's only
ever one fd active inside FSM, no need to track it per-fd
|
|
|