Opened 20 months ago

Closed 2 months ago

#57213 closed defect (fixed)

transmission failed to build on Mojave

Reported by: stanimura Owned by: kurthindenburg (Kurt Hindenburg)
Priority: Normal Milestone:
Component: ports Version: 2.5.3
Keywords: mojave Cc: pftbest (Vadzim Dambrouski), e40 (e40)
Port: transmission

Description

transmission 2.94 failed to build on Mojave.

$ xcodebuild -version
Xcode 10.0
Build version 10A255

Attachments (1)

main.log (179.5 KB) - added by stanimura 20 months ago.

Download all attachments as: .zip

Change History (12)

Changed 20 months ago by stanimura

Attachment: main.log added

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

Keywords: mojave added; Mojave removed
Owner: set to kurthindenburg
Status: newassigned

comment:2 Changed 20 months ago by pftbest (Vadzim Dambrouski)

Cc: pftbest added

comment:3 Changed 20 months ago by pftbest (Vadzim Dambrouski)

So there were 2 problems with this port, first a libevent.a file was missing, I just copied it over from /opt/local/lib, and second I had to replace angle brackets with quotes in #import <transmission.h> statements. Doing that fixed the build. The app works as expected, no issues noticed so far.

comment:4 Changed 20 months ago by kencu (Ken)

Ah, I finally found some documentation on how the header search paths have changed in Xcode 10 <https://devapple.weebly.com/uploads/1/0/8/0/108009593/release_notes_for_xcode_10_gm_seed.pdf>.

comment:5 Changed 17 months ago by mkultra329 (Matt Kokidko)

Confirming pftbest's solution. I had to change more than just the transmission.h, though... there were several imports that had the brackets instead of quotes and they all had to be changed to quotes.

comment:6 Changed 14 months ago by kencu (Ken)

has duplicate 58326

comment:7 Changed 14 months ago by kencu (Ken)

adding this to the Portfile fixes the build, while we wait for upstream to update the port to work with the new Xcode10+ build system:

# this port has not yet been updated to build with the new build system Xcode 10+
if {${os.platform} eq "darwin" && ([vercmp $xcodeversion 10.0] > 0)} {
    build.pre_args-append -UseModernBuildSystem=NO
    destroot.pre_args-append -UseModernBuildSystem=NO
}
$ port -v installed transmission
The following ports are currently installed:
  transmission @2.94_0 (active) platform='darwin 18' archs='x86_64' date='2019-04-11T07:33:55-0700'

comment:8 Changed 6 months ago by e40 (e40)

MacPorts 2.6.2, using the above Portfile fix and this version of Xcode

Xcode 11.2.1
Build version 11B500

I'm getting this error:

:info:build ** BUILD FAILED **
:info:build The following build commands failed:
:info:build 	CompileXIB macosx/en.lproj/Creator.xib
:info:build 	CompileXIB macosx/nl.lproj/Creator.xib
:info:build 	CompileXIB macosx/AboutWindow.xib
:info:build 	CompileXIB macosx/fr.lproj/Creator.xib
:info:build 	CompileXIB macosx/ru.lproj/Creator.xib
:info:build 	CompileXIB macosx/es.lproj/Creator.xib
:info:build (6 failures)
:info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_transmission/transmission/work/transmission-2.94" && /usr/bin/xcodebuild -UseModernBuildSystem=NO  -target "Transmission" -configuration Release build INSTALL_PATH=/Applications/MacPorts  OBJROOT="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_transmission/transmission/work/transmission-2.94/build/" SYMROOT="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_transmission/transmission/work/transmission-2.94/build/" MACOSX_DEPLOYMENT_TARGET=10.14 ARCHS=x86_64 SDKROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk" GCC_VERSION=com.apple.compilers.llvm.clang.1_0 CLANG_CXX_LIBRARY="libc++" 
:info:build Exit code: 65
:error:build Failed to build transmission: command execution failed
:debug:build Error code: NONE
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_transmission/transmission/main.log for details.

Ideas on how to make it build?

Last edited 6 months ago by e40 (e40) (previous) (diff)

comment:9 Changed 6 months ago by e40 (e40)

Cc: e40 added

comment:10 Changed 6 months ago by kurthindenburg (Kurt Hindenburg)

Using the patch from comment:8, I get this now on 10.15.1

Signing Identity:     "-"
    /usr/bin/codesign --force --sign - --entitlements /opt/local/var/macports/bu
ild/_Volumes_Devel_github.com_macports_macports-ports_net_transmission/transmiss
ion/work/transmission-2.94/build/Transmission.build/Release/Transmission.build/T
ransmission.app.xcent --timestamp=none /opt/local/var/macports/build/_Volumes_De
vel_github.com_macports_macports-ports_net_transmission/transmission/work/transm
ission-2.94/build/Release/Transmission.app
/opt/local/var/macports/build/_Volumes_Devel_github.com_macports_macports-ports_
net_transmission/transmission/work/transmission-2.94/build/Release/Transmission.
app: code object is not signed at all
In subcomponent: /opt/local/var/macports/build/_Volumes_Devel_github.com_macport
s_macports-ports_net_transmission/transmission/work/transmission-transmission-d8
e60ee/build/Release/Transmission.app/Contents/Frameworks/Sparkle.framework
Command /usr/bin/codesign failed with exit code 1
** BUILD FAILED **

comment:11 Changed 2 months ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.