Ant installation targets are not package-manager safe
Bug #776689 reported by
Ronald Kinard
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Medusa-gui |
Fix Committed
|
Medium
|
Ronald Kinard |
Bug Description
Currently, the ant "install" and "uninstall" targets install directly to /usr folders in the File System Hierarchy. These folders are typically meant to be managed by the package manager, and not for build scripts, as to avoid conflicts with testing software and deployment software.
The Ant script should support a prefix variable that would replace /usr, and default to /usr/local, but be changeable for packaging recipes to direct to /usr; this is normal for Makefile targets.
Please see http://
Related branches
lp://staging/~furyhunter/medusa-gui/buildfix
- tak: Pending requested
-
Diff: 189 lines (+91/-81)2 files modifiedbuild.xml (+90/-79)
src/info/tak11/medusagui/MedusaGui.java (+1/-2)
Changed in medusa-gui: | |
status: | New → Fix Committed |
To post a comment you must log in.
It just occurred to me that it isn't common for ant scripts to even have "install" and "uninstall" but rather a "dist" target that packages it up.
Package recipes should be used to do actual system installations. That's a distro-dependent thing (i.e. making an installer package for Windows, one of those app folder things in OSX), but we can make a recipe for Debian-based things directly in Launchpad. I'll consider working on that.