Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503750 - dev-python/mysql-python-1.2.5 - install: cannot stat ‘README’: No such file or directory
Summary: dev-python/mysql-python-1.2.5 - install: cannot stat ‘README’: No such file o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal with 3 votes (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
: 505110 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-07 17:00 UTC by Guillaume Poulin
Modified: 2014-03-19 18:18 UTC (History)
16 users (show)

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


Attachments
mysql-python-1.2.5.ebuild (mysql-python-1.2.5.ebuild,1.01 KB, text/plain)
2014-03-07 17:01 UTC, Guillaume Poulin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Poulin 2014-03-07 17:00:18 UTC
In the 1.2.5 version of mysql-python the documentation file was renamed but the ebuild wasn't adapt

Reproducible: Always

Steps to Reproduce:
1.emerge dev-python/mysql-python-1.2.5

Actual Results:  
install: cannot stat ‘README’: No such file or directory
!!! dodoc: README does not exist
install: cannot stat ‘doc/FAQ.txt’: No such file or directory
!!! dodoc: doc/FAQ.txt does not exist
install: cannot stat ‘doc/MySQLdb.txt’: No such file or directory
!!! dodoc: doc/MySQLdb.txt does not exist


Expected Results:  
Succesful build
Comment 1 Guillaume Poulin 2014-03-07 17:01:42 UTC
Created attachment 371962 [details]
mysql-python-1.2.5.ebuild
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-07 17:02:50 UTC
Comment on attachment 371962 [details]
mysql-python-1.2.5.ebuild

--- mysql-python-1.2.5.ebuild   2014-03-07 15:13:04.000000000 +0100
+++ -   2014-03-07 18:02:41.618574993 +0100
@@ -26,7 +26,7 @@
 
 S="${WORKDIR}/${MY_P}"
 
-DOCS=( HISTORY README doc/{FAQ,MySQLdb}.txt )
+DOCS=( HISTORY README.md doc/{FAQ,MySQLdb}.rst )
 
 python_configure_all() {
        append-flags -fno-strict-aliasing
Comment 3 MarisN 2014-03-10 10:42:49 UTC
(In reply to Jeroen Roovers from comment #2)
> Comment on attachment 371962 [details]
> mysql-python-1.2.5.ebuild
> 
> --- mysql-python-1.2.5.ebuild   2014-03-07 15:13:04.000000000 +0100
> +++ -   2014-03-07 18:02:41.618574993 +0100
> @@ -26,7 +26,7 @@
>  
>  S="${WORKDIR}/${MY_P}"
>  
> -DOCS=( HISTORY README doc/{FAQ,MySQLdb}.txt )
> +DOCS=( HISTORY README.md doc/{FAQ,MySQLdb}.rst )
>  
>  python_configure_all() {
>         append-flags -fno-strict-aliasing

I confirm that provided change fixes the reported issue.

~AMD64
Comment 4 Guillaume Poulin 2014-03-10 13:08:20 UTC
This solution work but isn't ideal. It makes it work but it doesn't do what it should (build the doc). The best would be to add a doc USE flag and build the sphinx doc when the flag is used.
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2014-03-18 15:28:26 UTC
(In reply to Guillaume Poulin from comment #4)
> This solution work but isn't ideal. It makes it work but it doesn't do what
> it should (build the doc). The best would be to add a doc USE flag and build
> the sphinx doc when the flag is used.

While this is an entirely separate 'process', I did both, save making a separate bug for what ought to have already been done.

  18 Mar 2014; Ian Delaney <idella4@gentoo.org> mysql-python-1.2.5.ebuild:
  Add IUSE doc, dep, doc build and install, prompted by Bug #503750

  18 Mar 2014; Ian Delaney <idella4@gentoo.org> mysql-python-1.2.5.ebuild:
  correction to DOCS var, fixes Bug #503750
Comment 6 Brian Evans (RETIRED) gentoo-dev 2014-03-19 18:18:25 UTC
*** Bug 505110 has been marked as a duplicate of this bug. ***