Commit Graph

37 Commits

Author SHA1 Message Date
Juan RP
e3ac7fd84c Fix build_src_phase().
--HG--
extra : convert_revision : 6cdb0f47c17e445bc3bef8ebe52221596059018d
2008-10-26 22:09:16 +01:00
Juan RP
fb77496cb9 Some changes for libtool transform and listfiles target.
It's possible now to specify the target on which libtool_fixup_la_files
will run on, if template doesn't use by default will run at post
install. Also some changes to the listfiles target to not only show
files.

--HG--
extra : convert_revision : fc0656e6504184b890e1096e5a158f29f54b414b
2008-10-26 06:50:52 +01:00
Juan RP
9447f6f738 Passing --prefix=/ is redundant, just use an empty value.
--HG--
extra : convert_revision : 314499d7133bee4bd805c379061afb0a382eb260
2008-10-26 01:43:48 +02:00
Juan RP
c658c03ba6 {set,unset}_build_vars are not needed in the chroot.
--HG--
extra : convert_revision : 9d6a23fdba12bc1a4ef04d7579b677fb79e64ae9
2008-10-26 00:44:31 +02:00
Juan RP
69ea8000e9 install_dependencies_pkg(): use grep -w to match exact pkgs.
--HG--
extra : convert_revision : 2d49492a5bc6f3525af5d3ced97cd77a3b805ce9
2008-10-25 23:31:12 +02:00
Juan RP
be392f9c9e Do not run fixup_la_files() if there's no libtool or ltmain.sh in
wrksrc.

--HG--
extra : convert_revision : b58add2a00c9b36a3f389a3a3ed4f1956ec34b5c
2008-10-25 04:57:53 +02:00
Juan RP
ffbd0ad5ae Reread config file and set vars in the chroot to get correct paths!
--HG--
extra : convert_revision : dbc4e06cf93ef92d12090a53be4270d720c88f9f
2008-10-24 10:09:42 +02:00
Juan RP
758eff37a8 Add another target: chroot. Use this to make stuff on it.
Also the helper has been renamed to just chroot.sh.

--HG--
extra : convert_revision : 9d21ca6e9eb55a31a21cb800450376d60cf3af40
2008-10-24 09:44:51 +02:00
Juan RP
ccce118103 When stowning a pkg, do not copy file with -f.
--HG--
extra : convert_revision : 9d99ad0b7b4f616e8681b24e858988842eb3a9d2
2008-10-24 08:49:49 +02:00
Juan RP
8e9465f816 Do not make libtool transforms in the chroot.
--HG--
extra : convert_revision : 4467323784c7e690b303ee2c278f8db36a102e1d
2008-10-24 05:20:12 +02:00
Juan RP
b0f9cd1ef7 xbps: misc changes to perform better in chroot target.
- Use masterdir path before system path, this is needed in chroot!
- Use system grep because before starting the chroot LD_LIBRARY_PATH
  has been configured and might fail.

--HG--
extra : convert_revision : 767a9fb94819ee85eab44096a0741b536e59763f
2008-10-24 03:34:50 +02:00
Juan RP
206a4e1485 Don't forget to unset base_package and add another pattern to
fixup_la_files.

--HG--
extra : convert_revision : f5ea720e905e7a1512560fb764a771f9641054b5
2008-10-24 00:55:51 +02:00
Juan RP
d987a000cc Remove pkg-config-transform helper, it's not useful right now.
--HG--
extra : convert_revision : 7c9627f3487c03ae21c1b4ca7682cffdb62808fb
2008-10-23 23:37:45 +02:00
Juan RP
0c2a5b90da Added file-4.26 template and make xbps-base-chroot depend on it.
Also allow packages to disable fixup_libtool_file() via
$no_fixup_libtool, it's enabled by default.

--HG--
extra : convert_revision : 5fd550379cc78d08c2131fa011ee0121422bbae4
2008-10-23 23:27:10 +02:00
Juan RP
b8e0a0f535 Also pass LDFLAGS as before.
--HG--
extra : convert_revision : 54e27f1de2235c3f9a920a34003f2dd94f530a5a
2008-10-23 18:32:11 +02:00
Juan RP
89f264e88c Massive changes to allow installing pkgs in a chroot.
Some changes include:
 - Xstow is not used anymore, files are copied into masterdir.
 - a new target install-chroot has been created.
 - a new meta-template xbps-base-chroot has been created required for
   the install-chroot target.
 - Removed XBPS_SYSCONFDIR, /etc is used by default.
Other changes that I cannot remember right now...

--HG--
extra : convert_revision : fb57d9dafb56aeb03cc935580172e075ce584fd5
2008-10-23 17:14:00 +02:00
Juan RP
e13b08218a Set and unset compilation vars in all phases not just configure.
--HG--
extra : convert_revision : 8260a0608d8e90720c27139c76b4bf70830da12b
2008-10-22 04:08:46 +02:00
Juan RP
28a5a070c1 Change autoconf pkgs to configure it with /usr or /.
This depends if a package uses $base_package, by default not set,
means the package will be installed into masterdir/usr, if set
will be installed into masterdir directly.

While here fixup binutils, gcc and glibc! I'm approaching to the point
on where I'll be able to chroot into masterdir and having working pkgs
installed.

--HG--
extra : convert_revision : be3c3e0d7368e7a1e1ef1c9add932aeeab82688d
2008-10-22 01:54:48 +02:00
Juan RP
ce4faacc60 Don't forget to set make_cmd if not set in install_src_phase().
--HG--
extra : convert_revision : 17ce248ae1de31b1c0a73b4cf584f2b7356befad
2008-10-21 06:43:29 +02:00
Juan RP
61adbd28db Added glibc-2.8 (tarball taken from archlinux).
While here add a new variable for templates: disable_ldflags.
If set LDFLAGS won't be used while building the package, it was
required by glibc which refused to link with a rpath set.

--HG--
extra : convert_revision : 14c547aa7470145c883ca982c517c50ca8f15fc5
2008-10-21 05:27:22 +02:00
Juan RP
99d5350b30 Major changes to not depend on cksum and db from NetBSD.
Two new utilities in C have been created:
	- xbps-digest: shows the SHA256 hash for a file.
	- xbps-pkgdb: handles dependency stuff via proplib.

Templates should use now $build_depends and change $checksum to be
a SHA256 hash. That means that I'm currently using xbps on Linux and
I lost interest on NetBSD, perhaps I'll add support for it in the
future.

Only git and its dependencies have been converted, as well as vim.

--HG--
extra : convert_revision : 53a7e030ca6b6d02bb6cd3e51d42b7d5702c1b57
2008-10-20 16:34:27 +02:00
Juan RP
bee2cfe2c2 Fixup info_tmpl now that $url is gone.
--HG--
extra : convert_revision : b79e598e34d9297e690ed130d28c99f404ad51e4
2008-10-16 06:59:32 +02:00
Juan RP
289b8130a2 If exists $wrksrc/ltmain.sh make libtool available.
--HG--
extra : convert_revision : bacfefa0436ac6c61f7958ac5a81f67b0ce0ea72
2008-10-16 06:31:40 +02:00
Juan RP
b3f4a90070 Do not set blindly 'prefix=...' in the install phase.
Rather if $make_install_prefix is not defined, use defaults.

--HG--
extra : convert_revision : be83ac6eefe4dce25e82f7c57a9063dd77e5b049
2008-10-16 06:18:25 +02:00
Juan RP
23a1318acd libtool: override shlib naming on NetBSD, as done in pkgsrc.
While here there's no need to override ltmain.sh, remove this block
from the xbps.sh script.

--HG--
extra : convert_revision : 76951b6f01e95e717a6f2cd8b36c1e3cfc9882fc
2008-10-16 05:22:04 +02:00
Juan RP
7c5b471ca0 Ignore fixup_tmpl_libtool if $pkgname = libtool.
--HG--
extra : convert_revision : 2c3cea2b0eda84ad4e7c79eb78af8acb7a41ad89
2008-10-16 03:29:19 +02:00
Juan RP
d45bdcbbfa xbps.sh: use configure_script if it's set in templates.
--HG--
extra : convert_revision : b10300a5b10ca2ba1bb0751733bd9820f9092b6c
2008-10-16 00:57:53 +02:00
Juan RP
9c31a76231 xbps.sh: remove $wrksrc/ltmain.sh before making the link.
--HG--
extra : convert_revision : 380e630bc66a54b08447bd0c636cec0c2cb93a08
2008-10-15 02:19:31 +02:00
Juan RP
abb748cf1e xbps.sh: add {sgml,xml}_entries vars into reset_tmpl_vars.
--HG--
extra : convert_revision : 7f2b11b0143040d90c22cfaf38bb059a7c36985c
2008-10-15 02:00:56 +02:00
Juan RP
4833911e22 xbps.sh: override all libtool scripts after configure.
--HG--
extra : convert_revision : 555b2d477c4e0691a8d1994ad7ee264c161e372f
2008-10-15 00:21:35 +02:00
Juan RP
105c647e3b xbps.sh: move fixup_tmpl_libtool to the configure phase.
--HG--
extra : convert_revision : aafb25725f51716896e3d32799571dd64e42981a
2008-10-14 18:44:31 +02:00
Juan RP
20691bb4b2 Add support to use another tar(1) command than the one in base.
A new variable may be used in templates, $tar_override_cmd.
This accepts a full path to the binary, note that dependency must
be added before using this.

--HG--
extra : convert_revision : fc2a20d8e0104152d624d355e077e2b4219a1b73
2008-10-14 09:27:25 +02:00
Juan RP
b52d064544 Major changes to support multiple distfiles in templates.
Each template now needs to use $distfiles that accepts the full
URL to download the distfile and old $extract_sufx is now merged
on it, but this must be separated by the '@' character. Example:

distfiles="http://www.foo.org/blah-6.2@.tar.gz
http://www.foo.org/blob-1.0@.tar.bz2"

If distfiles contains multiple files defined, $wrksrc is now
mandatory.

--HG--
extra : convert_revision : 1c3fa35f148af8323ce3cbcf5732104960de6bc4
2008-10-14 07:52:29 +02:00
Juan RP
cdf77cd1ad pkgfs.sh: misc bugs fixed and performance improvements.
- Fixed a bug with XBPS_MAKEJOBS that only worked for the first package.
- Fixed a bug in dependency handling when pkg A depends on B, and
  package C that needs B wasn't installed, so it was skipped.
- Improvement to not source the template file if it's currently sourced.

--HG--
extra : convert_revision : 27b7e95b2360258db8da92063f173da7558be9ba
2008-10-13 10:28:51 +02:00
Juan RP
0f17943ee8 xbps.sh: fix runstuff by removing a spurious char!
Also unset some vars ASAP if they aren't used anymore.

--HG--
extra : convert_revision : 055ecc0e1dced7ed2d123d11d9e8baf4074e8b61
2008-10-13 09:08:10 +02:00
Juan RP
cfa18b4416 Massive renaming, pkgfs is now called xbps.
Also known as "xtraeme's build package system".

--HG--
extra : convert_revision : 119840ceae588fef65d6dcab651f607f54fa0be6
2008-10-13 07:32:05 +02:00
Juan RP
b947d143c7 Massive renaming: pkgfs is now called xbps.
Also known as "xtraeme's build package system".

--HG--
extra : convert_revision : 3c3a8604ca064e711631bcc09be5276ec11f90b2
2008-10-13 07:29:38 +02:00