Tom G. Christensen
a238b33578
Convert configure_args to an array
...
This makes it possible to avoid difficult or impossible quoting needed
for passing arguments.
2013-08-11 16:15:11 +02:00
Tom G. Christensen
23d8ded3d4
Update copyright years
2013-04-26 10:24:43 +02:00
Tom G. Christensen
4f1c76c750
buildpkg.packaging: simplify variable expansion for relnotes
...
Pick up only the variable names and not the values from the instrumented
build.sh to avoid double expansion of self-referencing assignments.
Instead we get the values from the running environment.
2013-04-26 10:29:24 +02:00
Tom G. Christensen
1a95962a45
Fix misleading comments
2012-07-08 12:22:46 +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
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
c99cf91ee1
Make the use of an updates file optional
...
IRIX 5.3 does not support the 'updates' keyword in specfiles so it's
necessary to make it optional.
2009-12-19 16:33:48 +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
f84b1dd660
Overhaul handling of source and patch entries during setup
...
* buildpkg.functions(get_source_filename, get_source_path,
get_source_absfilename, fetch_source): Take a filename as input instead
of an array index so they can be used for both source and patch entries
* buildpkg.functions(unpack, patch): Updated to use new interface to above
functions
* buildpkg.packaging.irix(auto_rel, auto_src): Ditto. Also make sure to
maintain timestamps when copying patches into the package
* buildpkg.functions(get_files): New function to handle all downloading of
sources and patches before unpacking
2009-12-19 14:38:47 +01:00
Tom G. Christensen
20a817e189
Update copyright years
2009-12-19 14:38:47 +01:00
Tom G. Christensen
549445fa32
Unconditionally strip all ELF binaries
2009-12-19 14:38:47 +01:00
Tom G. Christensen
7664df5bbe
Make it possible to add global configure overrides
2009-12-19 14:38:47 +01:00
Tom G. Christensen
6fe8c2e5b1
Shortcuts for build.sh.
2009-12-19 14:38:46 +01:00
Tom G. Christensen
39ccdeabfc
Small comment update.
2009-12-19 14:38:46 +01:00
Tom G. Christensen
ca3d4c144a
Ooops removed too much during the last cleanup.
2009-12-19 14:38:46 +01:00
Tom G. Christensen
4acade37c2
Cleanup and fixes to the relnotes handling.
2009-12-19 14:38:46 +01:00
Tom G. Christensen
20bf8e7297
Make it possible to turn auto_dir off.
...
This is necessary until a good solution can be found so that auto_dir
can automatically ignore "system" paths like /etc and /usr.
2009-12-19 14:38:46 +01:00
Tom G. Christensen
9996ed94e6
Fix auto_dir. It was horribly broken before.
2009-12-19 14:38:46 +01:00
Tom G. Christensen
8dcbf3e74e
Copy over the auto_dir functionality from the Solaris module.
2009-12-19 14:38:46 +01:00
Tom G. Christensen
dc2d0bd81b
Oops missed a spot.
2009-12-19 14:38:46 +01:00
Tom G. Christensen
34bfe8e9bb
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
40a88809c9
Fix stripping of shared objects. I don't know when this broke but at some
...
point file has stopped reporting 'not stripped' for shared libraries.
To detect such an issue in the future the strip functions will now print
the names of files they are working on.
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
32e18a9df3
Cleanup tools usage and only use __ prefixed tool namespace.
2009-12-19 14:38:46 +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
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
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
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
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
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
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