Commit Graph

1083 Commits

Author SHA1 Message Date
Juan RP 259d7f0ce7 shutils/metadata.sh: if xbps-uhelper sanitize-plist fails, return error.
--HG--
extra : convert_revision : 949a19e83aff79731b2d315669114568fe4f81aa
2010-01-28 19:05:03 +01:00
Juan RP bc01681ea7 shutils/metadata.sh: replace '><' in maintainer obj with &[gl]t;
--HG--
extra : convert_revision : 6de3978f0cc7442bec1fc08523387884ae8809c9
2010-01-27 03:21:53 +01:00
Juan RP d9670229d4 mapping_shlib_binpkg: added libopenobex shlib.
--HG--
extra : convert_revision : 3495a605bf3cd96df7cc569a0cd26be4e14cb09e
2010-01-27 01:46:44 +01:00
Juan RP 5ef117ebf2 Added parted-2.1 build template.
--HG--
extra : convert_revision : e66b8072fd11019cb17e5a5f896cf7b7e83ba593
2010-01-25 17:12:59 +01:00
Juan RP 45b8a06f71 Added graphviz-2.26.0 build template.
--HG--
extra : convert_revision : 46693a44c8f9f52ad2dde15707c0fd0a01631938
2010-01-21 17:17:39 +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 740ed4e896 shutils/metadata: fix incorrect syntax in subst $replaces values.
--HG--
extra : convert_revision : f57eaffc05e99b021aeb77c213b8ca13121b978e
2010-01-20 15:10:23 +01:00
Juan RP 9b4d6d474e shutils/metadata: fix creation of scripts due to false positive.
--HG--
extra : convert_revision : 6fecbcf1ae9f6addd319cece6bf8731e23efc196
2010-01-17 22:22:12 +01:00
Juan RP 5d778d212d mapping_shlib_binpkg: added another libvorbis shlib.
--HG--
extra : convert_revision : 604017ca4ce812e78f93d60ad172c6179b660762
2010-01-17 18:39:58 +01:00
Juan RP 6e6b08ade3 mapping_shlib_binpkg: added SDL_ttf shlib.
--HG--
extra : convert_revision : fb17a6e0df02226c6bea4c55ab2a50fb7c4c2d1b
2010-01-17 18:30:26 +01:00
Juan RP e52a17db81 mapping_shlib_binpkg: add physfs shlib.
--HG--
extra : convert_revision : d0149ee3f9b7563bdbf23593acd1b82ecfe38f76
2010-01-17 18:06:09 +01:00
Juan RP 8077fd7472 shutils: bump copyright year for touched files in 2010.
--HG--
extra : convert_revision : 967ce0c8f98299db161ccb746a9e633ca0457640
2010-01-17 08:50:36 +01:00
Juan RP 5f94abb06a shutils/buildvars_funcs: don't set useless vars in the chroot.
--HG--
extra : convert_revision : b75790e760fe12b2ac1d1f8dbc9c01aa3683e416
2010-01-17 08:47:14 +01:00
Juan RP eeeebb5915 shutils/metadata_scripts: do not create empty INSTALL/REMOVE scripts.
--HG--
extra : convert_revision : 149185cfd371a88802cc4e05c06fbe006b7cc006
2010-01-16 06:13:12 +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 dec6b4651e shutils/build_funcs: "custom-install" pkgs can use do_build() func.
That means that you can now build "custom-install" build_style
packages in two stages, one for building and one for installation.

--HG--
extra : convert_revision : 4fd76075a1a0bd173854272437c6ca3b263a6f62
2010-01-16 00:04:40 +01:00
Juan RP e7791982ec mapping_shlib_binpkg.txt: add some glibc stuff.
--HG--
extra : convert_revision : a3c76756ad51e45010ca117bf01c062f70404c68
2010-01-15 19:25:05 +01:00
Juan RP 0432bdf228 mapping_shlib_binpkg.txt: add xfsprogs-libs shlib.
--HG--
extra : convert_revision : daccb7bf23e4f6ebdb21fac5c3c705c41e9fce20
2010-01-15 05:03:36 +01:00
Juan RP ae9fe929a4 shutils/pkgtarget_funcs: don't exit if pkg is already installed.
--HG--
extra : convert_revision : 3f7a084f70f9cfb65e4db28f478b0a44b2083d2d
2010-01-15 00:15:39 +01:00
Juan RP 6f5aa28a94 shutils/builddep_funcs: install from source if binpkg failed.
--HG--
extra : convert_revision : 2d902d3ccaf92fdc42d3be0b789c16412da516f1
2010-01-15 00:14:29 +01:00
Juan RP 0cab41b261 shutils/chroot: sync groups list with shadow pkg.
--HG--
extra : convert_revision : 0fb123e3e4400ff278c26a98b657ff349cb0f93a
2010-01-14 18:52:14 +01:00
Juan RP 3cdafeb9ca Added initial support to install binpkgs to resolve builddeps.
if XBPS_PREFER_BINPKG_DEPS is set in xbps-src.conf, the local binpkg
repo in XBPS_PACKAGESDIR will be used to install binpkgs.

To use this feature you'll need xbps utils >= 20100114 from head.

--HG--
extra : convert_revision : 7317e0e2741997007e81ed478f819c36e4858e5d
2010-01-14 17:45:41 +01:00
Juan RP 6a31389aa3 udev: add new libudev{,-devel} subpkgs, bumprev.
--HG--
extra : convert_revision : 46a690a7dc90fc74e16adbfc5575d6382f02a13e
2010-01-14 16:58:23 +01:00
Juan RP f29a2b53d4 shutils/metadata.sh: reset {sgml,xml}_{entries,catalogs} for subpkgs.
--HG--
extra : convert_revision : 491a636c86b6c5baa720f616e76a21e3a45f28a3
2010-01-14 16:24:40 +01:00
Juan RP 3e96d1aa00 thunderbird: sanitize deps, remove libsqlite3.so. Bumprev.
--HG--
extra : convert_revision : 881951d686bc19b5d3acf767c7f213d77bd46e53
2010-01-13 16:09:03 +01:00
Juan RP f0af23b62e Added xfce4-sensors-plugin-0.10.99.6 build template.
--HG--
extra : convert_revision : 98babdb3d55e32a22be21818f7d23da0dc8599c7
2010-01-12 21:50:37 +01:00
Juan RP 2f9c35c258 mapping_shlib_binpkg.txt: add libsensors shlib.
--HG--
extra : convert_revision : 1c2cb71d62d8a3c83261a83126a1df10c9f90e7a
2010-01-12 20:26:53 +01:00
Juan RP 69129ed89c mapping_shlib_binpkg.txt: added libsysfs shlib.
--HG--
extra : convert_revision : 13a9dac3b8b22b8b3a279d21072bcbbdb8d932c7
2010-01-12 14:33:39 +01:00
Juan RP 6090e4f97b sylpheed: sanitize deps, bumprev.
--HG--
extra : convert_revision : e7e158298970dd866aa1ada1275154ddba731702
2010-01-12 12:16:43 +01:00
Juan RP 9a35cefb11 mapping_shlib_binpkg.txt: add all vlc related shlibs.
--HG--
extra : convert_revision : 7c3eb2b261ebb3a3ce862cf8eea071a2c22a37c6
2010-01-12 12:01:31 +01:00
Juan RP 9d087a2119 configure_funcs.sh: skip python-module pkgs.
--HG--
extra : convert_revision : 7da164a93545c7f5dc8cc160a69e461cd70aae2f
2010-01-11 17:58:52 +01:00
Juan RP 9290042b07 mapping_shlib_binpkg.txt: add all xfce4 related shlibs.
--HG--
extra : convert_revision : 0f42956ee1f8f7dd96692b3c550c3e2a9281bc69
2010-01-11 15:46:02 +01:00
Juan RP 836cb9c9a8 mapping_shlib_binpkg.txt: correct some entries.
--HG--
extra : convert_revision : e9b7dc8ec7b2066768cdba861a1a299995e90d4f
2010-01-11 02:03:52 +01:00
Juan RP 6d1b9cdc99 mapping_shlib_binpkg.txt: add all xorg related shlibs.
--HG--
extra : convert_revision : bf733ef7712fc8e2cf99683085d9ab39442eca49
2010-01-11 01:59:06 +01:00
Juan RP 0e5c0a0bbe xbps-src: added code to verify required pkg rundeps.
Every pkg containing shared libs must register them in
common/mapping_shlib_binpkg.txt, this is where the code looks
for transforming required libs to required binpkgs.

The code will also report if a required rundep is missing from
pkg run_depends array and will suggest to add some lines to
the package template.

--HG--
extra : convert_revision : 2d26d45b8e8f62218473abdbed7cc7aab7074e28
2010-01-10 17:09:23 +01:00
Juan RP cf604ea6ca common_funcs.sh: add msg_*_nochroot funcs.
--HG--
extra : convert_revision : cd4750816d89848c7496b564536a56a86f2ab978
2010-01-10 14:34:07 +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 c18153b92c Add $create_wrksrc for use in templates.
If set the specified wrksrc will be created and its distfiles will be
extracted into it.

--HG--
extra : convert_revision : c6b0ff2634a9f764d45fcdd97ecee5d32c8a7ace
2010-01-04 16:05:13 +01:00
Juan RP 1667c062b8 Fix conditionals for $build_wrksrc.
--HG--
extra : convert_revision : c85c8bed3cf76b909ae08b40bb73e9585e9656dc
2009-12-30 22:33:30 +01:00
Juan RP 9b74f9ebc8 Added new var "build_wrksrc" for use in templates.
This var sets a relative path to $wrksrc that is used to
configure/build/install a package.

--HG--
extra : convert_revision : 690f4d435f3d4e6a9228f7f5f09ecf8b490a273a
2009-12-30 22:16:33 +01:00
Juan RP 925e22e0f9 shutils/make-binpkg: reset noarch for subpkgs.
--HG--
extra : convert_revision : dec3deb9321b1689b79a6d9035f947cd15088ca5
2009-12-27 16:48:27 +01:00
Juan RP 1e8ba0a3ef shutils/chroot: copy host /etc/localtime if found.
--HG--
extra : convert_revision : d3961bbaa2b8fd51d59d5ccd4e2023b2cf31a60a
2009-12-24 01:10:08 +01:00
Juan RP 26c9441b87 extract_funcs: always extract all distfiles into builddir.
--HG--
extra : convert_revision : 0ba3269604f8d0059fda5a36c30eac2d7e17d6c3
2009-12-23 15:41:58 +01:00
Juan RP 465f9229c8 python-module: enable configure and build stages.
--HG--
extra : convert_revision : 0f12cbd184a51cae91f580be3e51c285e4de5c7a
2009-12-23 02:07:11 +01:00
Juan RP a267c68cbb helpers/python-module: set prefix to /usr.
--HG--
extra : convert_revision : 2d0ddde369fa4f4e69a183e9ee7a41beb7cb50be
2009-12-23 02:06:45 +01:00
Juan RP 5d95da2067 metadata.sh: fix scripts in subpkgs, add shadow rundep if $system_accounts set.
--HG--
extra : convert_revision : 80e31c482ea3fd6c3ed91a6758a09c54820efcd5
2009-12-19 04:58:25 +01:00
Juan RP a88cee9039 make-binpkg: also add symlinks to dirs!
--HG--
extra : convert_revision : 75d65479ff0f7c59b8dbfbe92ed158018458966b
2009-12-19 04:57:39 +01:00
Juan RP 780381e8ae extract_distfiles(): recognize .tar.xz distfiles, reorganize code.
--HG--
extra : convert_revision : 18cc1457f76ddbaadfec8557ab36bd2a67bcff03
2009-12-13 13:38:53 +01:00
Juan RP 4c2cc8b588 Add a trigger to (un)register system user/groups.
The following vars can be used for this:

- system_accounts="foo blah"
- foo_homedir, foo_shell, foo_descr, foo_groups.

--HG--
extra : convert_revision : bc7d002e00abc5c84f83a3716a8ecf97f9c9ff24
2009-12-11 12:03:21 +01:00
Juan RP af1b82c40a Update triggers to use passed args, use /bin/sh -e.
Bump xbps-base-files to 0.30.

--HG--
extra : convert_revision : 6158c0bed798e097ba75c902a0be2498e3361e02
2009-12-11 07:23:49 +01:00
Juan RP 1a7a23a4cc extract_distfiles(): after extracting if $wrksrc doesn't exist, create
it.

--HG--
extra : convert_revision : b72bf0188c83e9a676448ba5da3ca1b25c4df493
2009-12-06 01:46:32 +01:00
Juan RP d27595922c Added a new "preserve" var for build templates.
When a package has this defined, its files won't be removed after
a removal or upgrade process. This should be used in a few cases,
mostly for the kernel pkg to always preserve a working kernel+modules.

--HG--
extra : convert_revision : 03b19d1df2b029b6671865072b4d9529b0b86aa4
2009-12-02 03:20:26 +01:00
Juan RP c077559a89 Improve build templates by not having to set ${triggers} in some cases.
There's no need to update triggers in the following cases:
 * Packages installing stuff into /usr/share/applications.
 * Packages setting $gtk_iconcache_dirs.
 * Packages setting $font_dirs.
 * Packages setting ${sgml,xml}_entries.

--HG--
extra : convert_revision : 11c74b41f8cf474e9bf4dbb961b1aa9c6f6540bf
2009-12-02 01:55:51 +01:00
Juan RP c6d8fa2eba reset_tmpl_vars: add missed font_dirs.
--HG--
extra : convert_revision : 25993a79cd7a0ed9d70bd094f707a193a3fbf0b8
2009-11-30 20:45:42 +01:00
Juan RP 0194df5512 xbps-src: fix properly refusing to install installed pkgs.
--HG--
extra : convert_revision : e8013bdb452c482331b19bed2199c58fb79f43fc
2009-11-26 23:59:25 +01:00
Juan RP 5ecfdb4c2f xbps-src: refuse to install a pkg already installed.
--HG--
extra : convert_revision : dae07c3aa547ac13bc955dea44049f31242c02ed
2009-11-26 23:33:45 +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 a94b2511d0 shutils/make-binpkg.sh: cleanup while creating unfinished binpkgs.
- If creating the binpkg fails remove the file, the same if
  SIGINT is caught.

--HG--
extra : convert_revision : 113ce6580cc514c791835d87bf572a566b3341f8
2009-11-23 10:50:18 +00:00
Juan RP faed7daa5c shutils/chroot.sh: run prepare_chroot before anything else!
--HG--
extra : convert_revision : 0ca996d5cca9028b33bdbb49c7078c9443e592ad
2009-11-23 06:32:42 +00:00
Juan RP dbb02a1930 Kill run_template(), use setup_tmpl() instead.
--HG--
extra : convert_revision : 6aaf4f637d28f476e88c05ee8608e418642a01fa
2009-11-23 05:30:04 +00:00
Juan RP 5c2f6d0982 xbps-src: remove cross-compiler stuff, won't work.
--HG--
extra : convert_revision : b1cb584d15bceca0b84adfc5f688facf6fe978a2
2009-11-23 02:21:32 +00:00
Juan RP ff49f2b52a shutils/metadata.sh: fix multiple inclusion of subpkg templates.
--HG--
extra : convert_revision : 2a1d8c9996d1790817c672e66293be3b63480768
2009-11-23 02:13:21 +00:00
Juan RP 16808930aa xbps-src/shutils: remove unused $origin_tmpl stuff.
--HG--
extra : convert_revision : de50b832bdd8fc64c1a94856248e749eafac84c9
2009-11-23 02:12:38 +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 3c58e3ad40 shutils/builddep_funcs.sh: conditionalize info msg.
--HG--
extra : convert_revision : 54d778eab5904fcda0a0d0e506b00f0ee046cbaf
2009-11-19 17:56:27 +01:00
Juan RP 5ddea61b22 Don't strip off binaries in pkgs with noarch set.
--HG--
extra : convert_revision : 962dcb897e2f6074631a358cd0c3ef5bbb6f3b14
2009-11-09 03:43:01 +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 8c89fbd90b Fixed launchpad #474467 bug.
Make xbps-base-chroot depend on bash and use it for the chroot
environment. Depending in host's bash wasn't a good idea...

--HG--
extra : convert_revision : dfff2287dec5c3fb64725e601f70fe4a2ab2db98
2009-11-05 17:51:26 +01:00
Juan RP f4a2a9aebe builddep_funcs.sh: use $XBPS_CMPVER_CMD.
--HG--
extra : convert_revision : 079d2d36a9fd7454ec6f4e53a4f917b7f92334a3
2009-11-05 14:26:15 +01:00
Juan RP faf1d22b22 builddep_funcs.sh: fix local var def.
--HG--
extra : convert_revision : 5066c52062d1dff62a97662f0d78bd0bdd40fd79
2009-11-02 00:25:50 +01:00
Juan RP a1a9d65822 builddep_funcs.sh: remove unused func, wrap long line.
--HG--
extra : convert_revision : 28a65da6438a2b756be93f7c9d9574aba9d417a2
2009-11-02 00:22:40 +01:00
Juan RP 9c72819434 pkgtarget_funcs.sh: fix a comment.
--HG--
extra : convert_revision : d1b5fe808705b449eb9b9ece303b8a108ad94d26
2009-11-02 00:22:05 +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 e2b7c462c1 shutils/metadata.sh: use xbps static bins.
--HG--
extra : convert_revision : cc7d591b7913eb7a301dc3fce0a59f29c54ccd88
2009-10-29 16:35:22 +01:00
Juan RP 22774572da xbps-src: use the xbps static bins.
--HG--
extra : convert_revision : 7b8f360971f28668dae1032fccdc5819bafe5054
2009-10-27 16:52:40 +01:00
Juan RP ef3da70478 xbps-src: build binpkgs compressed with xz by default.
- Added two new options for xbps-src.conf:
    XBPS_COMPRESS_CMD by default set to xz.
    XBPS_COMPRESS_LEVEL by default not set.

Change these options to override the behaviour.

--HG--
extra : convert_revision : cbf096e3ff8c290ec0dfd96e5e7cf81f82cbf26a
2009-10-20 15:19:09 +02: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 de15937c98 shutils/make-binpkg.sh: make 'build-pkg' target build all subpkgs.
--HG--
extra : convert_revision : 9b1f6d0dcbf65550e393d00eb3bea8939a644055
2009-10-20 10:06:02 +02:00
Juan RP 72554fbe8a xbps-src/shutils/chroot.sh: fix path to the shutils.
--HG--
extra : convert_revision : 7d06e6083358b1cbfd6733989d966e2a5a417bf0
2009-10-18 11:31:56 +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