I am writing a spec file for the cisco VPN client module. While I will not build this module on OBS, I am interested in building the project locally as root, as the installation requires filesystem access to the sources ( create a dummy header file and modify another header file , see Logical Shift: Cisco VPN Installation ).
I tried running osc build --userootforbuild , but it does not run the build as root.
Any ideas on how I can run the build as root ( or alternatively, build the cisco VPN module as a non-privileged user ) would be appreciated.
Thanks for the reply. I tried to replicate the script since otherwise compilation fails
make -C /usr/src/linux-obj/x86_64/default SUBDIRS=/usr/src/packages/BUILD/vpnclient modules
make: Entering directory `/usr/src/linux-18.104.22.168-1.2-obj/x86_64/default’
make -C …/…/…/linux-22.214.171.124-1.2 O=/usr/src/linux-126.96.36.199-1.2-obj/x86_64/default/. modules
CC [M] /usr/src/packages/BUILD/vpnclient/linuxcniapi.o
/usr/src/packages/BUILD/vpnclient/linuxcniapi.c:14:28: fatal error: linux/autoconf.h: No such file or directory
That’s one instance where I would like to be able to create an empty file.
Another error requires that I change in netdevice.h from const struct net_device_ops *netdev_ops to just struct net_device_ops *net_device_ops.
I know that this is a very dirty approach, but it’s the only way I know to build the driver.