strange problem with `gv' install under Leopard
Joerg van den Hoff
j.van_den_hoff at fzd.de
Fri Jul 18 01:46:23 PDT 2008
On Thu, Jul 17, 2008 at 06:35:00PM -0500, Ryan Schmidt wrote:
> Hi Joerg,
>
hi ryan,
thanks for taking this seriously (it sounds stupid, I'm
sure...).
>
> On Jul 17, 2008, at 11:49, Joerg van den Hoff wrote:
>
> >I'm currently in the process of a complete new install of macports
> >on a power book g4 running leopard 10.5.3. so not much yet to mess
> >things up...
> >
> >up to now I (admittedly erratically) installed in this order
> >
> >Macports (from the corresponding .dmg)
> >
> >and the packages:
> >
> >ncftp
> >lua
> >gv
> >
> >the first two went just fine. the third (`gv') aborted in the first
> >try
> >due to a failed fetch:
> >
> >---> Attempting to fetch fontconfig-2.6.0.tar.gz from http://
> >fontconfig.org/release/
> >
> >---> Attempting to fetch fontconfig-2.6.0.tar.gz from http://
> >svn.macports.org/repository/macports/distfiles/fontconfig
> > % Total % Received % Xferd Average Speed Time Time
> >Time Current
> > Dload Upload Total Spent
> >Left Speed
> > 0 0 0 0 0 0 0 0 --:--:-- --:--:--
> >--:--:-- 0
> >---> Attempting to fetch fontconfig-2.6.0.tar.gz from http://
> >svn.macports.org/repository/macports/distfiles/general/
> > % Total % Received % Xferd Average Speed Time Time
> >Time Current
> > Dload Upload Total Spent
> >Left Speed
> > 0 0 0 0 0 0 0 0 --:--:-- --:--:--
> >--:--:-- 0
> >---> Attempting to fetch fontconfig-2.6.0.tar.gz from http://
> >svn.macports.org/repository/macports/downloads/fontconfig
> > % Total % Received % Xferd Average Speed Time Time
> >Time Current
> > Dload Upload Total Spent
> >Left Speed
> > 0 0 0 0 0 0 0 0 --:--:-- --:--:--
> >--:--:-- 0
> >Error: Target org.macports.fetch returned: fetch failed
> >
> >when later simply doing a second
> >
> >port install gv
> >
> >(after first doing `port uninstall gv; port clean --all gv')
> >
> >it ran through (fetching the above suceeded now) apparently without
> >problems..
>
> So it looks like there was a temporary problem with the fontconfig
> web site which resolved itself by the time you tried the second time.
>
> FYI: There was no need to attempt to uninstall or clean gv; MacPorts
> had not yet begun to do anything with gv as it was still concerned
> with fontconfig. (gv depends on ghostscript which depends on
> fontconfig).
I'm always a bit paranoid something is left behind which comes in the
way the next time (e.g. logfiles not in sync with what happened last), but
I understand that the uninstall/clean was nonsense.
>
>
> >PROBLEM: the resulting "executable" `gv' in /opt/local/bin is a
> >copy of the config
> >file /opt/local/lib/gv/GV....
> >
> >question: my fault or a bug?
>
> /opt/local/lib/gv/GV is not a config file.
> It *is* the gv binary.
than the problem is already at _this_ point:
in may case,
/opt/local/lib/gv/GV is the same _text_ file as /opt/local/gv.
> The makefile includes a step that deliberately copies this file to /
> opt/local/bin/gv.
>
>
> >thanks,
> >
> >joerg
> >
> >
> >PS: the complete log of the second `port install gv' comes here:
>
> I looked at the difference between your log and what I got installing
> gv on my Power Mac G4 with Leopard. Pretty similar except mine has
> this line which yours doesn't:
>
> creating GV
>
> Curious that yours does not have this line; this is the step that
> copies the file from /opt/local/lib/gv/GV to /opt/local/bin/gv.
>
> Are /opt/local/bin/gv and /opt/local/lib/gv/GV text files or binary
> files? If text, what's in them? If binary, what happens when you try
> to run gv?
both are identical text files containing this:
=====================================CUT====================================
!
! gv_user.ad
! User specific application defaults for gv
! Copyright (C) 1995, 1996, 1997 Johannes Plass
! Copyright (C) 2004,2005,2006,2007 José E. Marchesi
!
!########## gv_user_res.dat
!##### Application specific Resources
GV.pageMedia: automatic
GV.orientation: automatic
GV.fallbackOrientation: portrait
GV.swapLandscape: False
GV.autoCenter: True
GV.antialias: True
GV.respectDSC: True
GV.ignoreEOF: True
GV.confirmPrint: True
GV.reverseScrolling: False
GV.scrollingEyeGuide: True
GV.autoResize: True
GV.maximumWidth: screen-20
GV.maximumHeight: screen-44
GV.minimumWidth: 400
GV.minimumHeight: 430
GV.confirmQuit: 1
GV.watchFile: False
GV.watchFileFrequency: 1000
GV.showTitle: True
GV.miscMenuEntries: redisplay \n\
# update \n\
stop \n\
line \n\
toggle_current \n\
toggle_even \n\
toggle_odd \n\
unmark \n\
line \n\
print_all \n\
print_marked \n\
save_all \n\
save_marked
GV.scale: 0
GV.scaleBase: 1
GV.scales: Natural size, 1.000, screen \n\
Pixel based, 1.000, pixel \n\
0.100, 0.100 \n\
0.125, 0.125 \n\
0.250, 0.250 \n\
0.500, 0.500 \n\
0.707, 0.707 \n\
1.000, 1.000 \n\
1.414, 1.414 \n\
2.000, 2.000 \n\
4.000, 4.000 \n\
8.000, 8.000 \n\
10.00, 10.00
GV.medias: Letter, 612 792 \n\
# LetterSmall, 612 792 \n\
Legal, 612 1008 \n\
Statement, 396 612 \n\
Tabloid, 792 1224 \n\
Ledger, 1224 792 \n\
Folio, 612 936 \n\
Quarto, 610 780 \n\
# 7x9, 504 648 \n\
# 9x11, 648 792 \n\
# 9x12, 648 864 \n\
# 10x13, 720 936 \n\
10x14, 720 1008 \n\
Executive, 540 720 \n\
# A0, 2384 3370 \n\
# A1, 1684 2384 \n\
# A2, 1191 1684 \n\
A3, 842 1191 \n\
A4, 595 842 \n\
# A4Small, 595 842 \n\
A5, 420 595 \n\
# A6, 297 420 \n\
# A7, 210 297 \n\
# A8, 148 210 \n\
# A9, 105 148 \n\
# A10, 73 105 \n\
# B0, 2920 4127 \n\
# B1, 2064 2920 \n\
# B2, 1460 2064 \n\
# B3, 1032 1460 \n\
B4, 729 1032 \n\
B5, 516 729 \n\
# B6, 363 516 \n\
# B7, 258 363 \n\
# B8, 181 258 \n\
# B9, 127 181 \n\
# B10, 91 127 \n\
# ISOB0, 2835 4008 \n\
# ISOB1, 2004 2835 \n\
# ISOB2, 1417 2004 \n\
# ISOB3, 1001 1417 \n\
# ISOB4, 709 1001 \n\
# ISOB5, 499 709 \n\
# ISOB6, 354 499 \n\
# ISOB7, 249 354 \n\
# ISOB8, 176 249 \n\
# ISOB9, 125 176 \n\
# ISOB10, 88 125 \n\
# C0, 2599 3676 \n\
# C1, 1837 2599 \n\
# C2, 1298 1837 \n\
# C3, 918 1296 \n\
# C4, 649 918 \n\
# C5, 459 649 \n\
# C6, 323 459 \n\
# C7, 230 323 \n\
# DL, 312 624
GV.magMenu: 2, 2 \n\
4, 4 \n\
8, 8 \n\
16, 16 \n\
32, 32 \n\
64, 64
!##### Ghostview Widget
GV*Ghostview.background: white
GV*Ghostview.foreground: black
!########## gv_intern_res.dat (generated by makefile)
GV.gsInterpreter: gs
GV.gsCmdScanPDF: gs -dNODISPLAY -dQUIET -sPDFname=%s -sDSCname=%s pdf2dsc.ps -c quit
GV.gsCmdConvPDF: gs -dNOPAUSE -dQUIET -dBATCH -sDEVICE=pswrite -sOutputFile=%s -f %s -c save pop quit
GV.gsX11Device: -sDEVICE=x11
GV.gsX11AlphaDevice: -sDEVICE=x11 -dTextAlphaBits=4 -dGraphicsAlphaBits=2 -dMaxBitmap=10000000 -dNOPLATFONTS
GV.gsSafer: True
GV.gsQuiet: True
GV.gsArguments: -dFIXEDMEDIA
GV.uncompressCommand: gzip -d -c %s > %s
GV.printCommand: lpr
!########## gv_make_res.dat (generated by makefile)
GV.scratchDir: /tmp/
GV.defaultSaveDir: ~/
GV.fallbackPageMedia: a4
GV.useBackingPixmap: True
GV*dirs: Home
\
Tmp
\
/usr/doc
\
/usr/local/doc
GV*filter: no .*
GV*filters: None
\
*.*ps* *.pdf* no .*
\
*.*ps* no .*
\
*.pdf* no .*
\
no .*
=====================================CUT====================================
(trying to run `gv' leads of course to an error: "line1: syntax error near unexpected token
`newline'; line1: `!')
I assume that's the default config file of gv, right? I don't see
any binary of `gv' anywhere.
by the way: ghostscript installed (and runs) just fine as a "side effect"
of the `gv' install.
as I said this is a virtually completely new install of macports.
looking at another machine running Tiger (where of course gv runs just
fine) I noticed `gmake' being in the macports tree. question: is gmake
required or does the system `make' suffice for correct install? (I assume
the latter is correct and macports would fetch `gmake' automatically if
needed.)
any more ideas? I find the disappearance of the `gv' binary rather strange.
greetings,
joerg
More information about the macports-users
mailing list