Please remove the .cmd files in bin

Bug #363931 reported by John Ferlito
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ec2-api-tools (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: ec2-api-tools

In /usr/bin for every command like ec2-describe-snapshots there is an ec2-describe-snapshots.cmd.

The .cmd files are wrappers for windows. COuld they be removed from the package they just pollute the tab-completion namespace.

Thierry Carrez (ttx)
Changed in ec2-api-tools (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ec2-api-tools - 1.3.36506-0ubuntu2

---------------
ec2-api-tools (1.3.36506-0ubuntu2) karmic; urgency=low

  * Remove *.cmd wrappers (LP: #363931)

 -- Chuck Short <email address hidden> Mon, 08 Jun 2009 08:57:31 -0400

Changed in ec2-api-tools (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Ville Aine (ville-aine) wrote :

I don't think 1.3.36506-0ubuntu2 really fixes the bug:

  $ dpkg -l|grep ec2-api-tools
  ii ec2-api-tools 1.3.36506-0ubuntu2 Amazon EC2 API tools
  $ dpkg -L ec2-api-tools|grep \\.cmd$|head -5
  /usr/bin/ec2assocaddr.cmd
  /usr/bin/ec2-migrate-image.cmd
  /usr/bin/ec2daddr.cmd
  /usr/bin/ec2gpass.cmd
  /usr/bin/ec2-purchase-reserved-instances-offering.cmd

The problem appears to be that the install/ec2-api-tools rule in debian/rules is run before dh_install.
CDBS provides binary-post-install/* rule for doing stuff after dh_install and friends, and using that
seems to work (see the attached patch).

Ville Aine (ville-aine)
Changed in ec2-api-tools (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Scott Moser (smoser) wrote :

This is definitely not fixed in 1.3.36506-0ubuntu2 .

$ dpkg -c ec2-api-tools_1.3.36506-0ubuntu2_amd64.deb |
-rwxr-xr-x root/root 1030 2009-05-12 06:55 ./usr/bin/ec2-add-group.cmd
-rwxr-xr-x root/root 1035 2009-05-12 06:55 ./usr/bin/ec2-add-keypair.cmd
-rwxr-xr-x root/root 1037 2009-05-12 06:55 ./usr/bin/ec2-allocate-address.cmd
....
-rwxr-xr-x root/root 1033 2009-05-12 06:55 ./usr/bin/ec2revoke.cmd
-rwxr-xr-x root/root 1034 2009-05-12 06:55 ./usr/bin/ec2run.cmd
-rwxr-xr-x root/root 1040 2009-05-12 06:55 ./usr/bin/ec2umin.cmd
-rwxr-xr-x root/root 1033 2009-05-12 06:55 ./usr/bin/ec2ver.cmd

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ec2-api-tools - 1.3.36506-0ubuntu3

---------------
ec2-api-tools (1.3.36506-0ubuntu3) karmic; urgency=low

  * Really fix cmd wrappers. Thanks to Ville Aine. (LP: #363931)

 -- Chuck Short <email address hidden> Wed, 12 Aug 2009 09:31:15 -0400

Changed in ec2-api-tools (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Scott Moser (smoser) wrote :

just a verify:
$ dpkg-query --showformat '${version}\n' --show "ec2-api-tools"
1.3.36506-0ubuntu3
$ dpkg -L ec2-api-tools | grep -q "[.]cmd" && echo "CMD FILES" || echo "no .cmd files"
no .cmd files

thanks Chuck.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.