Commit Graph

56 Commits

Author SHA1 Message Date
Juan RP
abc9819a60 xbps-src: simpler way to error in pkgs with only_for_archs. 2011-11-13 17:19:48 +01:00
Juan RP
3289d5699d xbps-src: redo only_for_archs check. 2011-11-13 10:06:22 +01:00
Juan RP
886ae5e721 xbps-src: return not exit in previous. 2011-11-12 19:37:51 +01:00
Juan RP
726bb3ef93 xbps-src: don't error out on pkgs that set only_for_archs, exit gracefully. 2011-11-12 17:46:25 +01:00
Juan RP
9bda824de0 xbps-src: new func dependency_version() to return pkg+a[pb]i_depends. 2011-11-11 15:58:40 +01:00
Juan RP
f5dd7aa666 xbps-src: deprecate keep_empty_dirs, warn when an empty dir is removed. 2011-11-09 16:25:11 +01:00
Juan RP
ceabb62f9a xbps-src: new "make_dirs" var for the mkdirs trigger. 2011-11-09 15:18:39 +01:00
Juan RP
5a2cc5b5bd xbps-src: infrastructure changes required for "nonfree" keyword in tmpls.
- The chroot target now execs masterdir/bin/xbps-shell to set up correct envvars.
- 2 pkgs are now in nonfree repo: adobe-flash-plugin and jre.
- Renamed some vars in xbps-src to be in uppercase, notably XBPS_MACHINE.
- make-repoidx target now creates the index for all "known" directories specified
  via XBPS_PACKAGESDIR: XBPS_MACHINE, noarch, and nonfree/XBPS_MACHINE.
2011-11-08 11:56:17 +01:00
Juan RP
3cc393402f xbps-src: new opt func: post_extract. 2011-11-06 09:34:44 +01:00
Juan RP
06dc1524eb xbps-src: remove last openrc refs in code. 2011-10-26 16:54:25 +02:00
Juan RP
d72f1530ff xbps-src: set_tmpl_common_vars: respect C(XX|PP)FLAGS and LDFLAGS from environment. 2011-10-25 11:40:05 +02:00
Juan RP
0bfacff19e xbps-src: make makejobs work again for tmpls with custom do_build(). 2011-10-25 09:59:04 +02:00
Juan RP
87c7b81d9b xbps-src: unset -v for vars, -f for funcs. 2011-10-24 21:21:23 +02:00
Juan RP
02278e964c xbps-src: always check if build_style is set before checking its value. 2011-10-24 20:18:16 +02:00
Juan RP
2fe805e161 xbps-src: reset do_fetch per template. 2011-10-24 20:13:02 +02:00
Juan RP
90204b7b28 xbps-src: revamped build_style.
By default now it's assumed that if $build_style is not set, the template
uses 'custom-install' build, .e.g do_{build,configure,install}.

If it's set, a helper with the same name with .sh extension will be sourced
to set do_{build,configure,install} phases.

The exception is "meta-template" which currently it must be set via
build_style, probably will change in the future.
2011-10-24 14:12:09 +02:00
Juan RP
f3e51e2e25 xbps-src: fix previous rofl. 2011-10-22 00:48:34 +02:00
Juan RP
dd612f06fd xbps-src: dont overwrite globals with local vars in Add_dependency. 2011-10-22 00:47:22 +02:00
Juan RP
68d05f7588 xbps-src: print pkgname if Add_dependency fails. 2011-10-22 00:37:45 +02:00
Juan RP
9f74307659 xbps-src: reset do_configure per template. 2011-10-18 09:22:33 +02:00
Juan RP
29a2dc40f8 xbps-src: reserve systemd_services var for templates. 2011-10-10 11:51:49 +02:00
Juan RP
aafb971991 xbps-src: code to handle new pycompile trigger. 2011-10-05 14:26:54 +02:00
Juan RP
07db31cb54 xbps-src: cleanup version/revision mess. 2011-07-18 16:25:18 +02:00
Juan RP
d9f155607c xbps-src: added strip_cmd variable, can be overriden per template. 2011-07-17 17:47:31 +02:00
Juan RP
a78e885a29 xbps-src: in setup_subpkg_tmpl() set SUBPKG for subpkgs. 2011-07-14 15:01:14 +02:00
Juan RP
47025ec4c6 xbps-src: setup main pkg in setup_subpkg_tmpl() if it's not a subpkg. 2011-07-14 12:47:16 +02:00
Juan RP
6058498069 xbps-src: added setup_subpkg_tmpl() to setup subpkg tmpls. 2011-07-14 12:30:29 +02:00
Juan RP
1cf57eab23 xbps-src: reserve "kernel_hooks_version" variable.
This variable can be used in templates to specify the kernel version
passed to the Vanilla kernel hooks in /etc/kernel.d/<target>.
2011-07-09 23:07:50 +02:00
Juan RP
f731f08540 xbps-src: for meta-templates always set no{extract,fetch}. 2011-07-07 18:07:08 +02:00
Juan RP
40f6852c62 xbps-src: handle correctly {C,LD,CXX,CPP}FLAGS envvars. 2011-07-06 13:36:59 +02:00
Juan RP
fae03c067e xbps-src: rename IGNORE_BOOTSTRAP_PKGS to BOOTSTRAP_PKG_REBUILD. 2011-07-06 08:28:34 +02:00
Juan RP
5355f32aca xbps-src: support building bootstrap pkgs in chroot with -D.
The base_chroot var has been renamed to bootstrap, to avoid conflicts
with the base-chroot pkg. So now you can rebuild any bootstrap package
if the masterdir is ready (base-chroot already) installed and
installation is only to destdir.
2011-07-06 08:16:56 +02:00
Juan RP
9b52e244c6 xbps-src: added -K flag to KEEP automatic installed deps, cleanups. 2011-07-04 19:07:08 +02:00
Juan RP
141c0ab3ba xbps-src: only process broken_as_needed in one place. 2011-07-04 10:56:35 +02:00
Juan RP
e17baedf00 xbps-src: improve C{,PP,XX}FLAGS and LDFLAGS settings. 2011-07-04 10:24:52 +02:00
Juan RP
3bb5c279df xbps-src: source install_files.sh for v funcs in templates. 2011-07-02 17:48:48 +02:00
Juan RP
7984b39928 xbps-src: fix fetch phase with depends, performance improvements.
- The fetch phase *must* run after installing pkg dependencies,
  otherwise it could fail if we need them for fetching.

- Performance improvements for xbps-src. Only source shutils files
  at the start, not every time we use a function.
2011-07-02 17:04:08 +02:00
Juan RP
75d55258a5 xbps-src: added new funcs to install files into DESTDIR.
vcopy <files> <targetdir>
	Executes cp -a <files> ${DESTDIR}/<targetdir>

vinstall <file> <mode> <targetdir> <targetfile>
	4th argument is optional.
	Executed install -Dm<mode> <file> ${DESTDIR}/<targetdir>/<file>

vmkdir <dir> <mode>
	Executed install -dm<mode> ${DESTDIR}/<dir>
2011-07-02 10:49:22 +02:00
Juan RP
f190895d30 xbps-src::info_tmpl(): also print $homepage and $license. 2011-06-02 09:01:11 +02:00
Juan RP
6ed4e562cc xbps-src: add three new metadata objects in binary pkgs.
homepage (string): package upstream URL.
license (string): package licenses.
build_date (string): package build date in UTC.
2011-05-26 10:40:31 +02:00
Juan RP
5e9f331526 xbps-src: added "provides" var for use in templates.
This will add support for virtual packages in XBPS; will be implemented
in the following days.
2011-01-26 13:37:37 +01:00
Juan RP
2a31f296ac xbps-src: improve the 'info' target. 2011-01-11 17:01:23 +01:00
Juan RP
e6abf71b04 xbps-src: disable -Wl,--as-needed if $broken_as_needed is set. 2011-01-10 12:02:08 +01:00
Juan RP
2168077d11 xbps-src: added new var 'system_groups' for pkgs requiring new system groups. 2010-12-28 11:23:33 +01:00
Juan RP
81cad50a1e xbps-src: do not return error if $wrksrc doesn't exist in the 'clean' target. 2010-12-23 20:39:54 +01:00
Juan RP
ae3c15cb59 xbps-src: added a new var for templates "dkms_modules".
It will be used by packages that will install DKMS modules.
2010-12-23 14:29:38 +01:00
Juan RP
3da3783333 xbps-src: improve msg_* funcs and update all callers. 2010-12-20 00:22:12 +01:00
Juan RP
722db61ea2 xbps-src: improve how patches can be applied.
1) $patch_args can be used if all patches need special args other than "-Np0"
   (set by default).
2) If the $PATCHESDIR/series file exist, it will specify how the patches
   will be applied, in that order.
2010-11-03 15:56:37 +01:00
Juan RP
f85dba88f3 xbps-src::tmpl_funcs: add two comments for BUILD_32BIT. 2010-10-31 01:40:23 +02:00
Juan RP
71e5c38598 xbps-src: added XBPS_LDFLAGS into the configuration file.
This is to specify common LDFLAGS settings for all packages, by default
it's set to '-Wl,--as-needed' to avoid linking extra libraries into
the binaries. This helped to find such cases.
2010-10-29 10:23:25 +02:00