summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2011-10-14Disable pacman's CheckSpace option as it fails within a chrootPierre Schmitz5-5/+10
2011-10-14prepare release0.9.28Pierre Schmitz1-1/+1
2011-10-14Call locale-gen with full path in chroot environmentPierre Schmitz1-1/+1
Thanks to Peter Schuller for this hint
2011-10-14makechrootpkg: Avoid running namcap on non-package file like signaturesPierre Schmitz1-1/+1
We only use .xz or .gz compression for pacakges so we can be more specific and avoid a match of e.g. *.pkg.tar.xz.sig etc.
2011-10-14Merge remote-tracking branch 'cryptocrack/for-pierre'Pierre Schmitz15-150/+160
2011-10-14Apply pacman 4.0 changes to our copies of makepkg.conf and pacman.confPierre Schmitz7-38/+127
Note: Signature checks are disabled for now until we provide a keyring package.
2011-10-13Honor TMPDIR environment variableLukas Fleischer2-2/+2
Replace all mktemp(1) invocations that hardcode "/tmp" with `mktemp --tmpdir` and change templates accordingly. Note that "--tmpdir" is GNU-ish which is okay given that we currently support Arch Linux only anyway. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-13finddeps: Unset optdependsLukas Fleischer1-1/+1
The optdepends array should be unset before sourcing the PKGBUILD to avoid dangling optional depends. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-13finddeps: Use read builtin to iterate over packagesLukas Fleischer1-1/+1
Using parameter substitution might result in unpredictable behaviour when directories contain whitespaces here. The read shell builtin is the proper way to read single lines. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-13finddeps: Remove redundant cd(1)Lukas Fleischer1-5/+2
Source the PKGBUILD using the correct path (relative to our base directory) instead of using cd(1) to switch to the ABS base directory first and to the package directory afterwards. This is very useful when trying to track errors, also: $ ~/src/devtools/finddeps libdaq ./community/snort (depends) PKGBUILD: line 17: ruby: command not found PKGBUILD: line 19: [: =: unary operator expected Versus: $ ~/src/devtools/finddeps libdaq ./community/snort (depends) ./community/ruby-pkgconfig/PKGBUILD: line 17: ruby: command not found ./community/lmms/PKGBUILD: line 19: [: =: unary operator expected Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-13finddeps: Proper quoting, use double bracketsLukas Fleischer1-17/+11
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-12archrelease: Fix SVN error when repository is emptyLukas Fleischer1-1/+1
If trash is empty, `svn rm -q "${trash[@]}"` fails with: svn: Try 'svn help' for more info and then svn: Not enough arguments provided This doesn't result in any further malfunction but is kind of confusing and unexpected. Skipping `svn rm` on an empty trash fixes this. Reported-by: Alexander Rødseth <rodseth@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-07Always log builds in makechrootpkgAllan McRae1-1/+1
It is very helpful to always log the build output in makechrootpkg so pass "-L" as a standard option to makepkg. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-07archrelease: call 'svn copy' once for all filesDan McGee1-3/+2
We don't need to invoke svn copy on each file; it accepts multiple arguments. This cut Allan's time releasing one patch-friendly package from 5 minutes to 2 minutes. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-07makechrootpkg: If chroot is missing, exit instead of usageJan Alexander Steffens (heftig)1-1/+1
I'm not sure why this was handled differently than the other error conditions. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-07makechrootpkg: Add option to explicitly run namcapJan Alexander Steffens (heftig)1-2/+8
Installs namcap if needed, *after* building the package, contrary to the former way of having to have namcap installed, e.g. via makedepends. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-07makechrootpkg: Source PKGBUILD only onceJan Alexander Steffens (heftig)1-11/+11
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-07makechrootpkg: Use nullglobJan Alexander Steffens (heftig)1-2/+2
Use nullglob instead of checking for existence. If the glob doesn't match any files, it will be removed instead of staying unexpanded. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-07makechrootpkg: Always set PKGDEST and SRCDESTJan Alexander Steffens (heftig)1-10/+6
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-07makechrootpkg: Replace $workdir with . ($PWD)Jan Alexander Steffens (heftig)1-4/+3
$workdir is never used when we change directory, so it's superfluous. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-07makechrootpkg: Eliminate appname, only used onceJan Alexander Steffens (heftig)1-2/+1
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-07makechrootpkg: Bashify syntaxJan Alexander Steffens (heftig)1-113/+111
No functional change. Eliminates unused variables RUN and FORCE. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-07Makefile: Add a cleanup targetLukas Fleischer1-1/+4
Allows for using `make clean` to remove any output files generated by make(1). Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-10-07Support non-standard install locationsLukas Fleischer15-3/+22
This build system overhaul allows for adding (define-style) macros to our scripts. All source files are now suffixed with ".in" to clarify that they might contain unprocessed defines. The Makefile provides a new rule to preprocess source files and generate proper output scripts. Also, add a "@pkgdatadir@" define (as used in GNU Autotools) and use it instead of hardcoded paths to "/usr/share/devtools" everywhere. We missed this when adding PREFIX support to the build system in commit 35fc83ce7d8dc26cd424321f2e8638d05da0a6d4. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-08-29zsh_completion: Fix package completionLukas Fleischer1-2/+2
Make use of _devtools_completions_all_packages() instead of using _devtools_completions_installed_packages(). The latter was removed during an earlier review of the patch adding ZSH completion (now 6350ec04 in master) but we forgot to change two references. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-29commitpkg: Avoid unnecessary use of basename(1)Lukas Fleischer1-1/+1
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-29archbuild: Avoid unnecessary use of basename(1)Lukas Fleischer1-6/+7
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-29archbuild: Proper quoting, use double bracketsLukas Fleischer1-15/+15
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-29archbuild: Use array for base packagesLukas Fleischer1-3/+3
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-25prepare release0.9.27Pierre Schmitz1-1/+1
2011-08-25Add ZSH completionLukas Fleischer2-0/+83
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-25checkpkg: Use a pipe to sort package listsLukas Fleischer1-5/+2
No need to do this after we already wrote the package list to a file. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-25checkpkg: Use read builtin to get new ".so" filesLukas Fleischer1-1/+1
The read shell builtin is the proper way to read single lines. Also, simplify grep(1) and awk(1) invocations and use a single awk(1) expression, that supports extracting file names with spaces, instead. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-25checkpkg: Avoid unnecessary use of grep(1)/basename(1)Lukas Fleischer1-3/+3
Use parameter expansion instead of invoking external binaries here. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-25checkpkg: Avoid unnecessary use of sed(1) and cut(1)Lukas Fleischer1-8/+2
We already use `pacman -Sddp` here which should always only return a single package URL for regular packages. No need to extract the first field of the last line. Also, specify "--print-format '%l'" explicitly to make this consistent even if pacman(8)'s default value changes some day. Use bash parameter expansion instead of sed(1) to extract the file name from the URL. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-25checkpkg: Proper quoting, use double bracketsLukas Fleischer1-26/+26
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-25archrelease: Fix behaviour with non-standard trunk nameLukas Fleischer1-4/+4
Do not hardcode the name of the package trunk directory and accept varying directory names, such as "gnome-unstable". Regression introduced in 8384ad849dfe308ed3e63e252785b9a6f80474f5. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-25archrelease: Copy new files from trunkLukas Fleischer1-1/+1
Currently, files that have just been added to trunk are not copied to the repositories when invoking archrelease, as `svn ls` does not list them if we don't `svn update` explicitly before. Use `svn ls -r HEAD` to include everything from current HEAD. Fixes FS#25680. Reported-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-25commitpkg: Release to all repositories at onceLukas Fleischer1-1/+6
Make use of archrelease's multi-tag capability invoke it once instead of re-launching it for for each individual tag. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-25archrelease: Accept multiple tagsLukas Fleischer1-16/+28
This allows for releasing to multiple repositories with a single commit: ---- $ archrelease community-{i686,x86_64} copying trunk to community-i686...done copying trunk to community-x86_64...done releasing package...done ---- Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-25archrelease: Check for subdirectories earlyLukas Fleischer1-6/+6
Ensure we do not mess with version control if there are any subdirectories in the package trunk. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-25archrelease: Remove redundant directory checkLukas Fleischer1-8/+3
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-25archco: Fix usage messageLukas Fleischer1-1/+1
Point out that we allow passing more than two packages here. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-18archrelease: declare known_files as an arrayDave Reisner1-3/+3
Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-18archrelease: use bashier syntaxDave Reisner1-9/+11
Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-18archrelease: call svn rm only onceDave Reisner1-3/+5
Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-18commitpkg: use getopts to parse optionsDave Reisner1-9/+11
Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-18commitpkg: declare rsyncopts as an arrayDave Reisner1-3/+3
Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-15commitpkg: Fix leading whitespace in commit messagesLukas Fleischer1-3/+1
Commit c51cc8d365fad3be529776e9dce34ac115664451 erroneously introduced a tab character that is prepended to the body of each commit message. Fix this by using C-style newline escape sequences which will avoid further whitespace issues caused by re-indentation of code at this point. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-08-14prepare release0.9.26Pierre Schmitz1-1/+1