Search Criteria
Package Details: brscan4 0.4.11_1-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/brscan4.git (read-only, click to copy) |
---|---|
Package Base: | brscan4 |
Description: | SANE drivers from Brother for compatible models |
Upstream URL: | http://support.brother.com |
Keywords: | scanner |
Licenses: | GPL, custom:brother |
Submitter: | Harvey |
Maintainer: | Harvey |
Last Packager: | Harvey |
Votes: | 164 |
Popularity: | 0.062920 |
First Submitted: | 2011-08-01 08:43 (UTC) |
Last Updated: | 2023-03-06 12:56 (UTC) |
Dependencies (2)
- sane (sane-gitAUR)
- gtk2 (gtk2-maemoAUR, gtk2-patched-filechooser-icon-viewAUR) (optional) – for using brscan_gnetconfig
Required by (66)
- brother-dcp-b7500d (optional)
- brother-dcp-j752dw (optional)
- brother-dcp-l2500d (optional)
- brother-dcp1510 (optional)
- brother-dcp1610w (optional)
- brother-dcp1618w (optional)
- brother-dcp7070dw-cups (optional)
- brother-dcp7090dw (optional)
- brother-dcp7180dn (optional)
- brother-dcp9017cdw (optional)
- brother-dcpj525w
- brother-dcpj562dw (optional)
- brother-dcpj572dw (optional)
- brother-dcpj785dw (optional)
- brother-dcpj925dw (optional)
- brother-dcpj987n-cups-bin (optional)
- brother-dcpl2510d (optional)
- brother-dcpl2520dw (optional)
- brother-dcpl2530dw (optional)
- brother-dcpl2535dw (optional)
- Show 46 more...
Latest Comments
« First ‹ Previous 1 .. 9 10 11 12 13 14 15 16 17 18 19 .. 24 Next › Last »
egrupled commented on 2018-07-13 11:59 (UTC)
@ettavolt: You're partially right :)
If the files were simply copied to chroot dir it will work as files can have executable bit (
x
) onnoexec
filesystem - it's just not effective.The problem is that in Archlinux chroot they're
bind
mounted, see https://git.archlinux.org/devtools.git/tree/makechrootpkg.in#n419 . That means original mount point flags likenoexec
are inherited and the build will fail.So in this example mounting
/home
(or/var
or whatever) withnoexec
will even break building in clean chroot (assuming/home
is where you downloaded PKGBUILD). That's why using./some-script
is harmful in PKGBUILD.ettavolt commented on 2018-07-13 05:43 (UTC)
Even if the files are copied from
noexec
FS into clean chroot for that kind of build, they'll miss the flag, won't they?egrupled commented on 2018-07-12 14:55 (UTC) (edited on 2018-07-12 15:08 (UTC) by egrupled)
@ettavolt: It's not about
BUILDDIR
(which is set to/tmp
as default) directory where packages are being built. It's aboutSRCDEST
(which defaults to dir wherePKGBUILD
is stored).If you download
brscan4
snapshot to/home
mounted withnoexec
it will still break building in/tmp
mounted with default flags. That's because files (likemk-udev-rules
) from/home
will be symlinked to/tmp
. That's the essence of this issue.Luckily this problem goes away with a trivial change :)
ettavolt commented on 2018-07-12 14:43 (UTC) (edited on 2018-07-12 14:43 (UTC) by ettavolt)
To quote the wiki:
Particularly,
noexec
on/tmp
is saidAlso, many other packages execute some script as a part of build process.
sane
itself uses a built undistributed binary to write udev rules.egrupled commented on 2018-07-12 14:16 (UTC)
@Harey
Well, I did my best to explain the benefit. Mounting partitions with
noexec
flag is what Arch wiki recommends for security: https://wiki.archlinux.org/index.php/Security#Mount_options . I don't understand why not use my approach which will work always instead of something which can break in a known scenario. I'm modifying this locally for years but I thought it would be beneficial to upstream it to prevent everyone from hitting this issue.Harvey commented on 2018-07-11 11:41 (UTC)
@egrupled: I don't see the benefit for this but you are always free to edit the PKGBUILD to suit your needs before building. Anybody else having the same problem?
egrupled commented on 2018-07-10 16:15 (UTC) (edited on 2018-07-10 16:27 (UTC) by egrupled)
@Harey
Yes, it breaks when you try building the package and the directory where you downloaded sources is mounted with
noexec
flag.In such case executing scripts directly like
./some-script
will fail withpermission denied
.But executing scripts by passing them to interpreter like
bash some-script
,python some-script
orgawk -f some-script
will still work.The script functionality is unchanged so there is no downside of doing this change.
Harvey commented on 2018-07-08 12:41 (UTC)
@egrupled: Could you describe the scenario a bit more and why somebody wants to use it? It breaks only while building the package, right?
egrupled commented on 2018-07-04 15:41 (UTC)
Hi, thx for providing this package!
Could you change in https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=brscan4#n26
to:
Otherwise it breaks when "mk-udev-rules" is cached on mount point with "noexec" flag.
Harvey commented on 2018-07-03 06:25 (UTC)
updated to 0.4.5_1 @ron2138 I changed the upstream URL to something more unspecified because the one you provided did not have the latest updates. Thanks for reporting upstreams - please keep us informed if you get an answer.
« First ‹ Previous 1 .. 9 10 11 12 13 14 15 16 17 18 19 .. 24 Next › Last »