Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439192 - dev-python/django-9999 - `doins -r django/contrib/admin/media/*' fails
Summary: dev-python/django-9999 - `doins -r django/contrib/admin/media/*' fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2012-10-21 19:42 UTC by Robert T Childers
Modified: 2015-02-28 14:00 UTC (History)
0 users

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


Attachments
Ebuild - Django - fixed directory to allow install. (django-8888.ebuild,2.82 KB, text/plain)
2012-10-21 19:42 UTC, Robert T Childers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert T Childers 2012-10-21 19:42:59 UTC
Created attachment 327098 [details]
Ebuild - Django - fixed directory to allow install.

django-9999 fails to install due to an error in the specified directory in the ebuild.

In src_install(), you have doins -r django/contrib/admin/media/* || die "doins failed".
This is the directory used by django-1.3.2, but in the 1.4 series of django they changed the directory structure.

In src_install() of django 1.4.1 you find the following. doins -r django/contrib/admin/static/admin/* || die "doins failed"

I modified your django-9999 ebuild to use django/contrib/admin/static/admin/* instead of django/contrib/admin/media/*

This corrects the error and allows the svn/trunk version of django to be installed. As a side note there is an upstream error in your 1.4.1 version that has been corrected in the trunk version. when you try to create the superuser account for contrib-auth, in your django project the LOCALE isn't handled properly. This is what prompted me to install the svn/trunk version in the first place.

Adding as an attachment is my modified django ebuild.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-22 04:47:22 UTC
Comment on attachment 327098 [details]
Ebuild - Django - fixed directory to allow install.

--- django-9999.ebuild  2012-05-29 02:37:47.000000000 +0200
+++ -   2012-10-22 06:47:12.644594288 +0200
@@ -83,7 +83,7 @@
        fi
 
        insinto "${MY_HTDOCSDIR#${EPREFIX}}"
-       doins -r django/contrib/admin/media/* || die "doins failed"
+       doins -r django/contrib/admin/static/admin/* || die "doins failed"
 
        webapp_src_install
 }
Comment 2 Patrick Lauer gentoo-dev 2012-11-01 07:56:07 UTC
the install failure is fixed, can you clarify on the bug in 1.4.1 ?
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2015-02-28 14:00:10 UTC
Has been fixed some time ago.