Jump to content

Odd build script bit causing problem


Guest Guest_njw_*

Recommended Posts

Guest Guest_njw_*

Hi again,

 

I'm working on making a gentoo ebuild of this; as with the liflg games I know it's a little early to be doing such things, but I thought it'd be interesting, so here it is.

 

I should note that I'm not particularly knowledgable about automake/autoconf.

 

There are a couple of lines right at the end of the current Makefile.in which are causing problems to gentoo when I try to install that way, notably 656-657:

 

mkdir -p $(bindir)/Cache 2>/dev/null
rm -rf $(bindir)/Cache/*

 

Gentoo dislikes this ardently, complaining of an "Access Violation" in performing the mkdir -p /usr/bin/Cache

 

My question is: what's the use of these lines? As I say I'm not very familiar with automake except from the user's end, but I don't see how they make sense...

 

As with all of my posts, forgive my ignorance...

Link to comment

Do you have access rights to that directory when installing?

If you want to install there you most likely have to have root access.

It is advised to install to ~/GemRB (especially in the development phase)

 

Those two lines make sure that a Cache directory exists, but empty.

Link to comment
mkdir -p $(bindir)/Cache 2>/dev/null
rm -rf $(bindir)/Cache/*

 

Change these lines (and the one above it) to

 

rm -f $(DESTDIR)$(bindir)/plugins/libgemrb_core.so
mkdir -p $(DESTDIR)$(bindir)/Cache 2>/dev/null
rm -rf $(DESTDIR)$(bindir)/Cache/*

 

I'll commit this to CVS as well.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...