netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/6] Update .gitignore
  2010-11-16 11:43 libmnl: proposed patches 20101116 Jan Engelhardt
@ 2010-11-16 11:43 ` Jan Engelhardt
  0 siblings, 0 replies; 10+ messages in thread
From: Jan Engelhardt @ 2010-11-16 11:43 UTC (permalink / raw)
  To: pablo; +Cc: netfilter-devel

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
 examples/netfilter/.gitignore |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/examples/netfilter/.gitignore b/examples/netfilter/.gitignore
index 0d1727d..f2f863f 100644
--- a/examples/netfilter/.gitignore
+++ b/examples/netfilter/.gitignore
@@ -1,2 +1,3 @@
+/nf-log
 /nf-queue
 /nfct-event
-- 
1.7.1


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

* iptables: build updates and fixes
@ 2011-12-30  1:34 Jan Engelhardt
  2011-12-30  1:34 ` [PATCH 1/6] Update .gitignore Jan Engelhardt
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Jan Engelhardt @ 2011-12-30  1:34 UTC (permalink / raw)
  To: netfilter-devel


The following changes since commit b8c42eca0f224a00bf55b60ded81af14a1e07da1:
  libiptc: provide separate pkgconfig files (2011-12-18 02:52:32 +0100)

are available FOR REVIEW in the git repository at:
  git://dev.medozas.de/iptables stable

Jan Engelhardt (6):
      Update .gitignore
      build: use AC_CONFIG_AUX_DIR and stash away tools
      Update .gitignore
      build: use delayed expansion on the user-settable variables
      extensions: link on libxtables and check symbols
      nfnl_osf: add missing libnfnetlink_CFLAGS to compile process

 .gitignore                |   27 ++++-----------------
 configure.ac              |   11 +++++++++
 extensions/.gitignore     |    9 +++++++
 extensions/GNUmakefile.in |   56 +++++++++++++++++++-------------------------
 utils/Makefile.am         |    3 +-
 5 files changed, 51 insertions(+), 55 deletions(-)
 create mode 100644 extensions/.gitignore

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

* [PATCH 1/6] Update .gitignore
  2011-12-30  1:34 iptables: build updates and fixes Jan Engelhardt
@ 2011-12-30  1:34 ` Jan Engelhardt
  2011-12-30  1:34 ` [PATCH 2/6] build: use AC_CONFIG_AUX_DIR and stash away tools Jan Engelhardt
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Jan Engelhardt @ 2011-12-30  1:34 UTC (permalink / raw)
  To: netfilter-devel

Only ignore these paths if they are a directory.
---
 .gitignore |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore
index 3e7def5..deed221 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,9 +6,9 @@
 *.oo
 *.so
 *.o
-.deps
+.deps/
 .dirstamp
-.libs
+.libs/
 Makefile
 Makefile.in
 
@@ -22,7 +22,7 @@ Makefile.in
 /include/iptables/internal.h
 
 /aclocal.m4
-/autom4te*.cache
+/autom4te.cache/
 /compile
 /config.guess
 /config.h*
-- 
1.7.3.4


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

* [PATCH 2/6] build: use AC_CONFIG_AUX_DIR and stash away tools
  2011-12-30  1:34 iptables: build updates and fixes Jan Engelhardt
  2011-12-30  1:34 ` [PATCH 1/6] Update .gitignore Jan Engelhardt
@ 2011-12-30  1:34 ` Jan Engelhardt
  2011-12-30  1:34 ` [PATCH 3/6] Update .gitignore Jan Engelhardt
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Jan Engelhardt @ 2011-12-30  1:34 UTC (permalink / raw)
  To: netfilter-devel

---
 .gitignore   |   12 ++----------
 configure.ac |    1 +
 2 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/.gitignore b/.gitignore
index deed221..8e082d2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,16 +23,8 @@ Makefile.in
 
 /aclocal.m4
 /autom4te.cache/
-/compile
-/config.guess
-/config.h*
-/config.log
-/config.status
-/config.sub
+/build-aux/
+/config.*
 /configure
-/depcomp
-/install-sh
 /libtool
-/ltmain.sh
-/missing
 /stamp-h1
diff --git a/configure.ac b/configure.ac
index 298d551..5679098 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,6 +5,7 @@ AC_INIT([iptables], [1.4.12.1])
 libxtables_vcurrent=7
 libxtables_vage=0
 
+AC_CONFIG_AUX_DIR([build-aux])
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_MACRO_DIR([m4])
 AC_PROG_INSTALL
-- 
1.7.3.4


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

* [PATCH 3/6] Update .gitignore
  2011-12-30  1:34 iptables: build updates and fixes Jan Engelhardt
  2011-12-30  1:34 ` [PATCH 1/6] Update .gitignore Jan Engelhardt
  2011-12-30  1:34 ` [PATCH 2/6] build: use AC_CONFIG_AUX_DIR and stash away tools Jan Engelhardt
@ 2011-12-30  1:34 ` Jan Engelhardt
  2011-12-30  1:34 ` [PATCH 4/6] build: use delayed expansion on the user-settable variables Jan Engelhardt
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Jan Engelhardt @ 2011-12-30  1:34 UTC (permalink / raw)
  To: netfilter-devel

Split off extensions/.gitignore.
---
 .gitignore            |    9 ---------
 extensions/.gitignore |    9 +++++++++
 2 files changed, 9 insertions(+), 9 deletions(-)
 create mode 100644 extensions/.gitignore

diff --git a/.gitignore b/.gitignore
index 8e082d2..b7c3dfb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,9 +1,6 @@
-.*.d
-.*.dd
 *.a
 *.la
 *.lo
-*.oo
 *.so
 *.o
 .deps/
@@ -12,12 +9,6 @@
 Makefile
 Makefile.in
 
-/extensions/GNUmakefile
-/extensions/initext.c
-/extensions/initext?.c
-/extensions/matches?.man
-/extensions/targets?.man
-
 /include/xtables.h
 /include/iptables/internal.h
 
diff --git a/extensions/.gitignore b/extensions/.gitignore
new file mode 100644
index 0000000..2e74faf
--- /dev/null
+++ b/extensions/.gitignore
@@ -0,0 +1,9 @@
+.*.d
+.*.dd
+*.oo
+
+/GNUmakefile
+/initext.c
+/initext?.c
+/matches?.man
+/targets?.man
-- 
1.7.3.4


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

* [PATCH 4/6] build: use delayed expansion on the user-settable variables
  2011-12-30  1:34 iptables: build updates and fixes Jan Engelhardt
                   ` (2 preceding siblings ...)
  2011-12-30  1:34 ` [PATCH 3/6] Update .gitignore Jan Engelhardt
@ 2011-12-30  1:34 ` Jan Engelhardt
  2011-12-30  1:35 ` [PATCH 5/6] extensions: link on libxtables and check symbols Jan Engelhardt
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: Jan Engelhardt @ 2011-12-30  1:34 UTC (permalink / raw)
  To: netfilter-devel

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
 extensions/GNUmakefile.in |   38 +++++++++++++++++++-------------------
 1 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in
index b088684..84c85de 100644
--- a/extensions/GNUmakefile.in
+++ b/extensions/GNUmakefile.in
@@ -1,26 +1,26 @@
 # -*- Makefile -*-
 
-top_builddir := @top_builddir@
-builddir     := @builddir@
-top_srcdir  := @top_srcdir@
-srcdir      := @srcdir@
-ksourcedir  := @ksourcedir@
-prefix      := @prefix@
-exec_prefix := @exec_prefix@
-libdir      := @libdir@
-libexecdir  := @libexecdir@
-xtlibdir    := @xtlibdir@
-
-CC             := @CC@
-CCLD           := ${CC}
-CFLAGS         := @CFLAGS@
-CPPFLAGS       := @CPPFLAGS@
-LDFLAGS        := @LDFLAGS@
-regular_CFLAGS := @regular_CFLAGS@
-regular_CPPFLAGS := @regular_CPPFLAGS@
-kinclude_CPPFLAGS := @kinclude_CPPFLAGS@
-
-AM_CFLAGS      := ${regular_CFLAGS}
+top_builddir = @top_builddir@
+builddir     = @builddir@
+top_srcdir   = @top_srcdir@
+srcdir       = @srcdir@
+ksourcedir   = @ksourcedir@
+prefix       = @prefix@
+exec_prefix  = @exec_prefix@
+libdir       = @libdir@
+libexecdir   = @libexecdir@
+xtlibdir     = @xtlibdir@
+
+CC                 = @CC@
+CCLD               = ${CC}
+CFLAGS             = @CFLAGS@
+CPPFLAGS           = @CPPFLAGS@
+LDFLAGS            = @LDFLAGS@
+regular_CFLAGS     = @regular_CFLAGS@
+regular_CPPFLAGS   = @regular_CPPFLAGS@
+kinclude_CPPFLAGS  = @kinclude_CPPFLAGS@
+
+AM_CFLAGS       = ${regular_CFLAGS}
 AM_CPPFLAGS     = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_builddir} -I${top_srcdir}/include ${kinclude_CPPFLAGS}
 AM_DEPFLAGS     = -Wp,-MMD,$(@D)/.$(@F).d,-MT,$@
 
-- 
1.7.3.4


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

* [PATCH 5/6] extensions: link on libxtables and check symbols
  2011-12-30  1:34 iptables: build updates and fixes Jan Engelhardt
                   ` (3 preceding siblings ...)
  2011-12-30  1:34 ` [PATCH 4/6] build: use delayed expansion on the user-settable variables Jan Engelhardt
@ 2011-12-30  1:35 ` Jan Engelhardt
  2011-12-30  1:35 ` [PATCH 6/6] nfnl_osf: add missing libnfnetlink_CFLAGS to compile process Jan Engelhardt
  2011-12-30 11:58 ` iptables: build updates and fixes Pablo Neira Ayuso
  6 siblings, 0 replies; 10+ messages in thread
From: Jan Engelhardt @ 2011-12-30  1:35 UTC (permalink / raw)
  To: netfilter-devel

Have each extension link against libxtables.so; with this, all home
symbols are known at link time and we can use ld's --no-undefined to
run the check, dropping the homebrew solution.

By having libxtables.so required by extensions, package managers'
automatic dependency discovery will become effective so that manual
dependencies for distros with split extension packages (e.g. OpenWRT)
will not be necessary anymore.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
 configure.ac              |   10 ++++++++++
 extensions/GNUmakefile.in |   14 +++-----------
 2 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5679098..0f85b83 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,6 +58,15 @@ AX_CHECK_LINKER_FLAGS([-Wl,--no-as-needed],
 	[libiptc_LDFLAGS2="-Wl,--no-as-needed"])
 AC_SUBST([libiptc_LDFLAGS2])
 
+AC_MSG_CHECKING([whether $LD knows -Wl,--no-undefined])
+saved_LDFLAGS="$LDFLAGS";
+LDFLAGS="-Wl,--no-undefined";
+AC_LINK_IFELSE([AC_LANG_SOURCE([int main(void) {}])],
+	[noundef_LDFLAGS="$LDFLAGS"; AC_MSG_RESULT([yes])],
+	[AC_MSG_RESULT([no])]
+)
+LDFLAGS="$saved_LDFLAGS";
+
 blacklist_modules="";
 
 AC_CHECK_HEADERS([linux/dccp.h linux/ip_vs.h linux/magic.h linux/proc_fs.h])
@@ -99,6 +108,7 @@ pkgdatadir='${datadir}/xtables';
 
 AC_SUBST([regular_CFLAGS])
 AC_SUBST([regular_CPPFLAGS])
+AC_SUBST([noundef_LDFLAGS])
 AC_SUBST([kinclude_CPPFLAGS])
 AC_SUBST([kbuilddir])
 AC_SUBST([ksourcedir])
diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in
index 84c85de..218dc3a 100644
--- a/extensions/GNUmakefile.in
+++ b/extensions/GNUmakefile.in
@@ -23,6 +23,7 @@ kinclude_CPPFLAGS  = @kinclude_CPPFLAGS@
 AM_CFLAGS       = ${regular_CFLAGS}
 AM_CPPFLAGS     = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_builddir} -I${top_srcdir}/include ${kinclude_CPPFLAGS}
 AM_DEPFLAGS     = -Wp,-MMD,$(@D)/.$(@F).d,-MT,$@
+AM_LDFLAGS      = @noundef_LDFLAGS@
 
 ifeq (${V},)
 AM_LIBTOOL_SILENT = --silent
@@ -68,16 +69,7 @@ targets_install :=
 
 .PHONY: all install clean distclean FORCE
 
-all: ${targets} check
-
-check: ${targets}
-	@echo "  CHECK    unknown symbols in .so files"; \
-	. ../libxtables/libxtables.la; \
-	for i in lib*.so; do \
-		[ "$$i" = "lib*.so" ] && continue; \
-		LD_PRELOAD="$$dlname" LD_LIBRARY_PATH=../libxtables/.libs \
-			ldd -r $$i 2>&1 >/dev/null; \
-	done;
+all: ${targets}
 
 install: ${targets_install}
 	@mkdir -p "${DESTDIR}${xtlibdir}";
@@ -99,7 +91,7 @@ init%.o: init%.c
 #	Shared libraries
 #
 lib%.so: lib%.oo
-	${AM_VERBOSE_CCLD} ${CCLD} ${AM_LDFLAGS} -shared ${LDFLAGS} -o $@ $< ${$*_LIBADD};
+	${AM_VERBOSE_CCLD} ${CCLD} ${AM_LDFLAGS} -shared ${LDFLAGS} -o $@ $< -L../libxtables/.libs -lxtables ${$*_LIBADD};
 
 lib%.oo: ${srcdir}/lib%.c
 	${AM_VERBOSE_CC} ${CC} ${AM_CPPFLAGS} ${AM_DEPFLAGS} ${AM_CFLAGS} -D_INIT=lib$*_init -DPIC -fPIC ${CFLAGS} -o $@ -c $<;
-- 
1.7.3.4


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

* [PATCH 6/6] nfnl_osf: add missing libnfnetlink_CFLAGS to compile process
  2011-12-30  1:34 iptables: build updates and fixes Jan Engelhardt
                   ` (4 preceding siblings ...)
  2011-12-30  1:35 ` [PATCH 5/6] extensions: link on libxtables and check symbols Jan Engelhardt
@ 2011-12-30  1:35 ` Jan Engelhardt
  2011-12-30 11:58 ` iptables: build updates and fixes Pablo Neira Ayuso
  6 siblings, 0 replies; 10+ messages in thread
From: Jan Engelhardt @ 2011-12-30  1:35 UTC (permalink / raw)
  To: netfilter-devel

---
 utils/Makefile.am |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/utils/Makefile.am b/utils/Makefile.am
index 306d993..f1bbfc5 100644
--- a/utils/Makefile.am
+++ b/utils/Makefile.am
@@ -1,7 +1,8 @@
 # -*- Makefile -*-
 
 AM_CFLAGS = ${regular_CFLAGS}
-AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_srcdir}/include
+AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include \
+              -I${top_srcdir}/include ${libnfnetlink_CFLAGS}
 
 sbin_PROGRAMS = nfnl_osf
 pkgdata_DATA = pf.os
-- 
1.7.3.4


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

* Re: iptables: build updates and fixes
  2011-12-30  1:34 iptables: build updates and fixes Jan Engelhardt
                   ` (5 preceding siblings ...)
  2011-12-30  1:35 ` [PATCH 6/6] nfnl_osf: add missing libnfnetlink_CFLAGS to compile process Jan Engelhardt
@ 2011-12-30 11:58 ` Pablo Neira Ayuso
  2011-12-30 13:19   ` Jan Engelhardt
  6 siblings, 1 reply; 10+ messages in thread
From: Pablo Neira Ayuso @ 2011-12-30 11:58 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: netfilter-devel

On Fri, Dec 30, 2011 at 02:34:55AM +0100, Jan Engelhardt wrote:
> 
> The following changes since commit b8c42eca0f224a00bf55b60ded81af14a1e07da1:
>   libiptc: provide separate pkgconfig files (2011-12-18 02:52:32 +0100)
> 
> are available FOR REVIEW in the git repository at:
>   git://dev.medozas.de/iptables stable
> 
> Jan Engelhardt (6):
>       Update .gitignore
>       build: use AC_CONFIG_AUX_DIR and stash away tools
>       Update .gitignore
>       build: use delayed expansion on the user-settable variables
>       extensions: link on libxtables and check symbols
>       nfnl_osf: add missing libnfnetlink_CFLAGS to compile process

No objections regarding this patchset.

Only thing is that I'd like to reduce the changes on the -stable branch
to the strictly neccessary.

This is the only way to reduce the chances that someone comes and say
that we have broken something in -stable.

Would you be OK if this goes to master instead?

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

* Re: iptables: build updates and fixes
  2011-12-30 11:58 ` iptables: build updates and fixes Pablo Neira Ayuso
@ 2011-12-30 13:19   ` Jan Engelhardt
  0 siblings, 0 replies; 10+ messages in thread
From: Jan Engelhardt @ 2011-12-30 13:19 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel


On Friday 2011-12-30 12:58, Pablo Neira Ayuso wrote:
>> Jan Engelhardt (6):
>>       Update .gitignore
>>       build: use AC_CONFIG_AUX_DIR and stash away tools
>>       Update .gitignore
>>       build: use delayed expansion on the user-settable variables
>>       extensions: link on libxtables and check symbols
>>       nfnl_osf: add missing libnfnetlink_CFLAGS to compile process
>
>No objections regarding this patchset.
>
>Only thing is that I'd like to reduce the changes on the -stable branch
>to the strictly neccessary.
>
>This is the only way to reduce the chances that someone comes and say
>that we have broken something in -stable.
>
>Would you be OK if this goes to master instead?

I will cherry out nfnl_osf: for stable, and move the other to master.

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

end of thread, other threads:[~2011-12-30 13:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-30  1:34 iptables: build updates and fixes Jan Engelhardt
2011-12-30  1:34 ` [PATCH 1/6] Update .gitignore Jan Engelhardt
2011-12-30  1:34 ` [PATCH 2/6] build: use AC_CONFIG_AUX_DIR and stash away tools Jan Engelhardt
2011-12-30  1:34 ` [PATCH 3/6] Update .gitignore Jan Engelhardt
2011-12-30  1:34 ` [PATCH 4/6] build: use delayed expansion on the user-settable variables Jan Engelhardt
2011-12-30  1:35 ` [PATCH 5/6] extensions: link on libxtables and check symbols Jan Engelhardt
2011-12-30  1:35 ` [PATCH 6/6] nfnl_osf: add missing libnfnetlink_CFLAGS to compile process Jan Engelhardt
2011-12-30 11:58 ` iptables: build updates and fixes Pablo Neira Ayuso
2011-12-30 13:19   ` Jan Engelhardt
  -- strict thread matches above, loose matches on Subject: below --
2010-11-16 11:43 libmnl: proposed patches 20101116 Jan Engelhardt
2010-11-16 11:43 ` [PATCH 3/6] Update .gitignore Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).