Commit graph

1766 commits

Author SHA1 Message Date
Juan RP
a96fa98786 xorg-server: update to 1.6.1.
--HG--
extra : convert_revision : fe10c62d0e966a882f3a3febc700f12b0a9d095d
2009-04-16 00:45:03 +02:00
Juan RP
848a0920d1 less: update to 429.
--HG--
extra : convert_revision : 1a6fe6e16f5d772d9d119ce7f3d1744f2360600a
2009-04-16 00:38:16 +02:00
Juan RP
8c6fe3d746 klibc-udev: add missing rules into the initramfs-tools hook.
--HG--
extra : convert_revision : c9fa316dc7de97d092aee5b276686783f712cae2
2009-04-13 05:21:27 +02:00
Juan RP
394dfb9c1e rcorder: only build with -Wall and -Wextra.
--HG--
extra : convert_revision : ada319665138be88b0dfc9c5670b8389f605fc4a
2009-04-11 16:21:00 +02:00
Juan RP
504e123044 Build code with -Wconversion.
--HG--
extra : convert_revision : ac2ea951cae1e739335e428e0fc4d0f90045b77d
2009-04-11 16:15:06 +02:00
Juan RP
bd3484fa6b Build code with -Wcast-qual, -Wcast-align and -Wsign-compare.
--HG--
extra : convert_revision : d489ad995bb69850cba5a352f3ac85b74a54b5cf
2009-04-11 15:52:32 +02:00
Juan RP
ae1fb7b50c lib/Makefile: run ranlib(1) against the static lib.
--HG--
extra : convert_revision : 269ad3844ef145e0a962f7424258135aa2f74cd1
2009-04-10 19:09:13 +02:00
Juan RP
565482ce3e m4: update to 1.4.13.
--HG--
extra : convert_revision : 75bc3da9f89a8a2377f034fcbd1a1fc72633e69d
2009-04-10 18:52:22 +02:00
Juan RP
15de6e8715 man-pages: update to 3.20.
--HG--
extra : convert_revision : a282c2f4a861a36a369a9f16b419dde2a158f91d
2009-04-10 18:48:40 +02:00
Juan RP
5e7c72d53f man-db: update to 2.5.5.
--HG--
extra : convert_revision : 6c282d8b618c2bc42cbe5e2bc12a69bfe8b8896b
2009-04-10 18:46:00 +02:00
Juan RP
db6b1526d4 lib/sortdeps.c: remove useless check.
--HG--
extra : convert_revision : f1fd20ffc9f77187173422e44aee1a3c369f96cb
2009-04-10 18:38:09 +02:00
Juan RP
c1bc7a6a3c lib/Makefile: fix install target.
--HG--
extra : convert_revision : 4ab223f606cac1d5d8b1baea93f87909c607829c
2009-04-10 18:37:41 +02:00
Juan RP
d0d45c2ea9 Install the static libxbps library.
--HG--
extra : convert_revision : ff19e2c3f10ac330c4364d40b036ea0bd50b87a8
2009-04-10 17:09:12 +02:00
Juan RP
f0bbfad2ae lib/depends.c: remove some extra unneeded checks.
--HG--
extra : convert_revision : f7acb4754894690941a2087bc09b011c50ea3add
2009-04-10 01:46:05 +02:00
Juan RP
01be3b5920 Fix xbps_prepare_pkg() in pkgs without deps.
--HG--
extra : convert_revision : 9be76ef482e54bfbd7e6a038a504f8225aa89cfe
2009-04-10 01:36:22 +02:00
Juan RP
ad0bdbc375 kernel: (i386-dotconfig) build some acpi modules, remove trace opts, etc.
--HG--
extra : convert_revision : b3e5307fa3189a30b4b2fa38eef150fabf03326f
2009-04-09 23:37:12 +02:00
Juan RP
a2ce888b97 udev: update to 141.
--HG--
extra : convert_revision : 6ffe63b6e975e60e30843ef56d6c09d066fe6eab
2009-04-09 21:16:54 +02:00
Juan RP
21dc41b4ce xf86-video-radeonhd: update to 1.2.5.
--HG--
extra : convert_revision : 801f0d0977339763ad5dcaf2c1a93bbb9d5043c1
2009-04-09 19:07:38 +02:00
Juan RP
41d9b9acb8 lib/unpack.c: use fsync(), there's not much difference with fdatasync().
--HG--
extra : convert_revision : 9632271e53f4d44890d711943642afddedf69e72
2009-04-09 18:43:00 +02:00
Juan RP
f0f53cb07e xbps-bin: use -f to bypass questions while installing/removing.
--HG--
extra : convert_revision : edefc4dbf4dbbcdac53579100732e77004a45463
2009-04-09 18:42:07 +02:00
Juan RP
58c6a31297 Define ARCHIVE_READ_BLOCKSIZE and use it rather than using magic numbers.
--HG--
extra : convert_revision : b8e6755400eb6f2bef0ea1eb25a258f9ed1714c2
2009-04-09 18:38:05 +02:00
Juan RP
053abca5ef Use glibc's sys/queue.h and remove the NetBSD local copy.
--HG--
extra : convert_revision : 2e6967a2666bcb7cd826293c03863890649f4c6d
2009-04-09 16:33:42 +02:00
Juan RP
288f3519c3 xbps-bin: check binpkg hash after asking the question.
--HG--
extra : convert_revision : c858349b4c9e52b75b12612677c583841cdcc926
2009-04-09 16:16:57 +02:00
Juan RP
ecd5d55f17 xbps-repo: added shell style match patterns for the 'search' target.
So you can do you now:

$ xbps-repo search '*'

and it will list all registered packages.

--HG--
extra : convert_revision : d65edb4be6a0d815410d215774acf9ebeb23fa49
2009-04-09 13:14:30 +02:00
Juan RP
1a26816aa3 xbps-repo: use list_strings_sep_in_array() for 'list' target.
--HG--
extra : convert_revision : 0f06fdb6172b0ef8e55af44037166508c4c9996b
2009-04-09 12:59:46 +02:00
Juan RP
6ff28f6d79 xbps-bin: fix a leak in install.c.
--HG--
extra : convert_revision : b333ca851cf33efe1f63af1637192552ff8f7de4
2009-04-09 12:47:17 +02:00
Juan RP
92d2087c7e xbps-{bin,repo}: print with correct indentation.
--HG--
extra : convert_revision : be65d8b98702e23eaeac6ff2adb2e726824b64f7
2009-04-09 12:24:15 +02:00
Juan RP
679117e9a9 xbps-bin: move (auto)remove code into its own file, use xbps_noyes().
--HG--
extra : convert_revision : 20398840d20154d90c7457b7318c651c513c1f72
2009-04-09 11:56:40 +02:00
Juan RP
3698644967 xbps-bin: use xbps_noyes() in the install/update targets.
Now it looks like this:

$ xbps-bin -r ~/blah install initscripts
Finding/sorting required binary packages...
Checking binary package file(s) integrity...

The following new packages will be installed:

  xbps-base-files-0.8_1 gcc-libgcc-4.3.3 glibc-locales-2.9
  ncurses-base-5.7 glibc-2.9 ncurses-libs-5.7 gawk-3.1.6 grep-2.5.4
  coreutils-7.1 sed-4.1.5 ncurses-5.7 kbd-1.15 findutils-4.4.0_1
  net-tools-1.60 rcorder-2009.01 minilogd-2009.01 dhcpcd-4.0.12
  bash-4.0 procps-3.2.7 udev-140_2 initscripts-2009.03_2

Total download size: 16M
Total installed size: 48M

Do you want to continue? [y/N]
...

--HG--
extra : convert_revision : e32a136ee882160637c1930d998c0f5ae3a6b108
2009-04-09 04:54:09 +02:00
Juan RP
aaf5f8fb40 Add some funcs from pacman: question(), yesno(), noyes() and strtrim().
--HG--
extra : convert_revision : 82fbbd28253b02968826bebe4252523c47903a49
2009-04-09 04:52:46 +02:00
Juan RP
f80e1753a8 Remove knowledge from the library to install packages.
The library is only responsible now to find all binary packages
from repositories, sort them and create a dictionary with all
details. The frontend (xbps-bin) provides support for this,
and this allows for more flexibility and removes some stuff
that didn't belong in the library.

While here implemented support to show total download/installed
size for all packages that are going to be installed.

Next step will be to implement user interactivity before
installing/removing/updating packages.

--HG--
extra : convert_revision : 858e9a89bc6a60b348435f2416a8af3ebb6ea5c9
2009-04-09 02:29:15 +02:00
Juan RP
acd07f61e3 Modify the INSTALL/REMOVE scripts to use predef vars and unneeded chroot calls.
--HG--
extra : convert_revision : dfd737c502bea327054ecff5bc1fa152db6e2009
2009-04-08 03:24:57 +02:00
Juan RP
201be83c73 shadow: enable group shadowed passwords at install and remove chroot calls.
--HG--
extra : convert_revision : 85eebfb288da88754b9d03e5a2a30cef3e29e12e
2009-04-08 03:24:02 +02:00
Juan RP
22f6b0eac7 triggers: there's no need to call chroot anymore.
--HG--
extra : convert_revision : cea0ba9863c0934d8d876801989947e03588d835
2009-04-08 03:23:09 +02:00
Juan RP
2ff413127b shadow: disable creating mailbox files and use /var/mail instead.
--HG--
extra : convert_revision : abd5e24ab085b0efbaf0c52f5afede8add835d48
2009-04-08 03:22:28 +02:00
Juan RP
e0ece941e0 Remove CWD as first argument to INSTALL/REMOVE scripts, it's unneeded.
--HG--
extra : convert_revision : ce8d9cbdb0a83748304ba25e53950385a9442b3f
2009-04-08 03:21:31 +02:00
Juan RP
32e81e7555 For INSTALL/REMOVE scripts use xbps_file_chdir_exec().
This will chroot() to rootdir and removes many chroot() commands
from those scripts.

--HG--
extra : convert_revision : 4845df1949996da1bcd2776fcc50c3d0a00b451b
2009-04-08 03:20:13 +02:00
Juan RP
fe27e6dc44 xf86-video-openchrome: needs libXvMC.
--HG--
extra : convert_revision : 7152068768d77297f508af2396f7f147735e0034
2009-04-08 01:45:29 +02:00
Juan RP
01020bf198 xorg-server: add some missing deps.
--HG--
extra : convert_revision : 9f649f87268409753956b401836776b547c41cae
2009-04-08 01:21:57 +02:00
Juan RP
3e9e342f74 Make xbps_file_chdir_exec() change root directory if /bin/sh exists.
If /bin/sh is not there, fall back to chdir(destdir) as before.

--HG--
extra : convert_revision : 7506a8db97346dbf45292e4c46b9d8ecc384162a
2009-04-07 22:54:34 +02:00
Juan RP
581e908793 xbps-src: fix 'build-pkg all' with pkgs with $revision set.
--HG--
extra : convert_revision : 866ef758ef96722676e575acebee1fe3be8a9df1
2009-04-07 20:13:55 +02:00
Juan RP
89841df22e chroot.sh: run prepare_chroot() in xbps_chroot_handler().
--HG--
extra : convert_revision : 83037adeb3c89aace0986ccf23ba87f624333346
2009-04-07 16:08:52 +02:00
Juan RP
06e6244f40 lib/install.c: return rv not 0 in xbps_install_binary_pkg_fini().
--HG--
extra : convert_revision : bd6a815ab8a17add0200a8693221c5def18642a1
2009-04-07 15:50:29 +02:00
Juan RP
bb3240e4ac Do not reuse requiredby objects while updating pkgs.
--HG--
extra : convert_revision : 1bc0a25601b6ff1c4cd83de4dcd775ffdee1e9a1
2009-04-06 17:00:52 +02:00
Juan RP
4b3adf1db3 xbps-pkgdb: check rval correctly for xbps_remove_pkg_from_file().
--HG--
extra : convert_revision : ae3f35ef7d01c84c5249554cbb08c5bbc63f17c8
2009-04-06 16:58:13 +02:00
Juan RP
625a77883c Make xbps_remove_pkg_from_* return int rather than bool.
--HG--
extra : convert_revision : 9f413873669b552a4d7a6e25e667fe5ff43f6a78
2009-04-06 16:39:14 +02:00
Juan RP
147a8af559 lib/sortdeps.c: wrap long line.
--HG--
extra : convert_revision : 8484a1a0eed376e1cd4e9af9917d42dab91d5ef1
2009-04-06 14:44:35 +02:00
Juan RP
ebf400f728 lib/depends.c: simplify store_dependency().
--HG--
extra : convert_revision : 83d806e199b0cc593a82a7f0d575994ea04277fd
2009-04-06 11:40:55 +02:00
Juan RP
3fca3406eb TODO: xbps-bin: implement shell style match patterns with fnmatch.
--HG--
extra : convert_revision : 39d27e30f4af3bb93c63c3eb0091040321bb8527
2009-04-05 15:19:15 +02:00
Juan RP
c49d324961 Use a single header (xbps_api.h) for defs and protos.
--HG--
extra : convert_revision : 45979550279f24dbb76e7fff8d0f7b9e76f59bce
2009-04-05 15:06:09 +02:00