Commit graph

58 commits

Author SHA1 Message Date
Juan RP
688accec67 xbps-src: added -V flag to print code version, add new obj into pkg metadata for that. 2011-11-09 20:58:42 +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
4767136430 xbps-src: make sure that pkg metadir is created with 0755 perms. 2011-11-09 11:16:12 +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
13a3b27a7a xbps-src: transform invalid chars in virtualpkg.d files. 2011-10-29 17:29:48 +02:00
Juan RP
5acd6fca97 xbps-src: always check if triggers are required. 2011-10-29 12:33:32 +02:00
Juan RP
148f02d804 xbps-src: only create metadata INSTALL/REMOVE scripts if it's really required. 2011-10-28 11:57:22 +02:00
Juan RP
15f01ebf76 xbps-src: create dynamically virtualpkg plist files. 2011-10-26 16:54:26 +02:00
Juan RP
06dc1524eb xbps-src: remove last openrc refs in code. 2011-10-26 16:54:25 +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
05a7a4fabb xbps-src: error out ASAP if writing metadata fails for any reason. 2011-10-22 07:12:18 +02:00
Juan RP
29a2dc40f8 xbps-src: reserve systemd_services var for templates. 2011-10-10 11:51:49 +02:00
Juan RP
e659993ffb xbps-src: make pycompile_{dirs,module} independent of sourcepkg. 2011-10-05 14:29:06 +02:00
Juan RP
e4e0d9a825 xbps-src: workaround link target creation metadata.
busybox readlink -f doesn't output the target file if it doesn't exist,
where coreutils one does... simply use readlink without -f for now.
2011-07-31 09:38:10 +02:00
Juan RP
9fd74f3cf5 xbps-src: erm fix a wrong part from previous. 2011-07-18 18:52:49 +02:00
Juan RP
cfb09f2d9f xbps-src: remove unnecessary variable assignments. 2011-07-18 18:50:23 +02:00
Juan RP
07db31cb54 xbps-src: cleanup version/revision mess. 2011-07-18 16:25:18 +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
f2ee328ee0 xbps-src: don't skip creating metadata for bootstrap subpkgs in chroot. 2011-07-08 09:48:09 +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
6166c5ebc6 xbps-src: revert 8271950e94.
This broke info files dir handling because empty dirs are removed
*after* metadata code is executed. So back to previous and known way.
2011-06-25 18:36:10 +02:00
Juan RP
8271950e94 xbps-src: when compressing info files, check if /usr/share/info exists. 2011-06-24 21:39:12 +02:00
Juan RP
205d066e7c xbps-src: another way to get the target of symlinks. 2011-06-14 15:26:15 +02:00
Juan RP
670dc453e2 xbps-src: (metadata.sh): if readlink -f returns nothing try without -f. 2011-06-04 20:37:55 +02:00
Juan RP
1bcd94905c xbps-src: update pkg metadata files.plist "links" array with a new object "target".
The "target" object should point to the target file for the symlink. Will be
used by an upcoming xbps utils version.
2011-05-31 16:39:02 +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
2168077d11 xbps-src: added new var 'system_groups' for pkgs requiring new system groups. 2010-12-28 11:23:33 +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
f2bd4e603b xbps-src: handle files with spaces and other characters. 2010-12-14 16:34:05 +01:00
Juan RP
ceefb18bff xbps-src: multiple improvements to messages and phases.
- Prefix all messages with 'Package 'pkgname (version)': ..." to really
  understand what's going on. Add more messages in some stages...
- Do not run pre/post_{configure,build,install} or do_{build,install} stages
  if they were executed successfully in the past.
2010-05-14 00:07:47 +02:00
Juan RP
22774084ab xbps-src: always create logs for configure/build/install stages in $wrksrc.
Fixed -C and install-destdir in the chroot, $# wasn't consistent :-)
2010-05-07 12:25:24 +02:00
Juan RP
6d01070826 The 'essential' object metadata was removed long ago, fully remove it.
--HG--
extra : convert_revision : d110ecf59b07e84c6930d1212702b67cc4a4112b
2010-04-29 05:20:36 +02:00
Juan RP
1874cbadda shutils/metadata: return if required stuff fails.
--HG--
extra : convert_revision : c8225a2a9ace45bbc7eed5b309e26336ce94f9ae
2010-04-22 12:06:16 +02:00
Juan RP
b0c64c181b shutils/metadata.sh: use find(1) -follow.
--HG--
extra : convert_revision : 1815c225aab07ca970d14f1340439d67fee2d88a
2010-04-21 15:29:23 +02:00
Juan RP
5d9675e435 shutils/metadata.sh: use find and readlink rather than find -L.
--HG--
extra : convert_revision : 489747f192448a175f24cee7762a51e2568a1b54
2010-04-21 11:54:14 +02:00
Juan RP
94c0200541 Reset some vars in subpkgs.
--HG--
extra : convert_revision : cfe73e71aa363f5d297660925cd7b29e731f4951
2010-04-12 19:07:24 +02:00
Juan RP
2f5d1187a3 shutils: prepare for upcoming "$conflicts" support.
--HG--
extra : convert_revision : 021b9ea71ef7dbd8bcdef844a9e1379613db88d3
2010-03-08 10:52:55 +01:00
Juan RP
259d7f0ce7 shutils/metadata.sh: if xbps-uhelper sanitize-plist fails, return error.
--HG--
extra : convert_revision : 949a19e83aff79731b2d315669114568fe4f81aa
2010-01-28 19:05:03 +01:00
Juan RP
bc01681ea7 shutils/metadata.sh: replace '><' in maintainer obj with &[gl]t;
--HG--
extra : convert_revision : 6de3978f0cc7442bec1fc08523387884ae8809c9
2010-01-27 03:21:53 +01:00
Juan RP
740ed4e896 shutils/metadata: fix incorrect syntax in subst $replaces values.
--HG--
extra : convert_revision : f57eaffc05e99b021aeb77c213b8ca13121b978e
2010-01-20 15:10:23 +01:00
Juan RP
8077fd7472 shutils: bump copyright year for touched files in 2010.
--HG--
extra : convert_revision : 967ce0c8f98299db161ccb746a9e633ca0457640
2010-01-17 08:50:36 +01:00
Juan RP
f29a2b53d4 shutils/metadata.sh: reset {sgml,xml}_{entries,catalogs} for subpkgs.
--HG--
extra : convert_revision : 491a636c86b6c5baa720f616e76a21e3a45f28a3
2010-01-14 16:24:40 +01:00
Juan RP
0e5c0a0bbe xbps-src: added code to verify required pkg rundeps.
Every pkg containing shared libs must register them in
common/mapping_shlib_binpkg.txt, this is where the code looks
for transforming required libs to required binpkgs.

The code will also report if a required rundep is missing from
pkg run_depends array and will suggest to add some lines to
the package template.

--HG--
extra : convert_revision : 2d26d45b8e8f62218473abdbed7cc7aab7074e28
2010-01-10 17:09:23 +01:00
Juan RP
5d95da2067 metadata.sh: fix scripts in subpkgs, add shadow rundep if $system_accounts set.
--HG--
extra : convert_revision : 80e31c482ea3fd6c3ed91a6758a09c54820efcd5
2009-12-19 04:58:25 +01:00
Juan RP
4c2cc8b588 Add a trigger to (un)register system user/groups.
The following vars can be used for this:

- system_accounts="foo blah"
- foo_homedir, foo_shell, foo_descr, foo_groups.

--HG--
extra : convert_revision : bc7d002e00abc5c84f83a3716a8ecf97f9c9ff24
2009-12-11 12:03:21 +01:00
Juan RP
d27595922c Added a new "preserve" var for build templates.
When a package has this defined, its files won't be removed after
a removal or upgrade process. This should be used in a few cases,
mostly for the kernel pkg to always preserve a working kernel+modules.

--HG--
extra : convert_revision : 03b19d1df2b029b6671865072b4d9529b0b86aa4
2009-12-02 03:20:26 +01:00
Juan RP
c077559a89 Improve build templates by not having to set ${triggers} in some cases.
There's no need to update triggers in the following cases:
 * Packages installing stuff into /usr/share/applications.
 * Packages setting $gtk_iconcache_dirs.
 * Packages setting $font_dirs.
 * Packages setting ${sgml,xml}_entries.

--HG--
extra : convert_revision : 11c74b41f8cf474e9bf4dbb961b1aa9c6f6540bf
2009-12-02 01:55:51 +01:00