Re: Can't build bash3.1 during portupgrade -a



Gerard Seibert wrote:

Michael D. Norwick wrote:



freebsd 6.1 RELEASE Compaq Proliant SMP PII-200 (smp modified kernel)

Over a week ago I was trying to rebuild Xorg and ran into an issue with
libexpat.so.5 not found for 'fc-cache'. This was my fault because
earlier I wanted expat2, built it from the 'ports' collection tarball
current (at that time) from ftp2.us.FreeBSD.org, and apparently broke
the dependency for libexpat.so.5. Following the advice given to another
user on freebsd-questions, I did pkgdb -F then portupgrade -a in order
to fix the dependencies and get Xorg 6.9.0. Little did I know that it
would take over a week to upgrade and rebuild 119 installed packages on
my PII-200 SMP Proliant. Other than a couple of burps with boost-python
and postgresql, the upgrade has kept chugging along. Today, I am almost
to the end and the Mozilla build flaked out. No worries on that yet,
but the script suggested doing pkgdb -F again and restarting
portupgrade. I dutifully followed and when portupgrade restarted it
tried to build bash31aborted with the following error which I do not
understand. When the 'make bash31' stopped on error the first time I
manually downloaded the whole bash31 file set again to
/usr/ports/distfiles/bash from ftp4.us and re-ran portupgrade -a. It
stopped again with the same error. What is happening here?

=> MD5 Checksum mismatch for bash/bash31-010.
=> SHA256 Checksum mismatch for bash/bash31-010.
...snip
And then;

=> Attempting to fetch from http://ftp.gnu.org/gnu/bash/bash-3.1-patches//.
fetch: bash31-010: local modification time does not match remote
...snip

stop

Michael



Personally, I would have used 'portmanager' to fix the situation.
Running it like this: portmanager -u -f -l -y should have corrected your
situation.

In any even, delete everything in the /usr/ports/distfiles directory.
Next, update your entire ports collection. If you are still going to use
portupgrade, then definitely run the pkgdb -afFuv. It will give you a
better idea of what is happening. You might also consider running
portsdb -Uu if you have the time. It couldn't hurt. If you decide to use
portmanager, those last two steps are not required.

Good luck!



petermatulis@xxxxxxxx wrote:

Are you sure you removed the distfiles or did you try to download over them? You should delete them.

I downloaded over them so I will take both suggestions and delete the whole mess and rebuild. The Handbook and The 'Complete' book are not too clear on the advantages of portupgrade over portmanager. Right now the build(upgrade) got to 'gimp-print' and is freaking out with:

'warning: traditional C rejects ISO C style function definitions' for every .c file in the package due to not hiding #pragma's from traditional C in the header files. Ho-Hum. Maybe a problem with autoconf and friends??? Soldiering on.

Thank You for the help.

Michael



_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Cant build bash3.1 during portupgrade -a
    ... Over a week ago I was trying to rebuild Xorg and ran into an issue ... I did pkgdb -F then portupgrade -a in ... When the 'make bash31' stopped on error the first time I ... Mail has the best spam protection around ...
    (freebsd-questions)
  • Re: Cant build bash3.1 during portupgrade -a
    ... Over a week ago I was trying to rebuild Xorg and ran into an issue with ... I did pkgdb -F then portupgrade -a in order ... When the 'make bash31' stopped on error the first time I ... Switch your ports cvsup server in your cvsup file, delete the patch file, re-cvsup, then try portupgrade again. ...
    (freebsd-questions)
  • Re: Portupgrade
    ... First cd /var/db/pkg save the old pkgdb by ... everytime I run one of the portupgrade commands like pkgdb -u or -F, ... and a default database now set to use this version you can get portupgrade ... and set port options accordly. ...
    (freebsd-questions)
  • Re: portupgrade
    ... g. "portupgrade xyz" never resulted in that problem ... ... > results in a repetitive rebuild of the package database whenever the ... > `Inappropriate file type or format'; rebuild needed] [Rebuilding the pkgdb ...
    (freebsd-questions)
  • Re: How best to recover from untimely portupgrade interruption?
    ... > Now if I rerun portupgrade, it restarts the index build but warns me ... > down the database builder. ... What I've done in cases like this (or any pkgdb inconsistencies) is ... pkgdb -F and answer the altogether-too-cryptic questions. ...
    (freebsd-questions)