Opened 15 months ago

Closed 15 months ago

Last modified 15 months ago

#66779 closed defect (fixed)

libnetpbm: Failed to extract libnetpbm: extract.rename: multiple directories exist in /opt/local/var/macports/build/_opt_mports_macports-ports_graphics_netpbm/libnetpbm/work

Reported by: mf2k (Frank Schima) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.8.99
Keywords: Cc: jmroot (Joshua Root)
Port: libnetpbm

Description (last modified by mf2k (Frank Schima))

Running latest base from HEAD. It appears that the fix for issues like #66415 does not work for multiple distfiles.

:error:extract Failed to extract libnetpbm: extract.rename: multiple directories exist in /opt/local/var/macports/build/_opt_mports_macports-ports_graphics_netpbm/libnetpbm/work: 
/opt/local/var/macports/build/_opt_mports_macports-ports_graphics_netpbm/libnetpbm/work/netpbm-mirror-62c62a8423c7d6746f437f46c35499281c39e4dd
/opt/local/var/macports/build/_opt_mports_macports-ports_graphics_netpbm/libnetpbm/work/netpbm-mirror-a70405848cb06782036364a88e27f452fb0a0b32

Attachments (1)

main.log (7.9 KB) - added by mf2k (Frank Schima) 15 months ago.

Download all attachments as: .zip

Change History (13)

Changed 15 months ago by mf2k (Frank Schima)

Attachment: main.log added

comment:1 Changed 15 months ago by mf2k (Frank Schima)

Description: modified (diff)

comment:2 Changed 15 months ago by mf2k (Frank Schima)

Description: modified (diff)

comment:3 Changed 15 months ago by mf2k (Frank Schima)

Description: modified (diff)

comment:4 Changed 15 months ago by mf2k (Frank Schima)

Cc: jmroot added

comment:5 Changed 15 months ago by jmroot (Joshua Root)

There's never been automatic handling of multiple directories. I would guess this must have its own renaming in place and so can change extract.rename to no.

comment:6 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)

I'm frustrated that base has been changed in such a way that breaks ports again.

This port renames the extracted directories as needed in the post-extract phase. This worked fine before. Why is base now making this more difficult?

comment:7 in reply to:  5 Changed 15 months ago by mf2k (Frank Schima)

Replying to jmroot:

There's never been automatic handling of multiple directories. I would guess this must have its own renaming in place and so can change extract.rename to no.

Confirmed that it works for me.

comment:8 in reply to:  6 Changed 15 months ago by jmroot (Joshua Root)

Replying to ryandesign:

This port renames the extracted directories as needed in the post-extract phase. This worked fine before. Why is base now making this more difficult?

Base isn't setting this option, the github portgroup is. Most ports using that portgroup need the option to avoid setting worksrcdir manually. If you know a way to automatically exclude ports like this that do their own renaming, please implement it.

If you're asking why an option like extract.rename is necessary, the previous behaviour also breaks ports, it just does so silently. Now you get an error if it doesn't work.

comment:9 Changed 15 months ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

In 07931f78b1c476d3f7c5d9ed7baa8b895c12f81b/macports-ports (master):

netpbm: fix extract failure

Closes: #66779

comment:10 Changed 15 months ago by mf2k (Frank Schima)

Description: modified (diff)

comment:11 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)

If setting extract.rename yes does not work with multiple directories, then why does the github portgroup set extract.rename yes when there are multiple directories?

comment:12 Changed 15 months ago by jmroot (Joshua Root)

The portgroup currently has no knowledge of how many directories there are. If you know how to make it figure that out and take it into account, that would be a great improvement to make.

Note: See TracTickets for help on using tickets.