util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: kerolasa@gmail.com
Cc: Mike Frysinger <vapier@gentoo.org>,
	util-linux <util-linux@vger.kernel.org>
Subject: Re: [pull] /run directory and swapon
Date: Tue, 10 Jul 2012 12:08:25 +0200	[thread overview]
Message-ID: <20120710100825.GD5281@x2.net.home> (raw)
In-Reply-To: <CAG27Bk1ejSJ+N0XWO1u09M1Xojd6Q+NTvHkb6-bTV-yG22H_XA@mail.gmail.com>

On Sat, Jun 30, 2012 at 10:59:11PM +0200, Sami Kerola wrote:
> > is this last case just so you can AC_DEFINE the value below ?  in general,
> > this is fragile.  defines should be expanded at make time rather than configure.
> >
> > CPPFLAGS="$CPPFLAGS -D_PATH_LOCALSTATEDIR=\"\${localstatedir}\""

 Good point.

> The comment was a bit mysterious to me, so I tried to find what you
> meant by fragility. The
> 
> http://www.opensource.apple.com/source/xar/xar-28/xar/configure.ac
> 
> has following
> 
> dnl Define cpp macros in CPPFLAGS, rather than doing AC_DEFINE(macro), since the
> dnl definitions need to be seen before and headers are included, which is a pain
> dnl to make happen otherwise.
> 
> which seem to match what you meant. I changed the line to be C
> preprocessor definition, and added you as patch CC. Benno, I added you
> to swapon patches CC as well. The changes are in my git.

 Please, don't use #include "config.h" at all. It's unnecessary,
 because -D_PATH_LOCALSTATEDIR and it's also necessary because we use
 -include "config.h" on compiler command line -- both is evaluated
 before regular "#include".


 I'm also not sure about

    /var/lib/libuuid/clock.txt --> /run/libuuid/clock.txt

 rename, the /var/lib is persistent...

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

  reply	other threads:[~2012-07-10 10:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-27 21:33 [pull] /run directory and swapon Sami Kerola
2012-06-28  5:45 ` Bernhard Voelker
2012-06-28  6:21   ` Bernhard Voelker
2012-06-28  8:06     ` Sami Kerola
2012-07-10  9:56       ` Karel Zak
2012-06-29  3:38 ` Mike Frysinger
2012-06-30 20:59   ` Sami Kerola
2012-07-10 10:08     ` Karel Zak [this message]
2012-07-10 11:10       ` Karel Zak
2012-07-10 11:56 ` Karel Zak

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=20120710100825.GD5281@x2.net.home \
    --to=kzak@redhat.com \
    --cc=kerolasa@gmail.com \
    --cc=util-linux@vger.kernel.org \
    --cc=vapier@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;
as well as URLs for NNTP newsgroup(s).