Giter Site home page Giter Site logo

fedora-packages's Introduction

Fedora Package

This repo contains a collection of RPM specs for some packages I maintain or use.

Building

  1. Download the sources

    spectool -g <package>.spec
  2. Build the SRPM

    mock --resultdir results-srpm --buildsrpm --spec <package>.spec --sources .
  3. Build the RPMs

    mock --resultdir results-rpm --rebuild results-srpm/<package>-<version>-<release>.src.rpm

    sbctl, in particular, will also need --enable-network.

Licenses

The packaging files are licensed under the same terms as the software being packaged. Please see the individual .spec files for the license.

fedora-packages's People

Contributors

chenxiaolong avatar eliageretto avatar

Watchers

 avatar  avatar  avatar

fedora-packages's Issues

bbswitch not compiling with kernel 5.7

It looks like bbswitch needs an adjustment for kernel 5.7 to compile. ArchLinux seems to have a patch (0002-kernel-5.7.patch) for this already.
Eberhard

bbswitch not compiling on Fedora 32

akmodsbuild --target x86_64 --kernels 5.6.0-0.rc7.git0.2.fc32.x86_64
/usr/src/akmods/bbswitch-kmod.latest

  • Rebuilding /usr/src/akmods/bbswitch-kmod.latest for kernel(s)
    5.6.0-0.rc7.git0.2.fc32.x86_64: prep build build build
    rpmbuild failed with errorcode 1; last 35 Lines of log:

  • cp -al bbswitch-0.8 _kmod_build_5.6.0-0.rc7.git0.2.fc32.x86_64
  • RPM_EC=0
    ++ jobs -p
  • exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZCnTMS
  • umask 022
  • cd /tmp/akmodsbuild.49YFjUZu//BUILD
  • cd bbswitch-kmod-0.8
  • for kernel_version in
    5.6.0-0.rc7.git0.2.fc32.x86_64___/usr/src/kernels/5.6.0-0.rc7.git0.2.fc32.x86_64
  • make -j8 -C /usr/src/kernels/5.6.0-0.rc7.git0.2.fc32.x86_64
    M=/tmp/akmodsbuild.49YFjUZu/BUILD/bbswitch-kmod-0.8/_kmod_build_5.6.0-0.rc7.git0.2.fc32.x86_64
    modules
    make: Entering directory '/usr/src/kernels/5.6.0-0.rc7.git0.2.fc32.x86_64'
    CC [M]
    /tmp/akmodsbuild.49YFjUZu/BUILD/bbswitch-kmod-0.8/_kmod_build_5.6.0-0.rc7.git0.2.fc32.x86_64/bbswitch.o
    /tmp/akmodsbuild.49YFjUZu/BUILD/bbswitch-kmod-0.8/_kmod_build_5.6.0-0.rc7.git0.2.fc32.x86_64/bbswitch.c:
    In function 'bbswitch_init':
    /tmp/akmodsbuild.49YFjUZu/BUILD/bbswitch-kmod-0.8/_kmod_build_5.6.0-0.rc7.git0.2.fc32.x86_64/bbswitch.c:460:63:
    error: passing argument 4 of 'proc_create' from incompatible pointer
    type [-Werror=incompatible-pointer-types]
    460 | acpi_entry = proc_create("bbswitch", 0664, acpi_root_dir,
    &bbswitch_fops);
    |
    ^~~~~~~~~~~~~~
    | |
    |
    struct file_operations *
    In file included from ./include/acpi/acpi_bus.h:83,
    from ./include/linux/acpi.h:32,
    from
    /tmp/akmodsbuild.49YFjUZu/BUILD/bbswitch-kmod-0.8/_kmod_build_5.6.0-0.rc7.git0.2.fc32.x86_64/bbswitch.c:32:
    ./include/linux/proc_fs.h:64:122: note: expected 'const struct proc_ops
    *' but argument is of type 'struct file_operations *'
    64 | struct proc_dir_entry *proc_create(const char *name, umode_t
    mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);

|

cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:268:
/tmp/akmodsbuild.49YFjUZu/BUILD/bbswitch-kmod-0.8/_kmod_build_5.6.0-0.rc7.git0.2.fc32.x86_64/bbswitch.o]
Error 1
make: *** [Makefile:1683:
/tmp/akmodsbuild.49YFjUZu/BUILD/bbswitch-kmod-0.8/_kmod_build_5.6.0-0.rc7.git0.2.fc32.x86_64]
Error 2
make: Leaving directory '/usr/src/kernels/5.6.0-0.rc7.git0.2.fc32.x86_64'
error: Bad exit status from /var/tmp/rpm-tmp.ZCnTMS (%build)


RPM build errors:
    user mockbuild does not exist - using root
    user mockbuild does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.ZCnTMS (%build)

spec file for bbswitch not compatible with kernel 5.4.x

When using a kernel 5.4.x and trying to compile (indirectly by akmod) bbswitch, we get no kernel module.
Reasons:
SUBDIRS parameter is not supported any more,
i think a simple fix in the bbswitch-kmod.spec file would be enough?

with 5.3.16 you already get a warning in the build log for bbswitch:

2020/01/03 17:57:10 akmodsbuild: + make -j8 -C /usr/src/kernels/5.3.16-300.fc31.x86_64 SUBDIRS=/tmp/akmodsbuild.0kiWMiOq/BUILD/bbswitch-kmod-0.8/_kmod_build_5.3.16-300.fc31.x86_64 modules
2020/01/03 17:57:10 akmodsbuild: make: Entering directory '/usr/src/kernels/5.3.16-300.fc31.x86_64'
2020/01/03 17:57:10 akmodsbuild: Makefile:213: ================= WARNING ================
2020/01/03 17:57:10 akmodsbuild: Makefile:214: 'SUBDIRS' will be removed after Linux 5.3
2020/01/03 17:57:10 akmodsbuild: Makefile:215:
2020/01/03 17:57:10 akmodsbuild: Makefile:216: If you are building an individual subdirectory
2020/01/03 17:57:10 akmodsbuild: Makefile:217: in the kernel tree, you can do like this:
2020/01/03 17:57:10 akmodsbuild: Makefile:218: $ make path/to/dir/you/want/to/build/
2020/01/03 17:57:10 akmodsbuild: Makefile:219: (Do not forget the trailing slash)
2020/01/03 17:57:10 akmodsbuild: Makefile:220:
2020/01/03 17:57:10 akmodsbuild: Makefile:221: If you are building an external module,
2020/01/03 17:57:10 akmodsbuild: Makefile:222: Please use 'M=' or 'KBUILD_EXTMOD' instead
2020/01/03 17:57:10 akmodsbuild: Makefile:223: ==========================================

with kernel 5.4.x you get (strange) errors like so:

2020/01/03 17:34:34 akmodsbuild: + make -j8 -C /usr/src/kernels/5.4.5-300.fc31.x86_64 SUBDIRS=/tmp/akmodsbuild.F7BntqoM/BUILD/bbswitch-kmod-0.8/_kmod_build_5.4.5-300.fc31.x86_64 modules
2020/01/03 17:34:34 akmodsbuild: make: Entering directory '/usr/src/kernels/5.4.5-300.fc31.x86_64'
2020/01/03 17:34:34 akmodsbuild: HOSTCC scripts/basic/fixdep
2020/01/03 17:34:34 akmodsbuild: scripts/basic/fixdep.c:410:1: fatal error: opening dependency file scripts/basic/.fixdep.d: Permission denied
2020/01/03 17:34:34 akmodsbuild: 410 | }
2020/01/03 17:34:34 akmodsbuild: | ^
2020/01/03 17:34:34 akmodsbuild: compilation terminated

Fedora 29 builds

Fedora 29 is going to be released in about a month, currently there are no packages build for F29. The F28 packages still work in F29.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.