Commit Graph

1449 Commits

Author SHA1 Message Date
Juan RP c985e3974b kernel: add missing run_depends.
--HG--
extra : convert_revision : b601910b35d0bfe02bf520d927407fd013a0c772
2008-12-29 15:04:21 +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 5d3e701b3a Simplify xbps_get_dependency().
--HG--
extra : convert_revision : 2174be8c7c6386f403a3d2d96c8443629fa6db21
2008-12-29 07:01:01 +01:00
Juan RP e6590dd285 Rename binpkg's metadata script to prepost-action.
Because in theory any shell script or executable program might run,
and therefore the .sh extension is wrong.

--HG--
extra : convert_revision : 2f52520ccb04cdf1c414ee0ac6128e54d82c1d36
2008-12-29 06:50:59 +01:00
Juan RP b445b83fd3 Implement a stupid sorting dependency algorithm.
Dependencies are sorted with highest to lowest priority by the
following rules:

	- package has highest required count and priority.
	- package has highest priority.
	- package has highest reqcount.
	- everything else.

--HG--
extra : convert_revision : e661b90c38f6b6ca4d9559c0f88d1e4ea9df6c1e
2008-12-29 06:46:08 +01:00
Juan RP a1425f164d TODO: add new items.
--HG--
extra : convert_revision : 636dec5341d934ef18f0686a84d08e7e8a230a14
2008-12-28 11:38:40 +01:00
Juan RP 43543bbaa1 Split info related funcs from plist.c into its own file.
--HG--
extra : convert_revision : 70ec29b722ff5a702f64b525812bb2cbdad56a44
2008-12-28 11:22:58 +01:00
Juan RP 27de1e8a0c xbps_unpack_archive_cb: alloc buf from heap memory instead.
--HG--
extra : convert_revision : dfbcbfeab3e57b571388447565ca0156816e7a84
2008-12-28 11:13:17 +01:00
Juan RP a00a9a52b2 Use fdatasync() once the package has been unpacked.
At least there will be more chances that important data has been
written to disk.

--HG--
extra : convert_revision : 251af5da3f587cad976a9f5b903e5c3bdf5a229a
2008-12-28 09:48:18 +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 db1227ab76 libxbps: add fexec.c from NetBSD's pkg_install, with some minor mods.
--HG--
extra : convert_revision : 42a4231615746fdc21c826d7f5c1ccbe5ea7a6e2
2008-12-28 04:34:27 +01:00
Juan RP 74d63d15a5 cracklib: fix up $distfiles.
--HG--
extra : convert_revision : 17d9f7ccf1d1fee4e9734734ae1bb31ca29e5621
2008-12-28 02:22:00 +01:00
Juan RP c4a01548e8 kernel: update i386 .config for 2.6.27.9.
--HG--
extra : convert_revision : 63dac99c4a47293abc1baecd911010a551799aec
2008-12-28 02:11:44 +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 3aabbc6c8b Split repository functions from plist.c into its own file.
--HG--
extra : convert_revision : 581706f025dd210fc95d6e7c2f535ace786ea78f
2008-12-27 23:03:17 +01:00
Juan RP e5774555cf xbps-bin: simplify sanitize_localpath().
--HG--
extra : convert_revision : 223334822b80c6b11e63f1a34e7bfadb9115d5b9
2008-12-27 22:56:47 +01:00
Juan RP 926b1dfa4a Improve binpkg priorities, dynamically allocate mem, etc.
--HG--
extra : convert_revision : 479011aba6e9da4e5662137381e04042e762d428
2008-12-27 22:19:04 +01:00
Juan RP 86cdb7dae6 Install packages in order from highest to lowest priority.
--HG--
extra : convert_revision : 33be12f1d249bfd8f76d4f1cb8374dfc3f71df21
2008-12-27 17:26:47 +01:00
Juan RP 456c6a2763 depends: fix a leak while destroying the simple queue.
--HG--
extra : convert_revision : aabc102f55fd81bce8b007d209596d40576eb8a5
2008-12-27 16:37:43 +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 74e575f984 xbps-pkgdb: fix argv in sanitize-plist target.
--HG--
extra : convert_revision : 6e475309733ddf37970ff0506b15714a6996b652
2008-12-27 16:19:11 +01:00
Juan RP 11f0a2d4a6 xbps_get_pkg_name(): remove wrong comment.
--HG--
extra : convert_revision : 5a51c7fc6559347195e86d051aae72caafaf489d
2008-12-27 14:54:11 +01:00
Juan RP bd6d7b5502 plist: remove dup assertion.
--HG--
extra : convert_revision : 5c31c8841ce9e5d0c44e85bd1ac218efea59c8ce
2008-12-27 14:53:50 +01:00
Juan RP b2abe59c52 Added support to specify a root directory for xbps.
All xbps metadata files will go into <rootdir>/var/cache/xbps
and package data will go into <rootdir>/<data>.

--HG--
extra : convert_revision : 37007ac4f9b99b31465612a58749713b3164139b
2008-12-27 12:56:51 +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 f70be652d6 libarchive: start $short_desc with a capital letter.
--HG--
extra : convert_revision : 95422ae8961e3cd8bf390cd5d28949165b7d9f3d
2008-12-27 09:22:43 +01:00
Juan RP 55a2223657 xbps-base-dirs: add some required dirs.
--HG--
extra : convert_revision : d177f36e9586f1b2edd50386c02e4f934512f911
2008-12-27 09:21:26 +01:00
Juan RP b1ec791985 libarchive: fix $short_desc.
--HG--
extra : convert_revision : 32e9c0e47fd8de0852aa485dc8629690d41c3e3a
2008-12-27 09:10:20 +01:00
Juan RP 7be91b93b9 xbps-src: remove unneeded stuff.
--HG--
extra : convert_revision : 38d5fc74271e041cd9b4e529960ceeb482c6b51e
2008-12-27 08:51:40 +01:00
Juan RP 1ecc844eb4 xbps-base-{chroot,system}: depend on xbps-base-dirs.
--HG--
extra : convert_revision : d63fdd36b263e76c4b605811406df2d809946134
2008-12-27 08:44:37 +01:00
Juan RP 4d7a9ba2c8 Added xbps-base-dirs-0.1 template.
This package provides the directories required for GNU/Linux system.

--HG--
extra : convert_revision : c1b8b40c0718eeb15d75d60b33d7c23357a69dbc
2008-12-27 08:43:57 +01:00
Juan RP 3b702f33aa xbps-pkgdb: check that plist dict is there in version target.
--HG--
extra : convert_revision : 926363d195d0e4ce4fcd2e715823f43fd839561c
2008-12-27 08:43:13 +01:00
Juan RP 7f5a76ace3 TODO: add some new items for binary packages.
--HG--
extra : convert_revision : 2989daa26335b8a43fab576b0bfcb1489a6fc94e
2008-12-27 06:10:26 +01:00
Juan RP 11187893b6 README: libarchive is now required.
--HG--
extra : convert_revision : 7fed90ae0b8d5c8a05dd95f28f40624d594dd7e8
2008-12-27 05:25:38 +01:00
Juan RP 39c05644b3 gcc: mpfr is a runtime dependency.
--HG--
extra : convert_revision : 05d61207f70da060effc72d680a4d374217315ca
2008-12-27 04:30:28 +01:00
Juan RP 5d07bfa08d xbps-base-chroot: only depend in gcc.
--HG--
extra : convert_revision : 297c06ed20794f6d9e856d669e2e31a4c6ae9533
2008-12-27 04:30:14 +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 ccd4556853 depends: use a simple queue rather than a doubly linked list.
--HG--
extra : convert_revision : efd410c0f507b2d45fea9e38af34e89465c912c4
2008-12-27 02:14:09 +01:00
Juan RP 4f3c798f7a Add assertions where appropiate.
--HG--
extra : convert_revision : 3c7a6f556b1dfdf110f8759375a171a571717b22
2008-12-27 01:40:13 +01:00
Juan RP 613c9f25dd xbps-base-chroot: add all dependencies explicitly.
--HG--
extra : convert_revision : cdc3eadbdca3f3a5077af40f7e6d325eac4f784e
2008-12-26 14:22:00 +01:00
Juan RP 1741d889bc plist.c: fix a leak.
--HG--
extra : convert_revision : 171210c3073d197c2ae3f1f0545bc9b95a6a5484
2008-12-26 14:21:34 +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 cbe0046537 xbps-bin: add the 'list' target, and remove it from xbps-pkgdb.
--HG--
extra : convert_revision : 411b27525082c2ff7a766490b00056cc7c78d78f
2008-12-26 11:30:19 +01:00
Juan RP 159d9852a7 xbps-base-chroot: added missing bison and texinfo rundeps.
--HG--
extra : convert_revision : 56a44fc6f2a37c1f6b0d54d8de87ca4eee4c4ee9
2008-12-26 11:29:51 +01:00
Juan RP e9a6d741bd xbps-base-chroot: added missing run_depends, bump to 0.3.
--HG--
extra : convert_revision : 412d8918624fda889a17b9a9ea819d3ba458d6d2
2008-12-26 11:02:44 +01:00
Juan RP 5dd4d0ffac Added libarchive-2.5.5 template.
--HG--
extra : convert_revision : 9e0c7d0b7b5be39e2a1b07d3dc1577925d0e0ee6
2008-12-26 11:02:30 +01:00
Juan RP d309f54ff1 Register binary package if unpacking was successful.
--HG--
extra : convert_revision : ac984d640acb340e3a8db2ac07e41d15b1eea89e
2008-12-26 10:13:03 +01:00
Juan RP df5fc95e28 xbps-base-chroot: add explicit gcc dependency.
--HG--
extra : convert_revision : 6defecf97e0be460c96f991eaca2d2e80e890811
2008-12-26 10:12:08 +01:00
Juan RP 91f7df59cd Support for installing pkgs from multiple repositories.
--HG--
extra : convert_revision : fc8a430e71d202aa9e7560b921669f62f1947ae1
2008-12-26 04:36:51 +01:00
Juan RP f8d7e7f66f bzip2: add missing run_depends.
--HG--
extra : convert_revision : 4145f4474aa969ecd1a11defc91ed41ca56ac18b
2008-12-26 04:36:24 +01:00