Solved pkg-static

Regardless of how you do it, ports or packages, all ports/packages need to be reinstalled. The command shows the way to do it using packages. If you install everything from ports you'll need to rebuild every installed port.
 
Hi, so I don't need to run pkg-static upgrade -f, as I am using ports.
Anyway, after running portmaster -af, I found a bit confusing this message:

Code:
pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
 
Hmmm .... I can see a loop here, ports-mgmt/portmaster itself is "port" and building from ports require a working toolchain, which is not available in your case.

I'm inclined to think your only option right now is to use the pkg system and download the packages directly from repository.

But wait for further advice, there are people more experienced than me on this forum.

EDIT: the reference about a non working toolchain is about your other Thread 59195
 
Hi SirDice,

actually ports-mgmt/pkg is the first port that is being upgraded on my case with portmaster -afG.
I tried to upgrade ports-mgmt/pkg only, but I get same result:

Code:
root@server:/usr/ports/ports-mgmt/pkg# make clean
pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
===>  Cleaning for pkg-1.9.4_1
root@server:/usr/ports/ports-mgmt/pkg# make install clean
pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
===>  License BSD2CLAUSE accepted by the user
===> Fetching all distfiles required by pkg-1.9.4_1 for building
===>  Extracting for pkg-1.9.4_1
===>  License BSD2CLAUSE accepted by the user
===> Fetching all distfiles required by pkg-1.9.4_1 for building
=> SHA256 Checksum OK for pkg-1.9.4.tar.xz.
===>  Patching for pkg-1.9.4_1
===>  Applying FreeBSD patches for pkg-1.9.4_1
===>  Configuring for pkg-1.9.4_1
configure: loading site script /usr/ports/Templates/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/usr/ports/ports-mgmt/pkg/work/pkg-1.9.4':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
===>  Script "configure" failed unexpectedly.
Please report the problem to pkg@FreeBSD.org [maintainer] and attach the
"/usr/ports/ports-mgmt/pkg/work/pkg-1.9.4/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. a
/usr/ports/ports-mgmt/pkg/work/pkg-1.9.4/src/pkg-static info -g -Ea).
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/ports-mgmt/pkg
*** Error code 1

Stop.
make: stopped in /usr/ports/ports-mgmt/pkg
 
where can get base components of freebsd and replace them ?
Depends.. If you downloaded an ISO imagine which also contained the so called base system then you'll find some images on it. For example: base.txz, ports.txz, games.txz. Those are archives (see tar(1), the -J option in particular) which you can easily extract.

They can be found on 'full' ISO images but you can also find them online. For example, see this link for the packages which make up the 10.3 release.

Note: I don't recommend "just" overwriting your base system by extracting those archives. A lot depends on the state of your system (for example: did you upgrade it using freebsd-update?).
 
Back
Top