Skip to contentSkip to conversation

squid: Link with libatomic on riscv

PATCH In review Khem Raj 2 participants 7 messages Jan 28, 2020 – Jan 30, 2020

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/3 squid: Link with libatomic on riscv

---
 meta-networking/recipes-daemons/squid/squid_4.9.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-daemons/squid/squid_4.9.bb +2 -0
index 6f202cf401..19949acd84 100644
@@ -40,6 +40,8 @@ inherit autotools pkgconfig useradd ptest perlnative
 
 LDFLAGS_append_mipsarch = " -latomic"
 LDFLAGS_append_powerpc = " -latomic"
+LDFLAGS_append_riscv64 = " -latomic"
+LDFLAGS_append_riscv32 = " -latomic"
 
 USERADD_PACKAGES = "${PN}"
 USERADD_PARAM_${PN} = "--system --no-create-home --home-dir /var/run/squid --shell /bin/false --user-group squid"
Signature · 1 line
2.25.0
author
#1 lore raw

PATCH 2/3 grpc: Link with libatomic on riscv

---
 meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb +8 -0
index 6ab15dae40..752562eb33 100644
@@ -48,6 +48,14 @@ do_configure_prepend_powerpc() {
     sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt
 }
 
+do_configure_prepend_riscv64() {
+    sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt
+}
+
+do_configure_prepend_riscv32() {
+    sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt
+}
+
 do_configure_prepend_toolchain-clang_x86() {
     sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt
 }
Signature · 1 line
2.25.0
author
#2 lore raw

PATCH 3/3 netdata: Add libatomic to link step

In reply to Khem Raj
---
 meta-webserver/recipes-webadmin/netdata/netdata_git.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-webserver/recipes-webadmin/netdata/netdata_git.bb +2 -0
index d179e84e33..d6a5ce0662 100644
@@ -26,6 +26,8 @@ DEPENDS += "zlib util-linux"
 inherit pkgconfig autotools-brokensep useradd systemd
 
 LIBS_toolchain-clang_x86 = "-latomic"
+LIBS_riscv64 = "-latomic"
+LIBS_riscv32 = "-latomic"
 export LIBS
 
 #systemd
Signature · 1 line
2.25.0
#3 lore raw
In reply to Khem Raj
Quoted 1 line · Khem Raj

Is this for the same reason as for nodejs Cento7 fix ?

- armin

Quoted 17 lines
---
 meta-networking/recipes-daemons/squid/squid_4.9.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-daemons/squid/squid_4.9.bb +2 -0
index 6f202cf401..19949acd84 100644
@@ -40,6 +40,8 @@ inherit autotools pkgconfig useradd ptest perlnative
 
 LDFLAGS_append_mipsarch = " -latomic"
 LDFLAGS_append_powerpc = " -latomic"
+LDFLAGS_append_riscv64 = " -latomic"
+LDFLAGS_append_riscv32 = " -latomic"
 
 USERADD_PACKAGES = "${PN}"
 USERADD_PARAM_${PN} = "--system --no-create-home --home-dir /var/run/squid --shell /bin/false --user-group squid"
author
#4 lore raw
Quoted 8 lines · On Wed, Jan 29, 2020 at 9:32 PM akuster808 <[email protected]> wrote:
Quoted 1 line · Khem Raj

Is this for the same reason as for nodejs Cento7 fix ?

pretty much same problem, although a better fix is to detect it during build but every build system has its own nuance.

Quoted 19 lines

- armin

Quoted 17 lines
---
 meta-networking/recipes-daemons/squid/squid_4.9.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-daemons/squid/squid_4.9.bb +2 -0
index 6f202cf401..19949acd84 100644
@@ -40,6 +40,8 @@ inherit autotools pkgconfig useradd ptest perlnative
 
 LDFLAGS_append_mipsarch = " -latomic"
 LDFLAGS_append_powerpc = " -latomic"
+LDFLAGS_append_riscv64 = " -latomic"
+LDFLAGS_append_riscv32 = " -latomic"
 
 USERADD_PACKAGES = "${PN}"
 USERADD_PARAM_${PN} = "--system --no-create-home --home-dir /var/run/squid --shell /bin/false --user-group squid"
#5 lore raw
Quoted 9 lines · Khem Raj
Quoted 6 lines · On Wed, Jan 29, 2020 at 9:32 PM akuster808 <[email protected]> wrote:
Quoted 1 line · Khem Raj

Is this for the same reason as for nodejs Cento7 fix ?

pretty much same problem, although a better fix is to detect it during build but every build system has its own nuance.

ok. backport worthy then.

thanks,
Armin

Quoted 19 lines
Quoted 19 lines

- armin

Quoted 17 lines
---
 meta-networking/recipes-daemons/squid/squid_4.9.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-daemons/squid/squid_4.9.bb +2 -0
index 6f202cf401..19949acd84 100644
@@ -40,6 +40,8 @@ inherit autotools pkgconfig useradd ptest perlnative
 
 LDFLAGS_append_mipsarch = " -latomic"
 LDFLAGS_append_powerpc = " -latomic"
+LDFLAGS_append_riscv64 = " -latomic"
+LDFLAGS_append_riscv32 = " -latomic"
 
 USERADD_PACKAGES = "${PN}"
 USERADD_PARAM_${PN} = "--system --no-create-home --home-dir /var/run/squid --shell /bin/false --user-group squid"
author
#6 lore raw
Quoted 7 lines · On Thu, Jan 30, 2020 at 11:01 AM akuster808 <[email protected]> wrote:
Quoted 3 lines · Khem Raj
Quoted 2 lines · On Wed, Jan 29, 2020 at 9:32 PM akuster808 <[email protected]> wrote:
Quoted 7 lines
Quoted 6 lines
Quoted 4 lines · Khem Raj
Quoted 1 line

Is this for the same reason as for nodejs Cento7 fix ?

pretty much same problem, although a better fix is to detect it during build but every build system has its own nuance.

ok. backport worthy then.

yes

thanks