Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561322 - app-emulation/qemu-9999: Support tilegx architecture in linux-user
Summary: app-emulation/qemu-9999: Support tilegx architecture in linux-user
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-24 06:31 UTC by Michal Privoznik
Modified: 2015-09-27 19:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Privoznik 2015-09-24 06:31:08 UTC
So qemu has new user target:

commit b16189b22244e4cc158a3425b377b219586ec8ca
Author:     Chen Gang <xili_gchen_5257@hotmail.com>
AuthorDate: Fri Aug 21 05:36:37 2015 +0800
Commit:     Richard Henderson <rth@twiddle.net>
CommitDate: Tue Sep 15 07:41:19 2015 -0700

    linux-user: Support tilegx architecture in linux-user
    
    Add main working flow feature, system call processing feature, and elf64
    tilegx binary loading feature, based on Linux kernel tilegx 64-bit
    implementation.
    
    [rth: Moved all of the implementation of atomic instructions to a later patch.]
    
    Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
    Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
    Message-Id: <BLU436-SMTP938552D42808AA60634582B9660@phx.gbl>
    Signed-off-by: Richard Henderson <rth@twiddle.net>


However, the ebuild does not yet count on that:

>>> Unpacking source...
GIT update -->
   repository:               git://git.qemu.org/qemu.git
   at the commit:            fefa4b128de06cec6d513f00ee61e8208aed4a87
   branch:                   master
   storage directory:        "/usr/portage/distfiles/egit-src/qemu.git"
   checkout type:            bare repository
Cloning into '/var/tmp/portage/app-emulation/qemu-9999/work/qemu-9999'...
done.
Branch branch-master set up to track remote branch master from origin.
Switched to a new branch 'branch-master'
>>> Unpacked to /var/tmp/portage/app-emulation/qemu-9999/work/qemu-9999
>>> Source unpacked in /var/tmp/portage/app-emulation/qemu-9999/work
>>> Preparing source in /var/tmp/portage/app-emulation/qemu-9999/work/qemu-9999 ...
 * The ebuild needs to be kept in sync.
 * IUSE_USER_TARGETS: aarch64 alpha arm armeb cris i386 microblaze microblazeel mips mipsel mipsn32 mipsn32el mips64 mips64el m68k or32 ppc ppc64 ppc64abi32 ppc64le sh4 sh4eb sparc sparc32plus sparc64 s390x unicore32 x86_64
 * configure        : aarch64 alpha arm armeb cris i386 microblaze microblazeel mips mipsel mipsn32 mipsn32el mips64 mips64el m68k or32 ppc ppc64 ppc64abi32 ppc64le sh4 sh4eb sparc sparc32plus sparc64 s390x tilegx unicore32 x86_64
 * ERROR: app-emulation/qemu-9999::gentoo failed (prepare phase):
 *   sync IUSE_USER_TARGETS to the list of targets
 * 
 * Call stack:
 *     ebuild.sh, line    93:  Called src_prepare
 *   environment, line 13134:  Called check_targets 'IUSE_USER_TARGETS' 'linux-user'
 *   environment, line  8856:  Called die
 * The specific snippet of code:
 *           die "sync ${var} to the list of targets";
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/qemu-9999::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/qemu-9999::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/qemu-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/qemu-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/qemu-9999/work/qemu-9999/default-configs'
 * S: '/var/tmp/portage/app-emulation/qemu-9999/work/qemu-9999'



Here's the patch:

# diff -u /usr/portage/app-emulation/qemu/qemu-9999.ebuild /tmp/qemu-9999.ebuild 
--- /usr/portage/app-emulation/qemu/qemu-9999.ebuild    2015-09-24 08:29:23.239520058 +0200
+++ /tmp/qemu-9999.ebuild       2015-09-24 08:29:14.999548067 +0200
@@ -40,7 +40,7 @@
 mips64 mips64el mipsel or32 ppc ppc64 s390x sh4 sh4eb sparc sparc64 unicore32
 x86_64"
 IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} lm32 moxie ppcemb tricore xtensa xtensaeb"
-IUSE_USER_TARGETS="${COMMON_TARGETS} armeb mipsn32 mipsn32el ppc64abi32 ppc64le sparc32plus"
+IUSE_USER_TARGETS="${COMMON_TARGETS} armeb mipsn32 mipsn32el ppc64abi32 ppc64le sparc32plus tilegx"
 
 use_softmmu_targets=$(printf ' qemu_softmmu_targets_%s' ${IUSE_SOFTMMU_TARGETS})
 use_user_targets=$(printf ' qemu_user_targets_%s' ${IUSE_USER_TARGETS})
Comment 2 Michal Privoznik 2015-09-27 06:56:08 UTC
Also, since:

commit 7b02f5447c64d1854468f758398c9f6fe9e5721f
Author:     Marc-André Lureau <marcandre.lureau@redhat.com>
AuthorDate: Sun Aug 30 11:48:40 2015 +0200
Commit:     Marc-André Lureau <marcandre.lureau@redhat.com>
CommitDate: Wed Sep 23 23:34:17 2015 +0200

    libcacard: use the standalone project
    
    libcacard is now a standalone project hosted with the Spice project (see
    the 2.5.0 release announcement), remove it from qemu tree.
    
    Use the library if found during configure or if --enable-smartcard.
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
    Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
    Tested-by: Paolo Bonzini <pbonzini@redhat.com>



the smartcard-nss was renamed to smartcard, so we need this ebuild change too:

# diff -u /tmp/qemu-9999.ebuild /usr/portage/app-emulation/qemu/qemu-9999.ebuild 
--- /tmp/qemu-9999.ebuild       2015-09-27 08:55:00.981730572 +0200
+++ /usr/portage/app-emulation/qemu/qemu-9999.ebuild    2015-09-27 08:53:02.512126421 +0200
@@ -385,7 +385,7 @@
                $(conf_softmmu sasl vnc-sasl)
                $(conf_softmmu sdl)
                $(conf_softmmu seccomp)
-               $(conf_softmmu smartcard smartcard-nss)
+               $(conf_softmmu smartcard)
                $(conf_softmmu snappy)
                $(conf_softmmu spice)
                $(conf_softmmu ssh libssh2)


Not sure if worth opening an extra bug though.
Comment 3 SpanKY gentoo-dev 2015-09-27 19:38:53 UTC
(In reply to Michal Privoznik from comment #2)

yes, a new bug please for each issue