summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2007-05-30Finish making autoconf changesDan McGee5-50/+80
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>
2007-05-30scripts: do autoconf path replacement rightDan McGee11-94/+131
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>
2007-05-30Modernize and update configure.acDan McGee2-85/+104
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>
2007-05-29Substitute config directory in scripts.Andrew Fyfe7-18/+22
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-29Update POTFILES.in for new source file layout on pacman sideDan McGee1-5/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-29Set paths in pacman-optimize to use configure-time pathsDan McGee4-35/+39
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>
2007-05-29Get --help and --version options working on all scriptsDan McGee8-72/+104
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>
2007-05-28Add -mtune=generic to C{,XX}FLAGS in makepkg.confAndrew Fyfe1-2/+2
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>
2007-05-28Switch to printf for output messages.Andrew Fyfe1-41/+45
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>
2007-05-27Add autotool-generated scripts to .gitignoreDan McGee1-0/+7
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-27Remove extra_dist from scripts/Makefile.amAndrew Fyfe1-10/+0
This is automaticly done by autoconf. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27Fixed typo in scripts/repo-remove.inAndrew Fyfe1-1/+1
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27chmod -x scripts/*.inAndrew Fyfe8-0/+0
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27autotool scripts/updatesyncAndrew Fyfe3-6/+21
- 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>
2007-05-27autotool scripts/repo-removeAndrew Fyfe3-2/+18
- 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>
2007-05-27Added copyright header to scripts/abs.inAndrew Fyfe1-0/+20
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27autotool scripts/repo-addAndrew Fyfe3-2/+18
- 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>
2007-05-27move parameter count check after check for help and version.Andrew Fyfe2-10/+10
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27autotool scripts/pacman-optimizeAndrew Fyfe3-3/+17
- 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>
2007-05-27autotool scripts/makeworldAndrew Fyfe3-4/+22
- 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>
2007-05-27autotool scripts/gensyncAndrew Fyfe3-3/+18
- 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>
2007-05-27autotool scripts/absAndrew Fyfe3-1/+17
- 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>
2007-05-27fix existing autotools in scripts/*Andrew Fyfe2-2/+10
- Remove scripts/makepkg on 'make distclean' - scripts/makepkg.in: set myver on ./configure Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27makepkg: fakeroot-related changes and other misc outputDan McGee2-15/+16
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>
2007-05-27Removed fakeroot hacks.Andrew Fyfe1-29/+2
Removed fakeroot hacks from * handledeps() * removedeps() * installpackage() Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27Reduced the number of commands run inside fakeroot to the bare minimum.Andrew Fyfe1-39/+67
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>
2007-05-24Add missing new line to 'pacman -T' output.Andrew Fyfe1-1/+1
'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>
2007-05-20Add -Qee option for the original behavior of -QeChantry Xavier2-3/+4
-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>
2007-05-18Allow $repo expansion in 'Server' config linesAaron Griffin3-22/+72
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>
2007-05-18Fix extraneous "ignoring upgrade" output on Ignore'd packagesChantry Xavier1-6/+8
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>
2007-05-18Fix broken resolve_path functionAaron Griffin1-21/+7
Removed some unneeded path munging so that our relative paths resolve properly. This closes FS#7068 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2007-05-18Continue scanning when an invalid DB entry is foundAaron Griffin1-1/+3
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>
2007-05-18Remove trailing slashes from Server URLsAaron Griffin1-0/+4
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>
2007-05-18Fix libarchive permission extractionAaron Griffin1-0/+2
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>
2007-05-16makepkg: ensure DISTCC_HOSTS variable is exported when requiredDan McGee1-4/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-14makepkg: a few small changesDan McGee1-13/+10
* 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>
2007-05-14Cleaned up and simplified run_build().Andrew Fyfe1-12/+19
Restore LC_ALL and LANG after running build(). Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-14Moved commands to setup build environment and run build() into run_build().Andrew Fyfe1-64/+68
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-14Cleaned up and simplified tidy_install().Andrew Fyfe1-28/+24
Added 'LC_ALL= LANG=' to find commands for stripping symbols from binaries/libraries. This stops the greps failing if LC_ALL or LANG != en_US|C|POSIX. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-14Moved commands to tidy up package install into tidy_install().Andrew Fyfe1-61/+64
The following sets of commands were moved into tidy_install() * Remove info/doc files. * Move usr/share/man to usr/man * Compress man pages. * Strip debug symbols from binaries/libraries. * Remove libtool *.la files. * Remove empty directories. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-14Cleaned up and simplified create_package().Andrew Fyfe1-25/+26
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-14Moved commands to create package file into create_package().Andrew Fyfe1-88/+91
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-14Add three new 'requiredby' pactestsDan McGee3-0/+52
These should test various aspects of the DB when dealing with requiredby entries. At least one fails without Nagy's alpm_depcmp patch. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-14Use alpm_depcmp in _alpm_pkg_update_requiredbyNagy Gabor1-28/+13
The old function did too much on its own; let alpm_depcmp do the hard work. This will allow for future versioned provisions if necessary. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-14Remove unnecessary casts on malloc and elsewhereDan McGee11-31/+31
We had many unnecessary casts, most of them dealing with malloc and other memory allocations. The variable type should take care of it; no need to do it explicitly. In addition, I caught a const error while removing the casts. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-14Display size for packagesNathan Jones5-11/+47
This patch adds a -z|--showsize option to the -Q and -S commands. The option displays the size of individual packages. This is something that I have wanted for a while, and there is a feature request for it. Signed-off-by: Nathan Jones <nathanj@insightbb.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-14Fix inconsistency in options in default makepkg.confDan McGee1-1/+3
Also add a quick note on how the options are described and used. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-10Slight updates to PKGBUILD.vimDan McGee1-52/+47
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-10Updated vim syntax fileAlessio 'mOLOk' Bolognino1-130/+81
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-10Add vim syntax file for PKGBUILDs to contrib/Alessio 'mOLOk' Bolognino3-2/+296
Thanks for the contribution. Signed-off-by: Dan McGee <dan@archlinux.org>