Latest rust version from pkg

Folks,

I run a teeny system (single CPU, 2 GB RAM, less than 20 GB disk) as a standalone mail server, and I’m forced to install 'rust' because of 'clamav' dependency.
I can’t compile it from ports (source). Compilation uses too much disk space and takes forever to complete.
So I installed it using 'pkg install', but it seems the version available in 'pkg' is lagging (1.89 vs 1.92 in ports). Which means I have to tinker into Mk/Uses/cargo.mk to downgrade rust required version:
Code:
CARGO_BUILDDEP?=        any-version
.  if ${CARGO_BUILDDEP:tl} == "yes"
BUILD_DEPENDS+=        ${RUST_DEFAULT}>=1.92.0:lang/${RUST_DEFAULT}
.  elif ${CARGO_BUILDDEP:tl} == "any-version"
BUILD_DEPENDS+= ${RUST_DEFAULT}>=0:lang/${RUST_DEFAULT}
.  endif
CARGO_BUILDDEP is normally set to ‘yes’ and I have DEFAULT_VERSIONS+=rust=rust in my /etc/make.conf.

While this is working (for the moment), I don’t like having stashed changes because they occasionally cause conflicts. How often is the 'rust' package updated in the pkg database? Also, I heard there was a plan to get rid of it somehow? Is this still considered?

Thanks!
 
Ah thanks. I was unaware it was set to quarterly by default. I changed it to latest and yes, it is there.
Also, related question. Installing 1.92 triggers the following message:
The following 6 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
perl5.40: 5.40.3_2 [FreeBSD-ports]

Installed packages to be UPGRADED:
rust: 1.89.0_1 -> 1.92.0 [FreeBSD-ports]

Installed packages to be REMOVED:
clamav: 1.5.1_2,1
cyrus-imapd312: 3.12.1_2
postfix: 3.10.6,1
texinfo: 7.2_3,1


I don’t want perl5.40 to be installed (I have 5.42) nor the other ones to be removed. How can I do that? I see no option in pkg help upgrade to do so.
 
Back
Top