Skip to content

How to specify a fallback package for unpackaged files? #2907

Answered by DaanDeMeyer
DaanDeMeyer asked this question in Q&A
Discussion options

You must be logged in to vote

So what I ended up doing is something like the following:

build() {
    # TODO: Replace meson_build and meson_install overrides with "--undefine __meson_verbose" once
    # https://github.com/mesonbuild/meson/pull/12835 is available.
    rpmbuild \
        -bb \
        --build-in-place \
        --define "_topdir /var/tmp" \
        --define "_sourcedir rpm" \
        --define "_rpmdir $PACKAGEDIR" \
        --define "__check_files sh -c '$(rpm --eval %__check_files) | tee /tmp/unpackaged-files'" \
        "$@" \
        rpm/systemd.spec
}

if ! build; then
    EXIT_STATUS=$?
    if [ ! -s /tmp/unpackaged-files ]; then
        exit $EXIT_STATUS
    fi

    # rpm will append to any existi…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@pmatilai
Comment options

@pmatilai
Comment options

@DaanDeMeyer
Comment options

@DaanDeMeyer
Comment options

Answer selected by DaanDeMeyer
@lnussel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants