Solved Broken packages manager on FreeBSD9 after upgrade

Hi everyone,

I've just upgraded a FreeBSD 8.2 to 9.0 (next step woud be 10.0).

I'm now facing two major problems :

1/ After upgrade, make was broken. So I followed this thread and now, I absolutely need to specify "-m /usr/share/mk" when compiling something. Any way of fixing this?

2/ Any make compilation fails :

Code:
make: make: don't know how to make dirsyntax. Stop


Problem 2 is causing more troubles than problem 1 of course.

Thanks for your help.

Gaëtan
 
If possible use freebsd-update rollback to get back to 8.2 again. After the system's back up and running you can try the upgrade again. I would suggest going straight to 10.1 and skip the .0 versions.
 
Well, there's no need for make at the moment. So I'd probably make a good backup of the system in it's current state, jump in at the deep end and try the upgrade to 10.1 (skip .0). Hopefully that puts everything back the way it's supposed to be. Once 10.1 is up and running you need to re-install all packages/ports, hopefully make works again at that point.
 
That's what I was thinking, but...


Code:
# freebsd-update upgrade -r 10.1-RELEASE

Looking up update.FreeBSD.org mirrors... 5 mirrors found.
Fetching metadata signature for 9.0-RELEASE from update5.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.


The following components of FreeBSD seem to be installed:
kernel/generic world/base world/doc


The following components of FreeBSD do not seem to be installed:
src/src world/games world/lib32


Does this look reasonable (y/n)? y

Fetching metadata signature for 10.1-RELEASE from update5.freebsd.org... done.
Fetching metadata index... done.


The update metadata is correctly signed, but
failed an integrity check.
Cowardly refusing to proceed any further.
 
That issue had an errata notice and looks like it would have been fixed in 9.0. Multiple freebsd-update(8) issues had been resolved so your best path may be to take steps upgrading to a newer 9.X release and take steps if needed while making sure all the errata fixes have been applied before attempting.

The make issue was because a feature implemented in ports after all the releases relying on the old behavior reached end of life. You won't be able to use ports until you upgrade to a supported release.

https://www.freebsd.org/security/advisories/FreeBSD-EN-12:01.freebsd-update.asc
 
Upgrading to FreeBSD 9.1 first did the trick, thanks !

Then I could upgrade to 10.1 with no problem.
 
You'll get this error when /usr/src doesn't match the current system. This is because make's .mk search path has /usr/src/share/mk before /usr/share/mk.

You can figure out where make is finding the bogus .mk files by running make from "ktrace -di" and then checking to see which files in "kdump | fgrep NAMI" output actually exist.
 
leres you're responding to a 2 year old thread about a FreeBSD version that's end-of-life now. Besides that, /usr/src/ is irrelevant because it's a binary upgrade with freebsd-update(8).
 
Back
Top