Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7193 - cups ebuild :Function src_install, Line -200, Exitcode 1
Summary: cups ebuild :Function src_install, Line -200, Exitcode 1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Stuart Bouyer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-28 20:18 UTC by Alex
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2002-08-28 20:18:16 UTC
ebuild crashes while building ghostscript as a dependancy for cups.
This had happened to me before. Since then i rebuilt the os (today) and the 
same error occurs. I spent some time on #gentoo, other people said that it has 
built for them.
The system is a dell L550r (p3) with 128M ram.  The root fs is on an xfs 
partition. I mount /boot, /home on seperate ext3 partitions 
and /usr/local, /var on seperate xfs partitions.  256M swap space.

The following is the error:
>>> Install ghostscript-7.05.3-r1 into /var/tmp/portage/ghostscript-7.05.3-
r1/image/ category app-text
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image//usr/share
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image//usr/share/ghostscript
mkdir -p /var/tmp/portage/ghostscript-7.05.3-
r1/image//usr/share/ghostscript/7.05
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image//usr/bin
./src/instcopy -c -m 755 ./bin/gs /var/tmp/portage/ghostscript-7.05.3-
r1/image//usr/bin/gs
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image//usr/share
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image//usr/share/ghostscript
mkdir -p /var/tmp/portage/ghostscript-7.05.3-
r1/image//usr/share/ghostscript/7.05
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image//usr/bin
/bin/sh -c 'for f in \
gsbj gsdj gsdj500 gslj gslp gsnd \
bdftops dvipdf eps2eps font2c \
pdf2dsc pdf2ps pdfopt pf2afm pfbtopfa printafm \
ps2ascii ps2epsi ps2pdf ps2pdf12 ps2pdf13 ps2pdf14 ps2pdfwr ps2ps wftopfa \
fixmswrd.pl lprsetup.sh pj-gs.sh pv.sh sysvlp.sh unix-lpr.sh ;\
do if ( test -f ./lib/$f ); then ./src/instcopy -c -m 755 ./lib/
$f /var/tmp/portage/ghostscript-7.05.3-r1/image//usr/bin; fi;\
done'
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image//usr/share
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image//usr/share/ghostscript
mkdir -p /var/tmp/portage/ghostscript-7.05.3-
r1/image//usr/share/ghostscript/7.05
mkdir -p /var/tmp/portage/ghostscript-7.05.3-
r1/image//usr/share/ghostscript/7.05/lib
/bin/sh -c 'for f in \
Fontmap Fontmap.GS \
CIDFnmap CIDFnmap.Ore CIDFnmap.ARP CIDFnmap.Bae CIDFnmap.Koc \
CIDFnmap.Sol CIDFnmap.Win \
CIDFnmap.CJK \
CIDFnmap.b5 CIDFnmap.gb CIDFnmap.ksx CIDFnmap.sj \
ht_ccsto.ps \
acctest.ps addxchar.ps align.ps bdftops.ps \
caption.ps cid2code.ps decrypt.ps docie.ps \
errpage.ps font2c.ps font2pcl.ps gslp.ps gsnup.ps image-qa.ps impath.ps \
jispaper.ps landscap.ps level1.ps lines.ps markhint.ps markpath.ps \
packfile.ps pcharstr.ps pf2afm.ps pfbtopfa.ps ppath.ps prfont.ps printafm.ps \
ps2ai.ps ps2ascii.ps ps2epsi.ps quit.ps rollconv.ps \
showchar.ps showpage.ps stcinfo.ps stcolor.ps stocht.ps \
traceimg.ps traceop.ps type1enc.ps type1ops.ps uninfo.ps unprot.ps \
viewcmyk.ps viewgif.ps viewjpeg.ps viewmiff.ps \
viewpcx.ps viewpbm.ps viewps2a.ps \
winmaps.ps wftopfa.ps wrfont.ps zeroline.ps \
pdf2dsc.ps pdfopt.ps ;\
do if ( test -f ./lib/$f ); then ./src/instcopy -c -m 644 ./lib/
$f /var/tmp/portage/ghostscript-7.05.3-
r1/image//usr/share/ghostscript/7.05/lib; fi;\
done'
/bin/sh -c 'for f in ./lib/gs_*.ps ./lib/pdf*.ps;\
do ./src/instcopy -c -m 644 $f /var/tmp/portage/ghostscript-7.05.3-
r1/image//usr/share/ghostscript/7.05/lib ;\
done'
/bin/sh -c 'for f 
in ./lib/*.ppd ./lib/*.rpd ./lib/*.upp ./lib/*.xbm ./lib/*.xpm;\
do ./src/instcopy -c -m 644 $f /var/tmp/portage/ghostscript-7.05.3-
r1/image//usr/share/ghostscript/7.05/lib ;\
done'
mkdir -p /var/tmp/portage/ghostscript-7.05.3-
r1/image//usr/share/ghostscript/7.05/doc
/bin/sh -c 'for f in PUBLIC README index.html gs.css API.htm Bug-form.htm Bug-
info.htm C-style.htm CJK.htm CJKTTCID.htm Changes.htm Commprod.htm Copying.htm 
Current.htm DLL.htm Develop.htm Devices.htm Drivers.htm Fonts.htm Helpers.htm 
Hershey.htm History1.htm History2.htm History3.htm History4.htm History5.htm 
History6.htm History7.htm Htmstyle.htm Humor.htm Install.htm Issues.htm 
Language.htm Lib.htm Maintain.htm Make.htm New-user.htm News.htm Projects.htm 
Ps-style.htm Ps2epsi.htm Ps2pdf.htm Psfiles.htm Public.htm Readme.htm 
Release.htm Source.htm Tester.htm Unix-lpr.htm Use.htm Xfonts.htm ;\
do if ( test -f ./lib/../doc/$f ); then ./src/instcopy -c -m 644 ./lib/../doc/
$f /var/tmp/portage/ghostscript-7.05.3-
r1/image//usr/share/ghostscript/7.05/doc; fi;\
done'
/bin/sh -c 'test -d /var/tmp/portage/ghostscript-7.05.3-r1/image//usr/share/man 
|| mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image//usr/share/man'
/bin/sh -c 'for d in . de ;\
do man1dir=/var/tmp/portage/ghostscript-7.05.3-r1/image//usr/share/man/
$d/man1 ;\
  ( test -d $man1dir || mkdir -p $man1dir ) ;\
  for f in ./lib/../man/$d/*.1 ;\
    do ./src/instcopy -c -m 644 $f $man1dir ;\
    if ( test -f $man1dir/ps2ps.1 ) ;\
      then for f in eps2eps ;\
        do ( cd $man1dir; rm -f $f.1 ;\
                  ln -s ps2ps.1 $f.1 ) ;\
      done ;\
    fi ;\
    if ( test -f $man1dir/ps2pdf.1 ) ;\
      then for f in ps2pdf12 ps2pdf13 ;\
        do ( cd $man1dir; rm -f $f.1 ;\
                  ln -s ps2pdf.1 $f.1 ) ;\
      done ;\
    fi ;\
    if ( test -f $man1dir/ps2ps.1 ) ;\
      then for f in gsbj gsdj gsdj500 gslj ;\
        do ( cd $man1dir; rm -f $f.1 ;\
                  ln -s gslp.1 $f.1 ) ;\
      done ;\
    fi ;\
  done ;\
done'
mkdir -p /var/tmp/portage/ghostscript-7.05.3-
r1/image//usr/share/ghostscript/7.05/examples
for f in \
alphabet.ps colorcir.ps doretree.ps escher.ps golfer.ps \
grayalph.ps snowflak.ps tiger.ps vasarely.ps waterfal.ps \
ridt91.eps ;\
do ./src/instcopy -c -m 644 ./lib/../examples/$f /var/tmp/portage/ghostscript-
7.05.3-r1/image//usr/share/ghostscript/7.05/examples ;\
done
mkdir -p /var/tmp/portage/ghostscript-7.05.3-
r1/image//usr/share/ghostscript/7.05/examples/cjk
for f in \
all_ac1.ps all_ag1.ps all_aj1.ps all_aj2.ps all_ak1.ps \
gscjk_ac.ps gscjk_ag.ps gscjk_aj.ps gscjk_ak.ps \
iso2022.ps;\
do ./src/instcopy -c -m 644 ./lib/../examples/cjk/
$f /var/tmp/portage/ghostscript-7.05.3-
r1/image//usr/share/ghostscript/7.05/examples/cjk ;\
done
cp: preserving permissions for `/var/tmp/portage/ghostscript-7.05.3-
r1/image//usr/share/ghostscript/fonts': Invalid argument

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_install, Line -200, Exitcode 1
!!! (no error message)

!!! emerge aborting on  /usr/portage/app-text/ghostscript/ghostscript-7.05.3-
r1.ebuild .

the following is the dmesg from boot, if it helps:

Linux version 2.4.18-xfs (root@(none)) (gcc version 2.95.3 20010315 (release)) 
#1 Wed Aug 28 20:22:07 Local time zone must be set--see zic manual page 2002
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 0000000007ec0000 (usable)
 BIOS-e820: 0000000007ec0000 - 0000000007ef8000 (ACPI data)
 BIOS-e820: 0000000007ef8000 - 0000000007f00000 (ACPI NVS)
 BIOS-e820: 00000000ffb80000 - 00000000ffc00000 (reserved)
 BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
On node 0 totalpages: 32448
zone(0): 4096 pages.
zone(1): 28352 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda2 hdc=ide-scsi
ide_setup: hdc=ide-scsi
Initializing CPU#0
Detected 548.341 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 1094.45 BogoMIPS
Memory: 124580k/129792k available (1861k kernel code, 4824k reserved, 481k 
data, 216k init, 0k highmem)
Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
CPU: Before vendor init, caps: 0383f9ff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After vendor init, caps: 0383f9ff 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0383f9ff 00000000 00000000 00000000
CPU:             Common caps: 0383f9ff 00000000 00000000 00000000
CPU: Intel Pentium III (Coppermine) stepping 01
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfda95, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router PIIX [8086/2410] at 00:1f.0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
Starting kswapd
VFS: Diskquotas version dquot_6.5.1 initialized
Journalled Block Device driver loaded
devfs: v1.10 (20020120) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
SGI XFS with ACLs, quota, no debug enabled
parport0: PC-style at 0x378 [PCSPP,TRISTATE,EPP]
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI 
enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
lp0: using parport0 (polling).
i810_rng hardware driver 0.9.6 loaded
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev f9
PIIX4: chipset revision 2
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:pio
hda: WDC WD200BB-75CLB0, ATA DISK drive
hdc: SONY CD-RW CRX140E, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 39102336 sectors (20020 MB) w/2048KiB Cache, CHS=2434/255/63, UDMA(66)
ide-floppy driver 0.97.sv
Partition check:
 /dev/ide/host0/bus0/target0/lun0: p1 p2 p3 p4 < p5 p6 p7 p8 >
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: loaded (max 8 devices)
ide-floppy driver 0.97.sv
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: SONY      Model: CD-RW  CRX140E    Rev: 1.0n
  Type:   CD-ROM                             ANSI SCSI revision: 02
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
uhci.c: USB Universal Host Controller Interface driver v1.1
PCI: Found IRQ 10 for device 00:1f.2
PCI: Sharing IRQ 10 with 01:0b.0
PCI: Setting latency timer of device 00:1f.2 to 64
uhci.c: USB UHCI at I/O 0xef80, IRQ 10
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
ip_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
IPv6 v0.8 for NET4.0
IPv6 over IPv4 tunneling driver
FAT: bogus logical sector size 0
FAT: bogus logical sector size 0
XFS mounting filesystem ide0(3,2)
XFS: WARNING: recovery required on readonly filesystem.
XFS: write access will be enabled during mount.
Starting XFS recovery on filesystem: ide0(3,2) (dev: 3/2)
Ending XFS recovery on filesystem: ide0(3,2) (dev: 3/2)
VFS: Mounted root (xfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 216k freed
Adding Swap: 265032k swap-space (priority -1)
XFS mounting filesystem ide0(3,3)
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,5), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
XFS mounting filesystem ide0(3,6)
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,7), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
natsemi.c:v1.07 1/9/2001  Written by Donald Becker <becker@scyld.com>
  http://www.scyld.com/network/natsemi.html
  (unofficial 2.4.x kernel port, version 1.07+LK1.0.14, Nov 27, 2001  Jeff 
Garzik, Tjeerd Mulder)
PCI: Found IRQ 11 for device 01:0a.0
eth0: NatSemi DP8381[56] at 0xc8838000, 00:02:e3:06:59:04, IRQ 11.
eth0: link up.
eth0: Setting full-duplex based on negotiated link capability.
eth0: no IPv6 routers present
VFS: Disk change detected on device fd(2,0)

if i can provide any info let me know. thanks for a great distro :-)
Comment 1 Stuart Bouyer (RETIRED) gentoo-dev 2002-08-29 10:41:42 UTC
ghostscript emerges fine for me.

What version of portage are you running? if not 2.0.28 then emerge -u portage.
How much free space is there on the partition with /var? you need at least 48M
free for ghostscript to compile.

Try the following (may not work. but it has for me in the past)

rm -rf /var/tmp/portage/*

This will clean out the build area, and hopefully leave everything fresh.
Then try to emerge ghostscript by itself. From your error log the ebuild is
dying in the install stage. It seems to be compiling correctly.

If emerge ghostscript doesn't work, then cd to /usr/portage/app-text/ghostscript
and run

 ebuild ghostscript-7.05.3-r1.ebuild compile

followed by

 ebuild ghostscript-7.05.3-r1.ebuild install

If they complete without problems, do

 ebuild ghostscript-7.05.3-r1.ebuild qmerge

If not, cd to /var/tmp/portage/ghostscript-7.05.3-r1/work/espgs-7.05.3 and make
sure that the directory examples/cjk exists.

If it does, run

make prefix=/var/tmp/portage/ghostscript-7.05.3-r1/image/usr
datadir=/var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share
install_prefix=/var/tmp/portage/ghostscript-7.05.3-r1/image/ install

examples/cjk doesn't exist then I'll need to look at why it's not being built.
In that case can you run

emerge ghostscript &> ebuild.log and attached here or email it to me at
stubear@gentoo.org and I'll have a dig through it.

Stuart Bouyer
Comment 2 Stuart Bouyer (RETIRED) gentoo-dev 2002-08-29 20:48:16 UTC
Sorry, my bad,

make prefix=/var/tmp/portage/ghostscript-7.05.3-r1/image/usr
datadir=/var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share
install_prefix=/var/tmp/portage/ghostscript-7.05.3-r1/image/ install

should have been

make prefix=/var/tmp/portage/ghostscript-7.05.3-r1/image/usr \
datadir=/var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share \
install_prefix=/var/tmp/portage/ghostscript-7.05.3-r1/image/ install

It's one line. 

Can you try this again from 
/var/tmp/portage/ghostscript-7.05.3-r1/work/espgs-7.05.3

thanks.

Still looking through the log, I'll get back to you as soon as I find anything.

Stuart

p.s. Can you post your response to bugzilla, I'll be at work and I can't check
stubear@gentoo.org there.

thanks
Comment 3 Alex 2002-08-30 08:33:39 UTC
>should have been
>
>make prefix=/var/tmp/portage/ghostscript-7.05.3-r1/image/usr \
>datadir=/var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share \
>install_prefix=/var/tmp/portage/ghostscript-7.05.3-r1/image/ install
>
>It's one line. 

Stuart this seems to work: 
(but portage has no idea that ghostscript is installed) --pretend emerge still 
lists ghostscript as an uninstalled dependancy for cups: how do I fix this?

log:

lookingglass espgs-7.05.3 # make prefix=/var/tmp/portage/ghostscript-7.05.3-
r1/image/usr \
> datadir=/var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share \
> install_prefix=/var/tmp/portage/ghostscript-7.05.3-r1/image/ install
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share/ghostscript
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share/ghostscript/7.05
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image/usr/bin
./src/instcopy -c -m 755 ./bin/gs /var/tmp/portage/ghostscript-7.05.3-
r1/image/usr/bin/gs
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share/ghostscript
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share/ghostscript/7.05
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image/usr/bin
/bin/sh -c 'for f in \
gsbj gsdj gsdj500 gslj gslp gsnd \
bdftops dvipdf eps2eps font2c \
pdf2dsc pdf2ps pdfopt pf2afm pfbtopfa printafm \
ps2ascii ps2epsi ps2pdf ps2pdf12 ps2pdf13 ps2pdf14 ps2pdfwr ps2ps wftopfa \
fixmswrd.pl lprsetup.sh pj-gs.sh pv.sh sysvlp.sh unix-lpr.sh ;\
do if ( test -f ./lib/$f ); then ./src/instcopy -c -m 755 ./lib/
$f /var/tmp/portage/ghostscript-7.05.3-r1/image/usr/bin; fi;\
done'
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share/ghostscript
mkdir -p /var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share/ghostscript/7.05
mkdir -p /var/tmp/portage/ghostscript-7.05.3-
r1/image/usr/share/ghostscript/7.05/lib
/bin/sh -c 'for f in \
Fontmap Fontmap.GS \
CIDFnmap CIDFnmap.Ore CIDFnmap.ARP CIDFnmap.Bae CIDFnmap.Koc \
CIDFnmap.Sol CIDFnmap.Win \
CIDFnmap.CJK \
CIDFnmap.b5 CIDFnmap.gb CIDFnmap.ksx CIDFnmap.sj \
ht_ccsto.ps \
acctest.ps addxchar.ps align.ps bdftops.ps \
caption.ps cid2code.ps decrypt.ps docie.ps \
errpage.ps font2c.ps font2pcl.ps gslp.ps gsnup.ps image-qa.ps impath.ps \
jispaper.ps landscap.ps level1.ps lines.ps markhint.ps markpath.ps \
packfile.ps pcharstr.ps pf2afm.ps pfbtopfa.ps ppath.ps prfont.ps printafm.ps \
ps2ai.ps ps2ascii.ps ps2epsi.ps quit.ps rollconv.ps \
showchar.ps showpage.ps stcinfo.ps stcolor.ps stocht.ps \
traceimg.ps traceop.ps type1enc.ps type1ops.ps uninfo.ps unprot.ps \
viewcmyk.ps viewgif.ps viewjpeg.ps viewmiff.ps \
viewpcx.ps viewpbm.ps viewps2a.ps \
winmaps.ps wftopfa.ps wrfont.ps zeroline.ps \
pdf2dsc.ps pdfopt.ps ;\
do if ( test -f ./lib/$f ); then ./src/instcopy -c -m 644 ./lib/
$f /var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share/ghostscript/7.05/lib; 
fi;\
done'
/bin/sh -c 'for f in ./lib/gs_*.ps ./lib/pdf*.ps;\
do ./src/instcopy -c -m 644 $f /var/tmp/portage/ghostscript-7.05.3-
r1/image/usr/share/ghostscript/7.05/lib ;\
done'
/bin/sh -c 'for f 
in ./lib/*.ppd ./lib/*.rpd ./lib/*.upp ./lib/*.xbm ./lib/*.xpm;\
do ./src/instcopy -c -m 644 $f /var/tmp/portage/ghostscript-7.05.3-
r1/image/usr/share/ghostscript/7.05/lib ;\
done'
mkdir -p /var/tmp/portage/ghostscript-7.05.3-
r1/image/usr/share/ghostscript/7.05/doc
/bin/sh -c 'for f in PUBLIC README index.html gs.css API.htm Bug-form.htm Bug-
info.htm C-style.htm CJK.htm CJKTTCID.htm Changes.htm Commprod.htm Copying.htm 
Current.htm DLL.htm Develop.htm Devices.htm Drivers.htm Fonts.htm Helpers.htm 
Hershey.htm History1.htm History2.htm History3.htm History4.htm History5.htm 
History6.htm History7.htm Htmstyle.htm Humor.htm Install.htm Issues.htm 
Language.htm Lib.htm Maintain.htm Make.htm New-user.htm News.htm Projects.htm 
Ps-style.htm Ps2epsi.htm Ps2pdf.htm Psfiles.htm Public.htm Readme.htm 
Release.htm Source.htm Tester.htm Unix-lpr.htm Use.htm Xfonts.htm ;\
do if ( test -f ./lib/../doc/$f ); then ./src/instcopy -c -m 644 ./lib/../doc/
$f /var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share/ghostscript/7.05/doc; 
fi;\
done'
/bin/sh -c 'test -d /usr/share/man || mkdir -p /usr/share/man'
/bin/sh -c 'for d in . de ;\
do man1dir=/usr/share/man/$d/man1 ;\
  ( test -d $man1dir || mkdir -p $man1dir ) ;\
  for f in ./lib/../man/$d/*.1 ;\
    do ./src/instcopy -c -m 644 $f $man1dir ;\
    if ( test -f $man1dir/ps2ps.1 ) ;\
      then for f in eps2eps ;\
        do ( cd $man1dir; rm -f $f.1 ;\
                  ln -s ps2ps.1 $f.1 ) ;\
      done ;\
    fi ;\
    if ( test -f $man1dir/ps2pdf.1 ) ;\
      then for f in ps2pdf12 ps2pdf13 ;\
        do ( cd $man1dir; rm -f $f.1 ;\
                  ln -s ps2pdf.1 $f.1 ) ;\
      done ;\
    fi ;\
    if ( test -f $man1dir/ps2ps.1 ) ;\
      then for f in gsbj gsdj gsdj500 gslj ;\
        do ( cd $man1dir; rm -f $f.1 ;\
                  ln -s gslp.1 $f.1 ) ;\
      done ;\
    fi ;\
  done ;\
done'
mkdir -p /var/tmp/portage/ghostscript-7.05.3-
r1/image/usr/share/ghostscript/7.05/examples
for f in \
alphabet.ps colorcir.ps doretree.ps escher.ps golfer.ps \
grayalph.ps snowflak.ps tiger.ps vasarely.ps waterfal.ps \
ridt91.eps ;\
do ./src/instcopy -c -m 644 ./lib/../examples/$f /var/tmp/portage/ghostscript-
7.05.3-r1/image/usr/share/ghostscript/7.05/examples ;\
done
mkdir -p /var/tmp/portage/ghostscript-7.05.3-
r1/image/usr/share/ghostscript/7.05/examples/cjk
for f in \
all_ac1.ps all_ag1.ps all_aj1.ps all_aj2.ps all_ak1.ps \
gscjk_ac.ps gscjk_ag.ps gscjk_aj.ps gscjk_ak.ps \
iso2022.ps;\
do ./src/instcopy -c -m 644 ./lib/../examples/cjk/
$f /var/tmp/portage/ghostscript-7.05.3-
r1/image/usr/share/ghostscript/7.05/examples/cjk ;\
done
Comment 4 Stuart Bouyer (RETIRED) gentoo-dev 2002-08-30 09:34:58 UTC
Alex,

Well we are getting closer. Still not there yet, but we have narrowed the field
down to a few lines in the ebuild.

This is where I think it is breaking.

In /var/tmp/portage/ghostscript-7.05.3-r1/work, can you run this command
cp -a fonts /var/tmp/portage/ghostscript-7.05.3-r1/image/usr/share/ghostscript

** That should be all on one line.

If this doesn't work (as I suspect) then we are down to 2 possible problems -
bad or missing fonts package (but this should be taken care of by the digest) or
faulty cp command.

To test the 1st idea.

check that /var/tmp/portage/ghostscript-7.05.3-r1/work/fonts exists and contains
fonts, cd to /usr/portage/distfiles and 

#ls -l gnu-gs-fonts-*

I get 

-rw-r--r--    1 root     root       796086 Aug  2 07:39
gnu-gs-fonts-other-6.0.tar.gz
-rw-r--r--    1 root     root      1881193 Aug  2 07:38 gnu-gs-fonts-std-6.0.tar.gz

If your files are differnt then delete them and try remerging, if they are the
same size as mine then

# md5sum gnu-gs-fonts-*

You should get

33457d3f37de7ef03d2eea05a9e6aa4f  gnu-gs-fonts-other-6.0.tar.gz
1521fab85ca3e8ce3ce781d4970e6c79  gnu-gs-fonts-std-6.0.tar.gz

If that is the case, then it seems that cp isn't working properly

try to remerge fileutils and remerge ghostcript.

If all that fails, then you can try to emerge ghostscript with the --usepkg
command on the tarball I'll attach to bugzilla, cause I've run out of ideas
after that.
Comment 5 Stuart Bouyer (RETIRED) gentoo-dev 2002-08-30 09:40:46 UTC
tarball seems to be too big for bugzilla, let me know if you want it and I'll
email it too you directly (It's 4.8M or so).

Hopefully I'll be on irc later, If X and kvirc ever finish compiling.
Give me a shout there if you see me (StuBear)

Stuart
Comment 6 Alex 2002-08-30 15:35:05 UTC
I thought we had it this morning the longhand make ... seemed to install 
everything ok or am i wrong?  Only thing was that portage never knew it.
can portage be manully made aware of the longhand ghostscript install so cups 
installation may proceed?

I followed the last post with these results:

>check that /var/tmp/portage/ghostscript-7.05.3-r1/work/fonts exists and 
contains
>fonts, cd to /usr/portage/distfiles and 

Yes exists and has files.  File sizes and md5sums match as well.
remerged fileutils again (emerge sys-apps/fileutils)< is this what you ment?
emerge ghostscript still fails...with same error in line 200.

Had this problem with another build same computer the first time i built gentoo-
1.2; that's what prompted me to rebuild the os this week.  I thought the re-
merge of fileutils sounded like a "real" fix.  I forget which package was the 
other package - but the broken copy sounded good.

The only things on the system that are not plain vanilla are the xfs fs on some 
of the partitions and I attempted to use some USE flags...could they cause all 
this grief???

# Build-time functionality

USE="-3dnow -nls mmx sse tcltk aalib tiff alsa flash xml perl mysql innodb odbc 
gd zeo ldap gtkhtml ipv6 acl ruby"

I logged the remerge of fleutils and ghostscripts second attempt.. I'll mail 
them to stubear@gentoo.org as not to fill up the bug report with lines of 
potentially nothing if you find anything "good" in them add it as an additional 
comment i guess?

thanks for your help..I'll try you on irc. 

Comment 7 Stuart Bouyer (RETIRED) gentoo-dev 2002-08-30 17:06:58 UTC
Alex,

all the error messages point to these lines in the ebuild as being the problem ones

        cd ${WORKDIR}
        cp -a fonts ${D}/usr/share/ghostscript || die
        cd ${S}

matches

cp: preserving permissions for `/var/tmp/portage/ghostscript-7.05.3-r1/image//us
r/share/ghostscript/fonts': Invalid argument

in your error log.

None of your USE flags could cause this problem (AFAIK). However, I saw in
another thread that there are some problems with XFS and low-latency in the
kernel. Do you have this option? 

Also is the partion that /var/tmp on XFS?

If so you may need to recompile the kernel without low-latency if you want to
use XFS.

You may need to hack the ebuild to get it to install. To do this

In /var/tmp/portage/ghostscript-7.05.3-r1/work, run

cp -a fonts /usr/share/ghostscript

This will copy all the fonts manually. Then cd to 
/usr/portage/app-text/ghostscript/

and edit  ghostscript-7.05.3-r1.ebuild, changing

        cd ${WORKDIR}
        cp -a fonts ${D}/usr/share/ghostscript || die
        cd ${S}

to

        cd ${WORKDIR}
        #cp -a fonts ${D}/usr/share/ghostscript || die
        cd ${S}

Then emerge ghostscript. It SHOULD emerge correctly now, but doesn't answer the
problem, why it didn't in the first place. I have a feeling it has something to
do with XFS, but not sure what.

Stuart
Comment 8 Alex 2002-08-30 20:30:09 UTC
>In /var/tmp/portage/ghostscript-7.05.3-r1/work, run
>
>cp -a fonts /usr/share/ghostscript

Returns the same 'Invalid argument'

but;

Where are font-files suposed to be under '/usr/share/ghostscript' 
or '/usr/share/ghostscript/fonts' cause I have what seems to be the same font 
files in both locations?

after:
>        cd ${WORKDIR}
>        #cp -a fonts ${D}/usr/share/ghostscript || die
>        cd ${S}

the emerge worked as dir the merge of cups...won't know till tuesday if the 
printer works...box is at work.  However i saw this at the end of the cups 
emerge, is this ok? emerge -s indicates that ghostscript is installed?

 *
 * emerge >=app-text/ghostscript-7.05-r1 if you need to print
 * to a non-postscript printer
 *
>>> Regenerating /etc/ld.so.cache...
>>> net-print/cups-1.1.15-r2 merged.

>>> Recording net-print/cups in "world" favorites file...


 * GNU info directory index is up-to-date.


>Also is the partion that /var/tmp on XFS?
>

Yes

>If so you may need to recompile the kernel without low-latency if you want to
>use XFS.

Do you know the option-name, i looked in my kernel config file, i saw nothing 
with latency and only a few xfs options, but nothing that looked like what you 
said?
#CONFIG_VXFS_FS is not set
CONFIG_XFS_FS=y
# CONFIG_XFS_RT is not set
CONFIG_XFS_QUOTA=y
# CONFIG_XFS_DMAPI is not set

Would it be benificial to tar off /var and reformat the partition as ext3 and 
drop /var back in place?


Comment 9 Stuart Bouyer (RETIRED) gentoo-dev 2002-08-31 01:56:35 UTC
>>In /var/tmp/portage/ghostscript-7.05.3-r1/work, run
>>
>>cp -a fonts /usr/share/ghostscript
>
>Returns the same 'Invalid argument'
>

Okay, this shouldn't happen. It looks like /usr/share/ghostscript/fonts might 
have odd permissions. 

>but;
>
>Where are font-files suposed to be under '/usr/share/ghostscript' 
>or '/usr/share/ghostscript/fonts' cause I have what seems to be the same font 
>files in both locations?

cp -a fonts /usr/share/ghostscript, should copy the directory 'fonts' 
to '/usr/share/ghostcript' to create '/usr/share/ghostscript/fonts' - all font 
files should be in here.

You HAVE emerged ghostscript now, however it appears that 
the '/usr/share/ghostscript' or '/usr/share/ghostcript/fonts' have the wrong 
permissions. 

If you are feeling brave, you could 

# emerge unmerge ghostscript

to unmerge ghostscript, then make sure that '/usr/share/ghostscript' no longer 
exists. Then change the ghostscript ebuild back to the original form and try to 
emerge again.

A less brave option would be to change the the permissions 
on '/usr/share/ghostscript' and/or '/usr/share/ghostscript/fonts'. I don't have 
access to my machine with ghostscript on it, but they should be something like

# ls -ld /usr/share/ghostscript
drwxr-xr-x  23 root root  4096 17 Jul 2002 ghostscript

if its not drwxr-xr-x then 

#chmod 755 /usr/share/ghostscript

to reset it (do the same for /usr/share/ghostscript/fonts if necessary)

if its not root root then

#chown root.root /usr/share/ghostscript

The final option it to leave it alone cause ghostscript has emerged now, but 
you might get problems in the future. When I get home, I'll email you with the 
permissions for all the files on my machine for ghostscript if you like.

Stuart
Comment 10 Stuart Bouyer (RETIRED) gentoo-dev 2002-10-12 07:41:43 UTC
Closing this. seems to be okay now