You are not logged in.
Pages: 1
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
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
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
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
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
yes.
+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
Pages: 1