hello
i just installed Packet Tracer from the AUR by following the instructions pinned there and with some help from this forum.
it seems to have installed well and opens up when launching it.(but i haven’t really used it yet)
i got these warnings when installing it:
warning: directory permissions differ on /opt/
filesystem: 755 package: 775
warning: directory permissions differ on /usr/
filesystem: 755 package: 775
warning: directory permissions differ on /usr/share/
filesystem: 755 package: 775
warning: directory permissions differ on /usr/share/applications/
filesystem: 755 package: 775
warning: directory permissions differ on /usr/share/icons/
filesystem: 755 package: 775
warning: directory permissions differ on /usr/share/icons/gnome/
filesystem: 755 package: 775
warning: directory permissions differ on /usr/share/icons/gnome/48x48/
filesystem: 755 package: 775
warning: directory permissions differ on /usr/share/icons/gnome/48x48/mimetypes/
filesystem: 755 package: 775
warning: directory permissions differ on /usr/share/mime/
filesystem: 755 package: 775
warning: directory permissions differ on /usr/share/mime/packages/
filesystem: 755 package: 775
is it “normal”?
should i leave it or-while looking around-i saw that maybe i should do chmod 755 for all these directories?(i saw this suggestion in posts not related to packet tracer,but in general)
oh and i got a ton of errors in journalctl -p 3 -xb
The permissions already are755 in your filesystem. The package is telling you that it wants 775 permissions instead, which is not advisable, as it would allow every process whose user account is a member of the root group to have write permission on those directories.
That’s only the binary, the warning are about directories. The PKGBUILD extracts the files from the .deb and places them without setting any permissions. That means the incorrect permissions were set upstream.
You can add this to the end of the package() function to set the proper directory permissions:
hi Yochanan
-can i do it now after i already ran this PKGBUILD?
-should i,if packet tracer seems to work anyway? (i haven’t really used it yet)
-is the way to do it;is open a terminal and type:
find packettracer -type d -exec chmod -v 0755 {} \;
also how should i uninstall a PKGBUILD;
through pamac,or “pacman -R, -Rs, -Rsn, packettracer” ?
do i even have to uninstall,or can i run the PKGBUILD again and it will sort itself and skip unnecessary/already done steps?
A PKGBUILD is a build script, it just tells makepkg (part of pacman) what to do to create a package.
You don’t need to uninstall anything, just edit the PKGBUILD when prompted during install by pamac or whatever AUR helper you’re using or build it manually.
i already installed Packettracer(and it’s running fine) and that’s when i saw those errors appear,
so i was wondering if i need to uninstall it and build it again with your command included this time,
or just run makepkg -is again with you line included?
Thank you.
i’ll post a comment in the AUR asking about those errors,and provide your solution,
but i don’t see other persons mentioning it a part from two,and one of them is also using manjaro.