Solved pkg upgrade x installed ports (conflict?)

rafael_grether

New Member

Reaction score: 1
Messages: 7

Hello,

I installed apache24 from ports. Some dependencies was installed too.
When I run pkg update && pkg upgrade, the system recommend this package (apache) and others to be reinstalled.
Why? The version ports/pkg are the same. And I don't want to reinstall these packages.
I read that I can use "pkg lock". But I don't understand why it occurs.

What the best solution?
Code:
Installed packages to be REINSTALLED:
    apache24-2.4.49 (options changed)
    apr-1.7.0.1.6.1_1 (options changed)
    autoconf-2.69_3 (ABI changed: 'freebsd:13:*' -> 'freebsd:13:x86:64')
    autoconf-wrapper-20131203 (ABI changed: 'freebsd:13:*' -> 'freebsd:13:x86:64')
    automake-1.16.3 (ABI changed: 'freebsd:13:*' -> 'freebsd:13:x86:64')
    ......
    perl5-5.32.1_1 (options changed)

Thanks,
Grether
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,347
Messages: 38,863

Why? The version ports/pkg are the same.
Code:
apache24-2.4.49 (options changed)
apr-1.7.0.1.6.1_1 (options changed)
Because they have different options enabled/disabled, so they're not the same.

What the best solution?
The "best" solution is to set up your own repository using ports-mgmt/poudriere or ports-mgmt/synth. Then you can set all your own options and defaults and never get any "conflicts" in this regard. That will give you the best of both worlds, the flexibility of ports and the ease of management of packages.
 
OP
rafael_grether

rafael_grether

New Member

Reaction score: 1
Messages: 7

Because they have different options enabled/disabled, so they're not the same.


The "best" solution is to set up your own repository using ports-mgmt/poudriere or ports-mgmt/synth. Then you can set all your own options and defaults and never get any "conflicts" in this regard. That will give you the best of both worlds, the flexibility of ports and the ease of management of packages.
Thanks SirDice.
In fact, I changed some options. The pkg doesn't recognize it? :(
Somes packages I didn't installed docs and some unnecessary options.
There are more than 30 packages that pkg wants to replace.

I will search about poudriere and follow your recommendation.

Thanks,
Grether
 

grahamperrin

Daemon

Reaction score: 695
Messages: 2,214

… I changed some options. The pkg doesn't recognize it? …

Packages from official FreeBSD-provided repositories are built with predefined options. Please see, for example:
My /usr/local/etc/poudriere.d/make.conf includes lines such as:

PULSEAUDIO=off += www/firefox

Hint: the superset of features of ports-mgmt/poudriere-devel includes an option to pre-fetch packages, which can be a huge time-saver.

<https://github.com/freebsd/poudriere/wiki/poudriere-bulk.8-devel>

An example of a fetch:

 
Top