UFC

Correctly set UFC_LIB_DIR and UFC_PKGCONFIG_DIR

Bug #1104179 reported by Jonathan Underwood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UFC
Fix Released
Critical
Unassigned

Bug Description

Presently UFC_LIB_DIR is hardcoded to "lib" and UFC_PKGCONFIG_DIR is hardcoded to "lib/pkgconfig" which is unhelful. The attached patch fixes things.

Related branches

Revision history for this message
Jonathan Underwood (jonathan-underwood) wrote :
Revision history for this message
Jonathan Underwood (jonathan-underwood) wrote :

ps. this applies to 2.1.0 as well.

Changed in ufc:
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
Johannes Ring (johannr) wrote :

I think perhaps a better patch is something like this.

Revision history for this message
Garth Wells (garth-wells) wrote :

I just pushed a change before the last comment from Johannes. Johannes: could you take a look at what I just pushed?

Jonanthan: could you test the change? Your patch failed on Ubuntu because LIB_INSTALL_DIR was not defined.

Revision history for this message
Jonathan Underwood (jonathan-underwood) wrote :

Garth - that's the wrong approach, hardcoding these paths is entirely the wrong fix.

Revision history for this message
Jonathan Underwood (jonathan-underwood) wrote :

Sorry, I meant comment #5 for Johannes, not Garth.

Am testing the patch in rev 382 now (it looks sensible though).

Revision history for this message
Johannes Ring (johannr) wrote :

The paths are not hardcoded with this patch. You can change them as you like in the CMake gui or when using CMake from the command line with for instance -DUFC_LIB_DIR:PATH=lib64.

This is the same approach we use in DOLFIN.

Revision history for this message
Jonathan Underwood (jonathan-underwood) wrote :

In fact, completely ignore comment 5, I misunderstood its intention.

Revision history for this message
Jonathan Underwood (jonathan-underwood) wrote :

Yes. I realized that's what you intended, Johannes, apologies for my minsunderstanding.

Revision history for this message
Johannes Ring (johannr) wrote :

No problem Jonathan.

Garth: should I apply the proposed patch?

Changed in ufc:
milestone: none → 2.0.7
Revision history for this message
Garth Wells (garth-wells) wrote : Re: [Bug 1104179] Re: Correctly set UFC_LIB_DIR and UFC_PKGCONFIG_DIR

On 25 January 2013 13:42, Johannes Ring <email address hidden> wrote:
> No problem Jonathan.
>
> Garth: should I apply the proposed patch?
>

Go ahead.

Garth

> ** Changed in: ufc
> Milestone: None => 2.0.7
>
> --
> You received this bug notification because you are a member of UFC Core
> Team, which is subscribed to UFC.
> https://bugs.launchpad.net/bugs/1104179
>
> Title:
> Correctly set UFC_LIB_DIR and UFC_PKGCONFIG_DIR
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ufc/+bug/1104179/+subscriptions

Revision history for this message
Garth Wells (garth-wells) wrote :

On 25 January 2013 14:52, Garth N. Wells <email address hidden> wrote:
> On 25 January 2013 13:42, Johannes Ring <email address hidden> wrote:
>> No problem Jonathan.
>>
>> Garth: should I apply the proposed patch?
>>
>
> Go ahead.
>

I meant to add that we should test to see if the system supplies

    LIB_INSTALL_DIR

and use it if available.

Garth

> Garth
>
>
>> ** Changed in: ufc
>> Milestone: None => 2.0.7
>>
>> --
>> You received this bug notification because you are a member of UFC Core
>> Team, which is subscribed to UFC.
>> https://bugs.launchpad.net/bugs/1104179
>>
>> Title:
>> Correctly set UFC_LIB_DIR and UFC_PKGCONFIG_DIR
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/ufc/+bug/1104179/+subscriptions

Johannes Ring (johannr)
Changed in ufc:
status: Confirmed → Fix Committed
Johannes Ring (johannr)
Changed in ufc:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.