Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#26372 - [django][anjuta] django-admin vs. django-admin.py

Attached to Project: Arch Linux
Opened by Shanto (Shanto) - Monday, 10 October 2011, 09:18 GMT
Last edited by Ionut Biru (wonder) - Wednesday, 19 October 2011, 14:12 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dan McGee (toofishes)
Ionut Biru (wonder)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

There's a minor conflict in the naming of "django-admin.py" binary between the packages for django and anjuta. The Python>Django project wizard in Anjuta refers to "django-admin" binary (as in Debian) as a required program. However, in the django package, this binary is django-admin.py.

This can be solved either by renaming /usr/bin/django-admin.py to /usr/bin/django-admin (which seems slightly more logical to me), or by patching /usr/share/anjuta/project/django.wiz to refer to django-admin.py instead (patch attached).

Note: In case django-admin.py is renamed to django-admin, the wiki article "Django" should be corrected with the new binary name.
This task depends upon

Closed by  Ionut Biru (wonder)
Wednesday, 19 October 2011, 14:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  anjuta 3.2.1
Comment by Ionut Biru (wonder) - Monday, 10 October 2011, 10:02 GMT
i'm not very happy to patch that.

Dan, can you add a symlink django-admin.py->django-admin ?
Comment by Shanto (Shanto) - Monday, 10 October 2011, 10:09 GMT
In fact, I think, /usr/bin/django-admin.py (as a file/script) can be removed which is identical to /usr/lib/python2.7/site-packages/django/bin/django-admin.py.

Then, we can put symlink(s) in /usr/bin pointing to /usr/lib/python2.7/site-packages/django/bin/django-admin.py:

/usr/bin/django-admin -> /usr/lib/python2.7/site-packages/django/bin/django-admin.py
/usr/bin/django-admin.py -> /usr/lib/python2.7/site-packages/django/bin/django-admin.py (only if it's needed/in use by other apps/people)
Comment by Shanto (Shanto) - Monday, 10 October 2011, 10:11 GMT
I also think that /usr/lib/python2.7/site-packages/django/bin/*.py should be chmoded to allow execution.
Comment by Dan McGee (toofishes) - Monday, 10 October 2011, 13:46 GMT
I will do none of this, actually, because I am shipping a 100% stock upstream Django outside of the necessary s/python/python2/ changes.

It sounds to me like anjuta is broken and hasn't been tested on non-Debian platforms and you need to address this upstream with them.

P.S. Good luck convincing Django to ship this way, their average bug turnaround time is probably close to 30 months...
Comment by Ionut Biru (wonder) - Monday, 10 October 2011, 14:10 GMT
@Shanto have you reported to anjuta?If yes, can you paste the link to follow its progresS?
Comment by Shanto (Shanto) - Wednesday, 12 October 2011, 01:29 GMT
@Ionut Reported https://bugzilla.gnome.org/show_bug.cgi?id=661511.

@Dan I still think that you can consider adding symlinks (as discussed above) to workaround this problem temporarily. Packages from different authors will always have some rough edges to be polished by the distributions. And, as far as I understand, Arch is against extensive patching, but making things work by slight adjustments is not prohibited. Or, is it? :)

By the way, are there any policy for Arch in regard to executable scripts naming (such as xyz.py or abcd.php) inside binary directories? All I could find is an incomplete wiki entry from Allan[1] where he mentions about Debian and Fedora. And, from my quick research, both Debian and Fedora seem to prefer stripping the extension in such cases. For the majority, it just makes more sense, it's prettier, it's convenient, and is more likely preferred.

I think, this bug in Anjuta and/or Django is only one example from many possible applications/use-cases having unnecessary bugs/complexities[2] due to a missing policy/standard shared by the distributions in this regard. So, if either of you are in a position to address this, please do.

[1] https://wiki.archlinux.org/index.php/User:Allan/Python_Packaging_Policy
[2] See the hack at line 25: http://git.gnome.org/browse/anjuta/tree/plugins/project-wizard/templates/django.wiz.in#n25.

Loading...