oracle / bpftune

bpftune uses BPF to auto-tune Linux systems
Other
654 stars 55 forks source link

make pkg: Fix SOURCES 'No such file or directory' error #51

Closed Rtoax closed 11 months ago

Rtoax commented 11 months ago

We should create a SOURCES directory for rpmbuild, reproduce the problem:

    # 1. Clean all
    $ rm -rf ~/rpmbuild

    # 2. Make package
    $ make pkg
    ...
    git archive --format=tar --prefix=`rpmspec -q --queryformat="%{NAME}-%{VERSION}\n" buildrpm/bpftune.spec | head -1`/ -o /home/rongtao/rpmbuild/SOURCES/`rpmspec -q --queryformat="%{NAME}-%{VERSION}\n" buildrpm/bpftune.spec | head -1`.tar HEAD
    fatal: could not open '/home/rongtao/rpmbuild/SOURCES/bpftune-0.1.tar' for writing: No such file or directory