mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-07 03:29:59 +00:00
libstemmer: Update to 2.2.0
Rename recipe to reflect PV Refresh solibs build patch Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -8,7 +8,7 @@ Content-Transfer-Encoding: 8bit
|
|||||||
|
|
||||||
Stolen from [1]
|
Stolen from [1]
|
||||||
|
|
||||||
[1] https://aur.archlinux.org/cgit/aur.git/commit/dynamiclib.patch?h=snowball-git&id=a9cbf4f42f3661e4b8f791cd4374233821716ea1
|
[1] https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/snowball/trunk/dynamiclib.diff
|
||||||
|
|
||||||
Upstream-Status: Pending
|
Upstream-Status: Pending
|
||||||
|
|
||||||
@@ -19,36 +19,33 @@ Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
|||||||
2 files changed, 11 insertions(+), 2 deletions(-)
|
2 files changed, 11 insertions(+), 2 deletions(-)
|
||||||
create mode 100644 libstemmer/symbol.map
|
create mode 100644 libstemmer/symbol.map
|
||||||
|
|
||||||
diff --git a/GNUmakefile b/GNUmakefile
|
|
||||||
index cbd6ff7..a85230b 100644
|
|
||||||
--- a/GNUmakefile
|
--- a/GNUmakefile
|
||||||
+++ b/GNUmakefile
|
+++ b/GNUmakefile
|
||||||
@@ -162,10 +162,10 @@ C_OTHER_OBJECTS = $(C_OTHER_SOURCES:.c=.o)
|
@@ -170,12 +170,12 @@ C_OTHER_OBJECTS = $(C_OTHER_SOURCES:.c=.
|
||||||
JAVA_CLASSES = $(JAVA_SOURCES:.java=.class)
|
JAVA_CLASSES = $(JAVA_SOURCES:.java=.class)
|
||||||
JAVA_RUNTIME_CLASSES=$(JAVARUNTIME_SOURCES:.java=.class)
|
JAVA_RUNTIME_CLASSES=$(JAVARUNTIME_SOURCES:.java=.class)
|
||||||
|
|
||||||
-CFLAGS=-O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations
|
-CFLAGS=-O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations
|
||||||
+CFLAGS=-O2 -fPIC -W -Wall -Wmissing-prototypes -Wmissing-declarations
|
+CFLAGS=-O2 -fPIC -W -Wall -Wmissing-prototypes -Wmissing-declarations
|
||||||
CPPFLAGS=-Iinclude
|
CPPFLAGS=
|
||||||
|
|
||||||
-all: snowball libstemmer.o stemwords $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS)
|
INCLUDES=-Iinclude
|
||||||
+all: snowball libstemmer.o libstemmer.so stemwords $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS)
|
|
||||||
|
|
||||||
clean:
|
-all: snowball$(EXEEXT) libstemmer.a stemwords$(EXEEXT) $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS)
|
||||||
rm -f $(COMPILER_OBJECTS) $(RUNTIME_OBJECTS) \
|
+all: snowball$(EXEEXT) libstemmer.a libstemmer.so stemwords$(EXEEXT) $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS)
|
||||||
@@ -212,6 +212,9 @@ libstemmer/libstemmer.o: libstemmer/modules.h $(C_LIB_HEADERS)
|
|
||||||
libstemmer.o: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS)
|
algorithms.mk: libstemmer/mkalgorithms.pl libstemmer/modules.txt
|
||||||
|
libstemmer/mkalgorithms.pl algorithms.mk libstemmer/modules.txt
|
||||||
|
@@ -225,6 +225,9 @@ libstemmer/libstemmer.o: libstemmer/modu
|
||||||
|
libstemmer.a: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS)
|
||||||
$(AR) -cru $@ $^
|
$(AR) -cru $@ $^
|
||||||
|
|
||||||
+libstemmer.so: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS)
|
+libstemmer.so: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS)
|
||||||
+ $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname,libstemmer.so.0,-version-script,libstemmer/symbol.map -o $@.0.0.0 $^
|
+ $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname,libstemmer.so.0,-version-script,libstemmer/symbol.map -o $@.0.0.0 $^
|
||||||
+
|
+
|
||||||
stemwords: $(STEMWORDS_OBJECTS) libstemmer.o
|
examples/%.o: examples/%.c
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
$(CC) $(CFLAGS) $(INCLUDES) $(CPPFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
diff --git a/libstemmer/symbol.map b/libstemmer/symbol.map
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..7a3d423
|
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/libstemmer/symbol.map
|
+++ b/libstemmer/symbol.map
|
||||||
@@ -0,0 +1,6 @@
|
@@ -0,0 +1,6 @@
|
||||||
@@ -58,6 +55,3 @@ index 0000000..7a3d423
|
|||||||
+ local:
|
+ local:
|
||||||
+ *;
|
+ *;
|
||||||
+};
|
+};
|
||||||
--
|
|
||||||
2.20.1
|
|
||||||
|
|
||||||
|
|||||||
+9
-10
@@ -3,21 +3,18 @@ HOMEPAGE = "https://snowballstem.org/"
|
|||||||
LICENSE = "BSD-3-Clause"
|
LICENSE = "BSD-3-Clause"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=19139aaf3c8c8fa1ca6edd59c072fb9f"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=19139aaf3c8c8fa1ca6edd59c072fb9f"
|
||||||
|
|
||||||
DEPENDS:class-target = "${BPN}-native"
|
DEPENDS:append:class-target = " ${BPN}-native"
|
||||||
|
|
||||||
SRC_URI = "\
|
SRC_URI = "git://github.com/snowballstem/snowball.git;branch=master;protocol=https \
|
||||||
git://github.com/snowballstem/snowball.git;branch=master;protocol=https \
|
file://0001-Build-so-lib.patch \
|
||||||
file://0001-Build-so-lib.patch \
|
"
|
||||||
"
|
SRCREV = "48a67a2831005f49c48ec29a5837640e23e54e6b"
|
||||||
SRCREV = "4764395431c8f2a0b4fe18b816ab1fc966a45837"
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
PV = "2.1.0"
|
|
||||||
LIBVER = "0.0.0"
|
LIBVER = "0.0.0"
|
||||||
|
|
||||||
inherit lib_package
|
inherit lib_package
|
||||||
|
|
||||||
BBCLASSEXTEND = "native"
|
|
||||||
|
|
||||||
do_compile:prepend:class-target() {
|
do_compile:prepend:class-target() {
|
||||||
# use native tools
|
# use native tools
|
||||||
sed -i 's:./snowball :snowball :g' ${S}/GNUmakefile
|
sed -i 's:./snowball :snowball :g' ${S}/GNUmakefile
|
||||||
@@ -34,5 +31,7 @@ do_install() {
|
|||||||
ln -s libstemmer.so.${LIBVER} ${D}${libdir}/libstemmer.so
|
ln -s libstemmer.so.${LIBVER} ${D}${libdir}/libstemmer.so
|
||||||
|
|
||||||
install -d ${D}${includedir}
|
install -d ${D}${includedir}
|
||||||
install -m 644 ${S}/include/*.h ${D}${includedir}
|
install -m 644 ${S}/include/*.h ${D}${includedir}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BBCLASSEXTEND = "native"
|
||||||
Reference in New Issue
Block a user