Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#18275 closed defect (fixed)

shapelib gives error: invalid command name "cd"

Reported by: george@… Owned by: shadow@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: blb@…
Port: shapelib

Description (last modified by blb@…)

When tying to install shapelib, install fails with "invalid command name "cd" " error

DEBUG: Executing org.macports.build (shapelib)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_shapelib/work/shapelib-1.2.10" && make all shptree.o'
make: Nothing to be done for `all'.
make: `shptree.o' is up to date.
DEBUG: Executing proc-post-org.macports.build-build-0
Error: Target org.macports.build returned: invalid command name "cd"
Warning: the following items did not execute (for shapelib): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Attachments (1)

shapelib.diff (1.4 KB) - added by blb@… 15 years ago.
diff to Portfile

Download all attachments as: .zip

Change History (8)

comment:1 Changed 15 years ago by george@…

Sorry, I thought the description would show more of what I entered. Here is the actual line that failed.

DEBUG: Executing proc-post-org.macports.build-build-0 Error: Target org.macports.build returned: invalid command name "cd"

cports.install following items did not execute (for shapelib): org.macports.activate org.macports.build org.macports.destroot org.ma

comment:2 Changed 15 years ago by blb@…

Cc: blb@… added
Description: modified (diff)
Keywords: shapelib removed
Owner: changed from macports-tickets@… to shadow@…
Port: shapelib added

Attached patch should fix this (and switches the system install to use xinstall, and removes a redundant second install of shapefil.h).

Changed 15 years ago by blb@…

Attachment: shapelib.diff added

diff to Portfile

comment:3 Changed 15 years ago by george@…

I applied the diff file locally, and it worked, shapelib compiled fine. However, when I delete my local portfile and do a selfupdate, I get the old nonworking portfile back. Is there another step I'm supposed to do? I'm new to this.

comment:4 Changed 15 years ago by blb@…

Yes, a selfupdate is expected to revert changes in the normal repository on your install (you can setup a local repository if you do regular changes). The patch is just waiting maintainer approval or a timeout (3 days), then it should be committed to the repository.

comment:5 Changed 15 years ago by shadow@…

Looks good to me.

comment:6 Changed 15 years ago by blb@…

Resolution: fixed
Status: newclosed

Applied in r46168.

comment:7 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.