Opened 19 years ago

Closed 18 years ago

#7268 closed defect (wontfix)

Build Failure: Cannot upgrade Smultron

Reported by: lars_brueckner@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc: fulkkari@…, markd@…
Port:

Description

Vigor11:~ root# port -a upgrade ---> Fetching Smultron ---> Attempting to fetch SmultronSource-1.2.6.zip from http://puzzle.dl.sourceforge.net/smultron ---> Verifying checksum(s) for Smultron ---> Extracting Smultron ---> Configuring Smultron ---> Building Smultron Error: Target com.apple.build returned: shell command "cd "work/SmultronSource" && xcodebuild -alltargets -buildstyle Deployment build " returned error 1 Command output: xcodebuild: Error: the directory /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_aqua_Smultron/work/SmultronSource does not contain an Xcode project.

Error: Unable to upgrade port: 1

Regards, Lars

Change History (6)

comment:1 Changed 19 years ago by olegb@…

Summary: Build Failure: Cannot upgrade Smultron Build Failure: Cannot upgrade Smultron

Smultron build quite on 10.4.5 ... ECANNOTREPRODUCE

comment:2 Changed 19 years ago by lars_brueckner@…

Hi,

I retried to upgrade to get some more info:

Vigor11:~ root# port -d install smultron DEBUG: Found port in file:///opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/aqua/Smultron DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/aqua/Smultron DEBUG: Re-registering default for use_configure DEBUG: Re-registering default for build.cmd DEBUG: Re-registering default for build.pre_args DEBUG: Re-registering default for build.target DEBUG: Re-registering default for destroot.cmd DEBUG: Re-registering default for destroot.pre_args DEBUG: Re-registering default for destroot.target DEBUG: Requested variant powerpc is not provided by port Smultron. DEBUG: Requested variant darwin is not provided by port Smultron. DEBUG: Requested variant macosx is not provided by port Smultron. DEBUG: Skipping completed com.apple.main (Smultron) DEBUG: No TGZ archive: /opt/local/var/db/dports/packages/darwin/powerpc/Smultron-1.2.6_0.powerpc.tgz DEBUG: Skipping unarchive (Smultron) since no archive found DEBUG: Skipping completed com.apple.unarchive (Smultron) DEBUG: Skipping completed com.apple.fetch (Smultron) DEBUG: Skipping completed com.apple.checksum (Smultron) DEBUG: setting option extract.cmd to /usr/bin/unzip DEBUG: setting option extract.pre_args to -q DEBUG: setting option extract.post_args to {-d /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_aqua_Smultron/work} DEBUG: Skipping completed com.apple.extract (Smultron) DEBUG: Skipping completed com.apple.patch (Smultron) DEBUG: Skipping completed com.apple.configure (Smultron) ---> Building Smultron DEBUG: Executing com.apple.build (Smultron) DEBUG: Assembled command: 'cd "work/SmultronSource" && xcodebuild -alltargets -buildstyle Deployment build ' xcodebuild: Error: the directory /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_aqua_Smultron/work/SmultronSource does not contain an Xcode project. Error: Target com.apple.build returned: shell command "cd "work/SmultronSource" && xcodebuild -alltargets -buildstyle Deployment build " returned error 1 Command output: xcodebuild: Error: the directory /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_aqua_Smultron/work/SmultronSource does not contain an Xcode project.

Warning: the following items did not execute (for Smultron): com.apple.activate com.apple.build com.apple.destroot com.apple.archive com.apple.install Error: /opt/local/bin/port: Status 1 encountered during processing.

Vigor11:~ root# ls /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_aqua_Smultron/work/SmultronSource/ | grep xcode

Smultron.xcodeproj

So, actually there his a directory named Smultron.xcodeproj in the source. Cd'ed to source and tried to run xcodebuild by hand:

xcodebuild -project Smultron -alltargets -buildstyle Deployment build

xcodebuild: Error: the project name Smultron does not have a valid extension.

xcodebuild -alltargets -buildstyle Deployment build

xcodebuild: Error: the directory /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_aqua_Smultron/work/SmultronSource does not contain an Xcode project.

Maybe some incompatibility between the way xcode for 10.4 and xcode for 10.3 store their projectfiles?

comment:3 Changed 19 years ago by fulkkari@…

Cc: fulkkari@… added

Beginning with Xcode 2.1 the file format changed and started to use .xcodeproj as suffix. .xcode ending files are pre-2.1 project files. Smultron has apparently upgraded to the new file format, resulting in this problem on installations with pre-2.1 versions of Xcode. The issue can be fixed by upgrading to the newest version of Xcode, currently at 2.2.1. The problem should exist on all versions of Mac OS X using older versions of Xcode! aqua/Handbrake suffers from the same problem.

See: http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/05_07_bs_building_product/chapter_33_section_7.html

comment:4 Changed 19 years ago by lars_brueckner@…

Henrik, thanks for the information.

However my system is 10.3 and Xcode2.1 requires 10.4, so I see no reasonable way to fix it.

It would be nice if the portfile would check for the xcode version and fail with a clear error message before it downloads code it cannot build.

As you noted, other ports suffer from this too. (See also bug #6111 for TeXShop)

Should this bug be assigned to "ports/base" as this is a general problem? Regards, Lars

comment:5 Changed 19 years ago by markd@…

Cc: markd@… added

There is a 1.2.7 binary available now from the Smultron site. There is declining interest in fixing ports that have binaries available and no dependencies so this port may not be updated.

comment:6 Changed 18 years ago by markd@…

Resolution: wontfix
Status: newclosed

The Smultron port has been updated to version 2 and the application no longer supports pre-10.4 systems, so I'm closing this one.

Note: See TracTickets for help on using tickets.