copy file phase

Riccardo Mottola rmottola at opencsw.org
Thu Jul 3 17:10:22 CEST 2014


Hi Dagobert,


Dagobert Michelsen wrote:

> I would suggest PRESERVECONF +=
> $(sysconfdir)/GNUstep/installation-domains.conf 
> 
Ok! I didn't gather that it was a "list" of paths but actually makes
sense I did:
PRESERVECONF += $(sysconfdir)/installation-domains.conf
Out of my guts, just because ginstall required the removal of GNUstep...
to actually end in GNUstep.

How can I check what actually gets used? does it end in a file i can
inspect?


> > > > Second, I suppose, that it would be more appropriate to put configure GNUstep.conf to be in /opt/csw/etc ?
> > > Even better would be /etc/opt/csw, please see for details
> > >  http://www.opencsw.org/manual/for-administrators/setup.html#etc-opt-csw-vs-opt-csw-etc
> > Yes, sounds better indeed. I thus added:
> > 
> > post-install:
> >    ( cp $(WORKSRC)/installation-domains.conf /etc/opt/csw/GNUstep/ )
> > 
> > But I get this error:
> >        [test-modulated] complete for gnustep-make.
> > ( cp
> > work/build-isa-sparcv8plus/gnustep-make-2.6.6/installation-domains.conf
> > /etc/opt/csw/GNUstep/ )
> > cp: cannot create /etc/opt/csw/GNUstep/: Not a directory
> > Makefile:36: recipe for target 'post-install' failed
> > gmake[1]: *** [post-install] Error 2
> > gmake[1]: Leaving directory
> > '/home/multix/code/opencsw/gnustep-make/trunk'
> > 
> > because the directory does not exist yet, if everything works as
> > expected it will be created by the actual installation scripts. I looked
> > in other Makefiles for examples, but they usually use DESTDIR, which is
> > not correct in my case.
> Try
>   ginstall -D -m 0644 $(WORKSRC)/installation-domains.conf $(DESTDIR)$(sysconfdir)/GNUstep/installation-domains.conf
> 
> Why shouldn’t DESTDIR be correct?
I don't know, I guessed wrong, since it works.

why should I use (g)install instead of cp? what's the difference?

I had to remove one level of "GNUstep"
ginstall -D -m 0644 $(WORKSRC)/installation-domains.conf $(DESTDIR)$(sysconfdir)/installation-domains.conf
appears to work.

Thank you.
Riccardo



More information about the maintainers mailing list