Opened 16 months ago

Closed 16 months ago

Last modified 16 months ago

#67871 closed defect (fixed)

p5.34-image-sane: installs wrong binaries

Reported by: kencu (Ken) Owned by: kencu (Ken)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: p5.34-image-sane

Description

Installing p5.34-image-sane on 10.14 gives us an arm64 binary:

$ gscan2pdf
Can't load '/opt/local/lib/perl5/vendor_perl/5.34/darwin-thread-multi-2level/auto/Image/Sane/Sane.bundle' for module Image::Sane: dlopen(/opt/local/lib/perl5/vendor_perl/5.34/darwin-thread-multi-2level/auto/Image/Sane/Sane.bundle, 1): no suitable image found.  Did find:
	/opt/local/lib/perl5/vendor_perl/5.34/darwin-thread-multi-2level/auto/Image/Sane/Sane.bundle: mach-o, but wrong architecture
$ file /opt/local/lib/perl5/vendor_perl/5.34/darwin-thread-multi-2level/auto/Image/Sane/Sane.bundle
/opt/local/lib/perl5/vendor_perl/5.34/darwin-thread-multi-2level/auto/Image/Sane/Sane.bundle: Mach-O 64-bit bundle arm64

presumably removing:

platforms           {darwin any}

and rebuilding will fix this

Change History (5)

comment:1 Changed 16 months ago by kencu (Ken)

yep:

$ file /opt/local/lib/perl5/vendor_perl/5.34/darwin-thread-multi-2level/auto/Image/Sane/Sane.bundle
/opt/local/lib/perl5/vendor_perl/5.34/darwin-thread-multi-2level/auto/Image/Sane/Sane.bundle: Mach-O 64-bit bundle x86_64

comment:2 Changed 16 months ago by kencu (Ken)

Owner: set to kencu
Resolution: fixed
Status: newclosed

In 1b0b5d60aef385ccbfbd2cb781d1e99c3c4e4517/macports-ports (master):

p5-image-sane: installs binaries

so remove {darwin and}
closes: #67871

comment:3 Changed 16 months ago by kencu (Ken)

hmmm...

now I wonder if I also have to remove:

supported_archs noarch

too

comment:4 Changed 16 months ago by jmroot (Joshua Root)

Yes. The platforms were only set that way because it was already claiming to be noarch.

Note: See TracTickets for help on using tickets.