summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Autotool fixes/cleanup.Andrew Fyfe2007-05-31
| | | | | | | | * configure.ac: Add AC_SUBST() for ROOTDIR, PKGEXT, DBEXT so they get exported to Makefiles. * {makepkg,pacman}.conf.in: Remove extra / from paths. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Move DB and cache dirs away from there dependence on ROOTDIRDan McGee2007-05-31
| | | | | | | | | | | | | | | | | | | This change allows us to use all autoconf specified paths, most notably $(localstatedir). It is quite a change and touches a lot of files, as all references to the DB and cache were done with the ROOTDIR as a prefix. * add --lock command-line option to pacman to specify the location of the lockfile (this can now be specified at configure time by setting the $localstatedir path). * Rip quite a few settings out of configure.ac as they are now picked by setting the paths during configure or make. * Fix bug with /tmp fallback for sync downloads not working correctly (related to root location, now the system tmp dir is used). * Simplified the parameters to some libalpm functions, and added get/set for the new lockfile option. * Renamed several of the DEFS to names without the PM_ prefix. Signed-off-by: Dan McGee <dan@archlinux.org>
* Set an error exit status on -Qi or -Si failureDan McGee2007-05-31
| | | | | | | Regression from 2.9.8 where a failed -Qi lookup did not return an error on exit. The exit status is now incremented for each error encountered. Signed-off-by: Dan McGee <dan@archlinux.org>
* Clean up variable usage in create_xdelta() and add a check for the xdelta ↵Dale Ogilvie2007-05-30
| | | | | | program. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Add support for creating xdeltas in makepkg.Dale Ogilvie2007-05-30
| | | | | | | | Add xdelta option to makepkg.conf Added xfer script to contrib. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* makepkg: do not retrieve sources if NOEXTRACT or REPKG setDag Odenhall2007-05-31
| | | | | | Signed-off-by: Dag Odenhall <dag.odenhall@gmail.com> Signed-off-by: Andrew Fyfe <Andrew Fyfe andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: switch applicable $startdir/dir refs to new variable namesDan McGee2007-05-31
| | | | | | | After introducing $pkgdir and $srcdir, we can switch some lookups to these new variables. Signed-off-by: Dan McGee <dan@archlinux.org>
* Check if pkgdir exists in create_packageDag Odenhall2007-05-30
| | | | | | Signed-off-by: Dag Odenhall <dag.odenhall@gmail.com> Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: fix double occurance of word in asroot warningDag Odenhall2007-05-30
| | | | | | Signed-off-by: Dag Odenhall <dag.odenhall@gmail.com> Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* Use @sysconfdir@ in etc/ configuration filesDan McGee2007-05-30
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* doc/makepkg.8: document --log optionDan McGee2007-05-30
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: add srcdir and pkgdir variablesDan McGee2007-05-30
| | | | | | | We already have $startdir, so this introduces two more shorthand variables for the most commonly accessed directories. Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: add source package creation optionDan McGee2007-05-30
| | | | | | Add a new --source flag that allows creation of a source-only package. Signed-off-by: Dan McGee <dan@archlinux.org>
* Finish making autoconf changesDan McGee2007-05-30
| | | | | | | | | | Fix up everything in the etc/ directory so it is built at make-time and not configure-time. This reduces configure generated files to just the makefiles, which is the correct way to do things. This also allows a switch from @@REPO@@ to the more sane @REPO@ in mirrorlist.in, and kills the two-part generation of the mirror files. Signed-off-by: Dan McGee <dan@archlinux.org>
* scripts: do autoconf path replacement rightDan McGee2007-05-30
| | | | | | | | | | This should finally get the path replacement in our scripts right. This is the way the autoconf package itself does it and should not need much further tweaking. Threw in a few trailing whitespace corrections from the scripts as well. Signed-off-by: Dan McGee <dan@archlinux.org>
* Modernize and update configure.acDan McGee2007-05-30
| | | | | | | | Using the autoscan tool, ensure we are doing the checks we should be doing in configure.ac. There is still more work to do, but this is a start at cleaning up the file a bit to make it much easier to change in the future. Signed-off-by: Dan McGee <dan@archlinux.org>
* Substitute config directory in scripts.Andrew Fyfe2007-05-29
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Update POTFILES.in for new source file layout on pacman sideDan McGee2007-05-29
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Set paths in pacman-optimize to use configure-time pathsDan McGee2007-05-29
| | | | | | | | | | | | By setting up a few more AC_SUBST macros in configure.ac, we can fill in paths in the scripts on the fly instead of having them in multiple places. Other small fixes: * Fix an oops on my last commit where I had some lines stil commented. * Fix makepkg bug where the generated package name using PKGEXT had two periods (..). Signed-off-by: Dan McGee <dan@archlinux.org>
* Get --help and --version options working on all scriptsDan McGee2007-05-29
| | | | | | | | | Added the autoconf option std-options to the scripts/ directory, which checks to ensure all programs have both --help and --version options. A few things needed cleaning up to get this working. To test these types of options, use the 'make distcheck' target. Signed-off-by: Dan McGee <dan@archlinux.org>
* Add -mtune=generic to C{,XX}FLAGS in makepkg.confAndrew Fyfe2007-05-28
| | | | | | | | GCC-4.2.0 requires -mtune=generic to produce binaries optimized for generic i686/x86_64. By default it tries to optimize a for the host system building the package. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Switch to printf for output messages.Andrew Fyfe2007-05-28
| | | | | | Using printf we can avoid haveing to use eval_gettext and the ugly escape sequances required to use it. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Add autotool-generated scripts to .gitignoreDan McGee2007-05-27
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove extra_dist from scripts/Makefile.amAndrew Fyfe2007-05-27
| | | | | | This is automaticly done by autoconf. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Fixed typo in scripts/repo-remove.inAndrew Fyfe2007-05-27
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* chmod -x scripts/*.inAndrew Fyfe2007-05-27
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* autotool scripts/updatesyncAndrew Fyfe2007-05-27
| | | | | | | | - move scripts/updatesync -> scripts/updatesync.in - add -V --version options to scripts/updatesync.in - add autotool commands to generate scripts/updatesync Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* autotool scripts/repo-removeAndrew Fyfe2007-05-27
| | | | | | | | - move scripts/repo-remove -> scripts/repo-remove.in - add -V --version options to scripts/repo-remove.in - add autotool commands to generate scripts/repo-remove Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Added copyright header to scripts/abs.inAndrew Fyfe2007-05-27
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* autotool scripts/repo-addAndrew Fyfe2007-05-27
| | | | | | | | - move scripts/repo-add -> scripts/repo-add.in - add -V --version options to scripts/repo-add.in - add autotool commands to generate scripts/repo-add Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* move parameter count check after check for help and version.Andrew Fyfe2007-05-27
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* autotool scripts/pacman-optimizeAndrew Fyfe2007-05-27
| | | | | | | | - move scripts/pacman-optimize -> scripts/pacman-optimize.in - add -V --version options to scripts/pacman-optimize.in - add autotool commands to generate scripts/pacman-optimize Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* autotool scripts/makeworldAndrew Fyfe2007-05-27
| | | | | | | | - move scripts/makeworld to scripts/makeworld.in - add -V --version options to scripts/makeworld.in - add autotool commands to generate scripts/makeworld Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* autotool scripts/gensyncAndrew Fyfe2007-05-27
| | | | | | | | - move scripts/gensync -> scripts/gensync.in - add -V --version options to scripts/gensync.in - add autotool commands to generate scripts/gensync Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* autotool scripts/absAndrew Fyfe2007-05-27
| | | | | | | | - move scripts/abs -> scripts/abs.in - add -V --version options to scripts/abs.in - add autotool commands to generate scripts/abs Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* fix existing autotools in scripts/*Andrew Fyfe2007-05-27
| | | | | | | - Remove scripts/makepkg on 'make distclean' - scripts/makepkg.in: set myver on ./configure Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* makepkg: fakeroot-related changes and other misc outputDan McGee2007-05-27
| | | | | | | A few changes to undo my stupid mistake earlier wrt fakeroot checking, and unify the output and usage of 'makepkg.conf'. Signed-off-by: Dan McGee <dan@archlinux.org>
* Removed fakeroot hacks.Andrew Fyfe2007-05-27
| | | | | | | | | Removed fakeroot hacks from * handledeps() * removedeps() * installpackage() Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Reduced the number of commands run inside fakeroot to the bare minimum.Andrew Fyfe2007-05-27
| | | | | | | | | | | | | | | Only the following functions now run inside fakeroot * run_build() * tidy_install() * create_package() Added check for inproper use of '-F' option. Added warning if makepkg is run as root. Added a new '--asroot' flag that must be passed if you wish to run makepkg as the root user. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* Add missing new line to 'pacman -T' output.Andrew Fyfe2007-05-24
| | | | | | | | | | 'pacman -T foo bar' returns 'foobar' instead of: foo bar Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>o Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Add -Qee option for the original behavior of -QeChantry Xavier2007-05-20
| | | | | | | | | | | -Qee now lists "orphans" the way pacman used to - that is, -Qe lists packages required by nothing that were installed as a dependency, but -Qee lists all packages not required by something else. Also, I snuck in a compile fix for my real_path cleanup earlier, heh Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Allow $repo expansion in 'Server' config linesAaron Griffin2007-05-18
| | | | | | | | | | | | | Small change (addition of a 'strreplace' function) which replaces any $repo tokens found in a server line with the name of the repo or section being processed. While this is more simplistic than suggestions on flyspray, it works and I think it is cleaner. Merits can be discussed further. Ref: FS#6389 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Fix extraneous "ignoring upgrade" output on Ignore'd packagesChantry Xavier2007-05-18
| | | | | | | | Reorder package version checking so there is no output when a package is listed in IgnorePkg. Closes FS#7111 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Fix broken resolve_path functionAaron Griffin2007-05-18
| | | | | | | Removed some unneeded path munging so that our relative paths resolve properly. This closes FS#7068 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Continue scanning when an invalid DB entry is foundAaron Griffin2007-05-18
| | | | | | | | Fix for FS#7133 - when DB scanning finds an invalid named entry, scanning is currently aborted. Instead we will simply skip it and find the next valid package. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Remove trailing slashes from Server URLsAaron Griffin2007-05-18
| | | | | | | Simple clean up for the rest of the code, which also prevents a little libdownload bug relating to '//' appearing in URLs. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Fix libarchive permission extractionAaron Griffin2007-05-18
| | | | | | | | Hackish fix to ensure libarchive extracts files and dirs with the right permissions. For some reason extracting /tmp on install wasn't handled properly by librachive, so an explicit chmod will fix this. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* makepkg: ensure DISTCC_HOSTS variable is exported when requiredDan McGee2007-05-16
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: a few small changesDan McGee2007-05-14
| | | | | | | | | | * change "Tidying Install" message to msg instead of msg2 * Fix quoting issues in usage output * Remove LANG and friends unsetting- this should be done in the offending package builds * Check for defined $BUILDSCRIPT, since it was moved to makepkg.conf Signed-off-by: Dan McGee <dan@archlinux.org>
* Cleaned up and simplified run_build().Andrew Fyfe2007-05-14
| | | | | | Restore LC_ALL and LANG after running build(). Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>