All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH iproute2 1/2] README: update libdb build dependency information
@ 2018-05-01 12:43 Baruch Siach
  2018-05-01 12:43 ` [PATCH iproute2 2/2] arpd: remove pthread dependency Baruch Siach
  2018-05-02  2:37 ` [PATCH iproute2 1/2] README: update libdb build dependency information Stephen Hemminger
  0 siblings, 2 replies; 3+ messages in thread
From: Baruch Siach @ 2018-05-01 12:43 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev, Baruch Siach

Debian does not distribute libdb4.x-dev for quite some time now. Current
stable carries libdb5.3-dev. Update the wording accordingly.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 README | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README b/README
index f66fd5faf4cf..bc82187cf018 100644
--- a/README
+++ b/README
@@ -16,8 +16,8 @@ How to compile this.
 --------------------
 1. libdbm
 
-arpd needs to have the db4 development libraries. For Debian
-users this is the package with a name like libdb4.x-dev.
+arpd needs to have the berkeleydb development libraries. For Debian
+users this is the package with a name like libdbX.X-dev.
 DBM_INCLUDE points to the directory with db_185.h which
 is the include file used by arpd to get to the old format Berkeley
 database routines.  Often this is in the db-devel package.
-- 
2.17.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH iproute2 2/2] arpd: remove pthread dependency
  2018-05-01 12:43 [PATCH iproute2 1/2] README: update libdb build dependency information Baruch Siach
@ 2018-05-01 12:43 ` Baruch Siach
  2018-05-02  2:37 ` [PATCH iproute2 1/2] README: update libdb build dependency information Stephen Hemminger
  1 sibling, 0 replies; 3+ messages in thread
From: Baruch Siach @ 2018-05-01 12:43 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev, Baruch Siach

Explicit link with pthread is not needed when linking dynamically. Even
static link with recent libdb does not pull in the code that uses
pthread. Finally, the configure check introduced in commit a25df4887d7
(configure: Check for Berkeley DB for arpd compilation) does not add
-lpthread to its link command.

This change allows arpd build with toolchains that do not provide
threads support.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 misc/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc/Makefile b/misc/Makefile
index 34ef6b21b4ed..b2dd6b26e2dc 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -25,7 +25,7 @@ rtacct: rtacct.c
 	$(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o rtacct rtacct.c $(LDLIBS) -lm
 
 arpd: arpd.c
-	$(QUIET_CC)$(CC) $(CFLAGS) -I$(DBM_INCLUDE) $(LDFLAGS) -o arpd arpd.c $(LDLIBS) -ldb -lpthread
+	$(QUIET_CC)$(CC) $(CFLAGS) -I$(DBM_INCLUDE) $(LDFLAGS) -o arpd arpd.c $(LDLIBS) -ldb
 
 ssfilter.c: ssfilter.y
 	$(QUIET_YACC)bison ssfilter.y -o ssfilter.c
-- 
2.17.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH iproute2 1/2] README: update libdb build dependency information
  2018-05-01 12:43 [PATCH iproute2 1/2] README: update libdb build dependency information Baruch Siach
  2018-05-01 12:43 ` [PATCH iproute2 2/2] arpd: remove pthread dependency Baruch Siach
@ 2018-05-02  2:37 ` Stephen Hemminger
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2018-05-02  2:37 UTC (permalink / raw)
  To: Baruch Siach; +Cc: netdev

On Tue,  1 May 2018 15:43:07 +0300
Baruch Siach <baruch@tkos.co.il> wrote:

> Debian does not distribute libdb4.x-dev for quite some time now. Current
> stable carries libdb5.3-dev. Update the wording accordingly.
> 
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>

Applied both patches, not sure how many people still use arpd anyway...

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-05-02  2:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-01 12:43 [PATCH iproute2 1/2] README: update libdb build dependency information Baruch Siach
2018-05-01 12:43 ` [PATCH iproute2 2/2] arpd: remove pthread dependency Baruch Siach
2018-05-02  2:37 ` [PATCH iproute2 1/2] README: update libdb build dependency information Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.