Hi all, While trying to update ports for FreeBSD 6.1-STABLE using this command: /usr/local/sbin/portsdb -Uu I got the following error (please see below for the process leading up to this): Updating the ports index ... Generating INDEX.tmp - please wait.."Makefile", lin e 33: Could not find /usr/ports/japanese/gnomelibs/../../x11/gnomelibs/Makefile "/usr/ports/Mk/bsd.port.mk", line 1886: Malformed conditional (${X_WINDOW_SYSTEM :L} == xfree86-3) "/usr/ports/Mk/bsd.port.mk", line 1951: Malformed conditional (${PERL_LEVEL} >500600) "/usr/ports/Mk/bsd.port.mk", line 1960: if-less endif "/usr/ports/Mk/bsd.port.mk", line 2200: Malformed conditional (${PREFIX} == ${X1 1BASE_REL} || defined(USE_X_PREFIX)) "/usr/ports/Mk/bsd.port.mk", line 2203: Malformed conditional (${X_WINDOW_SYSTEM :L} == xfree86-3) "/usr/ports/Mk/bsd.port.mk", line 2208: if-less elif "/usr/ports/Mk/bsd.port.mk", line 2210: if-less else "/usr/ports/Mk/bsd.port.mk", line 2212: if-less endif "/usr/ports/Mk/bsd.port.mk", line 2213: if-less endif "/usr/ports/Mk/bsd.port.mk", line 2864: Malformed conditional (${PREFIX} == /usr ) "/usr/ports/Mk/bsd.port.mk", line 2866: if-less else "/usr/ports/Mk/bsd.port.mk", line 2868: if-less endif "/usr/ports/Mk/bsd.port.mk", line 2956: Malformed conditional (${PREFIX} == /usr ) "/usr/ports/Mk/bsd.port.mk", line 2958: if-less else "/usr/ports/Mk/bsd.port.mk", line 2960: if-less endif "/usr/ports/Mk/bsd.port.mk", line 5503: Malformed conditional ((${PREFIX} != ${L OCALBASE_REL} && ${PREFIX} != ${X11BASE_REL} && ${PREFIX} != ${LINUXBASE_REL} && ${PREFIX} != "/usr")) "/usr/ports/Mk/bsd.port.mk", line 5508: if-less endif "/usr/ports/Mk/bsd.port.mk", line 5992: if-less endif make: fatal errors encountered -- cannot continue ===> japanese/gnomelibs failed *** Error code 1 1 error ******************************************************************** Before reporting this error, verify that you are running a supported version of FreeBSD (see http://www.FreeBSD.org/ports/) and that you have a complete and up-to-date ports collection. (INDEX builds are not supported with partial or out-of-date ports collections -- in particular, if you are using cvsup, you must cvsup the "ports-all" collection, and have no "refuse" files.) If that is the case, then report the failure to ports@FreeBSD.org together with relevant details of your ports configuration (including FreeBSD version, your architecture, your environment, and your /etc/make.conf settings, especially compiler flags and WITH/WITHOUT settings). Note: the latest pre-generated version of INDEX may be fetched automatically with "make fetchindex". ******************************************************************** *** Error code 1 Stop in /usr/ports. *** Error code 1 Stop in /usr/ports. failed to generate INDEX! portsdb: index generation error Process: cd /usr/ports/net/cvsup make install clean (reboot) cp /usr/share/examples/cvsup/ports-supfile /root/ I then edited /root/ports-supfile and added the host: *default host=cvsup12.FreeBSD.org At first, I commented out all the ports for languages I don't understand such as Russian, Japanese, etc. But I got a similar error, so I commented out all the individual ports and uncommented ports-all to do a complete job of it. That's when I ran portsdb -Uu and got the above error. This is my first time doing this, so I'm sure I've missed something somewhere. -Ron T. -- Ron Tarrant Blog:<A HREF="http://www.writingup.com/blog/phpgtk2">PHP-Gtk2</A>
Ron Tarrant wrote:> Hi all, > > While trying to update ports for FreeBSD 6.1-STABLE using this command: > > /usr/local/sbin/portsdb -Uu > > I got the following error (please see below for the process leading up > to this): > > Updating the ports index ... Generating INDEX.tmp - please > wait.."Makefile", lin > e 33: Could not find > /usr/ports/japanese/gnomelibs/../../x11/gnomelibs/Makefile > "/usr/ports/Mk/bsd.port.mk", line 1886: Malformed conditional > (${X_WINDOW_SYSTEM > :L} == xfree86-3) > "/usr/ports/Mk/bsd.port.mk", line 1951: Malformed conditional > (${PERL_LEVEL} >> 500600) > "/usr/ports/Mk/bsd.port.mk", line 1960: if-less endif > "/usr/ports/Mk/bsd.port.mk", line 2200: Malformed conditional > (${PREFIX} == ${X1 > 1BASE_REL} || defined(USE_X_PREFIX)) > "/usr/ports/Mk/bsd.port.mk", line 2203: Malformed conditional > (${X_WINDOW_SYSTEM > :L} == xfree86-3) > "/usr/ports/Mk/bsd.port.mk", line 2208: if-less elif > "/usr/ports/Mk/bsd.port.mk", line 2210: if-less else > "/usr/ports/Mk/bsd.port.mk", line 2212: if-less endif > "/usr/ports/Mk/bsd.port.mk", line 2213: if-less endif > "/usr/ports/Mk/bsd.port.mk", line 2864: Malformed conditional > (${PREFIX} == /usr > ) > "/usr/ports/Mk/bsd.port.mk", line 2866: if-less else > "/usr/ports/Mk/bsd.port.mk", line 2868: if-less endif > "/usr/ports/Mk/bsd.port.mk", line 2956: Malformed conditional > (${PREFIX} == /usr > ) > "/usr/ports/Mk/bsd.port.mk", line 2958: if-less else > "/usr/ports/Mk/bsd.port.mk", line 2960: if-less endif > "/usr/ports/Mk/bsd.port.mk", line 5503: Malformed conditional > ((${PREFIX} != ${L > OCALBASE_REL} && ${PREFIX} != ${X11BASE_REL} && ${PREFIX} != > ${LINUXBASE_REL} && > ${PREFIX} != "/usr")) > "/usr/ports/Mk/bsd.port.mk", line 5508: if-less endif > "/usr/ports/Mk/bsd.port.mk", line 5992: if-less endif > make: fatal errors encountered -- cannot continue > ===> japanese/gnomelibs failed > *** Error code 1 > 1 error > > ******************************************************************** > Before reporting this error, verify that you are running a supported > version of FreeBSD (see http://www.FreeBSD.org/ports/) and that you > have a complete and up-to-date ports collection. (INDEX builds are > not supported with partial or out-of-date ports collections -- in > particular, if you are using cvsup, you must cvsup the "ports-all" > collection, and have no "refuse" files.) If that is the case, then > report the failure to ports@FreeBSD.org together with relevant > details of your ports configuration (including FreeBSD version, > your architecture, your environment, and your /etc/make.conf > settings, especially compiler flags and WITH/WITHOUT settings). > > Note: the latest pre-generated version of INDEX may be fetched > automatically with "make fetchindex". > ******************************************************************** > > *** Error code 1 > > Stop in /usr/ports. > *** Error code 1 > > Stop in /usr/ports. > failed to generate INDEX! > portsdb: index generation error > > > Process: > > cd /usr/ports/net/cvsup > make install clean > (reboot) > cp /usr/share/examples/cvsup/ports-supfile /root/ > > I then edited /root/ports-supfile and added the host: > > *default host=cvsup12.FreeBSD.org > > At first, I commented out all the ports for languages I don't > understand such as Russian, Japanese, etc. But I got a similar error, > so I commented out all the individual ports and uncommented ports-all > to do a complete job of it. That's when I ran portsdb -Uu and got the > above error. > > This is my first time doing this, so I'm sure I've missed something > somewhere. > > -Ron T.Instead of regenerating the INDEX, why not just download it? # cd /usr/ports # make fetchindex Regards, Chris Jones -- Chris Jones chris@chris-j.net
On Tue, 05 Sep 2006 09:25:38 -0400, Ron Tarrant <rtarrant@sympatico.ca> wrote:> At first, I commented out all the ports for languages I don't understand > such as Russian, Japanese, etc. But I got a similar error, so I > commented out all the individual ports and uncommented ports-all to do a > complete job of it. That's when I ran portsdb -Uu and got the above error. > > This is my first time doing this, so I'm sure I've missed something > somewhere.IIRC, you must have all the ports (ports-all in your config file) in order to generate an INDEX, as it will fail otherwise. -- Ricardo Nabinger Sanchez <rnsanchez@{gmail.com,wait4.org}> Powered by FreeBSD "Left to themselves, things tend to go from bad to worse."
Chris Jones wrote:> Instead of regenerating the INDEX, why not just download it? > > # cd /usr/ports > # make fetchindex > > Regards, > Chris Jones >Thanks for the reply, Chris. Yup, good idea. I did this and found out that INDEX-6 was already up-to-date. Could this be why index generation failed? -Ron T. -- Ron Tarrant Blog:<A HREF="http://www.writingup.com/blog/phpgtk2">PHP-Gtk2</A>
Hi,> [..] > At first, I commented out all the ports for languages I don't understand > such as Russian, Japanese, etc. But I got a similar error, so I > commented out all the individual ports and uncommented ports-all to do a > complete job of it. That's when I ran portsdb -Uu and got the above error.just to make sure: You did run cvsup after uncommenting ports-all and before running portsdb -Uu, right? Wolfgang
On Tue, Sep 05, 2006 at 09:25:38AM -0400, Ron Tarrant wrote:> Updating the ports index ... Generating INDEX.tmp - please > wait.."Makefile", lin > e 33: Could not find > /usr/ports/japanese/gnomelibs/../../x11/gnomelibs/MakefileWhy not?> have a complete and up-to-date ports collection. (INDEX builds are > not supported with partial or out-of-date ports collections -- in > particular, if you are using cvsup, you must cvsup the "ports-all" > collection, and have no "refuse" files.) If that is the case, then> At first, I commented out all the ports for languages I don't understand > such as Russian, Japanese, etc. But I got a similar error, so I > commented out all the individual ports and uncommented ports-all to do a > complete job of it. That's when I ran portsdb -Uu and got the above error.This makes me think that you didn't re-run cvsup since your "similar error" is precisely what you'd expect if you didn't have anything in japanese/. Kris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060905/867130c6/attachment.pgp
On Tue, 5 Sep 2006, Ron Tarrant wrote:> Hi all, > > While trying to update ports for FreeBSD 6.1-STABLE using this command: > > /usr/local/sbin/portsdb -UuI've seen errors similar to yours when your Mk files are out of date with the rest of your ports tree. As root: # cd /usr/ports/Mk # cvs -R update -P -d I'm assuming that the rest of your ports tree has also been updated accordingly ('cd /usr/ports; cvs -R update -P -d'). -- DE
Ricardo Nabinger Sanchez wrote:> > IIRC, you must have all the ports (ports-all in your config file) in order > to generate an INDEX, as it will fail otherwise. > >Yeah, when I realized that I interrupted the cvsup command, edited ports-supfile to change it to ports-all, then reran cvsup. Perhaps interrupting it the first time is what caused the problem. -Ron T. -- Ron Tarrant Blog:<A HREF="http://www.writingup.com/blog/phpgtk2">PHP-Gtk2</A>
Wolfgang Zenker wrote:> > just to make sure: You did run cvsup after uncommenting ports-all and > before running portsdb -Uu, right? > >Yes. I double-checked the command history and I definitely did. -Ron T. -- Ron Tarrant Blog:<A HREF="http://www.writingup.com/blog/phpgtk2">PHP-Gtk2</A>