Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 655846 - sys-apps/usbutils-010: fails to build with USE=python
Summary: sys-apps/usbutils-010: fails to build with USE=python
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-16 07:30 UTC by Hector Martin
Modified: 2018-05-16 07:52 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 Hector Martin 2018-05-16 07:30:52 UTC
Looks like the package switched to Python 3, but the ebuild was not updated to match.

 * Package:    sys-apps/usbutils-010
 * Repository: gentoo
 * Maintainer: base-system@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python python_targets_python2_7 userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking usbutils-010.tar.xz to /var/tmp/portage/sys-apps/usbutils-010/work
>>> Source unpacked in /var/tmp/portage/sys-apps/usbutils-010/work
>>> Preparing source in /var/tmp/portage/sys-apps/usbutils-010/work/usbutils-010 ...
 * Fixing shebang in lsusb.py.in.
 * The file has incompatible shebang:
 *   file: lsusb.py.in
 *   current shebang: #!/usr/bin/env python3
 *   requested impl: python2.7
 * ERROR: sys-apps/usbutils-010::gentoo failed (prepare phase):
 *   python_fix_shebang: conversion of incompatible shebang requested
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_prepare
 *   environment, line 1993:  Called python_fix_shebang 'lsusb.py.in'
 *   environment, line 1530:  Called die
 * The specific snippet of code:
 *                   die "${FUNCNAME}: conversion of incompatible shebang requested";
 *
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-05-16 07:52:28 UTC
commit f7e78c503f20bc7a58b81f40cda59d99604046db
Author: Lars Wendler <polynomial-c@gentoo.org>
Date:   Wed May 16 09:51:27 2018

    sys-apps/usbutils: lsusb.py requires python3.
    
    Package-Manager: Portage-2.3.36, Repoman-2.3.9