Ticket #319 (new defect)

Opened 10 years ago

CRAN Repository

Reported by: mabhobs Owned by: kugelfang
Priority: Sometime Milestone:
Component: repositories/cran Version: 0.24.2
Keywords: cran paludis mkdir error Cc:
Blocked By: Blocking:
Distribution:

Description

The cran_do_install function requires an extra line to make the paludis work correctly:

Before:

cran_do_install() {
    if [[ -e "${WORKDIR}" ]] ; then
        rm -Rf "${WORKDIR}" || die "Could not remove existing WORKDIR: ${WORKDIR}"
    fi
    mkdir -p "${WORKDIR}"
    cd "${WORKDIR}" || die "Could not cd to WORKDIR: ${WORKDIR}"

    local dounpack="${PALUDIS_EBUILD_DIR}/utils/dounpack"
    ${dounpack} "${DISTFILE}"

    # \todo Sandbox this?
    R CMD INSTALL -l "${IMAGE}/${PALUDIS_CRAN_LIBRARY##${ROOT}}" ${PN}

    if [[ ${IS_BUNDLE} == "yes" ]] ; then
        mkdir -p "${IMAGE}/${PALUDIS_CRAN_LIBRARY##${ROOT}}/paludis/bundles/"
        cp "${PN}/DESCRIPTION" "${IMAGE}/${PALUDIS_CRAN_LIBRARY##${ROOT}}/paludis/bundles/${PN}.DESCRIPTION"
    fi
}

After:

cran_do_install() {
    if [[ -e "${WORKDIR}" ]] ; then
        rm -Rf "${WORKDIR}" || die "Could not remove existing WORKDIR: ${WORKDIR}"
    fi
    mkdir -p "${WORKDIR}"
    cd "${WORKDIR}" || die "Could not cd to WORKDIR: ${WORKDIR}"

    local dounpack="${PALUDIS_EBUILD_DIR}/utils/dounpack"
    ${dounpack} "${DISTFILE}"

    # \todo Sandbox this?
    mkdir -p  "${IMAGE}/${PALUDIS_CRAN_LIBRARY##${ROOT}}"
    R CMD INSTALL -l "${IMAGE}/${PALUDIS_CRAN_LIBRARY##${ROOT}}" ${PN}

    if [[ ${IS_BUNDLE} == "yes" ]] ; then
        mkdir -p "${IMAGE}/${PALUDIS_CRAN_LIBRARY##${ROOT}}/paludis/bundles/"
        cp "${PN}/DESCRIPTION" "${IMAGE}/${PALUDIS_CRAN_LIBRARY##${ROOT}}/paludis/bundles/${PN}.DESCRIPTION"
    fi
}

Note: See TracTickets for help on using tickets.