Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 704294 - sci-libs/linux-gpib-modules-4.2.0: multiple sandbox violations (with sys-kernel/vanilla-kernel-5.4?)
Summary: sci-libs/linux-gpib-modules-4.2.0: multiple sandbox violations (with sys-kern...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-30 16:12 UTC by Michał Górny
Modified: 2020-05-06 21:15 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/portage/sci-libs:linux-gpib-modules-4.2.0:20191230-161019.log (sci-libs:linux-gpib-modules-4.2.0:20191230-161019.log,81.39 KB, text/plain)
2019-12-30 16:12 UTC, Michał Górny
Details
ebuild for version 4.3.0 (linux-gpib-modules-4.3.0.ebuild,1.30 KB, text/plain)
2020-04-09 12:03 UTC, Manuel Mommertz
Details
ebuild for linux-gpib-4.3.0 (linux-gpib-4.3.0.ebuild,4.45 KB, text/plain)
2020-04-14 08:52 UTC, Manuel Mommertz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-12-30 16:12:10 UTC
Created attachment 601902 [details]
/var/log/portage/sci-libs:linux-gpib-modules-4.2.0:20191230-161019.log

checking Linux kernel directory... ok
checking Linux kernel compile flags...  * ACCESS DENIED:  fopen_wr:     /usr/src/linux-5.4.6/.281.tmp
 * ACCESS DENIED:  unlinkat:     /usr/src/linux-5.4.6/.281.tmp
rm: cannot remove '.281.tmp': Permission denied
 * ACCESS DENIED:  unlinkat:     /usr/src/linux-5.4.6/.281.o
rm: cannot remove '.281.o': Permission denied
 * ACCESS DENIED:  fopen_wr:     /usr/src/linux-5.4.6/.287.tmp
 * ACCESS DENIED:  unlinkat:     /usr/src/linux-5.4.6/.287.tmp
rm: cannot remove '.287.tmp': Permission denied
 * ACCESS DENIED:  unlinkat:     /usr/src/linux-5.4.6/.287.o

[...]
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2020-01-01 01:31:41 UTC
Weird... I havent seen that yet. Maybe it only pops up with kernel 5.4, I'm still at 5.3 ...
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-01-02 15:20:54 UTC
It might be the weird way configure is calling kernel makefiles.  I've seen that linux-mod.eclass is patching SUBDIR= usage to M= but it didn't seem to help here.  I wonder if I'll have to build a second kernel manually and compare the trees.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-01-03 17:23:02 UTC
I've just unpacked and built 4.2.7 manually, and I reproduce the same problem.

Could you try installing a newer kernel, modpreping it and seeing if you can reproduce it as well?  That would be helpful for confirming that vanilla-kernel isn't being broken here.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-03-06 09:48:58 UTC
This isn't caused by dist-kernel.
Comment 5 Artem 2020-04-04 16:02:11 UTC
I can confirm that for linux-gpib-modules-4.2.0 and linux-5.4.28-gentoo. Changing to working directory and running ./configure manually succeeds.
Comment 6 Manuel Mommertz 2020-04-09 12:03:09 UTC
Created attachment 631600 [details]
ebuild for version 4.3.0

There are some patches in svn to comile against 5.x kernels. I have backported them but cannot get 4.2.0 to compile with sandbox active. However 4.3.0 works. Ebuild is attached. Only problem is that enewgroup does not exists anymore.
Comment 7 Artem 2020-04-09 20:59:29 UTC
It looks like that linux-gpib itself needs exactly same version of linux-gpib-modules, so current latest available 4.2.0 prevents from building 4.3.0.
Comment 8 Manuel Mommertz 2020-04-14 08:52:56 UTC
Created attachment 632746 [details]
ebuild for linux-gpib-4.3.0

Attached is the linux-gpib-4.3.0 ebuild to work together with linux-gpib-modules-4.3.0. I have installed and tested them together with kernel 5.4.28 and three ni-usb-gpib adapters. Works as expected.
Comment 9 Artem 2020-04-15 18:22:18 UTC
(In reply to Manuel Mommertz from comment #8)
> Created attachment 632746 [details]
> ebuild for linux-gpib-4.3.0
> 
> Attached is the linux-gpib-4.3.0 ebuild to work together with
> linux-gpib-modules-4.3.0. I have installed and tested them together with
> kernel 5.4.28 and three ni-usb-gpib adapters. Works as expected.

Thank you! I compiled both linux-gpib and linux-gpib-modules successfully. But the udev rules from the package are missing in /etc/udev/rules.d/ as well as all surrounding hotplug stuff. This does not seem normal.
Comment 10 Manuel Mommertz 2020-04-16 05:49:34 UTC
(In reply to Artem from comment #9)
> But the udev rules from the package are missing in /etc/udev/rules.d/ as
> well as all surrounding hotplug stuff. This does not seem normal.

The udev rules are installed to /lib/udev/rules.d. And the remains of the hotplug script /etc/hotplug/usb/ni_usb_gpib are now in /usr/lib64/udev/gpib_udev_config.

Normally you only need to edit /etc/gpib.conf now.
Comment 11 Artem 2020-04-17 17:41:35 UTC
(In reply to Manuel Mommertz from comment #10)
> The udev rules are installed to /lib/udev/rules.d. And the remains of the
> hotplug script /etc/hotplug/usb/ni_usb_gpib are now in
> /usr/lib64/udev/gpib_udev_config.
> 
> Normally you only need to edit /etc/gpib.conf now.
Thank you for explanation. Any chances to get linux-gpib-*-4.3.0 in the main tree soon?
Comment 12 Andreas K. Hüttel archtester gentoo-dev 2020-04-18 12:49:00 UTC
(In reply to Artem from comment #11)
> (In reply to Manuel Mommertz from comment #10)
> > The udev rules are installed to /lib/udev/rules.d. And the remains of the
> > hotplug script /etc/hotplug/usb/ni_usb_gpib are now in
> > /usr/lib64/udev/gpib_udev_config.
> > 
> > Normally you only need to edit /etc/gpib.conf now.
> Thank you for explanation. Any chances to get linux-gpib-*-4.3.0 in the main
> tree soon?

I'll have a look.  I'm stuck far away from the lab though, so any commits will only be build tested.
Comment 13 Larry the Git Cow gentoo-dev 2020-04-18 14:42:45 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e05e842983aa8cecb476463d1a23b39ef1887531

commit e05e842983aa8cecb476463d1a23b39ef1887531
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2020-04-18 14:16:39 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2020-04-18 14:42:26 +0000

    sci-libs/linux-gpib: Version bump
    
    Bug: https://bugs.gentoo.org/704294
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sci-libs/linux-gpib/Manifest                       |   1 +
 .../linux-gpib/files/linux-gpib-4.3.0-perl.patch   |   9 ++
 sci-libs/linux-gpib/linux-gpib-4.3.0.ebuild        | 179 +++++++++++++++++++++
 3 files changed, 189 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93d5c4ae1b82360f01e2278c83728c1d2be7774e

commit 93d5c4ae1b82360f01e2278c83728c1d2be7774e
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2020-04-18 14:15:37 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2020-04-18 14:42:23 +0000

    sci-libs/linux-gpib-modules: Version bump
    
    Bug: https://bugs.gentoo.org/704294
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sci-libs/linux-gpib-modules/Manifest               |  1 +
 .../files/linux-gpib-modules-4.3.0-kernel53.patch  | 37 ++++++++++
 .../linux-gpib-modules-4.3.0.ebuild                | 79 ++++++++++++++++++++++
 3 files changed, 117 insertions(+)
Comment 14 Manuel Mommertz 2020-04-20 12:25:06 UTC
Just installed linux-gpib(-modules)?-4.3.0 from tree. Devices get readout as expected. Thanks :)
Comment 15 Larry the Git Cow gentoo-dev 2020-05-06 21:15:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb54d95ad0ba8bd5b365e64de36868c4ca3e365e

commit eb54d95ad0ba8bd5b365e64de36868c4ca3e365e
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2020-05-06 20:37:33 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2020-05-06 21:15:18 +0000

    sci-libs/linux-gpib-modules: Stable for amd64
    
    Closes: https://bugs.gentoo.org/704294
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)