Package Details: etherlab-ethercat 1.6.7-6

Git Clone URL: https://aur.archlinux.org/etherlab-ethercat.git (read-only, click to copy)
Package Base: etherlab-ethercat
Description: Kernel modules for IgH EtherCAT(R) Master component
Upstream URL: https://etherlab.org
Keywords: ethercat fieldbus
Licenses: GPL-2.0-only
Submitter: entidi
Maintainer: entidi (micwoj92)
Last Packager: entidi
Votes: 2
Popularity: 0.000820
First Submitted: 2021-04-07 21:50 (UTC)
Last Updated: 2025-09-26 09:37 (UTC)

Latest Comments

1 2 Next › Last »

micwoj92 commented on 2025-09-27 01:07 (UTC)

Thanks for fix. On my normal system it also built fine, I only encounted this issue in chroot.

entidi commented on 2025-09-26 09:41 (UTC)

Sorry about that: I'm unable to replicate but I'm not in a clean environment, so I suspect the linux-headers dependency is not installed before the build.

Please, could you try the last PKGBUILD (etherlab-ethercat-1.6.7-6)? In 133acc3dedda I moved that dependency to the root makedepends.

micwoj92 commented on 2025-09-25 22:11 (UTC)

When trying to build in clean chroot this fails with

checking whether to build kernel modules... yes

configure: error: Failed to find Linux sources. Use --with-linux-dir!
==> ERROR: A failure occurred in build().
    Aborting...

entidi commented on 2025-09-25 06:18 (UTC)

I split the dkms version on its own package (etherlab-ethercat-dkms). This simplifies a lot the PKGBUILD code.

entidi commented on 2025-09-15 10:10 (UTC) (edited on 2025-09-15 10:10 (UTC) by entidi)

That explains it: linux-zen-headers installs the headers under /usr/src/linux-zen, so the if branch fails.

For non-standard headers or dynamic module autoupdate, please use etherlab-ethercat-dkms instead. In short:

etherlab-ethercat = modules bound to current kernel under /usr/src/linux
etherlab-ethercat-dkms = modules dynamically built via dkms

taotieren commented on 2025-09-15 09:50 (UTC)

I am using the devtools environment for compilation. I am using linux-zen-headers. I attempted to add the linux-zen-headers compilation dependency to etherlab-ethercat.

entidi commented on 2025-09-12 15:09 (UTC)

No idea what's happening there... etherlab-ethercat requires linux-headers so the if test -d /usr/src/linux branch in build() must succeed and the configure script should be called with --with-linux-dir=/usr/src/linux and that should be enough to define LINUX_SOURCE_DIR (later used by Makefile.kbuild as make -C ...).

Are you using some non-standard linux-headers package that does not create /usr/src/linux?

taotieren commented on 2025-09-12 14:34 (UTC)

Compilation error. Could you please help fix it? Thank you.

...
make[2]: Leaving directory '/build/etherlab-ethercat/src/ethercat-1.6.7/examples'
make[1]: Leaving directory '/build/etherlab-ethercat/src/ethercat-1.6.7/examples'
make[1]: Entering directory '/build/etherlab-ethercat/src/ethercat-1.6.7'
make[1]: Leaving directory '/build/etherlab-ethercat/src/ethercat-1.6.7'
==> Entering fakeroot environment...
==> Starting package_etherlab-ethercat()...
make -C "" M="/build/etherlab-ethercat/src/ethercat-1.6.7" INSTALL_MOD_DIR="ethercat" modules_install
make: the '-C' option requires a non-empty string argument
Usage: make [options] [target] ...

micwoj92 commented on 2024-10-08 17:20 (UTC)

AUR packages should comply with guidelines. If there are kernel modules packaged, then they should be version agnostic.

That being said, would you accept patch for this package if I made one? Because I don't think it makes sense to create new package for this.

entidi commented on 2024-10-08 15:20 (UTC)

@micwoj92: for my usecase, dkms is just a new burden I don't want to learn. You are of course free to fork your own -dkms version.