Commit graph

45 commits

Author SHA1 Message Date
Juan RP b061a3665e Simplify even more by making msg_error() exit by itself.
--HG--
extra : convert_revision : bd27f0be7b00bef29b8ab4767273c7339ca91c10
2008-10-29 23:34:05 +01:00
Juan RP 5638a5a4e5 ANSI colors are not supported anymore.
--HG--
extra : convert_revision : d9e7bfcb963a0bf6dff276e8d15b0df22de24143
2008-10-29 19:43:29 +01:00
Juan RP 5a0aac4fd2 Added some ANSI colors for messages, may be disabled.
With the -e flag those colors will be disabled. As bonus also
I removed blank lines in .xbps-filelist and other misc tweaks, fixes
I cannot remember now.

--HG--
extra : convert_revision : 5e481d0faa14518363eafc622633d645c335ed78
2008-10-29 03:20:14 +01:00
pancake 1732450967 Added wget package (dependency of xbps-base-chroot)
Make chroot copy etc/resolv.conf when entering
Added buggy gstreamer template (exposese some bugs of xbps.sh)
utils build now does not cleanups the dir after build

--HG--
extra : convert_revision : a36211b7dab8627f912f3b8f844d16bbcec0bc6e
2008-10-28 12:45:30 +01:00
Juan RP cfd8537c85 Update replace_interpreter to be useful again.
--HG--
extra : convert_revision : 81f531985148c2a9377b7917acabdbba6c5c58a1
2008-10-28 09:26:55 +01:00
Juan RP c50c3cab2a Simplify chroot helper and fix a minor glitch in stow_pkg().
--HG--
extra : convert_revision : a84053dacf4768c9a7b8b6d2d8e4548902f8a97e
2008-10-28 07:17:35 +01:00
Juan RP 851ba263ed external-gettext helper is not useful anymore.
--HG--
extra : convert_revision : 229d310ad0a0257a3380fbb469854f3a86b0eda7
2008-10-27 15:40:15 +01:00
Juan RP 69aa44ff17 Fix installing base_chroot pkgs.
--HG--
extra : convert_revision : 80b4baf95c1eaa9465662cca381f823841fe8eb6
2008-10-27 10:29:21 +01:00
Juan RP 40a6d63364 chroot: do not umount unnecessarily in the build target.
--HG--
extra : convert_revision : bb005f7c4dae217282a231eea9f71869479b97d2
2008-10-27 08:35:40 +01:00
Juan RP 5a249b6c4f Require to configure/build/install in the chroot all packages.
This is to ensure that only stuff found in the chroot will be used,
and to avoid some stupid problems with libtool scripts. Therefore only
templates that have $base_chroot set can be built without the chroot.

As bonus now all messages are prepended with "[chroot]" when xbps.sh
is running inside of it.

--HG--
extra : convert_revision : 68195f4b240c01eea18777767b555604d892400f
2008-10-27 07:42:40 +01:00
Juan RP d3d088a61d chroot: rebuild dynamic linker's cache also when entering chroot.
--HG--
extra : convert_revision : 969f3714f7f90c3805d8c8bcf891513608e2744d
2008-10-26 04:16:41 +01: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 fc1d9694f2 chroot: respect current XBPS_MAKEJOBS setting.
--HG--
extra : convert_revision : fbe719c7677fcb4a19a4702e76eb45bb36d76126
2008-10-24 05:51:51 +02:00
Juan RP 032a0ab8dc chroot: remove xbps dirs after use.
--HG--
extra : convert_revision : 8ad643a877df8c1d5f583b968210ba4fd5664d3d
2008-10-24 05:03:29 +02:00
Juan RP e1d3deafe6 chroot: simplify even more and fix a bug.
--HG--
extra : convert_revision : 0bebca889003a6bbafb619607a0b6f294dd25300
2008-10-24 04:48:57 +02:00
Juan RP c2be5ca040 chroot: also mount/umount $XBPS_DESTDIR.
That was the last change to have a minimal functional chroot to build
packages on safely, YAY!

--HG--
extra : convert_revision : 868258bd986cd806c04f41e60bdbd728510383cc
2008-10-24 04:25:31 +02:00
Juan RP f9e72536ee install-chroot.sh: remove specific tmpl stuff and misc cosmetics.
--HG--
extra : convert_revision : 9437554e4066a6d29729ba8947301df5c58d8a05
2008-10-24 02:05:48 +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 1586ab07e9 Make /usr/bin/cc link to gcc in the chroot.
--HG--
extra : convert_revision : 7fe8854837724febb381f19444c5ac81c39a8d33
2008-10-23 17:41:36 +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 cf00486d45 replace-interpreter: fix chmod.
--HG--
extra : convert_revision : 2ef1a74fa2ddbf99cb4f7113abd3e23c31bdb910
2008-10-16 00:24:17 +02:00
Juan RP 0abdec75e6 Added desktop-file-utils-0.15 template and its associated helper.
--HG--
extra : convert_revision : 080e2c1e9930a480e88af722f91605a8a69c66cc
2008-10-15 02:50:10 +02:00
Juan RP 99dff83ee4 Added a new helper to register DTDs and XML/SGML catalogs via xmlcatmgr.
--HG--
extra : convert_revision : f88895c26edc3d030b53540136415fe1e66ce90b
2008-10-15 01:59:41 +02:00
Juan RP dcaa308afe font-util: use replace-interpreter.sh and remove perl-replace-path.sh
helper which isn't used now.

--HG--
extra : convert_revision : b1291d48a5b55e229c37e0374a618ab079eaeb83
2008-10-14 19:44:22 +02:00
Juan RP b9107abc20 replace-interpreter.sh: also set chmod a+x in new created files.
--HG--
extra : convert_revision : 12b704d249814755ee9162cac934410a906cb723
2008-10-14 19:32:17 +02:00
Juan RP b2378e259c Fix replace-interpreter.sh to use doble quotes in sed.
--HG--
extra : convert_revision : 9159fb23ddb11d4980276064f4d7aebad1927ad9
2008-10-14 19:22:05 +02:00
Juan RP e1128e1871 replace-interpreter.sh: fix typo.
--HG--
extra : convert_revision : 56cafcdda4ea65996b9f73d863eb56525d6da75e
2008-10-14 18:26:31 +02:00
Juan RP 15a0e2c005 Added a new helper that replaces wrong shebang paths.
Inspired by replace-interpreter.mk from pkgsrc.

--HG--
extra : convert_revision : 7e7096b97c156ea861d3d782f2af532d1e73f5fd
2008-10-14 18:24:53 +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 84d4f6391a Change helper-templates files to mode 644.
--HG--
extra : convert_revision : a156c08bb49d2314e667b86feba5a5a3180e39f2
2008-10-13 07:51:55 +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 b53922a2ec Major changes adding new targets and supporting build phases.
New changes include adding the following targets:

	build, configure, extract, fetch and install.

Those targets replace the not very understood old flags. Also
the code has been restructured to really understand what's going
on all the time.

--HG--
extra : convert_revision : c591d7ffd5251b7bb80e5e56bf2f4a7909c887dc
2008-10-12 20:05:52 +02:00
Juan RP 8a0d474c67 Added GIMP 2.6.1 template and other related stuff required.
Another helper was made to be able to build GIMP, which will use the
external gettext-tools package when a template needs it.

--HG--
extra : convert_revision : 80ebdea771b9dec28a1741b5fcae6bd17b50b143
2008-10-11 09:17:47 +02:00
Juan RP 293de9c6ec Added a new template helper to run GNU automake stuff for a pkg.
--HG--
extra : convert_revision : 55608667a6245e3aa5c71b92ff7bfd9f6ca88c2a
2008-10-11 06:14:02 +02:00
Juan RP 6767460858 Added hicolor-icon-theme-0.10 and its acompannion helper.
--HG--
extra : convert_revision : 885f1c2f7759caa86909aed1831522d44b1e159f
2008-10-11 02:03:45 +02:00
Juan RP 259900136c Added shared-mime-info-0.51 template and its related helper.
--HG--
extra : convert_revision : 16763dc3fcd2361fef5ba0560c57a46b45333677
2008-10-10 19:14:25 +02:00
Juan RP 6ade2fe36a Some changes for better use of postinstall_helpers and run_stuff_*.
Introduce run_stuff_<state>_<stage>_cmd. These are used to run
a specific command before or after the specified stage.

Introduce two new helpers: fontconfig-update.sh and mkfontxx-rebuild.sh.
The first runs fc-cache once fontconfig is installed, the second
rebuilds the fonts.dir and fonts.scale files in a directory for
a template.

Allow run_stuff_* to execute a script with any path, not just
from PKGFS_TEMPLATESDIR.

That means that now if you install GTK+ and any fonts package,
gtk-demo will work without any additional stuff.

--HG--
extra : convert_revision : c8aa7eb8d1ab958f64808af0d4c1cce8760d012e
2008-10-06 16:57:36 +02:00
Juan RP 21886c627f Fix unzip's helper to work with last set of changes.
--HG--
extra : convert_revision : 69852888e9293ee0bbbcd8aa380f8dc6a7403e02
2008-10-06 02:51:34 +02:00
Juan RP 725ad53038 Add another helper to replace default perl shebang path with the
one pointing at PKGFS_MASTERDIR.

--HG--
extra : convert_revision : d17d9634efe15636385b52e92f66434a89d1efae
2008-10-04 16:27:56 +02:00
Juan RP e9def74b60 Mega patch to improve how build dependencies are handled and
how packages are found.

First: I removed all these *-deps.db files and only a single file
is used now "build-depends.db"; it's smaller and will be easier
to handle in the future... when "run-depends.db" is added :-)

Second: there's no need to specify version of package anymore;
before you had to do:

	$ pkgfs.sh install git-1.6.0.2

now you only do:

	$ pkgfs.sh install git

This will read the variables located at PKGFS_TEMPLATESDIR/git.tmpl
and will the install the version that is there.

--HG--
extra : convert_revision : 9e3e5d70965a69c76f59e322b7c7b674d627af52
2008-10-04 06:29:49 +02:00
Juan RP 9078783ed1 Added three new helpers to be used by packages requiring GTK+ and
by pango itself.

To be able to run those helpers once the package has been stowned
properly, another variable available for templates has been added:
"postinstall_helpers".

This accepts a list of template helper names, e.g:

postinstall_helpers="gtk-update-gdkpixbufloaders.sh gtk-update-immodules.sh".

Also rather than setting extract_cmd itself in pkgfs.sh when
extract_sufx=".zip", set it in the helper itself.

--HG--
extra : convert_revision : 0f55c35f201daf6ff2e6d18cc808d0a34d8f4ddf
2008-10-03 17:19:37 +02:00
Juan RP 902512dd96 Multiple bugfixes and improvements after building gtk+ from scratch.
- Fix a bug in unzip-extraction.sh that skipped the package that
  requested unzip and instead used the origin template.
- Pass CFLAGS, CXXFLAGS and CPPFLAGS through the environment and unset
  them once the package has been installed.
- Do not show the dependencies required for a pkg more than once time.

--HG--
extra : convert_revision : 731135558d29787ab5178b80df3578420872709d
2008-10-03 14:32:26 +02:00
Juan RP b1c2d7613a Added support for building packages that use GNU or BSD Makefiles
and extraction of zip distfiles via a new helper:
unzip-extraction.sh.

When a new template uses extract_sufx=".zip" and the unzip command
is not found on PKGFS_MASTERDIR/bin/unzip, the unzip package will
be installed automatically.

Also add jasper-1.900.1 template that uses a zip distfile.

--HG--
extra : convert_revision : a979bdd3aef82d64e490606c21aa8f557d76fdbd
2008-10-03 00:44:43 +02:00
Juan RP 0fdfc94802 Added support for build_style=perl_module. That means that perl modules
now work on pkgfs.

While doing this work I added some new variables that can be used in
templates:

run_stuff_before="<stage>"
run_stuff_after="<stage>"
run_stuff_before_<stage>_file
run_stuff_after_<stage>_file

These can be used in a template when you need to do some stuff before
or after the stage specified, and the file will be read and the commands
on it executed.

Now that finally perl modules work, add the following templates:

intltool-0.40.4 and perl-XML-Parser-2.36.

Also mktmpl.sh has been updated to understand build_style=perl_module.

ENJOY!

--HG--
extra : convert_revision : 53c5148f1ba703e2b5af6e43f71668aac54a37d2
2008-10-02 01:38:12 +02:00
Juan RP 01799e1e18 Multiple changes to gnu_configure style packages, as well as other
changes to allow better linking flags in future packages through
pkg-config.

Removed the PKGFS_TEMPLATESDIR, PKGFS_DEPSDIR and others that weren't
too useful. Instead use a single PKGFS_DISTRIBUTIONDIR on which all
those directories/files can be found.

Added a template helper for pkg-config, that changes a pkg-config file
after it's installed to produce correct linker paths.

More helpers could be added in the future.

--HG--
extra : convert_revision : a42fd2e72915a4219714de92579011bca2b0f4a6
2008-09-30 22:48:52 +02:00