summaryrefslogtreecommitdiff
path: root/build/build.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-29Use fdGetFILE() instead of rpmio internal fdGetFp() everywherePanu Matilainen1-4/+2
2007-10-28Include "rpmbuild.h" instead of <rpmbuild.h>.Ralf Corsépius1-1/+1
2007-10-28Include "rpmio_internal.h" instead of <rpmio_internal.h>.Ralf Corsépius1-1/+1
2007-10-24Remove dead and unused, ifdef'ed HAVE_FCHMOD block of code.Ralf Corsépius1-11/+0
2007-10-24doScript: Change 'what' to rpmBuildFlags.Ralf Corsépius1-1/+1
2007-10-09Make rpmerr.h private, include directly where needed.Panu Matilainen1-0/+1
2007-10-09Replace all uses of RPMMESS_NORMAL with RPMLOG_NOTICEPanu Matilainen1-2/+2
2007-10-09Replace all rpmMessage() uses with rpmlog()Panu Matilainen1-2/+2
2007-10-09Replace all rpmError() uses with rpmlog()Panu Matilainen1-3/+3
2007-09-21Rename Spec -> rpmSpec for namespacingPanu Matilainen1-3/+3
2007-09-17misc.h is a private headerPanu Matilainen1-0/+1
- include it from build/*.c where needed - dont install
2007-09-17Remove url caching, don't need it...Panu Matilainen1-0/+1
2007-09-11Remove splint tags.Ralf Corsépius1-23/+1
2007-08-29Fix various cases of build failing due to whitespace in dir/filenames.Panu Matilainen1-2/+2
2005-02-12- permit build scriptlet interpreters to be individually overridden.jbj1-1/+9
CVS patchset: 7759 CVS date: 2005/02/12 14:12:33
2004-11-28- add support for automagic pubkey retrieval using HKP.jbj1-0/+8
CVS patchset: 7617 CVS date: 2004/11/28 21:14:41
2004-11-04Stub in URL_IS_HTTPS everywhere.jbj1-2/+4
CVS patchset: 7536 CVS date: 2004/11/04 13:29:11
2003-05-08- don't use error string after gzclose (Dmitry V. Levin).jbj1-2/+4
Spliddles for rpmio, drill h_errno all the way through. CVS patchset: 6826 CVS date: 2003/05/08 20:39:29
2002-12-24- fix: remove rpmfi scareMem so that headers can be reloaded on ia64.jbj1-2/+2
- fix: set DB_PRIVATE, not DB_ENV_PRIVATE, if unshared posix mutexes. - remove useless kernel/glibc dependencies (#79872). - add matching "config(N) = EVR" dependencies iff %%config is found. CVS patchset: 5963 CVS date: 2002/12/24 07:21:04
2002-12-21- add --enable-posixmutexes when configuring on linux.jbj1-0/+10
- add rpmdb_{deadlock,dump,load,svc,stat,verify} utilities. - include srpm pkgid in binary headers (#71460). - add %check scriptlet to run after %install (#64137). CVS patchset: 5957 CVS date: 2002/12/21 20:37:37
2002-07-08Propagate splint-3.0.1.7 close(2) internalState annotation throughout.jbj1-3/+2
CVS patchset: 5542 CVS date: 2002/07/08 14:21:26
2002-07-02Add boundsread annotations throughout, enable +bounds checking.jbj1-0/+6
Start narrowing the scope of bounds annotations by adding more annotations. CVS patchset: 5537 CVS date: 2002/07/02 23:54:35
2001-10-17Converging on lclint-3.0.17 strict level.jbj1-1/+3
CVS patchset: 5118 CVS date: 2001/10/17 16:43:36
2001-10-16Factor -type problems into explicit code annotations.jbj1-0/+2
CVS patchset: 5117 CVS date: 2001/10/16 17:42:18
2001-10-15Explicit branchstate annotations.jbj1-7/+14
CVS patchset: 5113 CVS date: 2001/10/15 17:53:34
2001-10-15lclint fiddles to annotate globals.jbj1-3/+7
CVS patchset: 5106 CVS date: 2001/10/15 03:22:10
2001-05-06- fix: specfile queries with BuildArch: (#27589).jbj1-5/+5
CVS patchset: 4746 CVS date: 2001/05/06 19:17:14
2001-05-03- still more boring lclint annotations and fiddles.jbj1-0/+2
CVS patchset: 4738 CVS date: 2001/05/03 21:00:18
2001-04-30- yet more boring lclint annotations and fiddles.jbj1-11/+12
CVS patchset: 4732 CVS date: 2001/04/30 22:32:22
2001-04-29- globalize _free(3) wrapper in rpmlib.h, consistent usage throughout.jbj1-12/+12
- internalize locale insensitive ctype(3) in rpmio.h - boring lclint annotations and fiddles. CVS patchset: 4721 CVS date: 2001/04/29 01:05:43
2001-03-14Update to doxygen-1.2.6 configuration.jbj1-0/+3
Add manual files to Doxfile.in. lclint annotations. CVS patchset: 4624 CVS date: 2001/03/14 23:09:09
2001-01-15- fix: extra newline in many error messages (#23947).jbj1-3/+4
- fix: rpm -Va with db1 needs per-iterator, not per-index, offset. - add install/remove transaction id tags. CVS patchset: 4441 CVS date: 2001/01/15 23:09:42
2001-01-11doxygen annotations for build/*.jbj1-2/+3
- fix: don't hang on build error. - fix: remove "error: " prefix from signature verification message. CVS patchset: 4426 CVS date: 2001/01/11 14:13:04
2000-12-12Sync with rpm-4_0 branch.jbj1-3/+5
CVS patchset: 4338 CVS date: 2000/12/12 20:03:45
2000-12-02Bring header reggions mods back to top of stack.jbj1-4/+4
CVS patchset: 4305 CVS date: 2000/12/02 21:53:44
2000-09-01- unify rpmError and rpmMessge interfaces through rpmlog.jbj1-11/+18
- collect and display rpm build error messages at end of build. CVS patchset: 4149 CVS date: 2000/09/01 21:15:40
2000-08-27Doxygen annotations.jbj1-1/+2
CVS patchset: 4130 CVS date: 2000/08/27 19:18:25
2000-06-20- API: uncouple fadio from rest of rpmio.jbj1-1/+1
- API: externalize legacy fdOpen interface for rpmfind et al. CVS patchset: 3873 CVS date: 2000/06/20 15:54:48
2000-06-09Move low level support routines to librpmio.jbj1-1/+1
CVS patchset: 3822 CVS date: 2000/06/09 18:57:23
2000-02-29Can't print a NULL on non-GNU systems.jbj1-1/+1
CVS patchset: 3599 CVS date: 2000/02/29 01:57:37
2000-02-27Solaris2.6 portability.jbj1-1/+1
CVS patchset: 3591 CVS date: 2000/02/27 18:52:30
2000-01-24Documentation sugar.jbj1-0/+6
CVS patchset: 3533 CVS date: 2000/01/24 20:02:32
1999-11-24lib/macro.c: Canonicalize paths in rpmGetPath().jbj1-74/+41
build.c: ditto. build/build.c: ditto. build/files.c: ditto. build/parsePreamble.c: ditto. build/parseSpec.c: ditto. build/myftw.c: Use Opendir/Readdir/Closedir wrappers. lib/cpio.c: Use Readlink/Stat/Lstat wrappers while building archive. lib/rpmio.c: functional ftpLstat, ftpStat and ftpReadlink. CVS patchset: 3432 CVS date: 1999/11/24 00:03:54
1999-11-19macros.in: Add buildsubdir and scriptlet template macros.jbj1-71/+167
build/build.c: Rewrite to use scriptlet templates. build/files.c: Rename variables to prepare for (possibly) URL's in %files. build/myftw.c: Use Lstat. build/parsePreamble.c: Permit URL's in BuildRoot tag if not from spec file. build/parseSpec.c: ditto build/parsePrep.c: Add buildsubdir macro. lib/macro.c: Add url2path (nickname u2p) and verbose macro primitives. lib/url.c: urlPath returns "" if url is NULL (rpmGenPath memory corruption). CVS patchset: 3430 CVS date: 1999/11/19 18:19:41
1999-11-18The death of lib/ftp.c, merged into lib/rpmio.c.jbj1-7/+9
Start composting the rpmio API. Preliminary (not working) support for HTTP PUT. build.c: Check fd for NULL and use Ferror() for Fopen return. build/parseSpec.c: ditto build/pack.c: Use fdGetFP() rather than fpio->ffileno(). build/parseSpec.c: ditto build/pack.c: Use Stat/Mkdir wrappers. build/pack.c: Do Fflush before fdDup so that writes can remain buffered. lib/install.c: ditto build/parsePrep.c: Skip over URL leadin when writing %prep scriptlet. lib/misc.c: Rewrite to use simpler urlPath(). Restore checks on local fs. lib/rpmchecksig.c: Open with "r+" rather than "w" to avoid truncation. lib/url.c: Do lazy malloc of u->buf in rpmio.c checkResponse(). lib/rpmio.c: Make persist/contentLength per-fd rather than per-url. lib/rpmio.c: Add wr_chunked method for HTTP PUT (still broken). lib/rpmio.c: ftpAbort() should use timedRead. lib/rpmio.c: Add Fflush(). lib/url.c: urlPath() should return something ("/") on url = NULL (paranoia). lib/url.c: urlSplit() should return something ("/") on url w/o path. CVS patchset: 3429 CVS date: 1999/11/18 18:07:46
1999-11-14lib/rpmio.c: Implement per-fd layers as a stack, add fdPush/fdPop.jbj1-0/+4
lib/rpmio.c: Add fd{Get,Set}{Io,Fp,Fdno} abstraction wrappers. lib/rpmio.c: Start rationalizing debug output by using fdbg to display the fd layer stack. rpm.c: Add --nolibio to disable libio if desired. rpm2cpio.c: Use Fdopen(..., gzdio) and ufdCopy(). build/build.c: Use Fdopen(..., fpio) rather than fdio. build/files.c: Use Fdopen(..., fpio) rather than ufdio. build/parseSpec.c: ditto. lib/macro.c: ditto. lib/rpmrc.c: ditto lib/macro.c: Use Fopen(..., ufdio) in isCompressed() rather that fdOpen(). lib/misc.c: ditto. lib/misc.c: Avoid fstat by using Stat. build/pack.c: Add persist fdLink() and use fdFree() in package{Sources,Binaries} build/pack.c: Try to remove the fdDup before cpioBuildArchive() call. build/pack.c: Use rpmGenPath with %{_builddir}. build/parsePreamble.c: Use fdSize rather than Stat to get icon file size. lib/rpmrc.c: ditto lib/ftp.c: start capturing ufdio layer syserrno/errcookie. CVS patchset: 3424 CVS date: 1999/11/14 19:15:18
1999-11-12Use Fstrerror on ufdio throughut.jbj1-0/+1
rpm.c: add --rmspec to usage output. build/files.c: use ufdio to permit '%files -f <url>' (untested). build/pack.c: use ufdio in readRPM(), writeRPM(), and addFileToTag(). build/parsePreamble.c: use ufdio in readIcon(). lib/ftp.c: httpOpen() now takes FD_t ctrl arg to uncouple from u->ctrl. lib/install.c: usr rpmGenPath() to identify first found url in file path concat. lib/install.c: permit url's in files[i].relativePath. lib/macro.c: use ufdio, diddle macros for tmacro standalone build. lib/macro.c: Create rpmGenPath(). lib/macro.c: diddle macro files path to permit url's. lib/rpmchecksig.c: use Fopen on fdio. lib/rpmio.c: replace copyData() with ufdCopy(). lib/rpmio.c: replace httpGetFile() with ufdGetFile(). lib/rpmio.c: add ufdWrite(). lib/rpmio.c: permit 2 simultaneous persistent malloc/open HTTP/1.1 connections. lib/rpmio.c: Add Lstat(), Stat(), and Access(). lib/rpmio.c: assume paths in syscall stubs are loopback (WRONG). lib/url.c: add urlPath(). CVS patchset: 3422 CVS date: 1999/11/12 17:20:49
1999-11-04Use Fopen almost everywhere.jbj1-11/+11
Rip out --enable-bzip2-payload, we'll use Fopen w macros instead. Work out ref counting for ftpControl so that control channel is persistent. build/build.c: Use fpio to write build stage script. parseSpec.c: Rework include stack to use FD_t, not FILE *. tread.c: Delete, use ufdio->read instead. rpmio.c: Filter out fdio fd == NULL assertion failures. rpmrc.c: Don't fail if HOME is not environment. rpmrc.c: Rework ufdio FTP rcfile I/O to be more similar to stdio. CVS patchset: 3417 CVS date: 1999/11/04 21:26:08
1999-10-31Spec: Add rootdir (as in chroot).jbj1-62/+55
parseSpec(): Pass rootdir argument. rpm.c: Rework bigMode enum to simplify per-mode option checks. build/build.c: Attempt a chroot before execl(). falloc.c: thinko: test for non-existent packages database was broke. makeTempFile(): Skip possible URL leader on tempfile name expansion. rpmio.c: Mkdir/Chdir/Rmdir/Rename/Chroot/Unlink syscall wrappers. rpmdb.c: Coalesce and simplify legacy openDatabase() wrappers. uninstall.c: Skip possible URL leader on chroot arg. CVS patchset: 3409 CVS date: 1999/10/31 21:38:21
1999-10-30Make fdFileno() static, use Fileno()/Ferror() analogues throughout.jbj1-1/+1
Make ufdClose() static, use Fclose() with ufdio cookie throughout. rpm.c: Clean urlinfoCache and rpmBuildArgs leaks. url.c: urlIsURL() should be here, not in rpmio.c. url.c: Preserve FD_t abstraction by creating ufdGetUrlinfo(). url.c: Create freeUrlinfoCache(). rpmio.c: Create ufdio cookie. CVS patchset: 3407 CVS date: 1999/10/30 16:43:29