Commit graph

119 commits

Author SHA1 Message Date
Juan RP
74ae00996d build_funcs.sh: remove unneeded test.
--HG--
extra : convert_revision : f2b78c9bf3efea3d1d24bd3790435aa573890e40
2009-03-12 23:41:46 +01:00
Juan RP
9ea500b7b0 binpkg: test for /usr/share/info dir, to fix subpkgs.
--HG--
extra : convert_revision : 162ec89e0943dc5b033fd1fee961cfc243cd82ba
2009-03-12 15:53:54 +01:00
Juan RP
53747489f0 Implemented support for running triggers with binpkgs.
Also the following changes were made:
 * Added an info-files trigger, to (un)register info files.
 * xbps-base-dirs: it's responsible to install triggers on destdir.

--HG--
extra : convert_revision : 8d707053616f38d2b5beef7cf28e1bc4a66812b8
2009-03-12 11:16:08 +01:00
Juan RP
5862f23e6f Remove $postinstall_helpers and $tar_override_cmd.
These were used in the NetBSD days... not now.

--HG--
extra : convert_revision : 3c3f4de397389cec1ea1326f39bded7a93173c39
2009-03-12 10:33:48 +01:00
Juan RP
4c963b2828 binpkg.sh: ignore pkgs without destdir, exclude the flist file.
The flist file is used by the xbps-src command, but it's not
really useful for binpkgs.

--HG--
extra : convert_revision : 5fb31a80b8a571ba49e79507ae0206d0703e8e73
2009-03-12 03:00:36 +01:00
Juan RP
df492b077c Remove $make_env. It's not really useful anymore.
--HG--
extra : convert_revision : f75462dfe24b62d3a278c722302b760ca4b475d2
2009-03-12 00:47:01 +01:00
Juan RP
84222395b8 Provide some vars for use in template's targets.
These new vars are DESTDIR (by default XBPS_DESTDIR/pkgname-version),
SRCPKGDESTDIR (XBPS_DESTDIR/sourcepkg-version) and FILESDIR
(XBPS_TEMPLATESDIR/pkgname/files).

This simplifies packages that used them.

--HG--
extra : convert_revision : 287ea7128cb5df19870ca7aff0a3b8f99a11d63a
2009-03-11 06:31:56 +01:00
Juan RP
68056f60f8 Check if dependency is installed to be sure before proceeding.
--HG--
extra : convert_revision : e5ed948a484a1ed0c3e8a28759e60e59f4b60dbd
2009-03-10 14:45:05 +01:00
Juan RP
58a9a990e9 Fix printing of correct dependency name of dependencies.
--HG--
extra : convert_revision : d4a99cfc35c4409f7c848a89506236fdb88a9946
2009-03-10 14:01:02 +01:00
Juan RP
33edcb122b Provide FILESDIR to template files and use it in some pkgs.
This always points to ${XBPS_TEMPLATESDIR}/${pkgname}/files.

--HG--
extra : convert_revision : ef23025694cb95d508d511ab52bf67c66ead9d61
2009-03-08 01:31:24 +01:00
Juan RP
5c8d0c01b3 Make (un)set_build_vars() work inside of the chroot.
This has the effect to really pass the XBPS_C(XX)FLAGS values from
xbps.conf to the packages built there.

--HG--
extra : convert_revision : 87ea9f6a755ba3f60a095391d2b0069ab22cb742
2009-03-03 19:06:27 +01:00
Juan RP
aefe26d30c binpkg.sh: do the files processing in 3 steps: 1- links, 2- files and 3- dirs.
--HG--
extra : convert_revision : d68324f39af442b089e71083316c16bc4690a4e2
2009-02-28 17:31:47 +01:00
Juan RP
eac2af8da4 binpkg.sh: bzip2 pass doesn't need privs.
--HG--
extra : convert_revision : eea83d4204e016a78ec573d1b409e06ecb51c72a
2009-02-26 18:18:51 +01:00
Juan RP
a00ae944b5 Rename prepost-{inst,rm} to just INSTALL/REMOVE.
Some other changes related for this:
 - Modify binpkg.sh to always insert the INSTALL script at head of
   the archive, and appending files after it.
 - Modify binpkg.sh to compress binpkgs with bzip2 -9 to save some bytes.

--HG--
extra : convert_revision : b651b944f11c48dede1bbcea658182bf0984e8f3
2009-02-26 18:01:18 +01:00
Juan RP
a0ee2ee61b gcc-libgcc: set $install_priority to 50, just after xbps-base-dirs.
--HG--
extra : convert_revision : 02e61cff2e245e1f10a70bda321273ebb74ee9f5
2009-02-26 16:53:30 +01:00
Juan RP
7e225693c1 binpkg.sh: reset conf_files and keep_dirs for subpkgs.
--HG--
extra : convert_revision : 866665f3a7db612b80ea765c9308e6754b467921
2009-02-25 07:31:29 +01:00
Juan RP
cbf73d8362 chroot.sh: set LANG=C for the environment to avoid perl warns.
--HG--
extra : convert_revision : b38ba3d7f16e498507db597e63695704373c9957
2009-02-25 07:05:50 +01:00
Juan RP
0b7cdfa1d0 Split pkgs required by xbps-base-system, structure based in Fedora.
--HG--
extra : convert_revision : 151da3637a2745b786251e067bb924c3fd98118b
2009-02-25 06:15:20 +01:00
Juan RP
e0030bc0fe Split pkgs required by xbps-base-chroot, as it was made in Fedora.
- Added an additional shell func to add full (build/run), build
  or run time dependencies to packages. An optional third parameter
  can be used to specify other version than the one set in
  the depends file.
- Use a "depends" file in package directory to specify minimum
  required ABI/API version for a package, so that there's no need
  to set the version all the time in pkgs.
- Updated bash to 4.0.

--HG--
extra : convert_revision : 1aa0ce32d4bdc2cd371eac19ae7bcff2c986b6b3
2009-02-24 07:13:11 +01:00
Juan RP
6966c9ffde Don't remove files on destdir/${sourcepkg}, they are used in some pkgs.
--HG--
extra : convert_revision : 94b882a792908aa874e30067160f51b1033c492b
2009-02-20 07:05:34 +01:00
Juan RP
04a0248ef1 Add support to install/remove subpkgs independently of its sourcepkg.
--HG--
extra : convert_revision : 5495fb6558fa71dd843f54981313df233236ac50
2009-02-20 06:25:35 +01:00
Juan RP
b225a1dc30 Added support to build subpackages from a single source.
proplib has been converted to see how it works.

--HG--
extra : convert_revision : dfcd1f547884108d69682e9e62b4aacfa431cc83
2009-02-20 04:10:55 +01:00
Juan RP
b8b01d0e77 binpkg: create files.plist in pkg metadata with some objects.
--HG--
extra : convert_revision : d501c665d146d19648f0a9353d69f9d34f7616be
2009-02-19 14:11:30 +01:00
Juan RP
08630476d6 builddep_funcs.sh: always look if there are more deps.
--HG--
extra : convert_revision : 16b1ab98622f45bab123a388640dad14fc410f6c
2009-02-18 20:10:11 +01:00
Juan RP
12d65cc30c Move run_template() to tmpl_funcs.sh.
--HG--
extra : convert_revision : b5dcd681b3faacde90a783a0c13493600f36a5a8
2009-02-18 01:32:42 +01:00
Juan RP
028cacdd2a Add support to set automatic install flag for srcpkgs.
--HG--
extra : convert_revision : fa0e103ce44a4758858124ecd63aea0dec400720
2009-02-18 00:28:35 +01:00
Juan RP
cc162c2691 Improve printfs in previous.
--HG--
extra : convert_revision : 7d1c36a09fffddfea73cc18f0d45198f2424276e
2009-02-17 17:40:44 +01:00
Juan RP
3b3d788c7c Improve the build deps strategy, this is now pkgsrc-alike.
The list of build dependencies is shown, and if any of them
has deps, the list is shown for it and so on. This has the effect
of installing the deps in the order that they were specified
in the template, at the expense of a minor performance ratio.

--HG--
extra : convert_revision : 231ed52da19201bdeab65d0f9db78ab83b51e010
2009-02-17 17:15:12 +01:00
Juan RP
ab0db1fe93 binpkg-genindex: use xbps-pkgdb getpkg{name,version}.
--HG--
extra : convert_revision : 810596b7704c63c571e5c3282635a5a954090ca8
2009-02-17 14:09:15 +01:00
Juan RP
0bb1780f8e shutils: use xbps-pkgdb getpkg{name,version}, remove item from TODO.
--HG--
extra : convert_revision : 69927380509b3bc6b3f80ee3cbc44953bdd2b729
2009-02-17 13:58:34 +01:00
Juan RP
a679f70c55 stow_pkg: don't copy XBPS_PREPOST_INSTALL into masterdir.
--HG--
extra : convert_revision : 64e69cc303e6561a250796028810d89d88682573
2009-02-16 21:50:02 +01:00
Juan RP
82b01212ad Fix previous when building base_chroot pkgs.
--HG--
extra : convert_revision : c46fd838deeb92ac89047bd32a9a0bef421e2aa5
2009-02-16 19:04:23 +01:00
Juan RP
1802997b0b xbps-src: require sudo to build packages.
The reason is that fakeroot can't read files that have restrictive
perms and you'd have to change them before the src installation, and
restoring them at binpkg pre-installation.

I prefer to avoid all this and build the pkg with appropiate perms.

--HG--
extra : convert_revision : 8a5086049ab575962913eda0cb2ace0c211b97f1
2009-02-16 17:36:21 +01:00
Juan RP
6b6162bb44 Added support for using noarch packages.
--HG--
extra : convert_revision : a96166ddecb6efe65d35283f25e06a944cc4a038
2009-02-16 00:39:41 +01:00
Juan RP
870addbffc Add a "noarch" var. Used by packages that aren't arch specific.
--HG--
extra : convert_revision : 263bd27542e1f2e65f119eb307d37d7b7ade3236
2009-02-15 23:57:15 +01:00
Juan RP
902fb71aa6 Changed XBPS_META_PATH to /var/db/xbps rather than /var/cache/xbps.
--HG--
extra : convert_revision : 4e10af13ce05f060ebdfa8ca4e767a269c46b17f
2009-02-14 23:21:12 +01:00
Juan RP
ee309578f7 binpkg-genindex.sh: add a filename-size obj.
--HG--
extra : convert_revision : b41d98800583d7d1681a1181a1fe67976e3975c8
2009-02-14 05:34:24 +01:00
Juan RP
4a4f70b005 xbps-src: add -u flag, if used with fetch update $checksum in tmpl file.
--HG--
extra : convert_revision : a11fe9147498fb4a60ecb2633493d2d4789c288d
2009-02-09 01:01:14 +01:00
Juan RP
72455c2f45 tmpl_vars: add XORG_SITE var.
--HG--
extra : convert_revision : 1a769e159d45d55164623f66956445ee61999432
2009-02-09 00:33:57 +01:00
Juan RP
5ab39d53f5 chroot: fix path to xbps.conf after last changes.
--HG--
extra : convert_revision : 99fb318fcbbbb701d699bb35644f38dde1580a92
2009-02-05 17:08:06 +01:00
Juan RP
aa02e8b2ab chroot: don't set root:root in all files, will be addressed differently.
--HG--
extra : convert_revision : aa60b18e3b642fa1a1d3f94579dff977e5a5523d
2009-02-04 22:02:15 +01:00
Juan RP
bcf9dff398 Rename automatic patches to just "install.diff" or "build.diff".
--HG--
extra : convert_revision : 93ca1b8d614e75cc1df7e12735bde31b04c2e9d1
2009-02-04 03:50:36 +01:00
Juan RP
7c97804022 binpkg: use -L flag for find(1) when creating flist.
This is required for the links to appear in.

--HG--
extra : convert_revision : 6951b6245f4c7106cd4db37f9b9365aac4023403
2009-02-04 03:41:06 +01:00
Juan RP
97b2fa55e2 chroot: do not overwrite some files installed by the shadow binpkg.
--HG--
extra : convert_revision : 104a16f5e01c2ec161da3991130dda276f2f798b
2009-02-03 23:54:52 +01:00
Juan RP
fa2748d9b2 Reorganize the templates directory for possible future changes.
Now every template uses its own directory. Patches, prepost* files
and other related stuff are stored there.

--HG--
extra : convert_revision : bbc529ef161d9a59fe13a1d54ac058f77ea05845
2009-02-03 21:35:57 +01:00
Juan RP
6c252d43d4 Split installation/removal parts in prepost-action scripts.
There are two scripts that can be used now:
	- prepost-inst: for pre/post actions at installation.
	- prepost-rm: for pre/post actions at removal.

--HG--
extra : convert_revision : 5e054758f549f5c81693b825795fbb36e2d5513a
2009-02-03 17:32:51 +01:00
Juan RP
b2fe705924 When writing the flist in pkg metadata, sort files before dirs.
--HG--
extra : convert_revision : bf341c59954e02e320986d259521643beb25f291
2009-02-02 20:40:06 +01:00
Juan RP
73e510f2aa builddep_funcs: fix a wrong conditional.
--HG--
extra : convert_revision : c4f0b0a47239e7449730473456636a8dfe32c3c3
2009-01-14 16:51:17 +01:00
Juan RP
869b38b9fa Make sure to run tmpl_vars for a template.
--HG--
extra : convert_revision : 2146c1d7492dd27490501f0fe836fdb19e792548
2009-01-14 16:49:40 +01:00
Juan RP
d8e8d3f6ab xbps_remove_pkg(): continue even if $destdir is not there.
Binary packages won't provide $destdir anyway.

--HG--
extra : convert_revision : b803c58c359e7e0f321d5855faa7ac2377b05364
2008-12-29 16:47:57 +01:00
Juan RP
c0549cd845 binpkg: fix the priority object.
--HG--
extra : convert_revision : 478d30796865eaa479571fb3834a0e9e2a309b5c
2008-12-29 15:54:33 +01:00
Juan RP
78b036f346 Add the prepost-action script into the binary package if exists.
--HG--
extra : convert_revision : 3d1db89a9347d423550984e7ff5c941d0d7b6cbe
2008-12-29 09:26:49 +01:00
Juan RP
4148b5e4b6 Added support for pre/post installation script with binary packages.
For now all is handled in a script "prepost-action.sh" in package's
metadata directory, with a target in the shell script.

--HG--
extra : convert_revision : 93ed92d9fbb12939c751354cff464cc097379520
2008-12-28 08:44:01 +01:00
Juan RP
6fa40b9e39 extract_func.sh: initialize a var to avoid an error.
--HG--
extra : convert_revision : 56fcbc667243b142c2a0bb55fc164f56254e468b
2008-12-28 00:23:13 +01:00
Juan RP
68941a9a31 Introduce $install_priority for use in templates.
A higher number in this var will make the binary package to
be installed before other with lower priority. By default, all
packages have a 0 priority. xbps-base-dirs uses 100, because it
needs to be one of the first installed packages.

--HG--
extra : convert_revision : 81a88b676d2ae3180914612371619f19e1765d02
2008-12-27 16:20:54 +01:00
Juan RP
091a8bf618 chroot: xbps-base-dirs provides required dirs now.
--HG--
extra : convert_revision : 5db8d2d8a74933cb16a4656922dbd6f8e6cbc79e
2008-12-27 10:09:52 +01:00
Juan RP
f6f7288c48 Make it possible to install 'custom-install' pkgs without distfiles.
Make xbps-base-{chroot,system} install the lib -> lib64 symlinks on
x86_64.

--HG--
extra : convert_revision : 9404d50c8a15dcd700df49aace1bbd105749f00a
2008-12-27 04:21:38 +01:00
Juan RP
13a05a18b9 builddep_funcs.sh: minor cosmetic change.
--HG--
extra : convert_revision : 19dd349edd4906ca781a21a0e9ea2e88c86ff196
2008-12-26 11:30:47 +01:00
Juan RP
b303ff28a6 binpkg.sh: only continue building the binpkg if the packing was ok.
--HG--
extra : convert_revision : 4a568775cf91bdde816f2b2f7e12ee0f95a06828
2008-12-22 06:43:41 +01:00
Juan RP
fbcdbde679 install_funcs.sh: a meta-template needs $destdir.
--HG--
extra : convert_revision : 176760b9d895a32c95f48078a28ca85598de95a3
2008-12-22 06:27:34 +01:00
Juan RP
0cd947bff0 chroot.sh: don't hardcode path to xbps-src anymore.
--HG--
extra : convert_revision : bbaf586b398a1c359c8ebee085af7627ca9336e9
2008-12-22 05:29:26 +01:00
Juan RP
b13563dbfd Always write pkg metadata on install, not just when stowning.
--HG--
extra : convert_revision : b16be22a9acf12005caca53978c1366463b7fff6
2008-12-22 03:48:58 +01:00
Juan RP
bf10932be1 genindex: $XBPS_DIGEST_CMD is no more.
--HG--
extra : convert_revision : a7945d1dc038b95cca840df61c44682a4e205058
2008-12-22 03:37:21 +01:00
Juan RP
e4f9ab62d8 chroot.sh: don't mount unexistent dirs.
--HG--
extra : convert_revision : 51610bead1446f198b5a47596aeef3b82ae2c400
2008-12-22 03:16:16 +01:00
Juan RP
0bb6db28c2 stow_pkg(): remove wrong test.
--HG--
extra : convert_revision : 3a819bc1026c9ed718a0e6d7c6fe1d71cd0883e3
2008-12-22 03:06:15 +01:00
Juan RP
db45574f24 Add /usr/local/sbin into PATH.
--HG--
extra : convert_revision : c5315db73a191482858c52d5dc54f3e264ada219
2008-12-22 02:23:52 +01:00
Juan RP
6ee35486bf To use xbps now 'make and make install' is required.
--HG--
extra : convert_revision : 976738f26daf1ccd2101ca2325e1e517d98e71cb
2008-12-22 02:14:40 +01:00
Juan RP
9f7bfc772a stow_func.sh::unstow_pkg(): dont play with flist in metapkgs.
--HG--
extra : convert_revision : be2fa0ab535da930ce86824e9fceef786e55a541
2008-12-22 00:51:34 +01:00
Juan RP
e7cf222ac9 Reorganize the tree splitting stuff on its own dir.
--HG--
extra : convert_revision : 87473fb499c42deaf0285f5559dc1cd8d67ab436
2008-12-21 23:57:02 +01:00