Commit Graph

3766 Commits

Author SHA1 Message Date
Juan RP
3ddf276437 Fixed bug #453422: "xbps shouldn't depend on LZMA utils"
Do not link to libzmadec, rather to liblzma provided by xz.
Pointed by ojab in the bug, thanks!

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091017030101-1cw1b11l923hy8cw
2009-10-17 05:01:01 +02:00
Juan RP
058b882037 Fix previous, so that only tries to replace packages if they
are installed! heh

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091017025959-4k8ciftjglkbao91
2009-10-17 04:59:59 +02:00
Juan RP
cacb34147a Added support to replace packages with another one. Package metadata
uses an array of strings that lists the packages that should be
removed before new package can be installed.

In the build templates one can use: replaces="foo foo-blah foo-libs".

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091017022643-rdyrp9kvmx3m0p0h
2009-10-17 04:26:43 +02:00
Juan RP
4ef0fbcada Multiple changes to xbps-src and shutils:
* Added XBPS_FETCH_CMD to xbps-src.conf, this will be used to fetch
  distfiles. Please note that it will be copied to the chroot, so
  it should be statically linked or with only libc required.

* Removed libtool_func.sh and associated vars, it's unneeded currently.

* Added keep_empty_dirs, keep_libtool_archives and nostrip. By default
  all empty dirs and libtool archives are removed, and executables and
  libraries stripped, respectively. One can use set the var in a build
  template to change the behaviour.

* Explain in README what are the requirements to build XBPS.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091017005836-uifiof32ndy0wmd8
2009-10-17 02:58:36 +02:00
Juan RP
f7689695d1 xbps-bin/install.c: use only a function for install/update/autoupdate.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091016153732-gbcr30fahvveu2u9
2009-10-16 17:37:32 +02:00
Juan RP
cb1f10d415 xbps-bin: don't initialize repolist data unless we want to update.
xbps_find_new_pkg: always initialize repolist data.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091016150435-wpjfd453hpwr5k89
2009-10-16 17:04:35 +02:00
Juan RP
becfac0c08 vars.mk: add DEBUG option.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091016141419-ngopy0o6sv8uuxab
2009-10-16 16:14:19 +02:00
Juan RP
651a4e6254 xbps-bin/xbps_install_pkg(): only sort pkg deps in update mode.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091016135513-w4yc413l3i1pwdkm
2009-10-16 15:55:13 +02:00
Juan RP
a60fde85a5 xbps_find_new_packages(): do not treat missing packages in repo,
or packages with less than or equal version installed as errors.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091016134654-14a5x7b6ra9a632s
2009-10-16 15:46:54 +02:00
Juan RP
e1f2a8b7bd xbps-bin: multiple fixes to update packages.
* Fix 'autoupdate' target to look for new packages in ALL repos, not
  just the first one that has the package.
* Fix 'update' target to work correctly.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091016133157-asvkv5jb6i9q2ibe
2009-10-16 15:31:57 +02:00
Juan RP
d771383442 xbps_requiredby_pkg_add: ignore existing entries.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091016113656-386rsnozjjlz500k
2009-10-16 13:36:56 +02:00
Juan RP
865b06be5d Build xbps-{bin,cmpver,digest,pkgdb,repo} as static, and install them
as foo.static.

Updated README to note the new requirements for it. It will be used
to reduce the number of dependencies when building packages in
the chroot.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091015222234-360i67zychjge3nh
2009-10-16 00:22:34 +02:00
Juan RP
6798be2f58 Makefile: remove $(SHAREDIR) in uninstall target.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091015222115-gosfgymdsk4gswk0
2009-10-16 00:21:15 +02:00
Juan RP
cf04a48a1d Remove support for "keep_dirs", it won't be used.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091015142937-sbf72osvlulzq7d6
2009-10-15 16:29:37 +02:00
Juan RP
c069ff4d49 shutils/install_funcs.sh: always remove unwanted perl installed files,
even in packages that use do_install(). Wrap a long line.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091015142511-d2m9zfpd18um4bm1
2009-10-15 16:25:11 +02:00
Juan RP
1febd85f42 xbps-pkgdb, shutils: use red/bold, red/yellow and bold for
msg_error, msg_warn and msg_normal respectively.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091015141731-9ci2bnvslqe5gq7j
2009-10-15 16:17:31 +02:00
Juan RP
a344468556 shutils: remove support for $configure_shell.
There is not much gain supporting this...

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091015141609-0g7h8y18aw1i9arx
2009-10-15 16:16:09 +02:00
Juan RP
d75b195143 shutils/builddep_func.sh: use msg_* funcs.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091015140610-nps2cphr0zvxvltg
2009-10-15 16:06:10 +02:00
Juan RP
e056e23be1 shutils: improve how the patches are applied.
Now all patches must be placed in PATCHESDIR (templatesdir/$pkgname/patches)
and must be in -p0 format. If other args are required, a same file with
.args extension should be created with specific args inside of it.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091015140224-x5n026mdhwb4pvyq
2009-10-15 16:02:24 +02:00
Juan RP
9296d25811 shutils: return proper error in {do,pre,post}_* stage funcs and use msg_error.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091012220713-k3j00b7x3jk5s3we
2009-10-13 00:07:13 +02:00
Juan RP
cf7b3caebe shutils: cross-compilation.sh is in XBPS_SHUTILSDIR not XBPS_HELPERSDIR.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091012203507-oqqkp2izfsl570gp
2009-10-12 22:35:07 +02:00
Juan RP
c6d3868b8b shutils: remove tmpl_func.sh, moved to the xbps-templates repo.
xbps-src: added XBPS_COMMONVARSDIR that sources all .sh files in
	  setup_tmpl(), this replaces tmpl_funcs.sh.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091012203056-rtay2drhrwak4ldk
2009-10-12 22:30:56 +02:00
Juan RP
8918861000 shutils: added "nofetch" variable to be used in build templates.
When it's set, a custom do_fetch() function must be used to fetch
sources. $distfiles and $checksum will be ignored in that case.
This makes it able to fetch sources from git, svn, bzr, etc.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091012102321-zqp4r783uo1s4sek
2009-10-12 12:23:21 +02:00
Juan RP
06d451e557 Remove 'automatic' flag while installing via xbps-src, it's not very
useful and won't be implemented.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091010155336-uyjgohik8y1y21bz
2009-10-10 17:53:36 +02:00
Juan RP
dd2baebdec Fix bug #447944: xbps build failure (gcc 4.4.1)
unsigned int and size_t do not match in size in x86_64, so use
unsigned int in functions expecting this type.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091010141337-vfoiay5nx8edl0ux
2009-10-10 16:13:37 +02:00
Juan RP
c0959e503f shutils/install_funcs.sh: fix inverted test for $libtool_no_delete_archives.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091010081719-f6mx907ma5rtitux
2009-10-10 10:17:19 +02:00
Juan RP
53de9e531b lib/unpack.c: fix a NULL pointer deref when checking configuration
files exists or not while unpacking.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091010064437-9121w162sy8ilpim
2009-10-10 08:44:37 +02:00
Juan RP
5a26facf51 shutils/chroot.sh: only rebuild ldso cache once at creation time.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091008185250-s3io3s6l2fyr2y0t
2009-10-08 20:52:50 +02:00
Juan RP
3d8fb79e94 xbps-bin: add support to check integrity of all installed packages,
through "xbps-bin check all".

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091005224237-plr75i3wveirhu4p
2009-10-06 00:42:37 +02:00
Juan RP
06f70e182c xbps-bin: rename the 'files' target to 'show-files' for consistency.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091005220659-l3rdop78ju04mi9v
2009-10-06 00:06:59 +02:00
Juan RP
042084b306 xbps-bin: do not mark package as broken if the any task in the check
target failed, just print the info.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091005220111-m2xkbbeupq2v7ccn
2009-10-06 00:01:11 +02:00
Juan RP
c0c9a8dfc0 shutils/make-binpkg.sh: reset revision while building binpkgs, so that
the archive is created with the correct version.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091005211238-b3oa8cf2xyd2bn7c
2009-10-05 23:12:38 +02:00
Juan RP
1afb358221 Fix bug #443436: endless loop if indirect dep missing in repo.
Make xbps_find_deps_in_pkg() return ENOENT when missing deps are found.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091005195748-nhhsgldgg3hwfcz7
2009-10-05 21:57:48 +02:00
Juan RP
f02dd4ccb4 xbps-bin/install.c: improve some printfs.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091005190430-z70qmlhx4ca93jk6
2009-10-05 21:04:30 +02:00
Juan RP
550e33d7b2 xbps-src.conf: change XBPS_MASTERDIR to $XBPS_DISTRIBUTIONDIR/masterdir.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091005143706-fqu8jep7d7ukbb6p
2009-10-05 16:37:06 +02:00
Juan RP
1c076967d4 Pass the ${UPDATE} argument to the triggers, to support restarting
services while upgrading packages.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091002152419-qo4i4qpp8ba8qxqd
2009-10-02 17:24:19 +02:00
Juan RP
ca2dd0f873 While upgrading a package, print informative line about old package
being removed.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091002152314-hig1qoobs42rvx9z
2009-10-02 17:23:14 +02:00
Juan RP
53cb406513 Pass another argument to the REMOVE script to make the script
aware of package being upgraded or removed. Will be used later to
restart services while upgrading packages.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091002113833-x7nsur0g4ehyr5zq
2009-10-02 13:38:33 +02:00
Juan RP
e668ba5193 Fix #438201 "Upgrading essential pkgs results in duplicated reqby entries"
Always remove reqby entries while upgrading "essential" packages.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091001053542-amaw61ib23hy453n
2009-10-01 07:35:42 +02:00
Juan RP
c56e2931db Fix bug #439457 "Unpacking a package ignores correct perms"
Simplify logic and fix the mistake of pass-by-value vs pass-by-ref.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20090930162921-wfx9ze2v7rjrpmza
2009-09-30 18:29:21 +02:00
Juan RP
3df22522b9 xbps_configure_pkg: pass correct version to the post install script.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090827053150-j6wqvnjuhjs09r5t
2009-08-27 07:31:50 +02:00
Juan RP
10bd54adb4 Check if pkg INSTALL/REMOVE metadata scripts are executable rather than
readable, to ensure scripts can be executed.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20090825040559-nkkzvaf59r10asj7
2009-08-25 06:05:59 +02:00
Juan RP
fd5afa2efb xbps_file_chdir_exec: check if /bin/sh is executable rather than readable.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090825040429-7fbwxo2fao20w28n
2009-08-25 06:04:29 +02:00
Juan RP
10531d7d45 Fix xbps_configure_pkg() reporting old version when upgrading packages.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090825040302-azurxpyalot07j81
2009-08-25 06:03:02 +02:00
Juan RP
14c9886cfc When finding package orphans, only report those with "installed" state.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090822054123-1bud3ldgin5opbhc
2009-08-22 07:41:23 +02:00
Juan RP
59b1942617 Fix memleaks in xbps_show_pkg_deps() and xbps_show_pkg_reverse_deps().
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090822052256-tnf5s1od4oluhygp
2009-08-22 07:22:56 +02:00
Juan RP
6d84cde6f1 xbps-bin: add two new targets 'show-deps' and 'show-revdeps" to print
dependencies and reverse dependencies of a package, respectively.

'xbps-bin show' no longer prints the deps anymore.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20090821231219-n26o21xcxor46nk1
2009-08-22 01:12:19 +02:00
Juan RP
f6ac35e110 vars.mk: change default PREFIX to /usr/local and conditionalize
SHAREDIR based on its value.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20090821104759-q010qay9i2dtoo3y
2009-08-21 12:47:59 +02:00
Juan RP
8d4cc875ea xbps-src: when stowning a package, do not copy metadata files.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090821095541-833o0srxzybgg0z7
2009-08-21 11:55:41 +02:00
Juan RP
ecfa25833f Improve marginally configuring/purging all packages by looking at its
state in the object dictionary rather than opening and externalizing
the dictionary of every package.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20090821093126-0xw980x0pqtq59q2
2009-08-21 11:31:26 +02:00