f2fs-tools: add library version info
PATCH 1/1 f2fs-tools: add library version info
This patch gives the version info for two libraries.
mkfs/libf2fs_format.lalib/libf2fs.la
The versioning rule should be:
1. Start with version information of '0:0:0' for each libtool library.
2. Update the version information only immediately before a public release of your software. More frequent updates are unnecessary, and only guarantee that the current interface number gets larger faster.
2. If the library source code has changed at all since the last update, then increment revision (c:r:a) becomes (c:r+1:a).
3. If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0.
4. If any interfaces have been added since the last public release, then increment age.
5. If any interfaces have been removed or changed since the last public release, then set age to 0.
quoted from:
http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html#Updating-version-info
--- configure.ac | 10 ++++++++++ lib/Makefile.am | 1 + mkfs/Makefile.am | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-)
configure.ac +10 -0
@@ -90,4 +90,14 @@ AC_CONFIG_FILES([ tools/Makefile ]) +# export library version info for mkfs/libf2fs_format_la +AC_SUBST(FMT_CURRENT, 0) +AC_SUBST(FMT_REVISION, 0) +AC_SUBST(FMT_AGE, 0) + +# export library version info for lib/libf2fs_la +AC_SUBST(LIBF2FS_CURRENT, 0) +AC_SUBST(LIBF2FS_REVISION, 0) +AC_SUBST(LIBF2FS_AGE, 0) + AC_OUTPUT
lib/Makefile.am +1 -0
@@ -5,3 +5,4 @@ lib_LTLIBRARIES = libf2fs.la libf2fs_la_SOURCES = libf2fs.c libf2fs_io.c libf2fs_la_CFLAGS = -Wall libf2fs_la_CPPFLAGS = -I$(top_srcdir)/include +libf2fs_la_LDFLAGS = -version-info $(LIBF2FS_CURRENT):$(LIBF2FS_REVISION):$(LIBF2FS_AGE)
mkfs/Makefile.am +2 -1
@@ -10,4 +10,5 @@ lib_LTLIBRARIES = libf2fs_format.la libf2fs_format_la_SOURCES = f2fs_format_main.c f2fs_format.c f2fs_format_utils.c libf2fs_format_la_CFLAGS = -DWITH_BLKDISCARD libf2fs_format_la_CPPFLAGS = -I$(top_srcdir)/include -libf2fs_format_la_LDFLAGS = -luuid -L$(top_srcdir)/lib -lf2fs +libf2fs_format_la_LDFLAGS = -luuid -L$(top_srcdir)/lib -lf2fs \ + -version-info $(FMT_CURRENT):$(FMT_REVISION):$(FMT_AGE)
Signature · 4 lines
2.4.9 (Apple Git-60) ------------------------------------------------------------------------------
Hi Kim,
Maybe we can forget about the versioning for now. Libtool's versioning mechanism is a little bit complicated and adding the version to SONAME will likely cause big or small problems for so many downstream projects.
Why don't we simply add the libf2fs_format? That won't hurt anyway. :)
Regards,
Kai-Chung Yan
2015-12-10 3:12 GMT+08:00 Jaegeuk Kim <[email protected]>:
Quoted 74 lines
This patch gives the version info for two libraries.
mkfs/libf2fs_format.la
lib/libf2fs.laThe versioning rule should be:
1. Start with version information of '0:0:0' for each libtool library.
2. Update the version information only immediately before a public release of your software. More frequent updates are unnecessary, and only guarantee that the current interface number gets larger faster.
2. If the library source code has changed at all since the last update, then increment revision (c:r:a) becomes (c:r+1:a).
3. If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0.
4. If any interfaces have been added since the last public release, then increment age.
5. If any interfaces have been removed or changed since the last public release, then set age to 0.quoted from:
http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html#Updating-version-infoCc Hans-Christoph Steiner <[email protected]>Cc Kai-Chung Yan <[email protected]>Signed-off-by Jaegeuk Kim <[email protected]>--- configure.ac | 10 ++++++++++ lib/Makefile.am | 1 + mkfs/Makefile.am | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-)configure.ac +10
-0@@ -90,4 +90,14 @@ AC_CONFIG_FILES([ tools/Makefile ]) +# export library version info for mkfs/libf2fs_format_la +AC_SUBST(FMT_CURRENT, 0) +AC_SUBST(FMT_REVISION, 0) +AC_SUBST(FMT_AGE, 0) + +# export library version info for lib/libf2fs_la +AC_SUBST(LIBF2FS_CURRENT, 0) +AC_SUBST(LIBF2FS_REVISION, 0) +AC_SUBST(LIBF2FS_AGE, 0) + AC_OUTPUTlib/Makefile.am +1
-0@@ -5,3 +5,4 @@ lib_LTLIBRARIES = libf2fs.la libf2fs_la_SOURCES = libf2fs.c libf2fs_io.c libf2fs_la_CFLAGS = -Wall libf2fs_la_CPPFLAGS = -I$(top_srcdir)/include +libf2fs_la_LDFLAGS = -version-info $(LIBF2FS_CURRENT):$(LIBF2FS_REVISION):$(LIBF2FS_AGE)mkfs/Makefile.am +2
-2@@ -10,4 +10,5 @@ lib_LTLIBRARIES = libf2fs_format.la libf2fs_format_la_SOURCES = f2fs_format_main.c f2fs_format.c f2fs_format_utils.c libf2fs_format_la_CFLAGS = -DWITH_BLKDISCARD libf2fs_format_la_CPPFLAGS = -I$(top_srcdir)/include -libf2fs_format_la_LDFLAGS = -luuid -L$(top_srcdir)/lib -lf2fs +libf2fs_format_la_LDFLAGS = -luuid -L$(top_srcdir)/lib -lf2fs \ + -version-info $(FMT_CURRENT):$(FMT_REVISION):$(FMT_AGE) --2.4.9 (Apple Git-60)
Signature · 13 lines
/* * 殷啟聰 | Kai-Chung Yan * 一生只向真理與妻子低頭 * Full-time student of National Taichung University of Education * LinkedIn: <https://linkedin.com/in/seamlik> * Blog: <seamlik.logdown.com> */ ------------------------------------------------------------------------------ _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
It would be great to have the full versioned shared library, but if it'll make things move faster, we can solve our Android SDK issues with only a static library. Then the shared library can come later.
.hc
殷啟聰:
Quoted 79 lines
Hi Kim,
Maybe we can forget about the versioning for now. Libtool's versioning mechanism is a little bit complicated and adding the version to SONAME will likely cause big or small problems for so many downstream projects.
Why don't we simply add the
libf2fs_format? That won't hurt anyway. :)Regards,
Kai-Chung Yan2015-12-10 3:12 GMT+08:00 Jaegeuk Kim <[email protected]>:
Quoted 66 lines
This patch gives the version info for two libraries.
mkfs/libf2fs_format.la
lib/libf2fs.laThe versioning rule should be:
1. Start with version information of '0:0:0' for each libtool library.
2. Update the version information only immediately before a public release of your software. More frequent updates are unnecessary, and only guarantee that the current interface number gets larger faster.
2. If the library source code has changed at all since the last update, then increment revision (c:r:a) becomes (c:r+1:a).
3. If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0.
4. If any interfaces have been added since the last public release, then increment age.
5. If any interfaces have been removed or changed since the last public release, then set age to 0.quoted from:
http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html#Updating-version-infoCc Hans-Christoph Steiner <[email protected]>Cc Kai-Chung Yan <[email protected]>Signed-off-by Jaegeuk Kim <[email protected]>--- configure.ac | 10 ++++++++++ lib/Makefile.am | 1 + mkfs/Makefile.am | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-)configure.ac +10
-0@@ -90,4 +90,14 @@ AC_CONFIG_FILES([ tools/Makefile ]) +# export library version info for mkfs/libf2fs_format_la +AC_SUBST(FMT_CURRENT, 0) +AC_SUBST(FMT_REVISION, 0) +AC_SUBST(FMT_AGE, 0) + +# export library version info for lib/libf2fs_la +AC_SUBST(LIBF2FS_CURRENT, 0) +AC_SUBST(LIBF2FS_REVISION, 0) +AC_SUBST(LIBF2FS_AGE, 0) + AC_OUTPUTlib/Makefile.am +1
-0@@ -5,3 +5,4 @@ lib_LTLIBRARIES = libf2fs.la libf2fs_la_SOURCES = libf2fs.c libf2fs_io.c libf2fs_la_CFLAGS = -Wall libf2fs_la_CPPFLAGS = -I$(top_srcdir)/include +libf2fs_la_LDFLAGS = -version-info $(LIBF2FS_CURRENT):$(LIBF2FS_REVISION):$(LIBF2FS_AGE)mkfs/Makefile.am +0
-0@@ -10,4 +10,5 @@ lib_LTLIBRARIES = libf2fs_format.la libf2fs_format_la_SOURCES = f2fs_format_main.c f2fs_format.c f2fs_format_utils.c
Quoted 11 lines
Quoted 8 lines
mkfs/Makefile.am +2
-2libf2fs_format_la_CFLAGS = -DWITH_BLKDISCARD libf2fs_format_la_CPPFLAGS = -I$(top_srcdir)/include -libf2fs_format_la_LDFLAGS = -luuid -L$(top_srcdir)/lib -lf2fs +libf2fs_format_la_LDFLAGS = -luuid -L$(top_srcdir)/lib -lf2fs \ + -version-info $(FMT_CURRENT):$(FMT_REVISION):$(FMT_AGE) --2.4.9 (Apple Git-60)
------------------------------------------------------------------------------
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Hello,
Cool, I also think it would be good to support versions to libs. I don't expect that libs are likely to move so fast.
Thanks,
2015-12-15 7:28 GMT-08:00 Hans-Christoph Steiner <[email protected]>:
Quoted 98 lines
It would be great to have the full versioned shared library, but if it'll make things move faster, we can solve our Android SDK issues with only a static library. Then the shared library can come later.
.hc
殷啟聰:
Quoted 90 lines
Hi Kim,
Maybe we can forget about the versioning for now. Libtool's versioning mechanism is a little bit complicated and adding the version to SONAME will likely cause big or small problems for so many downstream projects.
Why don't we simply add the
libf2fs_format? That won't hurt anyway. :)Regards,
Kai-Chung Yan2015-12-10 3:12 GMT+08:00 Jaegeuk Kim <[email protected]>:
Quoted 74 lines
This patch gives the version info for two libraries.
mkfs/libf2fs_format.la
lib/libf2fs.laThe versioning rule should be:
1. Start with version information of '0:0:0' for each libtool library.
2. Update the version information only immediately before a public release of your software. More frequent updates are unnecessary, and only guarantee that the current interface number gets larger faster.
2. If the library source code has changed at all since the last update, then increment revision (c:r:a) becomes (c:r+1:a).
3. If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0.
4. If any interfaces have been added since the last public release, then increment age.
5. If any interfaces have been removed or changed since the last public release, then set age to 0.quoted from:
http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html#Updating-version-infoCc Hans-Christoph Steiner <[email protected]>Cc Kai-Chung Yan <[email protected]>Signed-off-by Jaegeuk Kim <[email protected]>--- configure.ac | 10 ++++++++++ lib/Makefile.am | 1 + mkfs/Makefile.am | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-)configure.ac +10
-0@@ -90,4 +90,14 @@ AC_CONFIG_FILES([ tools/Makefile ]) +# export library version info for mkfs/libf2fs_format_la +AC_SUBST(FMT_CURRENT, 0) +AC_SUBST(FMT_REVISION, 0) +AC_SUBST(FMT_AGE, 0) + +# export library version info for lib/libf2fs_la +AC_SUBST(LIBF2FS_CURRENT, 0) +AC_SUBST(LIBF2FS_REVISION, 0) +AC_SUBST(LIBF2FS_AGE, 0) + AC_OUTPUTlib/Makefile.am +1
-0@@ -5,3 +5,4 @@ lib_LTLIBRARIES = libf2fs.la libf2fs_la_SOURCES = libf2fs.c libf2fs_io.c libf2fs_la_CFLAGS = -Wall libf2fs_la_CPPFLAGS = -I$(top_srcdir)/include +libf2fs_la_LDFLAGS = -version-info $(LIBF2FS_CURRENT):$(LIBF2FS_REVISION):$(LIBF2FS_AGE)mkfs/Makefile.am +2
-2@@ -10,4 +10,5 @@ lib_LTLIBRARIES = libf2fs_format.la libf2fs_format_la_SOURCES = f2fs_format_main.c f2fs_format.c f2fs_format_utils.c libf2fs_format_la_CFLAGS = -DWITH_BLKDISCARD libf2fs_format_la_CPPFLAGS = -I$(top_srcdir)/include -libf2fs_format_la_LDFLAGS = -luuid -L$(top_srcdir)/lib -lf2fs +libf2fs_format_la_LDFLAGS = -luuid -L$(top_srcdir)/lib -lf2fs \ + -version-info $(FMT_CURRENT):$(FMT_REVISION):$(FMT_AGE) --2.4.9 (Apple Git-60)
------------------------------------------------------------------------------
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel