New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #32877 (closed defect: fixed)

Opened 17 months ago

Last modified 11 months ago

sane-backends: build takes forever

Reported by: dylanarena@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: aguynamedryan+sane@…, cal@…, mowerm@…
Port: sane-backends

Description (last modified by cal@…) (diff)

I have a brand-new MacBook Pro running 10.7.2. I wanted to install GIMP, so I installed MacPorts from the AppStore and then called "sudo port install gimp" from Terminal. I saw a huge list of dependencies, which MacPorts diligently chipped away at for hours. But it seemed to have hung up at the following point in the process:

--->  Fetching archive for sane-backends
--->  Attempting to fetch sane-backends-1.0.22_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/sane-backends
--->  Fetching sane-backends
--->  Attempting to fetch sane-backends-1.0.22.tar.gz from http://distfiles.macports.org/sane-backends
--->  Verifying checksum(s) for sane-backends
--->  Extracting sane-backends
--->  Applying patches to sane-backends
--->  Configuring sane-backends
--->  Building sane-backends

It had been a few hours, so I hit control-C and then called "sudo port install gimp" again. Happily, this time the list of dependencies was very short:

--->  Dependencies to be installed: xsane sane-backends

So I left the computer to run overnight. But when I returned to my computer this morning I saw that it had been hanging at the following line for at least ten hours:

--->  Computing dependencies for gimp
--->  Dependencies to be installed: xsane sane-backends
--->  Building sane-backends

Can anyone help me diagnose the problem?

Thanks very much for your time, Dylan

Attachments

sane-backends.log (1.5 MB) - added by albanx99@… 16 months ago.
sane-backends-mowerm.log (108.0 KB) - added by mowerm@… 16 months ago.
sane-backends_1.0.22_2.diff (609 bytes) - added by aguynamedryan+macports@… 16 months ago.
proposed patch
sane-backends_1.0.22_2.2.diff (638 bytes) - added by aguynamedryan+macports@… 16 months ago.
propose patch base on comment:7

Change History

comment:1 follow-up: ↓ 2 Changed 17 months ago by cal@…

  • Cc aguynamedryan+sane@…, cal@… added
  • Description modified (diff)
  • Port set to sane-backends

Please remember to use WikiFormatting for shell output, set the port field and Cc the maintainer.

Can you attach the logfile pointed to by port log sane-backends? Also, do you see extensive memory usage while the process runs and does everything get very slow?

comment:2 in reply to: ↑ 1 Changed 17 months ago by ryandesign@…

  • Summary changed from "sudo port install gimp" hangs forever on "Building sane-backends" to sane-backends: build takes forever

Replying to cal@…:

Can you attach the logfile pointed to by port log sane-backends?

port log sane-backends prints the contents of the logfile. If you want the location of the logfile, use port logfile sane-backends.

Changed 16 months ago by albanx99@…

comment:3 Changed 16 months ago by albanx99@…

I can confirm this. My logfile is attached.

Same deal: port install gimp ... Building sane-backends takes forever.

Changed 16 months ago by mowerm@…

comment:4 Changed 16 months ago by mowerm@…

Same problem for me. Log attached, seems that build gets hung at

:info:build libtool: link: Waiting for /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_sane-backends/sane-backends/work/sane-backends-1.0.22/backend/../lib/.libs/liblib.a.lock to be removed

comment:5 Changed 16 months ago by mowerm@…

  • Cc mowerm@… added

Cc Me!

Changed 16 months ago by aguynamedryan+macports@…

proposed patch

comment:6 Changed 16 months ago by aguynamedryan+macports@…

Bummer. The only thing I can think of is that maybe there's a deadlock situation arising from building in parallel.

Some googling reveals that libtool might be upset since the phrase "Waiting for $lockfile to be removed" appears here and right below it suggests not doing a parallel build.

I've removed parallel building from the Portfile.

I couldn't recreate the problem on my end, so I can't verify my proposed patch.

comment:7 Changed 16 months ago by mowerm@…

Concerning your patch, when I removed the line for "use_parallel_build", I still ened up at "Waiting for $lockfile to be removed". When I changed the line to

use_parallel_build          no

the build succeeded, and gimp was subsequently installed.

Changed 16 months ago by aguynamedryan+macports@…

propose patch base on comment:7

comment:8 Changed 15 months ago by aguynamedryan+macports@…

Is there anything else I need to do to get the patch committed and this ticket closed? Thanks!

comment:9 Changed 11 months ago by cal@…

  • Status changed from new to closed
  • Resolution set to fixed

Sorry for the delay, r94676. A revision bump was not needed, because the list of installed files didn't change and it you were hit by this bug you can't have a sucessfully installed sane-backends port and thus don't need a rebuild.

Note: See TracTickets for help on using tickets.