public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Andreas Gruenbacher <agruen@suse.de>
To: Mike Frysinger <vapier@gentoo.org>
Cc: Christoph Hellwig <hch@infradead.org>,
	Eric Sandeen <sandeen@sandeen.net>, xfs-oss <xfs@oss.sgi.com>
Subject: Re: [patch] fix parallel build failures in xfsprogs-3.0.0
Date: Thu, 26 Feb 2009 13:23:08 +0100	[thread overview]
Message-ID: <200902261323.09312.agruen@suse.de> (raw)
In-Reply-To: <200902252003.32646.vapier@gentoo.org>

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

On Thursday 26 February 2009 02:03:29 Mike Frysinger wrote:
> On Wednesday 25 February 2009 19:26:14 Andreas Gruenbacher wrote:
> > On Wednesday, 25 February 2009 0:45:25 Mike Frysinger wrote:
> > > and for attr.git:
> > > http://sources.gentoo.org/sys-apps/attr/files/attr-2.4.39-gettext.patch
> >
> > This functionality already exists (in both the acl and attr packages).
>
> was this in the last release (2.4.43) ?  either way, can you highlight the
> code you're referring to so there's no confusion on my part ;)

Hmm ... so there code that this patch adds to include/gettext.h already exists 
in include/config.h.in, but ENABLE_GETTEXT isn't being defined anywhere. So 
this part of your patch still seems to be needed, in both the attr and acl 
packages.

When I add it, I get this far:

	$ make aclocal.m4
	$ autoconf
	configure:3493: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

It turns out that aclocal.m4 is created with only the macros in the m4/ 
directory, and AC_PROG_LIBTOOL is not among them; this can be checked with:

	$ aclocal --acdir=m4 --verbose

This would usually be fixed by including the macros in m4/ in addition, but 
then I run into the next problem:

	$ aclocal -I m4
	$ autoconf
	[...]
	configure: error: cannot run /bin/sh ./config.sub

As per one of the libtool info pages,

> In order to use libtool, you need to include the following files with
> your package:
>
> `config.guess'
>      Attempt to guess a canonical system name.
>
> `config.sub'
>      Canonical system name validation subroutine script.
>
> `install-sh'
>      BSD-compatible `install' replacement script.
>
> `ltmain.sh'
>      A generic script implementing basic libtool functionality.

after adding config.guess, config.sub from automake, and ltmain.sh from 
libtool (we already have our own install-sh), the package builds again.

I'm attaching a diff relative to the current repo excluding config.guess, 
config.sub, and ltmain.sh which should be on your systems from automake and 
libtool already.

This is quite insane. Is there a more reasonable way?

Thanks,
Andreas

[-- Attachment #2: libtool-and-gettext-fixes.diff --]
[-- Type: text/x-patch, Size: 1202 bytes --]

diff --git a/.gitignore b/.gitignore
index a4d8b60..6391bdc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,3 +25,4 @@ attr-*.tar.gz
 *.o
 /po/attr.pot
 /setfattr/setfattr
+/libtool
diff --git a/Makefile b/Makefile
index 7d2faad..e42a371 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@ endif
 
 CONFIGURE = configure include/builddefs include/config.h
 LSRCFILES = configure configure.in aclocal.m4 Makepkgs install-sh exports \
+	config.sub config.guess ltmain.sh \
 	README VERSION
 
 LDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
@@ -63,7 +64,7 @@ include/config.h: include/builddefs
 	fi
 
 aclocal.m4::
-	aclocal --acdir=`pwd`/m4 --output=$@
+	aclocal -I m4
 
 install: default $(addsuffix -install,$(SUBDIRS))
 	$(INSTALL) -m 755 -d $(PKG_DOC_DIR)
diff --git a/m4/package_utilies.m4 b/m4/package_utilies.m4
index 6569e3b..38d623c 100644
--- a/m4/package_utilies.m4
+++ b/m4/package_utilies.m4
@@ -100,6 +100,7 @@ AC_DEFUN([AC_PACKAGE_UTILITIES],
         xgettext=$XGETTEXT
         AC_SUBST(xgettext)
         AC_PACKAGE_NEED_UTILITY($1, "$xgettext", xgettext, gettext)
+	AC_DEFINE([ENABLE_GETTEXT], 1, [enable gettext])
     fi
 
     if test -z "$RPM"; then

[-- Attachment #3: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2009-02-26 12:24 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-24  5:10 [patch] fix parallel build failures in xfsprogs-3.0.0 Mike Frysinger
2009-02-24  5:20 ` Eric Sandeen
2009-02-24  5:22 ` Eric Sandeen
2009-02-24  7:21   ` Mike Frysinger
2009-02-24 13:15     ` Christoph Hellwig
2009-02-24 14:53       ` Mike Frysinger
2009-02-24 15:14         ` Felix Blyakher
2009-02-24 15:37           ` Mike Frysinger
2009-02-24 18:46             ` Christoph Hellwig
2009-02-24 22:22               ` Andreas Gruenbacher
2009-02-24 23:45                 ` Mike Frysinger
2009-02-26  0:26                   ` Andreas Gruenbacher
2009-02-26  1:03                     ` Mike Frysinger
2009-02-26 12:23                       ` Andreas Gruenbacher [this message]
2009-02-26 15:17                         ` Mike Frysinger
2009-02-26 17:17                           ` Andreas Gruenbacher
2009-02-26 18:08                             ` Mike Frysinger
2009-02-27  7:22                             ` Greg Banks
2009-02-27  9:55                               ` Andreas Gruenbacher
2009-03-01  1:31                                 ` Greg Banks
2009-03-01  7:58                                   ` Mike Frysinger
2009-03-03 15:53                                   ` Christoph Hellwig
2009-02-27 17:35                           ` Andreas Gruenbacher
2009-03-04 17:27                             ` Christoph Hellwig
2009-03-08 13:09                               ` Andreas Gruenbacher
2009-03-10 16:41                                 ` Andreas Gruenbacher
2009-03-16  7:05                                   ` Christoph Hellwig
2009-03-16  7:31                                     ` Mike Frysinger
2009-03-16  9:53                                       ` Andreas Gruenbacher
2009-03-16 21:02                                         ` Christoph Hellwig
2009-03-24 13:12                                           ` Christoph Hellwig
2009-03-24 18:18                                             ` Andreas Gruenbacher
2009-03-25 19:03                                               ` Christoph Hellwig
2009-03-16  6:51                                 ` Christoph Hellwig
2009-03-27 16:02                                 ` Christoph Hellwig
2009-03-27 16:30                                   ` Mike Frysinger
2009-03-27 18:31                                     ` Christoph Hellwig
2009-02-26 23:03                 ` Christoph Hellwig
2009-02-28  0:07                   ` Andreas Gruenbacher
2009-02-28 22:27                     ` Eric Sandeen
2009-03-01  1:41                       ` Greg Banks
2009-03-01 17:23                       ` Andreas Gruenbacher
2009-03-03 15:55                         ` Christoph Hellwig

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=200902261323.09312.agruen@suse.de \
    --to=agruen@suse.de \
    --cc=hch@infradead.org \
    --cc=sandeen@sandeen.net \
    --cc=vapier@gentoo.org \
    --cc=xfs@oss.sgi.com \
    /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