All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Grégoire Sutre" <gregoire.sutre@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Build failure on NetBSD
Date: Thu, 06 Jan 2011 22:42:13 +0100	[thread overview]
Message-ID: <4D263735.2020109@gmail.com> (raw)
In-Reply-To: <4D261342.1000204@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 286 bytes --]

> Looks like you actualy do have libdevmapper (I'm surprised it exists for
> NetBSD) but not the headers.

I'm not sure what it's for (I don't use LVM).  The utility dmsetup(8)
(ported from Linux?) requires it.

 > We should check for headers too.

Attached patch adds this.

Grégoire

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: devmapper-header-check.diff --]
[-- Type: text/x-patch; name="devmapper-header-check.diff", Size: 940 bytes --]

=== modified file 'ChangeLog'
--- ChangeLog	2011-01-06 13:24:38 +0000
+++ ChangeLog	2011-01-06 21:27:31 +0000
@@ -1,3 +1,7 @@
+2011-01-06  Grégoire Sutre  <gregoire.sutre@gmail.com>
+
+	* configure.ac: Check for libdevmapper header.
+
 2011-01-06  Colin Watson  <cjwatson@ubuntu.com>
 
 	* tests/util/grub-shell.in: Set serial terminfo type to `dumb', to

=== modified file 'configure.ac'
--- configure.ac	2010-11-16 15:50:20 +0000
+++ configure.ac	2011-01-06 21:31:21 +0000
@@ -867,6 +867,12 @@ if test x"$enable_device_mapper" = xno ;
 fi
 
 if test x"$device_mapper_excuse" = x ; then
+  # Check for device-mapper header.
+  AC_CHECK_HEADER([libdevmapper.h], [],
+               [device_mapper_excuse="need libdevmapper header"])
+fi
+
+if test x"$device_mapper_excuse" = x ; then
   # Check for device-mapper library.
   AC_CHECK_LIB([devmapper], [dm_task_create], [],
                [device_mapper_excuse="need devmapper library"])


  reply	other threads:[~2011-01-06 21:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-06 17:41 Build failure on NetBSD Grégoire Sutre
2011-01-06 17:51 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-01-06 18:10   ` Grégoire Sutre
2011-01-06 18:18   ` Grégoire Sutre
2011-01-06 19:08     ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-01-06 21:42       ` Grégoire Sutre [this message]
2011-01-06 19:13     ` Grégoire Sutre
2011-01-06 17:56 ` Colin Watson

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=4D263735.2020109@gmail.com \
    --to=gregoire.sutre@gmail.com \
    --cc=grub-devel@gnu.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 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.