71 Commits

Author SHA1 Message Date
Tom G. Christensen
1b0d55ddd0 buildpkg.packaging.solaris: really look for arch specific depend file 2012-12-31 19:53:59 +01:00
Tom G. Christensen
fe0a670fdf buildpkg.packaging.solaris: look for arch specific depend file 2012-12-20 11:47:35 +01:00
Tom G. Christensen
3daa127b5f buildpkg.packaging.solaris: look for arch specific pkgdef file 2012-09-09 11:45:07 +02:00
Tom G. Christensen
71104210b2 Allow for more text in file output
On Solaris 11 unstripped ELF binaries can have additional text in the output
from 'file' which we need to account for.
2012-07-08 12:11:06 +02:00
Tom G. Christensen
5b36aaacb7 Quote & to make it pass through sed literally 2012-07-08 12:10:11 +02:00
Tom G. Christensen
51df067e56 Make sure identify_compiler also gives output in log mode for non-gcc compiler
Additionally declare local vars at function entry.
2012-06-03 16:25:22 +02:00
Tom G. Christensen
13bd8b42d3 Refactor changelog check into a generic function
This allows calling it early in generic_pack and avoid doing expensive
operations before finding out the ChangeLog is not updated.
2012-05-27 11:39:45 +02:00
Tom G. Christensen
8a92bf85d5 Fix ChangeLog version check
Additionally turn any problem with the ChangeLog into a fatal error.
2012-05-27 11:18:10 +02:00
Tom G. Christensen
a6007c62d5 Update copyright years 2012-05-27 10:06:26 +02:00
Tom G. Christensen
9f182d0a8b New function for outputting compiler information
This refactors part of the relnotes generation out into a new function
with a few tweaks to the output and an attempt to honor CC if set.
Additionally a more verbose output mode can be requested.
2012-05-27 09:51:20 +02:00
Tom G. Christensen
09c04aeabb Remove trailing whitespace 2012-05-26 10:54:42 +02:00
Tom G. Christensen
0ae7c57a2c Update copyright years 2010-01-10 11:51:32 +01:00
Tom G. Christensen
80fffefc88 Remove commented obsolete code 2010-01-10 11:51:32 +01:00
Tom G. Christensen
80e4a9d3fc Separate buildtree and buildpkg code
Code is now located via BUILDPKG_SCRIPTS while the buildtree is located
via BUILDPKG_BASE.
2010-01-10 11:51:27 +01:00
Tom G. Christensen
2f1bc2aea6 If a ChangeLog exists then append it to relnotes 2009-12-19 14:38:47 +01:00
Tom G. Christensen
24e3551aba * buildpkg.packaging.solaris(auto_rel): Adjusted to new interfaces 2009-12-19 14:38:47 +01:00
Tom G. Christensen
4c815f5742 Add support for if(var) conditional expression in pkgdef files.
At pack time "var" is evaluated and if it's not defined then the line is
skipped.
2009-12-19 14:38:46 +01:00
Tom G. Christensen
c351659693 Too much cut'n'paste broke sha1sums on Solaris. 2009-12-19 14:38:46 +01:00
Tom G. Christensen
6dfdcc73c4 Allow URLs in source entries.
Provide helpers to abstract extraction of source paths and filenames.
Cleanup all direct uses of source[] to use the helpers.
Add new fetch_source function to handle URLs. Depends on new __curl define.

Small unrelated change in buildpkg.packaging.irix, we must use gsed to get
\n expanded in the strings.
2009-12-19 14:38:46 +01:00
Tom G. Christensen
b27fef0e1b The buildpkg framework is now under the GPLv3. 2009-12-19 14:38:46 +01:00
Tom G. Christensen
8460c89814 Fallback to the global relnotes template if it's missing from metadir.
(Note huge diff because a large block of code was reindented).
2009-12-19 14:38:46 +01:00
Tom G. Christensen
5a471b8792 I'm not quite sure what happened here, but the list of deps are nolonger
newline seperated which means sed /d kills all deps.
2009-12-19 14:38:46 +01:00
Tom G. Christensen
32e18a9df3 Cleanup tools usage and only use __ prefixed tool namespace. 2009-12-19 14:38:46 +01:00
Tom G. Christensen
17e61dfc80 Symlink entries requires special handling to get just the path part. 2009-12-19 14:38:44 +01:00
Tom G. Christensen
546b05fa8f When computing dirs in auto_dir also consider symlink entries.
Use metaprefix to locate metadata when adding relnotes.
2009-12-19 14:38:44 +01:00
Tom G. Christensen
34c7c7f1bc Use metaprefix like in the irix version to mean the relative path between
topinstalldir and metainstalldir.
2009-12-19 14:38:44 +01:00
Tom G. Christensen
9a16e37050 Find relnotes using metainstalldir 2009-12-19 14:38:44 +01:00
Tom G. Christensen
8af94ba2f7 Sort out static archives since ldd complains about them. 2009-12-19 14:38:44 +01:00
Tom G. Christensen
ffb69138ec Correct egreps that filter executables vs. scripts 2009-12-19 14:38:44 +01:00
Tom G. Christensen
3b6029b3bc Don't add extra newlines in depend files. 2009-12-19 14:38:44 +01:00
Tom G. Christensen
5ded564107 Add auto_dir function which will automatically add missing dir entries
to the prototype file.
2009-12-19 14:38:44 +01:00
Tom G. Christensen
8ab0c3b7c9 Add default_docs keyword as a shortcut to docs installed with doc or
docs_for functions.
2009-12-19 14:38:44 +01:00
Tom G. Christensen
123e3ae66f Remove blank lines when parsing depends for relnotes 2009-12-19 14:38:44 +01:00
Tom G. Christensen
fdb938e48b Revert using pkgdesc|shortdesc in NAME.
NAME should interpret the condensed name in PKG.
pkgdesc|shortdesc describes what the package does and that belongs in DESC.
2009-12-19 14:38:44 +01:00
Tom G. Christensen
5f28041b5f Add docs_for function that will take a secname as param so we can add docs
to a specific subpackage in its own dir.
2009-12-19 14:38:44 +01:00
Tom G. Christensen
7510588256 The std. now suggests that man and info dirs should be under share.
Only add one set of relnotes to each package.
2009-12-19 14:38:44 +01:00
Tom G. Christensen
5892861537 Make sums file be generated with secname suffix to avoid having to reset
between subpackages.

Add compat function to make it easy to add a series of versions to a
compver file.
2009-12-19 14:38:44 +01:00
Tom G. Christensen
ec29ff9f0b Create relnotes for all sections in pkgdef
Correctly remove version lines from the depend file when extracting deps
for the relnotes file
Correctly match on packagenames when finding deps in the shared depend file
2009-12-19 14:38:44 +01:00
Tom G. Christensen
b14f4dfac2 Add relnotes facility
The auto_rel function fills out a template and installs it in the stagedir
Add access function to support extraction of VENDOR field value from a
pkginfo file
Small hack in check_unpackaged to sort out relnotes since we've not added
that information in any metadata yet.
2009-12-19 14:38:43 +01:00
Tom G. Christensen
846fd7d60a Add support for compver files 2009-12-19 14:38:43 +01:00
Tom G. Christensen
0952290956 iauto_deps v2.
Defer auto_deps and add_scripts until all pkgdef entries have been
parsed
Add support for filtering out intrapackage deps
Add support for adding manual deps including intrapackage deps
Add support for ignoring specific deps via a filter
Make deps on non buildvendor packages optional
Make versioned deps optional (off, buildvendor, all)
Add access functions to support extraction of VERSION and NAME field
values from pkginfo files
2009-12-19 14:38:43 +01:00
Tom G. Christensen
1603b4dd44 Revert this change:
Reset package variables between sections to avoid any spill over

At present it causes more problems than it solves.
2009-12-19 14:38:43 +01:00
Tom G. Christensen
ff8d8ab8ee Don't unset pkgver as it's usually only defined once in build.sh 2009-12-19 14:38:43 +01:00
Tom G. Christensen
95125067f6 Reset package variables between sections to avoid any spill over 2009-12-19 14:38:43 +01:00
Tom G. Christensen
ac054594dc Enforce length limits on PKG and NAME fields in pkginfo 2009-12-19 14:38:43 +01:00
Tom G. Christensen
b77881b345 Add auto_deps feature. 2009-12-19 14:38:43 +01:00
Tom G. Christensen
4cc084570f Also substitute arch in the pkginfo template. 2009-12-19 14:38:43 +01:00
Tom G. Christensen
41f5645189 Redefine NAME to be a shortname + description. This means the dedicated
DESC field is removed and pkgdesc/shortdesc is added to NAME instead.
2009-12-19 14:38:43 +01:00
Tom G. Christensen
f38be83b81 Don't hardcode name of packager in pkginfo.in
Add default configure args
2009-12-19 14:38:43 +01:00
Tom G. Christensen
0f8e3a0c89 Add support for specifying MAXINST in the pkgdef file. Defaults to 1. 2009-12-19 14:38:43 +01:00