Opened 18 years ago

Closed 17 years ago

Last modified 9 years ago

#10786 closed defect (fixed)

[BUG] lesspipe doesn't activate correctly but gets installed

Reported by: canela@… Owned by: yeled@…
Priority: Normal Milestone:
Component: ports Version: 1.3.2
Keywords: Cc: ingmarstein@…, kballard (Lily Ballard)
Port: lesspipe

Description (last modified by ryandesign (Ryan Carsten Schmidt))

--->  Activating lesspipe 1.52_1
Error: Target com.apple.activate returned: Image error: /opt/local/bin/code2color already exists and does not belong to a registered port.  Unable to activate port lesspipe.

Warning: the following items did not execute (for lesspipe): com.apple.activate
Error: Status 1 encountered during processing

after this procedure lesspipe.sh is correctly installed but macports consider it inactive.

Change History (8)

comment:1 Changed 18 years ago by canela@…

Someone solved this bug, now lesspipe installation is straight.
Who can close this ticket? Who should do this?

comment:2 Changed 18 years ago by markd@…

Resolution: fixed
Status: newclosed

You should be able to do it by selecting 'resolved - fixed' and clicking 'submit changes'. But I'll close it.

comment:3 Changed 17 years ago by macosforge.x.ax42@…

Resolution: fixed
Status: closedreopened

Bug still seems to happen:

ax@arya:~/bin$ sudo port -vcu install lesspipe
Password:
--->  Activating lesspipe 1.52_1
Error: Target com.apple.activate returned: Image error: /opt/local/bin/code2color already exists and does not belong to a registered port.  Unable to activate port lesspipe.
Warning: the following items did not execute (for lesspipe): com.apple.activate
Error: Status 1 encountered during processing.

This is on a pretty much brand-new macports install.

comment:4 Changed 17 years ago by kballard (Lily Ballard)

Cc: ingmarstein@… added

The problem is that lesspipe appears to be installing these files during the build phase. Running the install with the -t switch gives the following:

kevin@Erebor:~> sudo port -t destroot lesspipe
Password:
--->  Fetching lesspipe
--->  Attempting to fetch lesspipe-1.52.tar.gz from ftp://ftp.ifh.de/pub/unix/utility/
--->  Verifying checksum(s) for lesspipe
--->  Extracting lesspipe
--->  Configuring lesspipe
Warning: Target configure has an undeclared dependency on perl5.8
--->  Building lesspipe with target install
Warning: A creation/deletion/modification was attempted outside sandbox: /opt/local/bin/code2color
Warning: A creation/deletion/modification was attempted outside sandbox: /opt/local/bin/lesspipe.sh
Error: Target com.apple.build returned: shell command " cd "/opt/local/var/db/dports/build/_Users_kevin_Dev_macports_dports_textproc_lesspipe/work/lesspipe-1.52" && make install " returned error 2
Command output: mkdir -p /opt/local/bin
cp ./code2color ./lesspipe.sh /opt/local/bin
cp: /opt/local/bin/lesspipe.sh: Permission denied
cp: /opt/local/bin/code2color: Permission denied
make: *** [install] Error 1

Error: Status 1 encountered during processing.

I've CCed the maintainer on this ticket, hopefully he'll fix this issue.

comment:5 Changed 17 years ago by IngmarStein@…

Actually, we don't have to build anything. The following patch should therefore solve the problem:

--- Portfile.old	2007-06-11 09:44:51.000000000 +0200
+++ Portfile	2007-06-11 11:09:05.000000000 +0200
@@ -3,7 +3,7 @@
 PortSystem 1.0
 name			lesspipe
 version			1.52
-revision		1
+revision		2
 categories  	textproc
 maintainers 	ingmarstein@gmail.com
 description		lesspipe is an input filter for the pager less.
@@ -20,7 +20,7 @@
 checksums	md5 95cea0dc8b6b8788dc7003b6c3b4a80f \
             sha1 6c7bcfe81a640b4559568df69112e415d4731ee7
 configure.args		--yes --shell=/bin/bash
-build.target install
+build		{}
 destroot.destdir	PREFIX=${destroot}${prefix}
 post-install {
     ui_msg  "Set this in your .bash_profile:"
Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 17 years ago by IngmarStein@…

This looks better:

--- Portfile.old	2007-06-11 09:44:51.000000000 +0200
+++ Portfile	2007-06-11 11:09:05.000000000 +0200
@@ -3,7 +3,7 @@
 PortSystem 1.0
 name			lesspipe
 version			1.52
-revision		1
+revision		2
 categories  	textproc
 maintainers 	ingmarstein@gmail.com
 description		lesspipe is an input filter for the pager less.
@@ -20,7 +20,7 @@
 checksums	md5 95cea0dc8b6b8788dc7003b6c3b4a80f \
             sha1 6c7bcfe81a640b4559568df69112e415d4731ee7
 configure.args		--yes --shell=/bin/bash
-build.target install
+build		{}
 destroot.destdir	PREFIX=${destroot}${prefix}
 post-install {
     ui_msg  "Set this in your .bash_profile:"

comment:7 Changed 17 years ago by kballard (Lily Ballard)

Resolution: fixed
Status: reopenedclosed

Ok, r26239 fixes this now.

comment:8 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ingmarstein@… eridius@… added; ingmarstein@… removed
Description: modified (diff)
Keywords: lesspipe inactive removed
Port: lesspipe added
Note: See TracTickets for help on using tickets.