Package Details: r8125-dkms 9.013.02-1

Git Clone URL: https://aur.archlinux.org/r8125-dkms.git (read-only, click to copy)
Package Base: r8125-dkms
Description: Kernel module for RTL8125
Upstream URL: https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software
Licenses: GPL2
Conflicts: r8125
Submitter: ptb
Maintainer: aravance
Last Packager: aravance
Votes: 16
Popularity: 0.63
First Submitted: 2020-11-21 14:53 (UTC)
Last Updated: 2024-04-07 19:01 (UTC)

Dependencies (3)

Required by (0)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4

johntdavis commented on 2021-03-02 18:39 (UTC)

@ptb Thanks! I've deleted my comment. I don't even know how I ended up posting it here.

ptb commented on 2021-03-02 16:33 (UTC)

@johntdavis I don't think you intended to write the comment to this package, sounds more like https://aur.archlinux.org/packages/r8152-dkms/ .

aravance commented on 2020-11-24 16:46 (UTC) (edited on 2020-11-24 18:24 (UTC) by aravance)

I found one more potential bug fiddling with another dkms package (similar comment here: https://aur.archlinux.org/packages/it87-dkms-git). I also updated it to use my own github fork with an explicit release rather than relying on the master branch of ibmibmibm's repo.

According to https://linux.die.net/man/8/dkms

DEST_MODULE_LOCATION[#]=

This directive specifies the destination where a module should be installed to, once compiled. It also is used for finding original_modules. This is a required directive, except as noted below. This directive must start with the text "/kernel" which is in reference to /lib/modules/<kernelversion>/kernel.
...

This git diff will address that:

EDIT: fix a bad reference to master

```diff
index d7de73c..6608080 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
 _pkgname=r8125
 pkgname=${_pkgname}-dkms
 pkgver=9.004.01
-pkgrel=4
+pkgrel=5
 url="https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software"
 pkgdesc="Kernel module for RTL8125"
 license=('GPL2')
@@ -14,14 +14,14 @@ depends=('dkms')
 conflicts=("${_pkgname}")
 optdepends=('linux-headers: Build the module for Arch kernel'
             'linux-lts-headers: Build the module for LTS Arch kernel')
-source=("https://github.com/ibmibmibm/r8125/archive/master.tar.gz" 'dkms.conf')
-sha256sums=('c25ec4ea817bd00108b023afbc19383ea177c042e6ee52c8c386c17615bb9b98'
-            '8a10787ee95ef4279408dc9711c23863926a8e6b9081161b47f56b78b0c54a9f')
+source=("https://github.com/aravance/${_pkgname}/archive/${pkgver}.tar.gz" 'dkms.conf')
+sha256sums=('00ed124510ccf7bcaa6972a2e3ce527c83aa9f6aa35a4d23abbb61b6916f60cb'
+            'ad4c67e0c74661d19b74872f98254184d4b04e32e4c57b338a84fbcefa4c721f')

 package() {
   dir_name="${_pkgname}-${pkgver}"
   install -d "${pkgdir}"/usr/src/${dir_name}/
-  install -Dm644 dkms.conf "${_pkgname}-master"/src/* "${pkgdir}/usr/src/${dir_name}/"
+  install -Dm644 dkms.conf "${_pkgname}-${pkgver}"/src/* "${pkgdir}/usr/src/${dir_name}/"

   sed -e "s/@_PKGNAME@/${_pkgname}/g" \
       -e "s/@PKGVER@/${pkgver}/g" \
diff --git a/dkms.conf b/dkms.conf
index 74b22d8..d6b26d9 100644
--- a/dkms.conf
+++ b/dkms.conf
@@ -3,5 +3,5 @@ PACKAGE_VERSION="@PKGVER@"
 MAKE[0]="make -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build modules"
 CLEAN="make -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build clean"
 BUILT_MODULE_NAME[0]="@_PKGNAME@"
-DEST_MODULE_LOCATION[0]="/extramodules"
+DEST_MODULE_LOCATION[0]="/kernel/drivers/net/ethernet/realtek"
 AUTOINSTALL="yes"

```

aravance commented on 2020-11-23 15:52 (UTC) (edited on 2020-11-23 15:59 (UTC) by aravance)

I have 3 kernels installed, linux, zen, and lts. Whenever it triggers a dkms reinstall, it fails on the first attempt. This is what I did to fix it:

EDIT: I also downloaded the bz2 directly from the realtek website and copied it into the build directory. It could make sense to do it from a git repo instead.

PKGBUILD
_pkgbase=r8125
pkgname=r8125-dkms
pkgver=9.004.01
pkgrel=1
pkgdesc="r8125 kernel driver sources for linux"
depends=('dkms')
makedepends=(sed)
optdepends=('linux-headers: Build the module for Arch kernel'
            'linux-lts-headers: Build the module for LTS Arch kernel'
            'linux-zen-headers: Build the module for ZEN Arch kernel')
provides=("${_pkgbase}")
conflicts=("${_pkgbase}")
arch=('x86_64')
url="https://www.realtek.com/"
license=('GPL2')
source=("$_pkgbase-$pkgver.tar.bz2"
        'dkms.conf')
sha256sums=('6885485e09b5cf9fdb1ae1d1763f095f1c13566b88cde7d120c8c59baadad090'
            'd4efb0d51aa56b9b2c04d91be8d43866506a155965a5437fe458c4221003fd50')

package() {
  install -d "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
  install -Dm644 "${srcdir}"/$_pkgbase-$pkgver/src/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/

  install -Dm644 "${srcdir}"/dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf

  sed -e "s/@_PKGBASE@/${_pkgbase}/" \
      -e "s/@PKGVER@/${pkgver}/" \
      -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
}
dkms.conf
PACKAGE_NAME="@_PKGBASE@"
PACKAGE_VERSION="@PKGVER@"
MAKE[0]="make -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build modules"
CLEAN="make -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build clean"
BUILT_MODULE_NAME[0]="@_PKGBASE@"
DEST_MODULE_LOCATION[0]="/kernel/drivers/net/ethernet/realtek"
AUTOINSTALL="yes"

ptb commented on 2020-11-21 15:30 (UTC)

If somebody has an idea why dkms autoinstall/install needs to be executed twice let me know.