Age | Commit message (Collapse) | Author | Files | Lines |
|
* 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>
|
|
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>
|
|
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>
|
|
program.
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
|
|
Add xdelta option to makepkg.conf
Added xfer script to contrib.
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
|
|
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>
|
|
After introducing $pkgdir and $srcdir, we can switch some lookups to
these new variables.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
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>
|
|
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>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
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>
|
|
Add a new --source flag that allows creation of a source-only package.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
This is automaticly done by autoconf.
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
|
|
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
|
|
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
|
|
- 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>
|
|
- 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>
|
|
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
|
|
- 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>
|
|
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
|
|
- 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>
|
|
- 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>
|
|
- 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>
|
|
- 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>
|
|
- Remove scripts/makepkg on 'make distclean'
- scripts/makepkg.in: set myver on ./configure
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
|
|
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 from
* handledeps()
* removedeps()
* installpackage()
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
|
|
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>
|
|
'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>
|
|
-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>
|
|
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>
|
|
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>
|
|
Removed some unneeded path munging so that our relative
paths resolve properly. This closes FS#7068
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
* 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>
|
|
Restore LC_ALL and LANG after running build().
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
|