Commit Graph

23 Commits

Author SHA1 Message Date
Juan RP
af58fd7c8e shutils: reorganize stuff for $build_style, add "python-module" style.
If build_style=python-module, $XBPS_HELPERSDIR/python-module.sh will
run the do_install function.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091018071843-f3nv3rnhfzhngukp
2009-10-18 09:18:43 +02:00
Juan RP
22c40a2f91 Don't propagate $replaces value to subpkgs, use its own if defined.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091017031254-6zb0zhymwdhcu4na
2009-10-17 05:12:54 +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
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
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
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
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
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
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
4aac305105 Add some PHONYs to the install target in Makefiles.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090821091758-6am9fbkvy9doooef
2009-08-21 11:17:58 +02:00
Juan RP
c9d19c2da9 Fix installation of packages in the chroot due to previous
changes.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20090818175825-sazm2dea97y4m0ky
2009-08-18 19:58:25 +02:00
Juan RP
9680251382 Add shell utils required by xbps-src.
These files are moved from the GIT repository.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20090818153742-98s9y92f5m19l3c2
2009-08-18 17:37:42 +02:00