Can someone replace the link the cmake eclass that says ....
if use prefix; then
to
if use prefix && ! EPREFIX=; then
or similar.
Thanks,
Alan.
08-14-2011, 10:40 AM
Fabian Groffen
cmake eclass fix
On 07-07-2011 15:42:40 +0100, Alan Hourihane wrote:
> Hi all,
>
> Can someone replace the link the cmake eclass that says ....
>
> if use prefix; then
>
> to
>
> if use prefix && ! EPREFIX=; then
Why is that necessary? Or is it MiNT that doesn't like the RPATH stuff?
--
Fabian Groffen
Gentoo on a different level
08-14-2011, 06:05 PM
Alan Hourihane
cmake eclass fix
On 08/14/11 11:40, Fabian Groffen wrote:
> On 07-07-2011 15:42:40 +0100, Alan Hourihane wrote:
>> Hi all,
>>
>> Can someone replace the link the cmake eclass that says ....
>>
>> if use prefix; then
>>
>> to
>>
>> if use prefix && ! EPREFIX=; then
> Why is that necessary? Or is it MiNT that doesn't like the RPATH stuff?
>
Yes, it's the RPATH stuff that messes things up when EPREFIX=/
Alan.
08-14-2011, 06:06 PM
【Palatis】- Good Jabber!
cmake eclass fix
2011-8-15 上午2:05 於 "Alan Hourihane" <alanh@fairlite.co.uk> 寫道:> On 08/14/11 11:40, Fabian Groffen wrote:
>> On 07-07-2011 15:42:40 +0100, Alan Hourihane wrote:
>>> Hi all,
>>>
>>> Can someone replace the link the cmake eclass that says ....
>>>
>>> if use prefix; then
>>>
>>> to
>>>
>>> if use prefix && ! EPREFIX=; then
>> Why is that necessary? Or is it MiNT that doesn't like the RPATH stuff?
>>
> Yes, it's the RPATH stuff that messes things up when EPREFIX=/
>
> Alan.
>
10-04-2011, 10:21 AM
Alan Hourihane
cmake eclass fix
On 08/14/11 19:05, Alan Hourihane wrote:
> On 08/14/11 11:40, Fabian Groffen wrote:
>> On 07-07-2011 15:42:40 +0100, Alan Hourihane wrote:
>>> Hi all,
>>>
>>> Can someone replace the link the cmake eclass that says ....
>>>
>>> if use prefix; then
>>>
>>> to
>>>
>>> if use prefix && ! EPREFIX=; then
>> Why is that necessary? Or is it MiNT that doesn't like the RPATH stuff?
>>
> Yes, it's the RPATH stuff that messes things up when EPREFIX=/
>
Any better fix for this ?
Alan.
10-04-2011, 10:24 AM
Alan Hourihane
cmake eclass fix
On 10/04/11 11:21, Alan Hourihane wrote:
> On 08/14/11 19:05, Alan Hourihane wrote:
>> On 08/14/11 11:40, Fabian Groffen wrote:
>>> On 07-07-2011 15:42:40 +0100, Alan Hourihane wrote:
>>>> Hi all,
>>>>
>>>> Can someone replace the link the cmake eclass that says ....
>>>>
>>>> if use prefix; then
>>>>
>>>> to
>>>>
>>>> if use prefix && ! EPREFIX=; then
>>> Why is that necessary? Or is it MiNT that doesn't like the RPATH stuff?
>>>
>> Yes, it's the RPATH stuff that messes things up when EPREFIX=/
>>
> Any better fix for this ?
>
> Alan.
if use prefix && "${EPREFIX}" != ""; then
The above is better. Can this be committed ?
Thanks,
Alan.
10-05-2011, 07:01 PM
Alan Hourihane
cmake eclass fix
On 10/04/11 11:24, Alan Hourihane wrote:
> On 10/04/11 11:21, Alan Hourihane wrote:
>> On 08/14/11 19:05, Alan Hourihane wrote:
>>> On 08/14/11 11:40, Fabian Groffen wrote:
>>>> On 07-07-2011 15:42:40 +0100, Alan Hourihane wrote:
>>>>> Hi all,
>>>>>
>>>>> Can someone replace the link the cmake eclass that says ....
>>>>>
>>>>> if use prefix; then
>>>>>
>>>>> to
>>>>>
>>>>> if use prefix && ! EPREFIX=; then
>>>> Why is that necessary? Or is it MiNT that doesn't like the RPATH stuff?
>>>>
>>> Yes, it's the RPATH stuff that messes things up when EPREFIX=/
>>>
>> Any better fix for this ?
>>
>> Alan.
> if use prefix && "${EPREFIX}" != ""; then
>
> The above is better. Can this be committed ?
>
Actually this works for me.....
if use prefix && ! ${EPREFIX}; then
Alan.
10-05-2011, 09:39 PM
Jonathan Callen
cmake eclass fix
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On 10/05/2011 03:01 PM, Alan Hourihane wrote:
> On 10/04/11 11:24, Alan Hourihane wrote:
>> On 10/04/11 11:21, Alan Hourihane wrote:
>>> On 08/14/11 19:05, Alan Hourihane wrote:
>>>> On 08/14/11 11:40, Fabian Groffen wrote:
>>>>> On 07-07-2011 15:42:40 +0100, Alan Hourihane wrote:
>>>>>> Hi all,
>>>>>>
>>>>>> Can someone replace the link the cmake eclass that says
>>>>>> ....
>>>>>>
>>>>>> if use prefix; then
>>>>>>
>>>>>> to
>>>>>>
>>>>>> if use prefix && ! EPREFIX=; then
>>>>> Why is that necessary? Or is it MiNT that doesn't like the
>>>>> RPATH stuff?
>>>>>
>>>> Yes, it's the RPATH stuff that messes things up when
>>>> EPREFIX=/
>>>>
>>> Any better fix for this ?
>>>
>>> Alan.
>> if use prefix && "${EPREFIX}" != ""; then
>>
>> The above is better. Can this be committed ?
>>
>
> Actually this works for me.....
>
> if use prefix && ! ${EPREFIX}; then
>
> Alan.
>
I hope you meant:
if use prefix && ! [[ ${EPREFIX} ]]; then
- --
Jonathan Callen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
On 10/05/11 22:39, Jonathan Callen wrote:
> On 10/05/2011 03:01 PM, Alan Hourihane wrote:
> > On 10/04/11 11:24, Alan Hourihane wrote:
> >> On 10/04/11 11:21, Alan Hourihane wrote:
> >>> On 08/14/11 19:05, Alan Hourihane wrote:
> >>>> On 08/14/11 11:40, Fabian Groffen wrote:
> >>>>> On 07-07-2011 15:42:40 +0100, Alan Hourihane wrote:
> >>>>>> Hi all,
> >>>>>>
> >>>>>> Can someone replace the link the cmake eclass that says
> >>>>>> ....
> >>>>>>
> >>>>>> if use prefix; then
> >>>>>>
> >>>>>> to
> >>>>>>
> >>>>>> if use prefix && ! EPREFIX=; then
> >>>>> Why is that necessary? Or is it MiNT that doesn't like the
> >>>>> RPATH stuff?
> >>>>>
> >>>> Yes, it's the RPATH stuff that messes things up when
> >>>> EPREFIX=/
> >>>>
> >>> Any better fix for this ?
> >>>
> >>> Alan.
> >> if use prefix && "${EPREFIX}" != ""; then
> >>
> >> The above is better. Can this be committed ?
> >>
>
> > Actually this works for me.....
>
> > if use prefix && ! ${EPREFIX}; then
>
> > Alan.
>
>
> I hope you meant:
>
> if use prefix && ! [[ ${EPREFIX} ]]; then
>
I'd be fine with that :-)
Alan.
10-06-2011, 09:15 AM
Michael Haubenwallner
cmake eclass fix
Hi Alan,
On 10/06/2011 12:33 AM, Alan Hourihane wrote:
> On 10/05/11 22:39, Jonathan Callen wrote:
>> On 10/05/2011 03:01 PM, Alan Hourihane wrote:
>>> On 10/04/11 11:24, Alan Hourihane wrote:
>>>> On 10/04/11 11:21, Alan Hourihane wrote:
>>>>> On 08/14/11 19:05, Alan Hourihane wrote:
>>>>>> On 08/14/11 11:40, Fabian Groffen wrote:
>>>>>>> On 07-07-2011 15:42:40 +0100, Alan Hourihane wrote:
>>>>>>>> Hi all,
>>>>>>>>
>>>>>>>> Can someone replace the link the cmake eclass that says
>>>>>>>> ....
>>>>>>>>
>>>>>>>> if use prefix; then
>>>>>>>>
>>>>>>>> to
>>>>>>>>
>>>>>>>> if use prefix && ! EPREFIX=; then
>>>>>
>>>> if use prefix && "${EPREFIX}" != ""; then
>>>>
>>>> The above is better. Can this be committed ?
>>>>
>>
>>> Actually this works for me.....
>>
>>> if use prefix && ! ${EPREFIX}; then
>>
>> I hope you meant:
>>
>> if use prefix && ! [[ ${EPREFIX} ]]; then
Reading the different variants (without reading the cmake.eclass),
these variants do give different results.
Probably, you do want to fire that 'if' when "EPREFIX is not empty", right?
Actually, the last one (as reported in [1]) does fire "when EPREFIX is empty".
So you probably want:
- if use prefix; then
+ if use prefix && [[ ${EPREFIX} ]]; then
So - have you actually tried your reported variant?
<pointless optimization>
Given that EPREFIX is set with 'use prefix' only, it could also read:
- if use prefix; then
+ if [[ ${EPREFIX} ]]; then
</pointless optimization>
OTOH: Do we support non-empty EPREFIX on FreeMiNT?