Subject: pkg/8869: Makefile error for pkgsrc/print/lyx
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kowallis@MIT.EDU>
List: netbsd-bugs
Date: 11/24/1999 06:12:47
>Number:         8869
>Category:       pkg
>Synopsis:       Makefile error for pkgsrc/print/lyx
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 24 06:12:00 1999
>Last-Modified:
>Originator:     Karl W Kowallis
>Organization:
MIT Graduate Student
	
>Release:        NetBSD 1.3.2 Jun 22 1998 / lyx 1.1.2 <NetBSD-current source date>
>Environment:
AMD K6-3 400MHz, NetBSD 1.3.2 (ATHENA)
	
System: NetBSD hts1.mit.edu 1.3.2 NetBSD 1.3.2 (ATHENA) #0: Mon Jun 22 17:32:46 EDT 1998 nathanw@antisnork.mit.edu:/u1/var/build/sys-1.3.2/arch/i386/compile/ATHENA i386


>Description:
	I am trying to install an upgrade version of lyx.  My current version is 1.0.3 and I saw that 1.1.2 was available and tried to install it.  I su to root and went to /usr/pkgsrc.  
sup -s to upgrade 
response: SUP 8.26 (4.3 BSD) for system software at Nov 23 23:26:07
and then went to /pkgsrc/print/lyx.  make fetch-list | sh and it began downloading files. 
response:
hts1.mit.edu# make fetch-list | sh
"Makefile", line 31: Malformed conditional (${MACHINE_ARCH} == "i386" && ${OBJEC
T_FMT} == "ELF")
"Makefile", line 31: Need an operator
"Makefile", line 33: if-less endif
"Makefile", line 33: Need an operator
"Makefile", line 57: Malformed conditional (${OBJECT_FMT} == "ELF")
"Makefile", line 57: Need an operator
"Makefile", line 68: if-less endif
"Makefile", line 68: Need an operator
Fatal errors encountered -- cannot continue
Makefile: not found
Stop.: not found
Retrieving pub/gnu/bison/bison-1.28.tar.gz
100% |**************************************************|   410 KB    00:00 ETA
Retrieving graphics/png/src/libpng-1.0.3.tar.gz
100% |**************************************************|   227 KB    00:00 ETA
Requesting http://www.w3.org/Library/Distribution/w3c-libwww-5.2.8.tar.gz
100% |**************************************************|  1923 KB    00:00 ETA
Retrieving pub/tex/ctan/systems/unix/teTeX/1.0/distrib/sources/teTeX-src-1.0.6.t
ar.gz
100% |**************************************************|  7839 KB    00:00 ETA
Retrieving pub/tex/ctan/systems/unix/teTeX/1.0/distrib/sources/teTeX-texmf-1.0.t
ar.gz
100% |**************************************************| 31442 KB    00:00 ETA
Retrieving pub/tex/ctan/systems/unix/teTeX/1.0/distrib/sources/teTeX-texmfsrc-1.
0.tar.gz
100% |**************************************************| 10511 KB    00:00 ETA
Retrieving pub/lyx/stable/lyx-1.1.2.tar.gz
100% |**************************************************|  3186 KB    00:00 ETA
hts1.mit.edu# make
===>  Validating dependencies for lyx-1.1.2
Your package tools need to be updated to 1999/09/09 versions.
The installed package tools were last updated on 1999/04/12.
Please make and install the pkgsrc/pkgtools/pkg_install package.
*** Error code 1

Stop.
===>  lyx-1.1.2 cannot build necessary dependencies.
*** Error code 1

Stop.
*** Error code 1

Stop.

I changed to /usr/pkgsrc/pkgtools/pkg_install and successfully installed the installation software.  I then returned to /usr/pkgsrc/print/lyx and typed make
response:
hts1.mit.edu# make 
===>  Validating dependencies for lyx-1.1.2
>How-To-Repeat:
>Fix:
	unknown
	
>Audit-Trail:
>Unformatted:
>> Checksum OK for lyx-1.1.2.tar.gz.
===>  Extracting for lyx-1.1.2
===>  lyx-1.1.2 depends on installed package: ispell-3.1.20 - ispell-3.1.20 foun
d
===>  lyx-1.1.2 depends on installed package: teTeX-* - teTeX-0.4p8 found
===>  lyx-1.1.2 depends on installed package: xpm-3.4k - xpm-3.4k found
===>  lyx-1.1.2 depends on installed package: xforms-0.88 - xforms-0.88 found
===>  lyx-1.1.2 depends on installed package: perl-5.00404 - perl-5.00404 found
===>  Patching for lyx-1.1.2
===>  Applying NetBSD patches for lyx-1.1.2
2 out of 2 hunks failed--saving rejects to lib/Makefile.in.rej
*** Fuzzy patch /usr/pkgsrc/print/lyx/patches/patch-aa ***
2 out of 2 hunks failed--saving rejects to lib/Makefile.in.rej
Patch /usr/pkgsrc/print/lyx/patches/patch-aa failed
*** Error code 1

Stop.
I looked at /usr/pkgsrc/print/Makefile and cannon find the line numbers mentioned and have no idea where the error is comming from. I again tried to install by typing make
response:
hts1.mit.edu# make 
===>  Patching for lyx-1.1.2
===>  Applying NetBSD patches for lyx-1.1.2
2 out of 2 hunks failed--saving rejects to lib/Makefile.in.rej
*** Fuzzy patch /usr/pkgsrc/print/lyx/patches/patch-aa ***
2 out of 2 hunks failed--saving rejects to lib/Makefile.in.rej
Patch /usr/pkgsrc/print/lyx/patches/patch-aa failed
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

I decided to try again and typed make clean and clean dependents. I cleaned up in the pkgtools as well with the pkg_install.  I now recieve the consistent respons when trying to make  fetch-list and to make

	>How-To-Repeat:

hts1.mit.edu# make fetch-list | sh

"Makefile", line 31: Malformed conditional (${MACHINE_ARCH} == "i386" && ${OBJECT_FMT} == "ELF")
"Makefile", line 31: Need an operator
"Makefile", line 33: if-less endif
"Makefile", line 33: Need an operator
"Makefile", line 57: Malformed conditional (${OBJECT_FMT} == "ELF")
"Makefile", line 57: Need an operator
"Makefile", line 68: if-less endif
"Makefile", line 68: Need an operator
Fatal errors encountered -- cannot continue
Makefile: not found
Stop.: not found

hts1.mit.edu# make

===>  Validating dependencies for lyx-1.1.2
>> Checksum OK for lyx-1.1.2.tar.gz.
===>  Extracting for lyx-1.1.2
===>  lyx-1.1.2 depends on installed package: ispell-3.1.20 - ispell-3.1.20 found
===>  lyx-1.1.2 depends on installed package: teTeX-* - teTeX-0.4p8 found
===>  lyx-1.1.2 depends on installed package: xpm-3.4k - xpm-3.4k found
===>  lyx-1.1.2 depends on installed package: xforms-0.88 - xforms-0.88 found
===>  lyx-1.1.2 depends on installed package: perl-5.00404 - perl-5.00404 found
===>  Patching for lyx-1.1.2
===>  Applying NetBSD patches for lyx-1.1.2
2 out of 2 hunks failed--saving rejects to lib/Makefile.in.rej
*** Fuzzy patch /usr/pkgsrc/print/lyx/patches/patch-aa ***
2 out of 2 hunks failed--saving rejects to lib/Makefile.in.rej
Patch /usr/pkgsrc/print/lyx/patches/patch-aa failed
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.