Skip to contentSkip to conversation

package/liblinear: bump to 2.48

PATCH In review Marcus Hoffmann via buildroot 2 participants 2 messages Apr 9, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/liblinear: bump to 2.48

Rebase patch for new version.
Soname changed, so updating accordingly in the mk file. COPYRIGHT year got updated[2]

[1] https://github.com/cjlin1/liblinear/commit/818442728081980e9786cd3e87034d4e2912f0c4
[2] https://github.com/cjlin1/liblinear/commit/6c0108dcf3f84262530b909c53e778007235bff5

---
Changes v2: Rebase patch on top of latest version

 package/liblinear/0001-build-static-lib.patch | 27 ++++++++++++++-----
 package/liblinear/liblinear.hash              |  4 +--
 package/liblinear/liblinear.mk                |  6 ++---
 3 files changed, 25 insertions(+), 12 deletions(-)
package/liblinear/0001-build-static-lib.patch +20 -7
index f3497b767e..69769a8005 100644
@@ -1,14 +1,24 @@
-Makefile: add a rule to build a static library
+From 43a6b4c7b3a63b1cd7f1ed2772a1147be892560f Mon Sep 17 00:00:00 2001
+From: Marcus Hoffmann <[email protected]>
+Date: Wed, 9 Apr 2025 16:03:59 +0200
+Subject: [PATCH] Makefile: add a rule to build a static library
 
 Signed-off-by: "Yann E. MORIN" <[email protected]>
 [Fabrice: update for 2.43]
 Signed-off-by: Fabrice Fontaine <[email protected]>
-diff -durN liblinear-1.96.orig/Makefile liblinear-1.96/Makefile
---- liblinear-1.96.orig/Makefile	2014-11-15 07:50:23.000000000 +0100
-+++ liblinear-1.96/Makefile	2014-12-14 00:23:00.135893956 +0100
-@@ -16,6 +16,11 @@
- 	fi; \
- 	$(CXX) $${SHARED_LIB_FLAG} linear.o newton.o blas/blas.a -o liblinear.so.$(SHVER)
+[Marcus: update for 2.48]
+Signed-off-by: Marcus Hoffmann <[email protected]>
+---
+ Makefile | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/Makefile b/Makefile
+index 4f22d17..5cf9b26 100644
+--- a/Makefile
++++ b/Makefile
+@@ -16,6 +16,11 @@ all: train predict
+ lib: linear.o newton.o blas/blas.a
+ 	$(CXX) $(SHARED_LIB_FLAG) linear.o newton.o blas/blas.a -o liblinear.so.$(SHVER)
  
 +# Keeping blas/blas.a as a pre-requisite, to ensure all .o files are built
 +static-lib: linear.o newton.o blas/blas.a
@@ -18,3 +28,6 @@ diff -durN liblinear-1.96.orig/Makefile liblinear-1.96/Makefile
  train: newton.o linear.o train.c blas/blas.a
  	$(CXX) $(CFLAGS) -o train train.c newton.o linear.o $(LIBS)
  
+-- 
+2.43.0
+
package/liblinear/liblinear.hash +2 -2
index 6bc72909d0..01c7254df6 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  3c64eec45c01943a656baac7aeb8ffd782fe0aea53629aa9f5fdb8eec177c92f  liblinear-2.45.tar.gz
-sha256  d49b7898fd9ea7c29f0478e8c409ee7c0f621533d5eca7b7912e80391dc564e3  COPYRIGHT
+sha256  72ea3853a9fb430b49c3196177d8acdffd2dadb5901832ee323465792087e8cc  liblinear-2.48.tar.gz
+sha256  684e76f565a31ab057790c612bdacc2ee542f8a90b69f922377a92334771488c  COPYRIGHT
package/liblinear/liblinear.mk +3 -3
index 134673a230..fb3dfdd38c 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBLINEAR_VERSION = 2.45
+LIBLINEAR_VERSION = 2.48
 LIBLINEAR_SITE = https://www.csie.ntu.edu.tw/~cjlin/liblinear/oldfiles
 LIBLINEAR_LICENSE = BSD-3-Clause
 LIBLINEAR_LICENSE_FILES = COPYRIGHT
@@ -14,8 +14,8 @@ LIBLINEAR_CFLAGS = $(TARGET_CFLAGS)
 ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
 # $1: destination directory
 define LIBLINEAR_INSTALL_SHARED
-	$(INSTALL) -m 0644 -D $(@D)/liblinear.so.5 $(1)/usr/lib/liblinear.so.5
-	ln -sf liblinear.so.5 $(1)/usr/lib/liblinear.so
+	$(INSTALL) -m 0644 -D $(@D)/liblinear.so.6 $(1)/usr/lib/liblinear.so.6
+	ln -sf liblinear.so.6 $(1)/usr/lib/liblinear.so
 endef
 LIBLINEAR_CFLAGS += -fPIC
 endif
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 8 lines · Marcus Hoffmann via buildroot

Rebase patch for new version.
Soname changed, so updating accordingly in the mk file. COPYRIGHT year got updated[2]

[1] https://github.com/cjlin1/liblinear/commit/818442728081980e9786cd3e87034d4e2912f0c4
[2] https://github.com/cjlin1/liblinear/commit/6c0108dcf3f84262530b909c53e778007235bff5

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot