Ticket #658 (closed defect: fixed)
add_lzo.patch fails to apply cleanly to mtd-utils-native
| Reported by: | openmoko@… | Owned by: | mickey@… |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | OE bitbake recipes / build system | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: | buglog@… | Blocked By: | |
| Blocking: | Estimated Completion (week): | ||
| HasPatchForReview: | PatchReviewResult: | ||
| Reproducible: |
Description
I am using the moko Makefile to build OpenMoko? on Ubuntu Feisty.
I performed the following steps:
1) make update-makefile
2) make clobber
3) make update
4) make setup
5) make openmoko-devel-image
I get the following output while building:
NOTE: package mtd-utils-native-1.0.0+git: started
NOTE: package mtd-utils-native-1.0.0+git-r2: task do_fetch: started
Already up-to-date.
No changes.
NOTE: Creating tarball of git repository
NOTE: Creating tarball of git checkout
NOTE: package mtd-utils-native-1.0.0+git-r2: task do_fetch: completed
NOTE: package mtd-utils-native-1.0.0+git-r2: task do_unpack: started
NOTE: Unpacking
/home/gordon/svn/moko/sources/git_git.infradead.org.mtd-utils.git_master.tar.gz to /
home/gordon/svn/moko/build/tmp/work/i686-linux/mtd-utils-native-1.0.0+git-r2/
NOTE: package mtd-utils-native-1.0.0+git-r2: task do_unpack: completed
NOTE: package mtd-utils-native-1.0.0+git-r2: task do_patch: started
NOTE: Applying patch 'add_lzo.patch'
Command Error: exit status: 1 Output:
Applying patch add_lzo.patch
patching file Makefile
Hunk #1 FAILED at 58.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
patching file compr.c
Hunk #1 succeeded at 523 with fuzz 2 (offset 49 lines).
Hunk #2 succeeded at 540 with fuzz 2 (offset 52 lines).
patching file compr.h
Hunk #1 FAILED at 21.
Hunk #2 succeeded at 120 with fuzz 2 (offset 7 lines).
1 out of 2 hunks FAILED -- saving rejects to file compr.h.rej
The next patch would create the file compr_lzo.c,
which already exists! Applying it anyway.
patching file compr_lzo.c
Patch attempted to create file compr_lzo.c, which already exists.
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file compr_lzo.c.rej
patching file include/linux/jffs2.h
Hunk #1 FAILED at 46.
1 out of 1 hunk FAILED -- saving rejects to file include/linux/jffs2.h.rej
Applied patch add_lzo.patch (forced; needs refresh)
NOTE: dropping user into a shell, so that patch rejects can be fixed manually.
$
Attachments
Change History
Changed 6 years ago by openmoko@…
- Attachment compr_lzo.c.rej added
comment:1 Changed 6 years ago by hrw@…
Solution for this problem was pushed into Poky and then into OpenEmbedded?. It
should be quite easy to apply also to Openmoko SVN.

compr_lzo.c patch rejects