The package I'm porting (idzebra) creates examples in:
usr/share/idzebra-2.0-examples
A code reviewer has suggested that I move this to:
usr/share/idzebra-2-0/examples/idzebra-2.0-examples
The config script for this package does not appear to have an option
for setting the path to where the examples will be built, so I'm
attempting to 'patch' things by moving the files after they're
built. Other patching of this sort is being done in my Makefile.sfw,
rather than using install-sfw files, so I added the following line
in Makefile.sfw under 'install':
($(MV) $(ROOT)/$(CFGPREFIX)/share/idzebra-2.0-examples \
$(ROOT)/$(CFGPREFIX)/share/idzebra-2.0/examples)
I also updated Targetdirs and prototype_com to reflect this change
in directories.
When I do a 'make -f Makefile.sfw install' the files do end up where
I intended, but I get errors of the following sort for all of the
affected files/directories:
usr/share/idzebra-2.0/examples/idzebra-2.0-examples: packaging/proto
directory mismatch
usr/share/idzebra-2.0/examples/idzebra-2.0-examples/gils/records/esdd0006.grs:
packaging/proto file mismatch
Looking at the output, these messages appear to be coming from
execution of:
/builds1/andrem/usr/src/tools/protofix --perm --pkg SUNWidzebra
protofix is being executed before the $(MV) commands in the make file,
based on the order of the output in the build log. Is there an ordering
problem here (protofix being executed before the files are in their
final locations), did I need to update something in addition to
prototype_com and Targetdirs, or is there something else I should be
looking at? For instance, should I not be doing this kind of moving
files about in Makefile.sfw but instead use install-sfw files to
accomplish this?
Thanks,
Andre