[Lustre-discuss] 1.8.2 "make debs" for 2.6.22.19
Brian J. Murrell
Brian.Murrell at Sun.COM
Thu Apr 1 12:27:30 PDT 2010
On Thu, 2010-04-01 at 14:08 -0500, Hendelman, Rob wrote:
> I am getting a few errors when I try to "make debs".
> Make debs errors out at:
>
> fi
> grep: debian/patches/*: No such file or directory
> cp /usr/share/misc/config.sub config.sub
> cp /usr/share/misc/config.sub libsysio/config.sub
> cp /usr/share/misc/config.sub ldiskfs/config.sub
> cp /usr/share/misc/config.guess config.guess
> cp /usr/share/misc/config.guess libsysio/config.guess
> cp /usr/share/misc/config.guess ldiskfs/config.guess
> sh ./autogen.sh
> sh: Can't open ./autogen.sh
> make[1]: *** [autogen-stamp] Error 2
> make[1]: Leaving directory `/usr/src/lustre-1.8.2'
> dpkg-buildpackage: failure: debian/rules build gave error exit status 2
> make: *** [debs] Error 2
Yeah. I did some rework of the code that lives there. Can you try
applying this patch:
diff --git a/debian/rules b/debian/rules
index 53fa04f..39dcbe9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -78,17 +78,26 @@ SRCDIR=.
autogen: autogen-stamp
autogen-stamp: patch-stamp
# see if any patches requires us to run autogen
- if ! grep "^--- .*\/autoconf" debian/patches/* || \
- [ ! -f autogen.sh ]; then \
- exit 0; \
- fi
- cp /usr/share/misc/config.sub config.sub
- cp /usr/share/misc/config.sub libsysio/config.sub
- cp /usr/share/misc/config.sub ldiskfs/config.sub
- cp /usr/share/misc/config.guess config.guess
- cp /usr/share/misc/config.guess libsysio/config.guess
- cp /usr/share/misc/config.guess ldiskfs/config.guess
- sh ./autogen.sh
+ # (for a distribution release tarball, it is expected that if
+ # downstream adds any patches that requires autogen.sh to be
+ # run, a patch will be added by downstream to install the
+ # needed autogen.sh scripts
+ # see https://bugzilla.lustre.org/attachment.cgi?id=27156
+ # for an example)
+ if grep "^--- .*\/autoconf" debian/patches/*; then \
+ if [ ! -f autogen.sh ]; then \
+ echo "You have patches which require autogen.sh to be run, but it doesn't exist"; \
+ echo "Please see https://bugzilla.lustre.org/attachment.cgi?id=27156"; \
+ exit 1; \
+ fi; \
+ cp /usr/share/misc/config.sub config.sub; \
+ cp /usr/share/misc/config.sub libsysio/config.sub; \
+ cp /usr/share/misc/config.sub ldiskfs/config.sub; \
+ cp /usr/share/misc/config.guess config.guess; \
+ cp /usr/share/misc/config.guess libsysio/config.guess; \
+ cp /usr/share/misc/config.guess ldiskfs/config.guess; \
+ sh ./autogen.sh; \
+ fi; \
touch $@
configure: configure-stamp
and get your tree (and system) back to where this error occurred and try
again?
b.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20100401/482c377b/attachment.pgp>
More information about the lustre-discuss
mailing list