Commit Graph

43 Commits

Author SHA1 Message Date
Juan RP f832dd42a8 xbps-src: be more conservative with signal handlers. 2010-12-28 22:55:17 +01:00
Juan RP e643f8dcee xbps-src: gawk is required by glibc, so detect it. 2010-12-23 20:48:04 +01:00
Juan RP 2d32c8fd9e xbps-src: make some targets work by specifying its pkgname.
There are now two ways to use the following targets:

build, build-pkg, clean, configure, extract, fetch, info, install,
install-destdir, remove, stow, unstow.

1) The known way: 'cd srcpkgs/foo && xbps-src <target>"
2) The new way: 'xbps-src <target> foo'.
2010-12-21 18:45:39 +01:00
Juan RP 3da3783333 xbps-src: improve msg_* funcs and update all callers. 2010-12-20 00:22:12 +01:00
Juan RP a4330337e4 xbps-src: cd to $MASTERDIR when executing the signal handler. 2010-12-16 00:27:42 +01:00
Juan RP 4bdf2e615b xbps-src: be silent while checking for required host cmds. 2010-11-09 00:47:29 +01:00
Juan RP c5f1097f4e xbps-src: added -s flag to override default XBPS_SRCDISTDIR value. 2010-10-30 18:25:04 +02:00
Juan RP b257ba41fc xbps-src: do not overwrite PATH, just append it to the new one. 2010-10-21 17:21:23 +02:00
Juan RP 0c5f31342c xbps-src: do not overwrite masterdir if -c not set and -m set. 2010-06-03 01:49:33 +02:00
Juan RP c34e13336b xbps-src: multiple changes to improve infrastructure.
- Remove buildvars_funcs.sh, its code has been moved into set_tmpl_common_vars().
- Move stripping code into its own file, and don't run it via fakeroot.
- Remove unnecesary reset_tmpl_vars() call in install_pkg().
- Misc changes.
2010-05-26 15:41:26 +02:00
Juan RP c785787fdd xbps-src: added 'clean' target to remove pkg build directory. 2010-05-20 04:05:35 +02:00
Juan RP b9d0db9470 xbps-src: added new 'checkvers' target to check for new versions from srcpkgs
against current installed packages.
2010-05-19 03:00:52 +02:00
Juan RP c99f975f63 xbps-src: also check for xbps static utils. 2010-05-17 22:26:58 +02:00
Juan RP 73eb032904 xbps-src: check for required utilities in the host system. 2010-05-17 22:23:52 +02:00
Juan RP fecc9617dd Pass XBPS_MASTERDIR to the xbps-src signal handler. 2010-05-14 15:25:07 +02:00
Juan RP a599311f15 xbps-src: always try to unmount via xbps-src-chroot-helper before exiting. 2010-05-14 14:48:55 +02:00
Juan RP ceefb18bff xbps-src: multiple improvements to messages and phases.
- Prefix all messages with 'Package 'pkgname (version)': ..." to really
  understand what's going on. Add more messages in some stages...
- Do not run pre/post_{configure,build,install} or do_{build,install} stages
  if they were executed successfully in the past.
2010-05-14 00:07:47 +02:00
Juan RP 8a9c6d1033 xbps-src: install required deps if necessary in the configure/build target. 2010-05-13 22:21:08 +02:00
Juan RP ea1e29a43c xbps-src: don't forget to clean up $wrksrc in the bootstrap target!
Thanks to pancake for finding the bug.
2010-05-13 20:43:08 +02:00
Juan RP 037b066e92 xbps-src: required XBPS utils >= 20100511, hardcode fakeroot path. 2010-05-11 15:03:36 +02:00
Juan RP 22774084ab xbps-src: always create logs for configure/build/install stages in $wrksrc.
Fixed -C and install-destdir in the chroot, $# wasn't consistent :-)
2010-05-07 12:25:24 +02:00
Juan RP ae9417a4af xbps-src: added 'bootstrap' target to build/install xbps-base-chroot in masterdir. 2010-05-04 22:23:54 +02:00
Juan RP c0fb9c3805 xbps-src: make -p work with the 'make-repoidx' target. 2010-05-03 22:33:52 +02:00
Juan RP 9ddcd8fe72 xbps-src: add -h flag to show usage.
--HG--
extra : convert_revision : 51fbff55d296a3f818e736835a10763aff278f2d
2010-04-27 14:23:53 +02:00
Juan RP cb582f7373 xbps-src: add -m flag and make-repoidx target.
* -m flag to specify a custom XBPS_MASTERDIR, overwritting the value
  from xbps-src.conf.
* make-repoidx target to create a package index plist file for
  the local repository associated with a masterdir, or one specified
  by the -p flag.

--HG--
extra : convert_revision : dbd502b532fd49cd17a79a187488a1e92f361ee0
2010-04-27 01:34:19 +02:00
Juan RP ce1f7f15a9 Rename XBPS_USE_CAPCHROOT to XBPS_USE_CAPABILITIES.
--HG--
extra : convert_revision : fdb1b307c8bbd34f1a280474c29ea329ccd588e7
2010-04-26 14:54:06 +02:00
Juan RP e3dc3e3066 Added native utilities to mount/umount/chroot via capabilities(7).
Three new helpers will now be installed into ${libexecdir}:
 - xbps-src-capchroot needs to have set CAP_SYS_CHROOT ep.
 - xbps-src-chroot-cap{,u}mount: needs to have set CAP_SYS_ADMIN ep.

That means that libcap and setcap(8) are now required to install
xbps-src and use it as normal user.

--HG--
extra : convert_revision : 586d6526079e085f86bf3e393459d429f6f0ef99
2010-04-26 14:15:49 +02:00
Juan RP 6673252679 Infrastructure changes to simplify the conf file.
* Removed the following vars from the conf file: XBPS_BUILDDIR,
  XBPS_PACKAGESDIR and XBPS_SRCDISTDIR. They are always relative
  to XBPS_MASTERDIR and cannot be changed.
* Removed XBPS_INSTALLDIR, it was unused in the code.
* Prepend /tools/bin in PATH for the chroot.
* Don't register a repo in the chroot if the XBPS_PREFER_BINPKG_DEPS
  is not set.

--HG--
extra : convert_revision : 4df03ffa64f0bbf81cd1dd0baf38f1b7e4f47549
2010-04-26 02:51:48 +02:00
Juan RP a845d7b4c7 xbps-src: add -p to usage().
--HG--
extra : convert_revision : 72bf7994f7aa968b09d8905dbc435427f4f32da0
2010-03-30 23:26:08 +02:00
Juan RP 4804461547 xbps-src: added -p flag to specify pkg directory.
This overwrittes the value set in the configuration file.

--HG--
extra : convert_revision : 0d46804055edf3400a20d70d5d2917da3064f9f9
2010-03-30 17:01:59 +02:00
Juan RP 9d29d2d001 xbps-src: repair build/configure targets in chroot.
--HG--
extra : convert_revision : b4a21b4621d0114a22eaf686a60896f3f088a69e
2010-02-19 07:18:22 +01:00
Juan RP 0da86577ab Changed $replaces to accept pkg patterns, like Add_dependency().
Changed all packages using $replaces to the new format and bump
the revision. Require XBPS utils >= 20100121 for this to work.

--HG--
extra : convert_revision : 7593b3cb7465f7613f48aba0f2e86cdcd5430ac0
2010-01-21 03:33:26 +01:00
Juan RP e57940985e Added support to build pkgs in the chroot as normal user via capchroot.
Please read the comment in xbps-src.conf to use it. Fully tested
and working nicely, probably some pkgs will need minimal changes.

--HG--
extra : convert_revision : 820ad6d48aa74cf5b6db1871adea750acccaa82f
2010-01-16 02:11:44 +01:00
Juan RP 667095b4ae xbps-src: remove XBPS_DESTDIR from conf file.
Rather than make it configurable, put this always under
XBPS_MASTERDIR/pkg-destdir, so you don't have to care about it anymore.

--HG--
extra : convert_revision : 34cc3102272bfcf95b2fc3a8961cb9cb2429ab91
2010-01-09 23:35:11 +01:00
Juan RP 3e8bd5917c xbps-src: remove non-working -u flag, make -C work in chroot.
--HG--
extra : convert_revision : a9fb1c09b4d29f35888abf9615c40d3cccbeb239
2010-01-09 15:49:36 +01:00
Juan RP c6f4aa322b Use the new xbps-uhelper bin, require xbps utils 20091124-1.
--HG--
extra : convert_revision : d29be962c344de65b805f4690afc335db32b541e
2009-11-24 12:21:49 +00:00
Juan RP 38496b3618 xbps-src: required xbps utils 20091123.
--HG--
extra : convert_revision : 9f05994720679b5ec2058114305b0083b59677b8
2009-11-23 00:33:37 +00:00
Juan RP 881cc4566b xbps-src: require at least xbps utils from 20091119.
--HG--
extra : convert_revision : 1de2441b10f450e2847ee663bd6a9fd6cb3ce2c5
2009-11-22 08:44:25 +01:00
Juan RP 85cc462e1d Major infrastructure changes, part 2.
* Moved helpers, common and triggers dirs into xbps-src, where
  they belong.
* Renamed the templates dir to srcpkgs, it was so redundant before.
* Make it possible to add subpkgs with no restriction in names, for
  example udev now has a subpkgs called "libgudev". Previously
  subpkgs were named "${sourcepkg}-${pkgname}".
* xbps-src: changed to look for template files in current directory.
  That means that most arguments from the targets have been removed.
* xbps-src: added a reinstall target, to remove + install.
* xbps-src: do not overwrite binpkgs by default, skip them.

And more that I forgot because it's a mega-commit that I've been
working for some days already...

--HG--
extra : convert_revision : 0f466878584d1e6895d2a234f07ea1b2d1e61b3e
2009-11-22 08:31:44 +01:00
Juan RP 2c53035fb7 Added support for extended pkgdep version matching.
xbps from launchpad head branch has gained support for extended
pkg version matching, as specified in:

https://blueprints.launchpad.net/xbps/+spec/improved-version-matching

Now it's required to specify the operator(s) for required versions
in the depends files and "Add_dependency" option in build templates.

xbps-src now requires xbps utils 20091107.

--HG--
extra : convert_revision : fc09fa707483a75e0b6f68445721fc1a9166cdad
2009-11-07 05:01:00 +01:00
Juan RP 1ebe5e6b5e Mega-commit removing deps in xbps-base-chroot.
xbps-src:
  * ALWAYS use the static bins, to avoid breakage in the chroot.
  * Remove XBPS_FETCH_CMD. Use xbps-fetch (static) now that it's
    useful to download all distfiles in xbps-base-system.
  * Use busybox in the chroot and create links in /usr/local/bin
    at creation time. This helps to remove many packages that
    had problems with host/target libs (acl, attr, libarchive, etc).

build templates:
  * Add explicit gettext and texinfo build dependencies in all
    packages that need them, because they aren't built anymore
    by xbps-base-chroot.
  * Fixed some packages using build_style=gnu_makefile, that were
    broken because pre/post_configure() is not executed for a while,
    they should use pre/post_build() instead.

--HG--
extra : convert_revision : 0eaaf4917fd824710d0895e0c984bbc236b0cdf8
2009-10-30 22:14:09 +01:00
Juan RP 4a26a07d56 xbps-src: make 'build-pkg all' ignore building subpkgs, use sourcepkg.
--HG--
extra : convert_revision : a552d1c2db44ca7a6427bf1e08a2d86e995c1383
2009-10-20 10:49:41 +02:00
Juan RP 745192ef37 Added xbps-src and its associated code again.
It's better to keep it outside of XBPS.

--HG--
extra : convert_revision : 34f9c316585b972158d6ee55492c02c9bc5d3fcd
2009-10-18 11:17:26 +02:00