Ticket #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: | lesspipe inactive | Cc: | ingmarstein@… eridius@… |
| Port: |
Description
---> 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
comment:2 Changed 7 years ago by markd@…
- Status changed from new to closed
- Resolution set to fixed
You should be able to do it by selecting 'resolved - fixed' and clicking 'submit changes'. But I'll close it.
comment:3 Changed 6 years ago by macosforge.x.ax42@…
- Status changed from closed to reopened
- Resolution fixed deleted
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 6 years ago by eridius@…
- 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 6 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@… 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:6 Changed 6 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:"


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