[oe-issues] [Bug 3561] New: bluez-cups-backend-3.23 do_patch failure

bugzilla-daemon at tinman.treke.net bugzilla-daemon at tinman.treke.net
Wed Dec 26 11:35:21 UTC 2007


http://bugs.openembedded.org/show_bug.cgi?id=3561

           Summary: bluez-cups-backend-3.23 do_patch failure
           Product: Openembedded
           Version: Angstrom 2007.12
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
        AssignedTo: openembedded-issues at lists.openembedded.org
        ReportedBy: c.romain at laposte.net


_BuildLog_:

OE Build Configuration:
BB_VERSION     = "1.8.9"
OE_REVISION    = "dafddd1d044d96ecf2e968c17c56e4f9f332240d"
TARGET_ARCH    = "i686"
TARGET_OS      = "linux"
MACHINE        = "qemux86"
DISTRO         = "angstrom"
DISTRO_VERSION = "2007.11RC2.1"
TARGET_FPU     = ""

NOTE: Resolving missing task queue dependencies
NOTE: preferred version 20070918+git of hal-info not available (for item
hal-info)
NOTE: multiple providers are available for bluez-utils-dbus
(bluez-cups-backend, bluez-gstreamer-plugin, bluez-utils-alsa, bluez-utils);
NOTE: consider defining PREFERRED_PROVIDER_bluez-utils-dbus
NOTE: Preparing runqueue
ERROR: Multiple files due to be built which all provide bluez-utils-dbus
(/home/cyril/oe/org.openembedded.dev/packages/bluez/bluez-utils_3.23.bb
/home/cyril/oe/org.openembedded.dev/packages/bluez/bluez-cups-backend_3.23.bb)
NOTE: Executing runqueue
NOTE: Running task 3537 of 3714 (ID: 3375,
/home/cyril/oe/org.openembedded.dev/packages/bluez/bluez-cups-backend_3.23.bb,
do_fetch)
NOTE: package bluez-cups-backend-3.23: started
NOTE: package bluez-cups-backend-3.23-r0: task do_fetch: started
NOTE: bluez-cups-backend-3.23:
http://bluez.sourceforge.net/download/bluez-utils-3.23.tar.gz has no entry in
conf/checksums.ini, not checking URI
NOTE: package bluez-cups-backend-3.23-r0: task do_fetch: completed
NOTE: package bluez-cups-backend-3.23: completed
NOTE: Running task 3538 of 3714 (ID: 3374,
/home/cyril/oe/org.openembedded.dev/packages/bluez/bluez-cups-backend_3.23.bb,
do_unpack)
NOTE: package bluez-cups-backend-3.23: started
NOTE: package bluez-cups-backend-3.23-r0: task do_unpack: started
NOTE: Unpacking
/mnt/buildhost/OpenEmbedded/sources/archives/bluez-utils-3.23.tar.gz to
/home/cyril/oe/tmp/work/i686-angstrom-linux/bluez-cups-backend-3.23-r0/
NOTE: Unpacking
/home/cyril/oe/org.openembedded.dev/packages/bluez/files/hcid.conf to
/home/cyril/oe/tmp/work/i686-angstrom-linux/bluez-cups-backend-3.23-r0/
NOTE: package bluez-cups-backend-3.23-r0: task do_unpack: completed
NOTE: package bluez-cups-backend-3.23: completed
NOTE: Running task 3539 of 3714 (ID: 3373,
/home/cyril/oe/org.openembedded.dev/packages/bluez/bluez-cups-backend_3.23.bb,
do_patch)
NOTE: package bluez-cups-backend-3.23: started
NOTE: package bluez-cups-backend-3.23-r0: task do_patch: started
NOTE: Applying patch 'hciattach-ti-bts.patch'
ERROR: Error in executing:
ERROR: Exception:<class 'CmdError'> Message:Command Error: exit status: 1 
Output:
Applying patch hciattach-ti-bts.patch
patching file tools/hciattach.c
Hunk #1 succeeded at 60 (offset 3 lines).
Hunk #2 succeeded at 72 with fuzz 2 (offset 4 lines).
Hunk #3 succeeded at 282 (offset 38 lines).
Hunk #4 FAILED at 430.
Hunk #5 FAILED at 1113.
Hunk #6 FAILED at 1130.
Hunk #7 succeeded at 1368 (offset 249 lines).
Hunk #8 succeeded at 1447 with fuzz 2 (offset 253 lines).
3 out of 8 hunks FAILED -- rejects in file tools/hciattach.c
patching file tools/Makefile.am
Hunk #1 succeeded at 48 with fuzz 2 (offset 11 lines).
patching file tools/ti_bts.h
patching file tools/ti_bts.c
Patch hciattach-ti-bts.patch does not apply (enforce with -f)
ERROR: Printing the environment of the function
ERROR: Error in executing:
ERROR: Exception:<class 'CmdError'> Message:Command Error: exit status: 1 
Output:
Applying patch hciattach-ti-bts.patch
patching file tools/hciattach.c
Hunk #1 succeeded at 60 (offset 3 lines).
Hunk #2 succeeded at 72 with fuzz 2 (offset 4 lines).
Hunk #3 succeeded at 282 (offset 38 lines).
Hunk #4 FAILED at 430.
Hunk #5 FAILED at 1113.
Hunk #6 FAILED at 1130.
Hunk #7 succeeded at 1368 (offset 249 lines).
Hunk #8 succeeded at 1447 with fuzz 2 (offset 253 lines).
3 out of 8 hunks FAILED -- rejects in file tools/hciattach.c
patching file tools/Makefile.am
Hunk #1 succeeded at 48 with fuzz 2 (offset 11 lines).
patching file tools/ti_bts.h
patching file tools/ti_bts.c
Patch hciattach-ti-bts.patch does not apply (enforce with -f)
ERROR: Printing the environment of the function
ERROR: Error in executing:
ERROR: Exception:<class 'CmdError'> Message:Command Error: exit status: 1 
Output:
Applying patch hciattach-ti-bts.patch
patching file tools/hciattach.c
Hunk #1 succeeded at 60 (offset 3 lines).
Hunk #2 succeeded at 72 with fuzz 2 (offset 4 lines).
Hunk #3 succeeded at 282 (offset 38 lines).
Hunk #4 FAILED at 430.
Hunk #5 FAILED at 1113.
Hunk #6 FAILED at 1130.
Hunk #7 succeeded at 1368 (offset 249 lines).
Hunk #8 succeeded at 1447 with fuzz 2 (offset 253 lines).
3 out of 8 hunks FAILED -- rejects in file tools/hciattach.c
patching file tools/Makefile.am
Hunk #1 succeeded at 48 with fuzz 2 (offset 11 lines).
patching file tools/ti_bts.h
patching file tools/ti_bts.c
Patch hciattach-ti-bts.patch does not apply (enforce with -f)
ERROR: Printing the environment of the function
ERROR: Build of
/home/cyril/oe/org.openembedded.dev/packages/bluez/bluez-cups-backend_3.23.bb
do_patch failed
Traceback (most recent call last):
  File "/home/cyril/oe/bitbake/bitbake-1.8//bin/bitbake", line 134, in <module>
    main()
  File "/home/cyril/oe/bitbake/bitbake-1.8//bin/bitbake", line 131, in main
    cooker.cook()
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/cooker.py", line 565, in cook
    return self.buildTargets(pkgs_to_build)
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/cooker.py", line 477, in
buildTargets
    failures = rq.execute_runqueue()
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/runqueue.py", line 428, in
execute_runqueue
    self.execute_runqueue_internal()
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/runqueue.py", line 556, in
execute_runqueue_internal
    self.cooker.tryBuild(fn, False)
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/cooker.py", line 132, in
tryBuild
    return self.tryBuildPackage(fn, item, self.configuration.cmd, the_data,
build_depends)
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/cooker.py", line 105, in
tryBuildPackage
    bb.build.exec_task('do_%s' % task, the_data)
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/build.py", line 303, in
exec_task
    execute(None, task)
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/build.py", line 292, in
execute
    exec_func(item, localdata)
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/build.py", line 106, in
exec_func
    exec_func_python(func, d)
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/build.py", line 128, in
exec_func_python
    utils.better_exec(comp,g,tmp, bb.data.getVar('FILE',d,1))
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/utils.py", line 144, in
better_exec
    exec code in context
  File "do_patch", line 4, in <module>
  File "do_patch", line 2, in do_patch
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/build.py", line 106, in
exec_func
    exec_func_python(func, d)
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/build.py", line 128, in
exec_func_python
    utils.better_exec(comp,g,tmp, bb.data.getVar('FILE',d,1))
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/utils.py", line 144, in
better_exec
    exec code in context
  File "base_do_patch", line 4, in <module>
  File "base_do_patch", line 2, in base_do_patch
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/build.py", line 106, in
exec_func
    exec_func_python(func, d)
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/build.py", line 128, in
exec_func_python
    utils.better_exec(comp,g,tmp, bb.data.getVar('FILE',d,1))
  File "/home/cyril/oe/bitbake/bitbake-1.8/lib/bb/utils.py", line 144, in
better_exec
    exec code in context
  File "patch_do_patch", line 100, in <module>
  File "patch_do_patch", line 98, in patch_do_patch
  File "<bb>", line 339, in Resolve
__builtin__.CmdError: Command Error: exit status: 1  Output:
Applying patch hciattach-ti-bts.patch
patching file tools/hciattach.c
Hunk #1 succeeded at 60 (offset 3 lines).
Hunk #2 succeeded at 72 with fuzz 2 (offset 4 lines).
Hunk #3 succeeded at 282 (offset 38 lines).
Hunk #4 FAILED at 430.
Hunk #5 FAILED at 1113.
Hunk #6 FAILED at 1130.
Hunk #7 succeeded at 1368 (offset 249 lines).
Hunk #8 succeeded at 1447 with fuzz 2 (offset 253 lines).
3 out of 8 hunks FAILED -- rejects in file tools/hciattach.c
patching file tools/Makefile.am
Hunk #1 succeeded at 48 with fuzz 2 (offset 11 lines).
patching file tools/ti_bts.h
patching file tools/ti_bts.c
Patch hciattach-ti-bts.patch does not apply (enforce with -f)
ERROR: Task 3373
(/home/cyril/oe/org.openembedded.dev/packages/bluez/bluez-cups-backend_3.23.bb,
do_patch) failed
NOTE: Tasks Summary: Attempted 3538 tasks of which 3536 didn't need to be rerun
and 1 failed.
ERROR:
'/home/cyril/oe/org.openembedded.dev/packages/bluez/bluez-cups-backend_3.23.bb'
failed


_Problem_:
The wrong patch is applied: files/hciattach-ti-bts.patch is applied instead of
bluez-utils/hciattach-ti-bts.patch.

I noticed bluez-utils.inc is used for bluez<=3.17 and bluez-utils3.inc is used
for bluez>=3.18. But I suspect bluez-utils/hciattach-ti-bts.patch is only
selected when building >=bluez_utils_3.18; files/hciattach-ti-bts.patch is
selected otherwise (i.e. for
bluez-[cups-backend|libs|utils-alsa|gstreamer-plugin])


_Quick&DirtySolution_:
cd org.openembedded.dev/packages/bluez/ && mkdir bluez-cups-backend-3.23/ && cp
bluez-utils/hciattach-ti-bts.patch bluez-cups-backend-3.23/

But this is not a scalable and decent solution.

_Notes_:
The range of bluez version the files/hciattach-ti-bts.patch applies is not
really clear to me. Reading patches I guess it applies from version >=2.24 to
version <3.1, and that bluez-utils/hciattach-ti-bts.patch applies to version
>=3.1. But in metadata there are only version of bluez >=3.4, which is rather
confusing (at least for me).


-- 
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the Openembedded-issues mailing list