You are not logged in.

#1 2015-01-06 18:53:46

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 602

Weird permission error

Hello community,

I just wanted to update one of my AUR packages (https://aur.archlinux.org/packages/geomspace/) and stumbled upon a very strange problem. For some reason the permissions in $srcdir are different from the permissions inside the source archive. Here is how it looks in $srcdir:

$ ls -l /home/photon/PKGBUILDS/geomspace/src/GeomSpace/
insgesamt 36
drwxr-xr-x 3 photon users 4096  4. Jan 16:24 bin
drwxr-xr-x 3 photon users 4096 16. Mär 2014  doc
drwxr-xr-x 4 photon users 4096 16. Mär 2014  extern
drwx------ 2 photon users 4096 16. Mär 2014  i18n
drwx------ 2 photon users 4096  4. Jan 16:24 make
drwxr-xr-x 2 photon users 4096 16. Mär 2014  models
drwx------ 6 photon users 4096 16. Mär 2014  res
drwx------ 6 photon users 4096  4. Jan 16:24 src
drwx------ 2 photon users 4096 16. Mär 2014  tools

And here is how it looks like if I manually extract the source archive:

$ ls -l /home/photon/Desktop/GeomSpace/
insgesamt 36
drwxr-xr-x 2 photon users 4096 16. Mär 2014  bin
drwxr-xr-x 3 photon users 4096  6. Jan 19:43 doc
drwxr-xr-x 4 photon users 4096  6. Jan 19:43 extern
drwxr-xr-x 2 photon users 4096  6. Jan 19:43 i18n
drwxr-xr-x 2 photon users 4096  6. Jan 19:43 make
drwxr-xr-x 2 photon users 4096  6. Jan 19:43 models
drwxr-xr-x 6 photon users 4096  6. Jan 19:43 res
drwxr-xr-x 6 photon users 4096  6. Jan 19:43 src
drwxr-xr-x 2 photon users 4096  6. Jan 19:43 tools

I'm pretty sure that this is some dumb error on my side, because I didn't notice such discrepancies before modifying the package (however I didn't look too closely because I was setting permissions inside $pkgdir through "install -m" and therefore didn't care for permissions in $srcdir). However, now I want to copy whole folders using cp rather than copy single files using install and therefore want to rely on correct permissions in $srcdir which for some mysterious reason fails...

Thanks for any hint,
PhotonX.


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#2 2015-01-10 18:26:23

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: Weird permission error

I'm not sure I true understand your problem.
anyway, how do you extract the source?


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#3 2015-01-10 18:29:23

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: Weird permission error

That's odd...

Well, I do know that permissions for files inside the source tarball you upload must be 644 or 755, so maybe that has something to do with it?


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#4 2015-01-10 19:28:53

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,869
Website

Re: Weird permission error

When you extract the archive manually, are you passing the -p flag to preserve permissions? If you don't, I assume it just uses your umask to determine the permissions of the extracted files.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2015-01-11 07:37:25

PhotonX
Member
From: Munich
Registered: 2008-08-10
Posts: 602

Re: Weird permission error

Actually, I did the manual extraction with file-roller. Which options do I need to pass to tar in Order to preserve the permissions inside the archive? The -p option?


Desktop: http://www.sysprofile.de/id15562, Arch Linux    |    Notebook: Thinkpad L13 Yoga Gen2, Manjaro

The very worst thing you can do with free software is to download it, see that it doesn't work for some reason, leave it, and tell your friends that it doesn't work.  -  Tuomas Lukka

Offline

#6 2015-01-11 08:34:21

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: Weird permission error


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

Board footer

Powered by FluxBB