224 Commits

Author SHA1 Message Date
Tom G. Christensen
59657a656e We don't need CMP anymore.
Native Irix ln doesn't know about -n
2009-12-19 14:38:40 +01:00
Tom G. Christensen
410760a6d3 Introduce a new format for the automatically generated version field.
By extending it to a mandatory 8 digits and padding it with zeroes on the
right side it should be possible to avoid problems with version numbers
changing format.
This means  1.19.5->1.20 should be handled correctly now.

Add support for the new subsys.conf keyword (defalt/nodefault).

Flesh out the auto_rel function to help with release notes maintenance.
Added a relnotes.template.irix and make newpkg install a copy
into new sandboxes.
Also clean up newpkg a bit.

Fix a problem with the fix_man function and how to locate the man pages.
The problem was discoved when building gcc-3.4.1 into
$prefix=/usr/local/gcc-3.4.1 and still needing $topinstalldir
to be /usr/local. We now attempt to find any extra subdirs
needed by comparing $prefix and $topinstalldir.
2009-12-19 14:38:40 +01:00
Tom G. Christensen
08d497ad37 New subsystem names *again* and a new subsys.conf keyword.
It's now possible to designate install status, either default
or nodefault on each subsystem in subsys.conf
The pkgdef template was updated to reflect the changes in subsys.conf
2009-12-19 14:38:40 +01:00
Tom G. Christensen
87ae9aa1ff We don't need DIFF anymore.
Added new LN and PRINTF commands.
Replaced ln with $LN
Avoid namespace pollution in fix_man() by declaring all internal variables
local.
2009-12-19 14:38:40 +01:00
Tom G. Christensen
b2d56995a0 Great, native expr blows up if = is unqouted, gnu expr doesn't care.
Use -ne instead of ! -eq while we're at it.
2009-12-19 14:38:40 +01:00
Tom G. Christensen
a6559259a0 Fix adding of patches to opt.src
Add spec & idb files to a opt.dist subsystem
2009-12-19 14:38:40 +01:00
Tom G. Christensen
46d02dd6db New subsystems means a new image aswell 2009-12-19 14:38:40 +01:00
Tom G. Christensen
1e6993bca5 New subsystem conventions 2009-12-19 14:38:40 +01:00
Tom G. Christensen
ec325c188b Redefine the meaning of the topdir variable.
From now on pkgdir will be used to designate the toplevel dir of the pkg
under $BUILDPKG_BASE

Irix specific changes:
Source formatting fixes
Finally get rid of the FIXME on imageconf
Automatically handle opt.src and opt.relnotes subsystems
2009-12-19 14:38:40 +01:00
Tom G. Christensen
0a32c3529f Also install a copy of the pkgdef template when creating a new sandbox on
irix.
2009-12-19 14:38:40 +01:00
Tom G. Christensen
2ff1b5e084 Split strip function into system specific subfunctions.
After the rewrite of add_files in the Irix function library permissions
where not assigned correctly. This has been fixed.
2009-12-19 14:38:40 +01:00
Tom G. Christensen
5def702b56 Make the output from the unpackaged files check much more readable. 2009-12-19 14:38:40 +01:00
Tom G. Christensen
0958686fd0 Bring Irix into line with the latest changes
Now Irix also uses pkgdef and checks for unpackaged files in the stagedir.
subsys.conf will only contain descriptions like image.conf

What missing?
ops & depend functionality is untested

strip function needs to be either generalized or moved to the pr. pkgsystem
function libraries.

Perhaps introduce something like attr from RPM to set specific permissions
in pkgdef.
2009-12-19 14:38:40 +01:00
Tom G. Christensen
6ca155d0c4 Small fix for strip function.
It may or may not work on Irix. It depends on what /usr/bin/file returns
on Irix.
2009-12-19 14:38:40 +01:00
Tom G. Christensen
de840b7038 One more attempt at fixing the parse_def logic.
New defaults needed by the enhanced strip function
2009-12-19 14:38:40 +01:00
Tom G. Christensen
3faeac8b79 Made the strip function more intelligent by ripping the brp-strip-*
scripts from RPM.
2009-12-19 14:38:40 +01:00
Tom G. Christensen
c6b27e50fe Make doc function handle parameters with wildcards in them.
Using tar the way it's currently done is kinda ugly...
Fix _docdir default location to $prefix/share/doc instead of $prefix/doc
2009-12-19 14:38:40 +01:00
Tom G. Christensen
152a6acd21 Fix a very subtle gotcha in the pkgdef definition.
If the last (or only) section in a pkgdef file didn't end with a blank
line then the 'section end' actions wouldn't be performed.
The 'section end' marker is still a *single* blank line and if there are
multiple sections in a pkgdef they *must* be seperated by such a line.
2009-12-19 14:38:40 +01:00
Tom G. Christensen
6d88b4bd9e Make check_unpackaged list the diff so one can actually see what's
missing :)
2009-12-19 14:35:08 +01:00
Tom G. Christensen
938abe7cd9 Missing $_<dir> helper var 2009-12-19 14:35:08 +01:00
Tom G. Christensen
9409cc9282 Add a template for the pkgdef file and make sure newpkg places a copy in
the new metadir
2009-12-19 14:35:08 +01:00
Tom G. Christensen
d15a078371 Add helper functions to extract PKG and PSTAMP from pkginfo files
Fix list_pkgs so it actually works the way it was intended
Fix make_pkg to use the fixed list_pkgs
Remove old prototype function and PKGPROTO helper var
Add 'depend' support to add_scripts
Bash 2.03 needs (()) expansion in quotes in parse_def to avoid
a syntax error
Use $AWK instead of awk
2009-12-19 14:35:08 +01:00
Tom G. Christensen
552b58c24a Handle multiple packages correctly in clean meta 2009-12-19 14:35:08 +01:00
Tom G. Christensen
5812871885 Make default ./configure args configurable.
Add another command
2009-12-19 14:35:07 +01:00
Tom G. Christensen
96e4251e89 Make default ./configure args configurable
With this commit we implicitly enable NLS
Enable full wildcard usage in subsys.conf
Currently unpackaged_file detection is missing and perhaps the subsys.conf
syntax should be scrapped in favor of the solaris style pkgdef
since there are many similarities.
2009-12-19 14:35:07 +01:00
Tom G. Christensen
e18d3046fe Setup build.sh to be executable with a suitable bash 2009-12-19 14:35:07 +01:00
Tom G. Christensen
96dd8f0a90 Add an _os variable than can be used for conditionals in build.sh scripts 2009-12-19 14:35:07 +01:00
Tom G. Christensen
6fd05c7a42 Major new functionality:
- RPM style filelists
- RPM style unpackaged files detection
- Easy creation of multiple packages from one sourcetree

What's currently missing:
- How to handle cleanup of meta data for multiple packages
- Further testing of corner cases (like filenames or paths with spaces)
2009-12-19 14:35:07 +01:00
Tom G. Christensen
1419d92967 compute_octal from buildpkg.packaging.irix was moved here
Extra helper progs and variables needed to support the new functionality
in buildpkg.packaging.solaris was added.
Note that some stuff now has a _ prefix. This is just the beginning
of a major namespace cleanup.
2009-12-19 14:35:07 +01:00
Tom G. Christensen
9c6c2ac24d compute_octal has been moved to buildpkg.functions 2009-12-19 14:35:07 +01:00
Tom G. Christensen
451501c423 *** empty log message *** 2009-12-19 14:35:07 +01:00
Tom G. Christensen
4db33ad718 Add a doc function to automate the copying of docs from srcdir to a
predefined location.
Add shortroot modifier variable to replace passing the shortroot argument
to generic_pack.
2009-12-19 14:35:07 +01:00
Tom G. Christensen
56201570f9 Two more helpers
In the next major revision all helpers should probably be updated to use _
prefix to they don't conflict with configure etc.
2009-12-19 14:35:07 +01:00
Tom G. Christensen
612166ff54 pkginfo.in is global so don't automatically copy it to $metadir of new
package
2009-12-19 14:35:07 +01:00
Tom G. Christensen
bcfb081765 Brown paperbag time (spelt my name wrong in the pkginfo.in file :()
To combat this I've finally done the sensible thing and made the pkginfo.in
template in the scripts directory the default pkginfo file.

I added a feature from buildpkg.packaging.irix which allows pr. machine
configs.
2009-12-19 14:35:07 +01:00
Tom G. Christensen
8628db71e0 Make sure that only the hostname part is used when sourcing configfiles 2009-12-19 14:35:07 +01:00
Tom G. Christensen
d2947215a2 The specfile syntax for multiple prereqs are not so simple as I first
assumed.
This new code will correctly create a prereq with multiple conditions.
2009-12-19 14:35:07 +01:00
Tom G. Christensen
079ed3c2c7 Added a few more generic entries 2009-12-19 14:35:07 +01:00
Tom G. Christensen
c415821025 fix_man now properly handles manpages with embedded spaces in the name
Symlinks are now retargetet.
manpage RM moved to be pr. manpage, this fixes the race? condition I was
seeing on Irix 5.3 with GNU rm.
2009-12-19 14:35:07 +01:00
Tom G. Christensen
d9cbdd0ca9 Handle filenames with embedded spaces 2009-12-19 14:35:07 +01:00
Tom G. Christensen
a0a12ecd2c Irix 5.3 took exception to rm -rf'ing the directory directly
This seems to work around it.
2009-12-19 14:35:07 +01:00
Tom G. Christensen
df172ec972 Make it easier to redefine distfile by not declaring it until after host
specific configuration has been sourced
2009-12-19 14:35:07 +01:00
Tom G. Christensen
72cdd16821 Fixed newpkg to use BUILDPKG_BASE env
Add several new default patterns to subsys.conf
2009-12-19 14:35:07 +01:00
Tom G. Christensen
7c9f797bc4 Source a host specific configfile to ease the pains of
differing tool paths etc.
2009-12-19 14:34:48 +01:00
Tom G. Christensen
f9a1b91686 Avoid errors when optional meta files are not present
Fix a stupid bug in 'auto' dependency generator. I forgot to add .sw.devel
to the $pkgname making the prereq illegal (and causing gendist to core)
2003-12-06 16:03:02 +00:00
Tom G. Christensen
483de5e1ea The man image contains more than manpages so Documentation is a more
appropriate ID
2003-12-06 14:56:17 +00:00
Tom G. Christensen
432baeee55 A major overhaul.
New functionality added:
- 'hide' meta file to list files that should be 'nohist' in the IDB
- 'ops' meta file to list files and associated ops
- 'depends' meta file to list prereqs for the specfile.

Several new functions where introduced and a few old ones where
updated.

Fixed a bug in create_idb which resulted in all toplevel image
descriptions being set to the first one listed in image.conf

Extended subsys.conf to use wildcards to match files
for the subsystems

What's missing currently is the ability to check
if there are unpackaged files left in the staging
area, like rpm does.

New functionality has been ligthly tested
2003-12-06 14:55:30 +00:00
Tom G. Christensen
39348b938d Only create manpages if a man dir is present 2003-10-11 16:10:53 +00:00
Tom G. Christensen
c4f462c7ba Add a var to control whether to look for a meta/depend file or not 2003-09-12 11:07:07 +00:00
Tom G. Christensen
1d65a34609 Added a var to control symbol stripping during the installstage
Changed default dir for new packages to distfiles/beta
2003-09-12 11:06:27 +00:00