Problem installing readline

Thomas Schober thomas.schober at gmail.com
Mon Aug 13 23:41:06 PDT 2007


Ok, i found the portfile. But such a line is not there. The file looks
like this :

# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping at macports.org $

PortSystem 1.0
name		readline-5
set shortname	readline
version		5.0.005
distname	${shortname}-5.0
categories	devel
maintainers	nomaintainer at macports.org
platforms	darwin

description	Library that provides command line editing
long_description\
		The GNU Readline library provides a set of functions	\
		for use by applications that allow users to edit	\
		command lines as they are typed in. Both Emacs and vi	\
		editing modes are available. The Readline library	\
		includes additional functions to maintain a list of	\
 		previously-entered command lines, to recall and perhaps	\
		reedit those lines, and perform csh-like history	\
		expansion on previous commands.				\
									\
		This version provides limited functionality. It is	\
		intended to be used by ports that require version	\
		5.0. Only the dynamic library is installed, and the	\
		include files are kept in PREFIX/include/readline5.	

homepage	http://cnswww.cns.cwru.edu/~chet/readline/rltop.html
master_sites	gnu:${shortname}	\
		ftp://ftp.cwru.edu/pub/bash/:${shortname}

patch_sites     ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/
patchfiles      readline50-001 \
                readline50-002 \
                readline50-003 \
                readline50-004 \
                readline50-005

platform darwin 8 { patchfiles-append   patch-shobj-conf }

checksums       ${distname}${extract.suffix} md5
9a39d15f1ed592883f8c6671e8c13120 \
                readline50-001 md5 5b47ed61b6b8413746750127c70e843d \
                readline50-002 md5 9f803005e7e4c7d675146a9a805acbf1 \
                readline50-003 md5 05d59c91f80fa99ab177783229b0f769 \
                readline50-004 md5 aa1f6343e47f8e024488c63281d77809 \
                readline50-005 md5 1dc2654e0161f2e7b4f536b12e1d54b7

configure.args	--mandir=${prefix}/share/man \
		--infodir=${prefix}/share/info

post-destroot	{ file delete -force ${destroot}${prefix}/share

		  file delete ${destroot}${prefix}/lib/libhistory.a
		  file delete ${destroot}${prefix}/lib/libhistory.dylib
		  file delete ${destroot}${prefix}/lib/libhistory.5.dylib

		  file delete ${destroot}${prefix}/lib/libreadline.a
		  file delete ${destroot}${prefix}/lib/libreadline.dylib
		  file delete ${destroot}${prefix}/lib/libreadline.5.dylib

		  file rename ${destroot}${prefix}/include/readline
${destroot}${prefix}/include/readline5
}

the online line which could cause this is :
file delete -force ${destroot}${prefix}/share

But the Problem persists when i delete this line.

2007/8/14, Thomas Schober <thomas.schober at gmail.com>:
> Can you tell me where i can find this portfile ? i am a little new to
> MacPorts. Before i used fink.
> Thanks
>
> 2007/8/14, Ryan Schmidt <ryandesign at macports.org>:
> > On Aug 14, 2007, at 00:13, Thomas Schober wrote:
> >
> > > 2007/8/14, Ryan Schmidt:
> > >
> > >> On Aug 12, 2007, at 09:53, Thomas Schober wrote:
> > >>
> > >>> i have a iMac G5 17" PPC. I am trying to install readline, but i
> > >>> get these errors :
> > >>>
> > >>> --->  Staging readline into destroot
> > >>> Error: Target org.macports.destroot returned: no such file or
> > >>> directory
> > >>> Error: Status 1 encountered during processing.
> > >>>
> > >>> However on my intel macbook it worked fine. But i cant get it to
> > >>> work on my PPC. Both Computers have Mac OS Tiger 10.4.10 Installed.
> > >>
> > >> How odd. I don't know what it's talking about.
> > >>
> > >> Can you try "sudo port clean readline" and then "sudo port -dv
> > >> install readline" and see what it says?
> > >
> > > thanks for your answer. It goes good until this point. Then this
> > > happens :
> > [snip]
> > > DEBUG: Executing proc-post-org.macports.destroot-destroot-0
> > > DEBUG: delete: /opt/local/var/macports/build/
> > > _opt_local_var_macports_sources_rsync.macports.org_release_ports_devel
> > > _readline/work/destroot/opt/local/share/info/dir
> > > Error: Target org.macports.destroot returned: no such file or
> > > directory
> > > Warning: the following items did not execute (for readline):
> > > org.macports.activate org.macports.destroot org.macports.install
> > > Error: Status 1 encountered during processing.
> >
> > Don't forget to Reply To All so your reply goes to the mailing list
> > too, not just to me.
> >
> > It looks like this line in the post-destroot proc may be triggering
> > the problem:
> >
> >      delete ${destroot}${prefix}/share/info/dir
> >
> > You could try removing that line from the portfile to see if that
> > really is the culprit. If it is, then the question would be, why does
> > this not cause a problem on your Intel Mac or my Intel Mac? I guess
> > on your PPC iMac share/info/dir never gets created in the first
> > place, and therefore is not there to be deleted. But why? And is
> > there a way to write a delete command that doesn't complain if it
> > fails? What's the difference between "delete" and "file delete"? (You
> > could try "file delete" instead of "delete" at the beginning of the
> > line and see if that makes a difference.)
> >
> >
>



More information about the macports-users mailing list