276 Commits

Author SHA1 Message Date
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
Tom G. Christensen
48a08220e2 Add new __ prefixed tool namespace 2009-12-19 14:38:43 +01:00
Tom G. Christensen
4460536042 Add o32 and more n64 subsystems 2009-12-19 14:38:43 +01:00
Tom G. Christensen
643fada6f1 Fix variable pollution when adding ops to files. 2009-12-19 14:38:43 +01:00
Tom G. Christensen
496eb335d5 Add support for "replaces" keyword in the specfile
Via a new replaces meta file it's now possible to specify that a subsystem
replaces another.
Syntax is:
subsystem replaces version
2009-12-19 14:38:43 +01:00
Tom G. Christensen
280a4995ae Update the default configure args 2009-12-19 14:38:43 +01:00
Tom G. Christensen
f5e5e26d49 Add support for pack(1)ed manpages on Irix 5.3 2009-12-19 14:38:43 +01:00
Tom G. Christensen
e4f54906b1 Only add packages with $pkgprefix as dependencies 2009-12-19 14:38:43 +01:00
Tom G. Christensen
32e64eda0e Added sw64 image and sw64.lib subsystems to image.conf and subsys.conf
This needed a slight fix in the matching function.
2009-12-19 14:38:43 +01:00
Tom G. Christensen
83fa1c28f0 Make the default patch prefix configurable. 2009-12-19 14:38:42 +01:00
Tom G. Christensen
b40dd27f70 Irix packages now live in /usr/tgcware 2009-12-19 14:38:42 +01:00
Tom G. Christensen
1919360026 Allow both specattrs like hide and ops from metadir/ops on a file.
Perform variable expansion on files entries in pkgde.
2009-12-19 14:38:42 +01:00
Tom G. Christensen
b28cc5d0eb Correct the extraction of the .so link target when symlinking manpages 2009-12-19 14:38:42 +01:00
Tom G. Christensen
584d7de232 Add function to convert .so style manpage linking to symlinks 2009-12-19 14:38:42 +01:00
Tom G. Christensen
709fb7bc04 Gracefully handle if $metadir/sums is missing 2009-12-19 14:38:42 +01:00
Tom G. Christensen
70f85ffe32 New functions to aid in the building of perl module packages 2009-12-19 14:38:42 +01:00
Tom G. Christensen
87f332f2a9 More topinstalldir trouble.
This fixes it for now but it needs a rethink
2009-12-19 14:38:42 +01:00
Tom G. Christensen
21c6d18294 Sometimes ${var:1} returns garbage if var only contains exactly one
character. This issue was first observed with Bash 3.1 on Irix 6.2.
This is just a simple workaround which is probably also more correct.
2009-12-19 14:38:42 +01:00
Tom G. Christensen
4e6ebc02b9 The showfiles command on Irix 5.3 cannot support the options that the 6.2
version uses. Instead we'll have to dump it's output to a file and then use
that to lookup dependencies by hand. This should also work on Irix 6.2
since the outputs are compatible.
See the dep_pkg_name function for details.
Add deps_resolve_symlinks control variable. If set readlink will be used to
resolve symlinks before doing lookups in the showfiles cache for
dependencies.

Add relnotes support for Irix 5.3 IDO controlled by the mipspro variable.
2009-12-19 14:38:42 +01:00
Tom G. Christensen
c58a2bad9c Add EGREP
Allow overriding the makefile build target to use
Allow skipping the configure step in generic_build
2009-12-19 14:38:42 +01:00
Tom G. Christensen
4bbc8a32d1 Some scripts like to use /usr/bin/env to find the interpreter but this
confuses the dependency extractor. We now detect the use of /usr/bin/env
and just pass that on without the arguments.
2009-12-19 14:38:42 +01:00
Tom G. Christensen
82dcedd482 Add 'nice' os tagging to PSTAMP
Default permissions weren't being used when generating prototype files
Keep track of packages and make each one gets the proper pkginfo file added
to the prototype file.
pkgdef entries should now be relative to $topinstalldir.
2009-12-19 14:38:42 +01:00