247 Commits

Author SHA1 Message Date
Tom G. Christensen
c7cb17e408 Add GNU cp. Readd NROFFOPTS which was accidentally removed during cleanup. 2009-12-19 14:38:46 +01:00
Tom G. Christensen
bcc9cf61ac Because of the nesting of the function calls a call to error inside the
stack will not give me the exit I want. This should catch any errors and
cause an exit in the appropriate place.
2009-12-19 14:38:46 +01:00
Tom G. Christensen
ebd95822dc Missing 's'. 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
5c4973f9c8 Add head to the list of tools. 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
c786941496 Import the ac_overrides codes from Irix into the generic build function. 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
f1c912031f Use curly braces to seperate variables 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
a147240e96 Use the irix relnotes templates also for solaris 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
bb2413eda9 Add generic_check function and add new default check target to build.sh.
The check target is excluded from the all target since it can often take a
very long time to run.
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
c06bf89a46 auto_deps needs ldd 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
951d5ac6de Make it possible to override configure by defining __configure 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
Tom G. Christensen
c1242c5ed7 Slight change to naming
Use defined EXPR tool instead of what's in the path
Recognize shortdesc as a substitute for pkgdesc (easier copy paste with
irix packages)
Add email to the fields updated in pkginfo
2009-12-19 14:38:43 +01:00
Tom G. Christensen
ae1323e9a1 Don't hardcode the EMAIL field 2009-12-19 14:38:43 +01:00
Tom G. Christensen
bebed60522 When building with sgi cc and gnu g++ both will now be added to relnotes. 2009-12-19 14:38:43 +01:00
Tom G. Christensen
18e4478dd4 If mipspro!=0 then automatically determine if cc -version will work.
This avoids lots of if/then in the build.sh scripts.
2009-12-19 14:38:43 +01:00
Tom G. Christensen
a145b275a6 Add support for the 'updates' keyword in the specfile.
Remove two command variables. They should be either in buildpkg.functions
or buildpkg.tools.
2009-12-19 14:38:43 +01:00
Tom G. Christensen
1811e7f0ec On Irix 5.3 /bin/tr fails to work correctly. To avoid depending on gnu
tr we use a simple shell loop instead.
2009-12-19 14:38:43 +01:00
Tom G. Christensen
7c3c18e37c Don't recurse when using add_dir. 2009-12-19 14:38:43 +01:00