You are not logged in.

#1 2024-09-07 23:55:27

drtebi
Member
Registered: 2013-02-09
Posts: 146

[SOLVED] makepkg cannot execute binaries? Permission errors

Not sure what happened... since my last full update of Arch Linux, I cannot seem to run makepkg anymore without some permission errors.

Here is an example for a very simple program called "ripmime":

$ makepkg -si
==> Making package: ripmime 1:1.4.1.0-1 (Sun 08 Sep 2024 01:45:24 AM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading ripmime-1.4.1.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  170k    0  170k    0     0   217k      0 --:--:-- --:--:-- --:--:--  508k
==> Validating source files with sha256sums...
    ripmime-1.4.1.0.tar.gz ... Passed
==> Extracting sources...
  -> Extracting ripmime-1.4.1.0.tar.gz with bsdtar
==> Starting build()...
./build_tnef
make: ./build_tnef: Permission denied
make: *** [Makefile:52: tnef/tnef.o] Error 127
==> ERROR: A failure occurred in build().
    Aborting...

Permissions on "src/ripMIME-1.4.1.0/build_tnef" are:

-rwxr-xr-x 1 drtebi drtebi     24 Sep 20  2022 build_tnef

and I am drtebi smile and I am confused.

Last edited by drtebi (2024-09-08 16:13:15)

Offline

#2 2024-09-08 00:34:51

loqs
Member
Registered: 2014-03-06
Posts: 17,908

Re: [SOLVED] makepkg cannot execute binaries? Permission errors

What is the output of

findmnt -T src/ripMIME-1.4.1.0/build_tnef

Offline

#3 2024-09-08 16:09:27

drtebi
Member
Registered: 2013-02-09
Posts: 146

Re: [SOLVED] makepkg cannot execute binaries? Permission errors

The output is:

TARGET                 SOURCE    FSTYPE OPTIONS
/home/drtebi/Downloads /dev/sda1 ext4   rw,nosuid,nodev,noexec,noatime

And I think I now what's going on! I recently decided to use a separate disk for my download directory, and from what I can see from the output above, that disk is mounted without exec permissions! I will change that, reboot, and try again.

Thanks for the tip!

Offline

#4 2024-09-08 16:12:55

drtebi
Member
Registered: 2013-02-09
Posts: 146

Re: [SOLVED] makepkg cannot execute binaries? Permission errors

Rebooted with the corrected fstab (added "exec"), and all works fine now.

Again, thank you for your tip!

Offline

Board footer

Powered by FluxBB