Commit Graph

215 Commits

Author SHA1 Message Date
Tom G. Christensen 3854b49dfd Use ls instead of echo to avoid returning * on empty dirs 2009-12-19 14:38:47 +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 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 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 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 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