Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678056 - dev-python/mysqlclient-1.4.2-r2 should use a SRC_URI arrow
Summary: dev-python/mysqlclient-1.4.2-r2 should use a SRC_URI arrow
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-15 10:08 UTC by Helmut Jarausch
Modified: 2019-02-16 17:12 UTC (History)
1 user (show)

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 Helmut Jarausch 2019-02-15 10:08:51 UTC
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.post1.tar.gz"
should be replaced by
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.post1.tar.gz -> ${P}.tar.gz"
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-02-15 15:18:54 UTC
${P}.tar.gz" won't be enough (I had to specify post1 as well).  PF will work though.  https://devmanual.gentoo.org/ebuild-writing/variables/
Comment 2 Larry the Git Cow gentoo-dev 2019-02-15 15:20:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e3e795f1946ebbf4a96d2a7aae1c82476bb88a1

commit 7e3e795f1946ebbf4a96d2a7aae1c82476bb88a1
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2019-02-15 15:19:37 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2019-02-15 15:19:54 +0000

    dev-python/mysqlclient: fixing a bug (src_uri)
    
    Fixes: https://bugs.gentoo.org/678056
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 dev-python/mysqlclient/Manifest                    | 2 +-
 dev-python/mysqlclient/mysqlclient-1.4.2-r2.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 3 A Blamey 2019-02-16 09:08:57 UTC
This is not fixed.

Emerge log:

>>> Emerging (1 of 1) dev-python/mysqlclient-1.4.2-r2::gentoo
>>> Downloading 'http://www.mirrorservice.org/sites/distfiles.gentoo.org/distfiles/mysqlclient-1.4.2-r2.tar.gz'
--2019-02-16 09:05:25--  http://www.mirrorservice.org/sites/distfiles.gentoo.org/distfiles/mysqlclient-1.4.2-r2.tar.gz
Resolving www.mirrorservice.org (www.mirrorservice.org)... 212.219.56.184
Connecting to www.mirrorservice.org (www.mirrorservice.org)|212.219.56.184|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 85662 (84K) [application/x-gzip]
Saving to: ‘/home/distfiles/mysqlclient-1.4.2-r2.tar.gz’

/home/distfiles/mys 100%[===================>]  83.65K  --.-KB/s    in 0.07s

2019-02-16 09:05:25 (1.23 MB/s) - ‘/home/distfiles/mysqlclient-1.4.2-r2.tar.gz’ saved [85662/85662]

 * mysqlclient-1.4.2-r2.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking mysqlclient-1.4.2-r2.tar.gz to /var/tmp/portage/dev-python/mysqlclient-1.4.2-r2/work
>>> Source unpacked in /var/tmp/portage/dev-python/mysqlclient-1.4.2-r2/work
 * ERROR: dev-python/mysqlclient-1.4.2-r2::gentoo failed (prepare phase):
 *   The source directory '/var/tmp/portage/dev-python/mysqlclient-1.4.2-r2/work/mysqlclient-1.4.2' doesn't exist
 *
 * Call stack:
 *            ebuild.sh, line  780:  Called __ebuild_main 'prepare'
 *   phase-functions.sh, line 1068:  Called __dyn_prepare
 *   phase-functions.sh, line  384:  Called die
 * The specific snippet of code:
 *              die "The source directory '${S}' doesn't exist"
 *
 * If you need support, post the output of `emerge --info '=dev-python/mysqlclient-1.4.2-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/mysqlclient-1.4.2-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/mysqlclient-1.4.2-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/mysqlclient-1.4.2-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/mysqlclient-1.4.2-r2/homedir'
 * S: '/var/tmp/portage/dev-python/mysqlclient-1.4.2-r2/work/mysqlclient-1.4.2'


Portage work dir contains dir with post1 suffix:

#▸ls -l /var/tmp/portage/dev-python/mysqlclient-1.4.2-r2/work
total 0
drwxr-xr-x 6 portage portage 380 Feb 13 12:35 mysqlclient-1.4.2.post1


The downloaded archive also contains the suffix:

#▸tar tvfz /usr/portage/distfiles/mysqlclient-1.4.2-r2.tar.gz
drwxrwxr-x inada-n/inada-n   0 2019-02-13 12:35 mysqlclient-1.4.2.post1/
-rw-rw-r-- inada-n/inada-n 11933 2019-02-08 12:23 mysqlclient-1.4.2.post1/HISTORY.rst
-rw-rw-r-- inada-n/inada-n  3546 2018-12-12 09:20 mysqlclient-1.4.2.post1/INSTALL.rst
-rw-rw-r-- inada-n/inada-n 18092 2018-10-20 03:03 mysqlclient-1.4.2.post1/LICENSE
-rw-rw-r-- inada-n/inada-n   281 2018-10-20 03:03 mysqlclient-1.4.2.post1/MANIFEST.in
drwxrwxr-x inada-n/inada-n     0 2019-02-13 12:35 mysqlclient-1.4.2.post1/MySQLdb/
-rw-rw-r-- inada-n/inada-n  3167 2019-01-17 12:30 mysqlclient-1.4.2.post1/MySQLdb/__init__.py
-rw-rw-r-- inada-n/inada-n  2202 2019-01-17 12:30 mysqlclient-1.4.2.post1/MySQLdb/_exceptions.py
...
Comment 4 Larry the Git Cow gentoo-dev 2019-02-16 17:12:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=196855fae44ca694f7ec4ddd48e0b3e42a292c53

commit 196855fae44ca694f7ec4ddd48e0b3e42a292c53
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2019-02-16 17:11:58 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2019-02-16 17:12:14 +0000

    dev-python/mysqlclient: fix S-dir
    
    Fixes: https://bugs.gentoo.org/678056
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 dev-python/mysqlclient/mysqlclient-1.4.2-r2.ebuild | 1 +
 1 file changed, 1 insertion(+)