Bug 521 - quilt-native doesn't build
Summary: quilt-native doesn't build
Status: RESOLVED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 0.9
Hardware: x86 x86
: Low minor
Target Milestone: 1.0 M1
Assignee: Nitin Kamble
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-11-04 07:27 UTC by Alex deVries
Modified: 2010-12-21 06:09 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex deVries 2010-11-04 07:27:03 UTC
When building quilt-native on an Ubuntu squeeze/sid, I get the following error:

Log data follows:
| NOTE: make
| make: ./git-desc: Command not found
| bin/quilt.in -> bin/quilt
| /bin/sed: -e expression #1, char 55: unknown option to `s'
| make: *** [bin/quilt] Error 1
| FATAL: oe_runmake failed
| ERROR: Task failed: ('function do_compile failed', '/home/alex/poky/nxy/build/20101103-16:51:45/tmp/work/x86_64-linux/quilt-native-0.48-r0/quilt-0.48/build/tmp/work/x86_64-linux/quilt-native-0.48-r0/temp/log.do_compile.8599')
NOTE: package quilt-native-0.48-r0: task do_compile: Failed


This is identical to the following reported bug:
http://www.mail-archive.com/quilt-dev@nongnu.org/msg01314.html

It isn't really clear why there's no git-desc...

- A
Comment 1 Ke Yu 2010-11-04 19:16:12 UTC
Nitin is the owner of quilt, and he will help to take look.
Comment 2 Nitin Kamble 2010-11-04 19:20:27 UTC
My build system is fedora. Can somebody provide access to an Ubuntu squeeze/sid system?

Thanks & Regards,
Nitin
Comment 3 Ke Yu 2010-11-04 20:06:26 UTC
I tried it in my Ubuntu 10.04, the quilt-native can compile successful, and yet it still has error "make: ./git-desc: Command not found", so looks this error is harmless. the mail also mention this. 

so probably the compile failure is caused by the "/bin/sed: -e expression #1, char 55: unknown option to `s'"
Comment 4 Alex deVries 2010-11-05 07:31:58 UTC
(In reply to comment #3)
> I tried it in my Ubuntu 10.04, the quilt-native can compile successful, and yet
> it still has error "make: ./git-desc: Command not found", so looks this error
> is harmless. the mail also mention this. 
> 
> so probably the compile failure is caused by the "/bin/sed: -e expression #1,
> char 55: unknown option to `s'"


You're right, this is the actual terminal failure.

- A
Comment 5 Alex deVries 2010-11-05 08:02:19 UTC
Oh, I understand the problem.

The sed expression around line 261 in Makefile.in doesn't escape the : properly.  So if you have a : in your path, it'll fail out with the above error.

This is a bug, but can be avoided by just not using a : in your path.

- A
Comment 6 Alex deVries 2010-11-05 08:53:59 UTC
Having a colon in a path isn't such an unreasonable thing; if it hit me, it'll hit others.  The right way to fix this is to autoconf the *.in files instead of this painful sed line.  That's a pretty large fix.  It pains me to suggest autoconf as the solution to anything, but it is.  But not using a : in your path is a reasonable workaround, which is why I'm moving this to be a minor bug.

The git-desc error is just misleading, we should really patch it with the above.

I suggest we just leave this as minor with a workaround and move on.

- A
Comment 7 Nitin Kamble 2010-11-05 10:01:03 UTC
Just chatted with Alex, and we realized that this is not a bug related to Ubuntu. It is actually issue of having a : in build dirname. It was confusing sed -e 's: ...<build dirname> : ... :g' parameter.

Seeting this to low priority now.
Comment 8 Nitin Kamble 2010-12-14 20:31:03 UTC
The current master tree does not show this issue.

This command is succeeding for me:

bitbake quilt-native