"debain/rules clean" does not clean adequately

Bug #1326801 reported by Ben Harris
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-scope-home (Ubuntu)
New
Undecided
Unassigned

Bug Description

This is a problem in the unity-scope-home source package, version 6.8.2+14.04.20131029.1-0ubuntu1 from Ubuntu 14.04 LTS.

According to Ubuntu policy, the "clean" rule in debian/rules "must undo any effects that the build and binary targets may have had, except that it should leave alone any output files created in the parent directory by a run of a binary target." That target in unity-scope-home does not do this:

root@chickatrice:/tmp# apt-get source unity-scope-home=6.8.2+14.04.20131029.1-0ubuntu1 >/dev/null 2>&1
root@chickatrice:/tmp# find unity-scope-home-6.8.2+14.04.20131029.1 > files.before
root@chickatrice:/tmp# ( cd unity-scope-home-6.8.2+14.04.20131029.1 && debian/rules build && debian/rules clean ) >/dev/null 2>&1
root@chickatrice:/tmp# find unity-scope-home-6.8.2+14.04.20131029.1 > files.after
root@chickatrice:/tmp# diff files.before files.after | grep '^>'
> unity-scope-home-6.8.2+14.04.20131029.1/tests/unit/feedback.dump
> unity-scope-home-6.8.2+14.04.20131029.1/tests/unit/search.dump
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/books.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/photos.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/more_suggestions.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/applications.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/news.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/info.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/code.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/help.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/calendar.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/recipes.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/files.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/searchin.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/boxes.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/notes.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/weather.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/web.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/reference.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/video.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/music.scope
> unity-scope-home-6.8.2+14.04.20131029.1/data/master-scopes/graphics.scope

It looks like some of the files generating while building are not correctly removed while cleaning. This is a problem if (as I do) you want to convert the package to use the "3.0 (quilt)" source format.

The attached patch seemed to fix the problem for me, but I now worry about the *.dump files above, which it doesn't touch.

Tags: patch
Revision history for this message
Ben Harris (bjh21) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Crude patch that might fix the problem" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
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.