Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rust to at least 1.56 so we can update clamav #45

Open
laffer1 opened this issue Aug 22, 2022 · 2 comments
Open

Update rust to at least 1.56 so we can update clamav #45

laffer1 opened this issue Aug 22, 2022 · 2 comments

Comments

@laffer1
Copy link
Member

laffer1 commented Aug 22, 2022

This may only work on 3.0-current

@laffer1
Copy link
Member Author

laffer1 commented Mar 16, 2023

Created rust166-bin and rust167 ports for 3.0 and higher. Suggest we add a clamav port that's newer also once the rust ports are stable.

The rust167 port is failing in the do-install stage because the names of the tarballs don't match the component names. adding -dev somewhere in the string. I tried to get clever but some names are not following the pattern.

do-install:
    -${RM} -r ${WRKDIR}/_extractdist
.for _c in ${_COMPONENTS}
#cargo-1.67.1-dev-i686-unknown-freebsd.tar.xz
    -${MV} ${WRKDIR}/_build/dist/${_c:S|i686|dev-i686|}.tar.xz ${WRKDIR}/_build/dist/${_c}.tar.xz
    ${MKDIR} ${WRKDIR}/_extractdist
    ${TAR} xf ${WRKDIR}/_build/dist/${_c}.tar.xz -C ${WRKDIR}/_extractdist
    -${MV} ${WRKDIR}/_extractdist/${_c:S|i686|dev-i686|} ${WRKDIR}/_extractdist/${_c}
    cd ${WRKDIR}/_extractdist/${_c} && \
            ${SH} install.sh \
            --docdir="${DOCSDIR}" \
            --mandir="${PREFIX}/share/man" \
            --prefix="${PREFIX}"
    -${RM} -r ${WRKDIR}/_extractdist
.endfor

It's also creating tar.xz and tar.gz files in there which is weird. FreeBSD 13.1 is also doing the same.

@laffer1
Copy link
Member Author

laffer1 commented Mar 18, 2023

Created a possible workaround ce9cba7

This is building on a 3.0 i386 node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant