Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Writing ebuild: issue path solving system #include <>
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3909

PostPosted: Mon Oct 28, 2019 4:41 am    Post subject: Writing ebuild: issue path solving system #include <> Reply with quote

Trying to update ebuild to prevent:
Code:
#include <librsvg/rsvg.h>
to fails as system implements:
Code:
/usr/include/librsvg-2.0/librsvg/rsvg.h

I tried to patch the reference to the include, which works, but this referenced include file references:
Code:
#include <glib-object.h>
which failed as system implements:
Code:
/usr/include/glib-2.0/glib-object.h
Please remember that both referenced files are already in /usr/include.

First issue is source to system reference.
Second issue is system reference to system reference.

As I'm writing, I start to wonder is there any possibily to patch an 'include search path functionnality' from a ebuild perspective? Or maybe to inherit something in ebuild.

Thks 4 ur attention.


Last edited by CaptainBlood on Wed Oct 30, 2019 5:03 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22727

PostPosted: Tue Oct 29, 2019 2:02 am    Post subject: Reply with quote

The upstream build system should have added an appropriate -isystem path to handle this. Usually, this will be determined by asking pkg-config about the location for the supporting package.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3909

PostPosted: Wed Oct 30, 2019 5:10 am    Post subject: Reply with quote

Thks,
You confirmed the conclusion I was brought up after investigation.
AFAIR a Makefile seemed to call pkg-info in this respect, but I couldn't understand why it is not taken into account.

Thks 4 ur attention, interest & support.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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