Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I modify non-auto config.h to use EPREFIX?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
soltoo
n00b
n00b


Joined: 02 Jul 2011
Posts: 15

PostPosted: Mon Sep 19, 2011 5:43 pm    Post subject: How do I modify non-auto config.h to use EPREFIX? Reply with quote

Hi,

I have a working app-admin/logrotate ebuild in a private overlay for x86-solaris (Solaris 10)

The version of logrotate is 3.8.1 which has improved Solaris 10 compatibility over the previous 3.8.0 upstream release.

The config.h is not generated by GNU auto configuration tools in the original source code has hard-coded path names like

Code:
#ifdef SunOS
#define COMPRESS_COMMAND "/usr/local/bin/gzip"
#define UNCOMPRESS_COMMAND "/usr/local/bin/gunzip"
#define STATEFILE "/var/log/logrotate.status"
#endif


Naturally these should use EPREFIX.

Is there an existing mechanism to do the conversion or do I write a "sed -i" hack?

Thanks
Back to top
View user's profile Send private message
grobian
Developer
Developer


Joined: 31 May 2006
Posts: 67

PostPosted: Sun Dec 04, 2011 7:37 pm    Post subject: Reply with quote

you should write a sed hack ;)

There is nothing unfortunately that can reliably recognise and fix these kinds of paths.
_________________
Gentoo on a different level
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum