[
https://issues.apache.org/jira/browse/HADOOP-9164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13706670#comment-13706670
]
Binglin Chang commented on HADOOP-9164:
---------------------------------------
I did some experiments in CMake, turns out cmake has properties VERSION and
SOVERSION:
{code}
SET_TARGET_PROPERTIES(hadoop PROPERTIES
VERSION "3.0.0-snapshot"
SOVERSION "1")
lrwxrwxrwx 1 decster decster 14 2013-07-11 21:05 libhadoop.so ->
libhadoop.so.1
lrwxrwxrwx 1 decster decster 27 2013-07-11 21:05 libhadoop.so.1 ->
libhadoop.so.3.0.0-snapshot
-rwxrwxr-x 1 decster decster 7721 2013-07-11 21:05 libhadoop.so.3.0.0-snapshot
SET_TARGET_PROPERTIES(hadoop PROPERTIES
VERSION "3.0.0-snapshot"
)
lrwxrwxrwx 1 decster decster 27 2013-07-11 22:41 libhadoop.so ->
libhadoop.so.3.0.0-snapshot
-rwxrwxr-x 1 decster decster 7721 2013-07-11 22:41 libhadoop.so.3.0.0-snapshot
SET_TARGET_PROPERTIES(hadoop PROPERTIES
SOVERSION "1")
lrwxrwxrwx 1 decster decster 14 2013-07-11 22:43 libhadoop.so ->
libhadoop.so.1*
-rwxrwxr-x 1 decster decster 7721 2013-07-11 22:43 libhadoop.so.1*
{code}
I am not sure VERSION means "release version",
if we use lib<name>-<release-version>.so.<so_version> format, we need to add
this to library name, like SET_TARGET_PROPERTIES(hadoop-<release-version>
PROPERTIES SOVERSION "<so_version>")
We need some agreement on this, or should I just leave version number change to
another JIRA?
> Add version number and/or library file name to native library for easy
> tracking
> -------------------------------------------------------------------------------
>
> Key: HADOOP-9164
> URL: https://issues.apache.org/jira/browse/HADOOP-9164
> Project: Hadoop Common
> Issue Type: Improvement
> Components: native
> Affects Versions: 2.0.2-alpha
> Reporter: Binglin Chang
> Assignee: Binglin Chang
> Priority: Minor
> Attachments: HADOOP-9164.v1.patch, HADOOP-9164.v2.patch,
> HADOOP-9164.v3.patch, HADOOP-9164.v4.2.patch, HADOOP-9164.v4.patch,
> HADOOP-9164.v4.patch
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira