241 Commits

Author SHA1 Message Date
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
Tom G. Christensen
8de6f05906 Fix a bug in ignore_deps processing
Fix a bug in prereq processing when creating the specfile. This avoids
adding spurious leftovers from previous subsystems to later subsystems.
Add support for adding sha1sum of all source[x] entries to relnotes.
2009-12-19 14:38:42 +01:00
Tom G. Christensen
814f59f42a Don't list internal dependencies in the relnotes 2009-12-19 14:38:42 +01:00
Tom G. Christensen
eb7b442dbb Make the config.log location configurable when running check_ac
Make it possible to filter autodeps by putting them in ignore_deps
Add a hint to notify auto_rel when mipspro is used.
Make it possible to use the auto keyword for external depends. This is
useful for adding hidden dependencies that autodeps can't pick up.
When autodeps looks for scripts it needs to filter ou any args that
may be given to the interpreter (like -w with perl)
2009-12-19 14:38:42 +01:00
Tom G. Christensen
6513e7b2cc Make it possible to adjust the command used in the configure step
Fix up rel_conf_sub to match auto_rel wrt. configure info and relnotes
Add flag to indicat to auto_rel if the compiler was mipspro so it can
act accordingly when filling out the COMPILER field
2009-12-19 14:38:42 +01:00
Tom G. Christensen
311bbb03f0 Implement support for platform specific configure function run_configure.
Add error message for suspicious config.log entries
A few variables in compute_octal was defined as globals
2009-12-19 14:38:42 +01:00
Tom G. Christensen
d9e2928f02 Add showfiles and showprods to platform specific commands
Implement run_configure and autoconf overrides
run_configure is a new platform specific way to do the configure step of
the build.
It was implemented to allow the use of the ac_overrides variable to easily
override autoconf settings which is needed on Irix.
run_configure will also run an automatic scan (using an external script
check_ac) of config.log for suspicious ac_cv_lib definitions.
The contents of ac_overrides will be added in the Configure part of the
relnotes.
Fixed the FIXME's regarding perl in auto_rel by replacing perl with awk.
Thanks to Laura Fairhead who posted that awk trick on usenet in 2001.
2009-12-19 14:38:42 +01:00
Tom G. Christensen
cfba566bc5 Revert the decision to exclude patchSG packages. The problem is that
posix threads were introduced with patches so to mark a dependency on
libpthread we need to add a dependency on a patchSG packaged.
2009-12-19 14:38:42 +01:00
Tom G. Christensen
b0b4a02a67 fetch_depends extended to make sure that internal dependencies are not
accidentally picked from an already installed revision of the same software.

Only list a dependency once in the relnotes.

Irix 6.2 ldd is too stupid to be used to extract dependencies since it will
just abort if one of the libraries are missing. We use Ariel Faigons perl
version of ldd originally written for Irix 5.3 (which lacks ldd) instead.

Also we need to use GNU xargs which supports -r (--no-run-if-empty) to
avoid running showfiles on empty input since otherwise it will list all
installed packages.

Exclude patchSG* packages from depends
2009-12-19 14:38:42 +01:00
Tom G. Christensen
831306c523 Full automatic dependency generation is finally here!
This checkin includes some new functions to automatically handle
the extraction of dependency information.
It was heavily inspired by the find-requires script found in the rpm
distribution.
2009-12-19 14:38:42 +01:00
Tom G. Christensen
56f21260ec New versioning. See comments in the code for details. 2009-12-19 14:38:42 +01:00
Tom G. Christensen
f29c27d4d9 Switch to /usr/tgcware 2009-12-19 14:38:42 +01:00
Tom G. Christensen
c38476593d Extra quoting
Added code to automatically insert environment and dependency information
in the relnotes file
2009-12-19 14:38:42 +01:00
Tom G. Christensen
b82a9e4a5a Environment and dependencies are now automatically inserted 2009-12-19 14:38:42 +01:00
Tom G. Christensen
cfd7946990 shootroot semantics changed. This brings Solaris in line with that change. 2009-12-19 14:38:42 +01:00
Tom G. Christensen
96b3f64f74 Add support for unpacking zip archives 2009-12-19 14:38:42 +01:00
Tom G. Christensen
274321e7fe Make generic_build and generic_install able to descend into a subdir
inside the sourcedir before doing their thing.
2009-12-19 14:38:41 +01:00
Tom G. Christensen
1719dd0aae Add explicit command var for GNU sed
Add _vdocdir helper var which points to the fully expanded location of
documentation
Fix ugly file not found output from ls
2009-12-19 14:38:41 +01:00
Tom G. Christensen
bb3184f703 Add SHA1SUM command
Change charset for manpages to ascii
2009-12-19 14:38:41 +01:00
Tom G. Christensen
fc6afceaf6 Enable inserting the sha1sum of source[0] into relnotes 2009-12-19 14:38:41 +01:00
Tom G. Christensen
1a45efd94a Add "autonuke" function to automatically cleanout unwanted files from the
stagedir after install
2009-12-19 14:38:41 +01:00
Tom G. Christensen
5e5291c3fc Allow manpages to be compressed with compress(1) instead of gzip.
This is useful for plain old Irix 5.3 which doesn't understand gzipped
manpages.
2009-12-19 14:38:41 +01:00
Tom G. Christensen
4b73e80fac Add compress_info support 2009-12-19 14:38:41 +01:00
Tom G. Christensen
4caead23bb Don't let gendist call strip. 2009-12-19 14:38:41 +01:00
Tom G. Christensen
50d1168a6b Move chmod last 2009-12-19 14:38:41 +01:00
Tom G. Christensen
6776f58c74 Move shortroot handling to the install stage. Automatically adding
$prefix inside the stagedir when necessary.
2009-12-19 14:38:41 +01:00
Tom G. Christensen
80bb0c3785 Handle IRIX64 when computing _os
Kill shortroot handling. This is now handled at install time.

Cleanup the topinstalldir/metainstalldir etc. confusion

topinstalldir now explicitly marks where the package is attached to the
filesystem. Like /usr/local or /.
metainstalldir is used to define the location of the metadata files like
relnotes and distfiles.
2009-12-19 14:38:41 +01:00
Tom G. Christensen
4d0fb00229 Doh! 2009-12-19 14:38:41 +01:00
Tom G. Christensen
f44a2f526a Fix a stupid typo and convert mkdir to ${MKDIR} 2009-12-19 14:38:41 +01:00
Tom G. Christensen
abe8d6774e _docdir is an external variable used in build.sh and pkgdef so changing
it halfway through is very bad. Fixed.
This frequently caused ./build.sh install pack to break because _docdir
is redefined between the 2 steps.
2009-12-19 14:38:41 +01:00
Tom G. Christensen
4d0d979899 Turn of stripping of static archives
Reimplement the auto keyword for depends.
It's now used slightly differently, where before it would create an
explicit depend on sw.base it can create a depend on any internal subsystem
In depends you can now put:
sw.base sw.lib auto

And you sw.base will automatically depend on the explicit version of sw.lib
2009-12-19 14:38:41 +01:00
Tom G. Christensen
d070a548a4 Moved all the reg code out of the build.sh script an into a function
library instead.
2009-12-19 14:38:41 +01:00
Tom G. Christensen
d204021507 Really update manpage fix/compress logic to match Solaris 2009-12-19 14:38:41 +01:00
Tom G. Christensen
d34f50fde5 Add the pkgvendor field for vendor information 2009-12-19 14:38:41 +01:00
Tom G. Christensen
e31a0ba00c Clean up the relnotes template and make it a little "lighter". It reads
easier now with fewer headlines.
Fix spelling of dependencies.
2009-12-19 14:38:41 +01:00
Tom G. Christensen
88847c7058 Add RMDIR
Add new error message that will be trigged by an overflow of the version
number in fix_ver (buildpkg.packaging.irix)
Add a small Irix specific hack to clean (see the commit comment for
buildpkg.packaging.irix, r1.32 for the full explanation)
2009-12-19 14:38:41 +01:00