public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage-utils:master commit in: libq/, /
Date: Tue, 19 Mar 2019 20:32:51 +0000 (UTC)	[thread overview]
Message-ID: <1553024990.741684c0be529d9cb7ea91a48b801ca6859d2e9d.grobian@gentoo> (raw)

commit:     741684c0be529d9cb7ea91a48b801ca6859d2e9d
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 19 19:49:50 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Mar 19 19:49:50 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=741684c0

build: fix misc issues found on Linux

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 configure      | 36 ++++++++++++++++++++++++++++++++++++
 configure.ac   |  1 +
 libq/atom.c    |  1 +
 libq/prelink.c |  1 +
 libq/safe_io.c |  1 +
 libq/xchdir.c  |  1 +
 libq/xmkdir.c  |  2 ++
 main.c         |  1 +
 qmerge.c       |  2 ++
 9 files changed, 46 insertions(+)

diff --git a/configure b/configure
index ad96730..ce1fbde 100755
--- a/configure
+++ b/configure
@@ -35001,6 +35001,42 @@ else
 fi
 
 
+	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-expansion-to-defined" >&5
+$as_echo_n "checking whether C compiler accepts -Wno-expansion-to-defined... " >&6; }
+if ${ax_cv_check_cflags___Wno_expansion_to_defined+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+
+  ax_check_save_flags=$CFLAGS
+  CFLAGS="$CFLAGS  -Wno-expansion-to-defined"
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ax_cv_check_cflags___Wno_expansion_to_defined=yes
+else
+  ax_cv_check_cflags___Wno_expansion_to_defined=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+  CFLAGS=$ax_check_save_flags
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_expansion_to_defined" >&5
+$as_echo "$ax_cv_check_cflags___Wno_expansion_to_defined" >&6; }
+if test "x$ax_cv_check_cflags___Wno_expansion_to_defined" = xyes; then :
+  as_fn_append CFLAGS " -Wno-expansion-to-defined"
+else
+  :
+fi
+
+
 
 ac_config_files="$ac_config_files Makefile libq/Makefile autotools/gnulib/Makefile tests/atom_explode/Makefile tests/copy_file/Makefile tests/mkdir/Makefile tests/rmspace/Makefile"
 

diff --git a/configure.ac b/configure.ac
index 870a059..55346a8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,6 +48,7 @@ m4_foreach_w([flag], [
 	-Wsequence-point
 	-Wold-style-definition
 	-Wextra
+	-Wno-expansion-to-defined
 ], [
 	AX_CHECK_COMPILE_FLAG(flag, AS_VAR_APPEND([CFLAGS], " flag"))
 ])

diff --git a/libq/atom.c b/libq/atom.c
index e5c3dc1..60a37ce 100644
--- a/libq/atom.c
+++ b/libq/atom.c
@@ -11,6 +11,7 @@
 #include "atom.h"
 
 #include <unistd.h>
+#include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
 #include <xalloc.h>

diff --git a/libq/prelink.c b/libq/prelink.c
index 0d1ce83..0cda2c5 100644
--- a/libq/prelink.c
+++ b/libq/prelink.c
@@ -11,6 +11,7 @@
 #include <sys/wait.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <stdlib.h>
 
 #include "xasprintf.h"
 #include "prelink.h"

diff --git a/libq/safe_io.c b/libq/safe_io.c
index e209c87..a1c7687 100644
--- a/libq/safe_io.c
+++ b/libq/safe_io.c
@@ -8,6 +8,7 @@
 #include "main.h"
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <errno.h>
 
 #define _IN_SAFE_IO 1

diff --git a/libq/xchdir.c b/libq/xchdir.c
index 2d649ad..a208fbc 100644
--- a/libq/xchdir.c
+++ b/libq/xchdir.c
@@ -8,6 +8,7 @@
 #include "main.h"
 
 #include <unistd.h>
+#include <stdlib.h>
 
 #include "xchdir.h"
 

diff --git a/libq/xmkdir.c b/libq/xmkdir.c
index 2e60b08..8a5aab9 100644
--- a/libq/xmkdir.c
+++ b/libq/xmkdir.c
@@ -8,6 +8,8 @@
 
 #include "main.h"
 
+#include <stdlib.h>
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <dirent.h>

diff --git a/main.c b/main.c
index 1749114..6b4153a 100644
--- a/main.c
+++ b/main.c
@@ -36,6 +36,7 @@
 #include <assert.h>
 #include <ctype.h>
 #include <sys/time.h>
+#include <limits.h>
 
 #if defined(__sun) && defined(__SVR4)
 /* workaround non-const defined name in option struct, such that we

diff --git a/qmerge.c b/qmerge.c
index 3388ed3..5ebb55e 100644
--- a/qmerge.c
+++ b/qmerge.c
@@ -10,6 +10,8 @@
 #ifdef APPLET_qmerge
 
 #include <fnmatch.h>
+#include <sys/types.h>
+#include <sys/wait.h>
 #include "stat-time.h"
 
 #ifndef GLOB_BRACE


             reply	other threads:[~2019-03-19 20:32 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-19 20:32 Fabian Groffen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-27 19:19 [gentoo-commits] proj/portage-utils:master commit in: libq/, / Fabian Groffen
2024-03-29 10:57 Fabian Groffen
2024-01-02  7:57 Fabian Groffen
2023-02-07  8:25 Fabian Groffen
2023-02-07  8:10 Fabian Groffen
2021-08-16 13:23 Fabian Groffen
2020-02-21  8:18 Fabian Groffen
2020-01-05 13:28 Fabian Groffen
2020-01-02 11:19 Fabian Groffen
2020-01-01 19:52 Fabian Groffen
2019-12-31  9:05 Fabian Groffen
2019-12-30 17:24 Fabian Groffen
2019-12-29 13:26 Fabian Groffen
2019-12-27 16:57 Fabian Groffen
2019-07-13 10:04 Fabian Groffen
2019-06-19 10:44 Fabian Groffen
2019-06-05  9:15 Fabian Groffen
2019-05-09 20:19 Fabian Groffen
2019-05-05 18:13 Fabian Groffen
2019-04-28 15:20 Fabian Groffen
2019-03-27 20:18 Fabian Groffen
2019-03-27 10:55 Fabian Groffen
2019-03-22  9:57 Fabian Groffen
2019-03-19 20:32 Fabian Groffen
2019-03-09 18:58 Fabian Groffen
2018-03-23 11:56 Fabian Groffen
2016-12-29  2:25 Mike Frysinger
2016-11-26 23:17 Mike Frysinger
2015-11-28  2:44 Mike Frysinger
2015-02-24  1:26 Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1553024990.741684c0be529d9cb7ea91a48b801ca6859d2e9d.grobian@gentoo \
    --to=grobian@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox