summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-04-14Remove glibc upgrade-helper kludge, only necessary for some ancient RHELPanu Matilainen1-3/+0
2008-04-14Lose useless variablePanu Matilainen1-4/+3
2008-04-14Split scriptlet execv() preparations to separate functionPanu Matilainen1-84/+92
- runScript() is way too big and still is, but this helps a bit...
2008-04-14Use argvAddNum() for passing package count numbers for scriptletsPanu Matilainen1-8/+2
2008-04-14Add argvAddNum() for adding integers to ARGV_t arraysPanu Matilainen2-0/+19
2008-04-14Use ARGV_t for passing around scriptlet args psm internallyPanu Matilainen1-51/+51
- simplifies allocation and freeing while getting rid of alloca()'s - runScript() needs to add arguments anyway, might as well pass in something that *can* be modified without having play games with partial const, partial alloca() contents in the argv - removes the need for passing argc around - (unrelated) move fi->h NULL check in runScript() to beginning *before* we trie to access it, duh...
2008-04-14Add argvNew() to create an empty argv arrayPanu Matilainen2-0/+13
- yes it's silly ;)
2008-04-14Avoid redundant script name formattingPanu Matilainen1-32/+30
- remove two points of return to simplify allocations..
2008-04-14Reduce #ifdef clutterPanu Matilainen1-6/+4
2008-04-14Streamline lua scriptlet name formatting - just do it oncePanu Matilainen1-10/+8
2008-04-14Move legacy prefix compat thing out of the loopPanu Matilainen1-12/+11
- additionally fix indentation, move block local variable def there...
2008-04-14Don't bother calculating max prefix lengthsPanu Matilainen1-11/+1
- no longer needed, prefixBuf is dynamically allocated as needed
2008-04-14Prevent buffer overflow in readKeys()Jindrich Novy1-2/+3
2008-04-11Use dynamic allocation in rpmlibNeedsFeature()Jindrich Novy1-4/+9
2008-04-11Don't warn about BuildRoot being "/" while it is actually emptyJindrich Novy1-2/+6
2008-04-11Simplify url retrieval in rpmInstall()Panu Matilainen1-16/+8
- use rpmMkTemp() instead of manual kludgery to static buffer
2008-04-11Simplify url io a lotPanu Matilainen2-79/+34
- move urlhelper call to urlGetFile() - have urlOpen() call urlGetFile() instead of going the other way around and causing local copies and all sorts of craziness in the process
2008-04-11Remove #ifdef NOTYET junkPanu Matilainen1-24/+0
2008-04-11Rewrite rpmMkTempFile() for sanityPanu Matilainen7-100/+45
- Actually use mkstemp() for creating the temp file and return a FD_t dupped from the file descriptor returned by mkstemp(). - Simplify the interface while at it. - Change callers for the new interface. - Yes we now require mkstemp() to work, mkstemp() is in POSIX.1-2001 and this is year 2008...
2008-04-10First crack at adding ISA provides to packages (rhbz#235755)Panu Matilainen4-3/+70
- Horrible kludgery to get the isa names and bits into platform specific macros from installplatform script. That beast needs to die. I mean really - In build, add provides: name(isa) = evr automatically when it makes sense (similarly to name = evr provides). ISA consists of ISA name and bitness (or wordsize). This can be used to correctly express multilib dependencies without resorting to (expensive!) file dependency kludges, eg for dlopen()'ed libraries where automatic dep extraction doesn't force dependency on 32bit vs 64bit version, you can now use: Requires: foo-plugin%{?_isa} This expands to foo-plugin(x86-32) for i?86 packages, foo-plugin(x86-64) to x86_64 etc, and permits spec to be shared with older distros which don't have ISA provides. - The same could be expressed with "canon arch" just as well, but using the ISA to differentiate from %_arch and the like: eg i386 could be used instead of x86-32 but it's overloaded with meanings (the actual i386 processor vs i386 compatible cpu family etc)
2008-04-10Avoid exporting providePackageNVR() in the libraryPanu Matilainen2-8/+1
2008-04-10Just call legacyRetrofit() instead of combined compress + provide retrofitsPanu Matilainen2-7/+4
2008-04-10Add a static, far simpler addPackageProvides() to buildPanu Matilainen1-2/+19
- use instead of providePackageNVR() which needs to deal with all sorts of hysteric "rpm 3.0.2 did this but 3.0.5 didn't" issues
2008-04-10Call rpmReadConfigFiles() in rpm2cpio so that rpm2cpio won't complain like:Jindrich Novy1-0/+1
warning: Unknown system: (null) warning: Please contact rpm-maint@lists.rpm.org
2008-04-10Remove unnecessary providePackageNVR() from writeRPM()Panu Matilainen1-7/+2
- packageBinaries() already calls providePackageNVR(), no need to do it twice
2008-04-10Unbreak srpm generation broken by 6c4b0cbd93709a0fa18af1ef07af44da585bb5f6Panu Matilainen1-5/+4
- cpio path in source packages is the basename of the file, make this obvious by using basename() instead of pointer games
2008-04-09Don't use stack allocations in rpm2cpio when not neededJindrich Novy1-5/+2
2008-04-09Replace alloca+memset with xcalloc() in rpmdbRemove()Panu Matilainen1-6/+12
- return value is suspect: should return "ret" instead of 0 at exit depending on what happened in removal but preserving previous behavior for now...
2008-04-09Replace alloca+memset with xcalloc() in rpmdbAdd()Panu Matilainen1-4/+6
2008-04-09Replace alloca+memset with xcalloc() in rpmdbCountPackages()Panu Matilainen1-6/+10
2008-04-09Tonne of indentation + other formatting corrections to rpmdb.cPanu Matilainen1-70/+85
- no functional changes
2008-04-09Remove dead codePanu Matilainen1-25/+0
2008-04-09Report full nevra in rpmdb remove debug messagePanu Matilainen1-3/+4
2008-04-09Plug memleak from signature verification now returning malloced msgPanu Matilainen1-0/+1
2008-04-09Simplify addTE()Panu Matilainen1-40/+23
- eliminate wtf parsing of NEVR string which doesn't actually handle epoch - use NEVR and NEVRA formatting from headerGetN*() instead of doubling the work here
2008-04-09Make headerGetNEVRA() return "src" as the arch of source packagesPanu Matilainen1-2/+4
2008-04-09Initialize pointers, lowercase local variablePanu Matilainen1-4/+4
2008-04-09Rewrite headerGetN*() for simplicityPanu Matilainen1-26/+21
- eliminate stpcpy() games - reuse evr formatting from headerGetEVR() instead of doing it over and over again everywhere
2008-04-09Fix buffer overflow in verifyDSASignature()Jindrich Novy1-1/+2
- caused by assumption that sizeof(size_t) is always 4 (credited to jbj)
2008-04-09Replace bunch of wtf evr formatters with headerGetNVR()Panu Matilainen2-44/+11
2008-04-09Add headerGetEVR() convenience functionPanu Matilainen2-0/+26
- return formatted evr string + optionally pointer to name
2008-04-09Make headerNEVRA() actually return epoch tooPanu Matilainen2-2/+7
- ...but epoch is an integer type in headers, change proto to match that
2008-04-09And one more url->path rename for local variable...Panu Matilainen1-2/+2
2008-04-09Rip the last remaining disk/file URL stuff in processSourceFiles()Panu Matilainen1-15/+11
2008-04-09And more url ripping in build internals... (addFile)Panu Matilainen1-24/+19
2008-04-09URL -> path renames continued... (build internal)Panu Matilainen1-6/+6
2008-04-09Rename FileListRec_s disk + cpio path variablesPanu Matilainen1-23/+23
- on-disk is diskPath, rename previous fileURL to cpioPath to make it more obvious it's the path in the package cpio - neither is an URL
2008-04-09Yet more url ripping - buildroot is never an urlPanu Matilainen10-66/+58
- this is a bit nasty as it changes public interfaces but rename to make it explicit they're just plain paths, not urls
2008-04-09Remove remote host stuff from build doScript()Panu Matilainen1-55/+7
2008-04-09More url-path ripping in build/Panu Matilainen1-29/+20
- processBinaryFile() and processMetadataFile() don't need steenking urls