dh_scour breaks the build of fritzing-parts package in my launchpad ppa

Asked by Enrique Hernández Bello

Hello,

I tried to build[1] the fritzing-parts in my Launchpad PPA[2] for Fritzing[3] and, after two hours and a half, build terminates unexpectedly showing following message:

> Session terminated, terminating shell...make: *** wait: No child processes. Stop.
> make: *** Waiting for unfinished jobs....
> make: *** wait: No child processes. Stop.
> ...terminated.
> Build killed with signal TERM after 150 minutes of inactivity

The full buildlog is here:

- https://launchpadlibrarian.net/207656524/buildlog_ubuntu-vivid-amd64.fritzing-parts_0.9.2b%2Bdfsg-1~ppa1~vivid1_BUILDING.txt.gz

Build time is too long for this package. The most time, dh_scour runs for all svg files of my package failing with a timeout.

How I can solve this?

Thanks.

[1] https://launchpad.net/~ehbello/+archive/ubuntu/fritzing/+build/7478585
[2] https://launchpad.net/~ehbello/+archive/ubuntu/fritzing/+packages
[3] http://fritzing.org/

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
William Grant
Solved:
Last query:
Last reply:
Revision history for this message
William Grant (wgrant) said :
#1

Have you tried building it locally? Builds are only terminated after 2.5 hours of complete silence, so it sounds like scour might be hanging.

Revision history for this message
Enrique Hernández Bello (ehbello) said :
#2

Yes, perfectly built under a pbuilder configuration. Build is successful in a short time, exactly in 2m11.435s.

The local buildlog shows that dh_scour is not running:

> # only call dh_scour for packages in main
> if grep -q '^Component:[[:space:]]*main' /CurrentlyBuilding 2>/dev/null; then dh_scour -pfritzing-parts ; fi
> dh_md5sums -pfritzing-parts

Revision history for this message
William Grant (wgrant) said :
#3

What if you force it to run dh_scour?

Revision history for this message
Enrique Hernández Bello (ehbello) said :
#4

I forced to run dh_scour and it was successfully built. However, on my computer, it took "slightly" more time, exactly 5 hours 34 minutes and 40 seconds. I think the problem is in the timeout of 150 minutes limited by Launchpad.

Revision history for this message
Best William Grant (wgrant) said :
#5

The problem is rather that dh_scour takes unreasonably long. You'll need to either disable dh_scour for your package or make it quicker.

This doesn't show up in Ubuntu's fritzing builds because Ubuntu's cdbs package only runs dh_scour for packages in main, and fritzing is in universe. But all PPA packages are in main, so dh_scour runs on PPA builds of fritzing.

Revision history for this message
Enrique Hernández Bello (ehbello) said :
#6

I can read in buildlogs that there are two files that takes the most of build time:

> scour 0.26
> Copyright Jeff Schiller, Louis Simard, 2010
> File: sparkfun-displays_lcd-g12864_breadboard.svg
> Time taken: 5865.89s
> Number of elements removed: 16682
> Number of attributes removed: 0
> Number of unreferenced id attributes removed: 0
> Number of style properties fixed: 0
> Number of raster images embedded inline: 0
> Number of path segments reduced/removed: 39
> Number of bytes saved in path data: 50794
> Number of bytes saved in colors: 24579
> Number of points removed from polygons: 0
> Number of bytes saved in comments: 0
> Number of bytes saved in id attributes: 0
> Number of bytes saved in lengths: 2
> Number of bytes saved in transformations: 0
> Original file size: 1836445 bytes; new file size: 1455636 bytes (79.26%)
> cmpsvg: python-rsvg not installed, cannot compare SVG images

> scour 0.26
> Copyright Jeff Schiller, Louis Simard, 2010
> File: sparkfun-displays_lcd_cfax_breadboard.svg
> Time taken: 1599.41s
> Number of elements removed: 8395
> Number of attributes removed: 8200
> Number of unreferenced id attributes removed: 0
> Number of style properties fixed: 0
> Number of raster images embedded inline: 0
> Number of path segments reduced/removed: 11
> Number of bytes saved in path data: 81
> Number of bytes saved in colors: 24579
> Number of points removed from polygons: 0
> Number of bytes saved in comments: 0
> Number of bytes saved in id attributes: 0
> Number of bytes saved in lengths: 7
> Number of bytes saved in transformations: 51
> Original file size: 1245462 bytes; new file size: 857983 bytes (68.88%)
> cmpsvg: python-rsvg not installed, cannot compare SVG images

I ran scour manually and also takes a long time. It ends successfully so I don't know how I can make dh_scour quicker without changing the upstream sourcecode.

How I can disable dh_scour in my package? I tried to add an override in my debian/rule file but CDBS ignores it.

Revision history for this message
William Grant (wgrant) said :
#7

You may have to override binary-makedeb-IMPL/%, but I'm really not sure -- I haven't used CDBS in many years.

Revision history for this message
Enrique Hernández Bello (ehbello) said :
#8

Thanks William Grant, that solved my question.

Revision history for this message
Enrique Hernández Bello (ehbello) said :
#9

I removed my pack CDBS in favor of simply debhelper and the problem is solved. I realized that the first was not necessary.