* [gentoo-dev] link or patch?
@ 2002-01-13 16:39 John Stalker
2002-01-13 19:22 ` Grant Goodyear
0 siblings, 1 reply; 4+ messages in thread
From: John Stalker @ 2002-01-13 16:39 UTC (permalink / raw
To: gentoo-dev
Some packages look for files in the wrong place, e.g. /usr/include/libxml
for files which gentoo puts in /usr/include/libxml2/libxml, and don't
have configure options to specify the correct path. One can fix this
either by patching Makefiles or by creating symlinks. I normally do
the latter. My question is: What should one do in an ebuild? Does
gentoo have a policy about how to fix these packages?
--
John Stalker
Department of Mathematics
Princeton University
(609)258-6469
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] link or patch?
2002-01-13 19:22 ` Grant Goodyear
@ 2002-01-13 18:38 ` Charles Kerr
2002-01-13 18:47 ` Martin Schlemmer
1 sibling, 0 replies; 4+ messages in thread
From: Charles Kerr @ 2002-01-13 18:38 UTC (permalink / raw
To: gentoo-dev
> In general we prefer to patch the Makefiles (or add the correct flag
> to ./configure).
>
> Best,
> g2boojum
>
Hmm, the only thought on "patching" the file. As the portage system gets
larger, it could make a maintenance nightmare as new versions of the app come
out. If the library stays low, with a good documentation for the user so
they supplement with their own set, it isnt so much work. But if the portage
library as released gets large, keeping it up to date with patches seems like
a pretty large effort. (an example of this problem is OpenBSD. Just put 3.0
on, and a lot of the ports dont build/install. Rather annoying.).
Anyway, just pointing out the potential for a maintenance effort. If all
ready thought about, then just ignore this input *smile*.
Charles
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] link or patch?
2002-01-13 19:22 ` Grant Goodyear
2002-01-13 18:38 ` Charles Kerr
@ 2002-01-13 18:47 ` Martin Schlemmer
1 sibling, 0 replies; 4+ messages in thread
From: Martin Schlemmer @ 2002-01-13 18:47 UTC (permalink / raw
To: Gentoo-Dev
[-- Attachment #1: Type: text/plain, Size: 832 bytes --]
On Sun, 2002-01-13 at 21:22, Grant Goodyear wrote:
> > Some packages look for files in the wrong place, e.g. /usr/include/libxml
> > for files which gentoo puts in /usr/include/libxml2/libxml, and don't
> > have configure options to specify the correct path. One can fix this
> > either by patching Makefiles or by creating symlinks. I normally do
> > the latter. My question is: What should one do in an ebuild? Does
> > gentoo have a policy about how to fix these packages?
>
> In general we prefer to patch the Makefiles (or add the correct flag
> to ./configure).
>
You can also do something like:
src_compile(){
CFLAGS="${CFLAGS} -I/usr/include/libxml2"
./configure ......
}
Greetings,
--
Martin Schlemmer
Gentoo Linux Developer, Desktop Team Developer
Cape Town, South Africa
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] link or patch?
2002-01-13 16:39 [gentoo-dev] link or patch? John Stalker
@ 2002-01-13 19:22 ` Grant Goodyear
2002-01-13 18:38 ` Charles Kerr
2002-01-13 18:47 ` Martin Schlemmer
0 siblings, 2 replies; 4+ messages in thread
From: Grant Goodyear @ 2002-01-13 19:22 UTC (permalink / raw
To: gentoo-dev
> Some packages look for files in the wrong place, e.g. /usr/include/libxml
> for files which gentoo puts in /usr/include/libxml2/libxml, and don't
> have configure options to specify the correct path. One can fix this
> either by patching Makefiles or by creating symlinks. I normally do
> the latter. My question is: What should one do in an ebuild? Does
> gentoo have a policy about how to fix these packages?
In general we prefer to patch the Makefiles (or add the correct flag
to ./configure).
Best,
g2boojum
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-01-13 18:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-13 16:39 [gentoo-dev] link or patch? John Stalker
2002-01-13 19:22 ` Grant Goodyear
2002-01-13 18:38 ` Charles Kerr
2002-01-13 18:47 ` Martin Schlemmer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox