You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2009/10/09 23:11:31 UTC

[jira] Created: (FELIX-1731) Native library extraction could be improved to help cases where there are dependencies among libraries

Native library extraction could be improved to help cases where there are dependencies among libraries
------------------------------------------------------------------------------------------------------

                 Key: FELIX-1731
                 URL: https://issues.apache.org/jira/browse/FELIX-1731
             Project: Felix
          Issue Type: Bug
          Components: Framework
    Affects Versions: felix-2.0.0
            Reporter: Richard S. Hall
            Assignee: Richard S. Hall
            Priority: Minor
             Fix For: felix-2.0.1


Sometimes native libraries have dependencies on other native libraries. OSGi doesn't really support this situation. However, certain approaches to extracting native libraries makes it possible to hack up a solution. With framework 2.0.0, the cache layout was changed to extract each native library into its own directory to account for the fact that fragments with native libraries may attach to multiple hosts. Unfortunately, this change makes it not possible to employ such hacks to resolve native library dependencies. We could probably change the approach slightly to make such hacks work again.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-1731) Native library extraction could be improved to help cases where there are dependencies among libraries

Posted by "Holger Hoffstätte (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764343#action_12764343 ] 

Holger Hoffstätte commented on FELIX-1731:
------------------------------------------

Pointer to the original discussion:
http://www.nabble.com/Odd-implementation-detail-of-native-libs-and-bundle-cache-td25769456.html

Thanks for filing this issue. Btw adding a runpath of $ORIGIN is not quite a "hack", but can be seen as good deployment practice, as it makes the entire application standalone and path-independent.

Let me know if there is anything I can do to help with this.


> Native library extraction could be improved to help cases where there are dependencies among libraries
> ------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1731
>                 URL: https://issues.apache.org/jira/browse/FELIX-1731
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.0
>            Reporter: Richard S. Hall
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: felix-2.0.1
>
>
> Sometimes native libraries have dependencies on other native libraries. OSGi doesn't really support this situation. However, certain approaches to extracting native libraries makes it possible to hack up a solution. With framework 2.0.0, the cache layout was changed to extract each native library into its own directory to account for the fact that fragments with native libraries may attach to multiple hosts. Unfortunately, this change makes it not possible to employ such hacks to resolve native library dependencies. We could probably change the approach slightly to make such hacks work again.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-1731) Native library extraction could be improved to help cases where there are dependencies among libraries

Posted by "Holger Hoffstätte (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764353#action_12764353 ] 

Holger Hoffstätte commented on FELIX-1731:
------------------------------------------

I just saw the changes in svn r823844 and wanted to say that they work great for me! Thanks a lot.


> Native library extraction could be improved to help cases where there are dependencies among libraries
> ------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1731
>                 URL: https://issues.apache.org/jira/browse/FELIX-1731
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.0
>            Reporter: Richard S. Hall
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: felix-2.0.1
>
>
> Sometimes native libraries have dependencies on other native libraries. OSGi doesn't really support this situation. However, certain approaches to extracting native libraries makes it possible to hack up a solution. With framework 2.0.0, the cache layout was changed to extract each native library into its own directory to account for the fact that fragments with native libraries may attach to multiple hosts. Unfortunately, this change makes it not possible to employ such hacks to resolve native library dependencies. We could probably change the approach slightly to make such hacks work again.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (FELIX-1731) Native library extraction could be improved to help cases where there are dependencies among libraries

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall closed FELIX-1731.
----------------------------------

    Resolution: Fixed

This is reported to have worked, so I will close.

> Native library extraction could be improved to help cases where there are dependencies among libraries
> ------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1731
>                 URL: https://issues.apache.org/jira/browse/FELIX-1731
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.0
>            Reporter: Richard S. Hall
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: felix-2.0.1
>
>
> Sometimes native libraries have dependencies on other native libraries. OSGi doesn't really support this situation. However, certain approaches to extracting native libraries makes it possible to hack up a solution. With framework 2.0.0, the cache layout was changed to extract each native library into its own directory to account for the fact that fragments with native libraries may attach to multiple hosts. Unfortunately, this change makes it not possible to employ such hacks to resolve native library dependencies. We could probably change the approach slightly to make such hacks work again.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-1731) Native library extraction could be improved to help cases where there are dependencies among libraries

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764375#action_12764375 ] 

Richard S. Hall commented on FELIX-1731:
----------------------------------------

It's a hack when it depends on implementation details. :-)

And I don't necessarily think hacks are a bad thing...hollywood and the media are responsible for "hackers" becoming bad guys.

> Native library extraction could be improved to help cases where there are dependencies among libraries
> ------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1731
>                 URL: https://issues.apache.org/jira/browse/FELIX-1731
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.0
>            Reporter: Richard S. Hall
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: felix-2.0.1
>
>
> Sometimes native libraries have dependencies on other native libraries. OSGi doesn't really support this situation. However, certain approaches to extracting native libraries makes it possible to hack up a solution. With framework 2.0.0, the cache layout was changed to extract each native library into its own directory to account for the fact that fragments with native libraries may attach to multiple hosts. Unfortunately, this change makes it not possible to employ such hacks to resolve native library dependencies. We could probably change the approach slightly to make such hacks work again.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.