There is an extra white space in the end of the line:
install -d "${pkgdir}/usr/share/icons"
Git Clone URL: | https://aur.archlinux.org/visual-studio-code-bin.git (read-only, click to copy) |
---|---|
Package Base: | visual-studio-code-bin |
Description: | Visual Studio Code (vscode): Editor for building and debugging modern web and cloud applications (official binary version) |
Upstream URL: | https://code.visualstudio.com/ |
Licenses: | custom: commercial |
Conflicts: | code |
Provides: | code, vscode |
Submitter: | dcelasun |
Maintainer: | dcelasun |
Last Packager: | dcelasun |
Votes: | 1465 |
Popularity: | 14.57 |
First Submitted: | 2017-12-18 19:14 (UTC) |
Last Updated: | 2024-11-15 11:08 (UTC) |
« First ‹ Previous 1 .. 7 8 9 10 11 12 13 14 15 16 17 .. 78 Next › Last »
There is an extra white space in the end of the line:
install -d "${pkgdir}/usr/share/icons"
@DHxchange you need to refresh your pacman db
I tried to install the linked tarball via makepkg -si
, and it failed because the lsof
dependency is no longer available. Accessing web pages via the browser works fine so I doubt this is a network problem on my machine.
$ makepkg -si
==> Making package: visual-studio-code-bin 1.75.1-1 (Tue 14 Feb 2023 19:32:16)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for [user]:
resolving dependencies...
looking for conflicting packages...
Packages (1) lsof-4.96.5-1
Total Download Size: 0.11 MiB
Total Installed Size: 0.20 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
lsof-4.96.5-1-x86_64.pkg.tar.zst failed to download
error: failed retrieving file 'lsof-4.96.5-1-x86_64.pkg.tar.zst' from mirror.2degrees.nz : The requested URL returned error: 404
error: failed retrieving file 'lsof-4.96.5-1-x86_64.pkg.tar.zst' from uvermont.mm.fcix.net : The requested URL returned error: 404
error: failed retrieving file 'lsof-4.96.5-1-x86_64.pkg.tar.zst' from mirrors.sonic.net : The requested URL returned error: 404
error: failed retrieving file 'lsof-4.96.5-1-x86_64.pkg.tar.zst' from mirror.alpix.eu : The requested URL returned error: 404
error: failed retrieving file 'lsof-4.96.5-1-x86_64.pkg.tar.zst' from repo.iut.ac.ir : The requested URL returned error: 404
error: failed retrieving file 'lsof-4.96.5-1-x86_64.pkg.tar.zst' from manjaro.mirror.garr.it : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
-> lsof
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
@friday13 that's a weird error, like your makepkg
is broken for some reason. Try in a clean build directory without any AUR helpers.
Entering fakeroot environment...
/usr/share/makepkg/util/pkgbuild.sh: line 30: declare: `package_visual-studio-code-bin': not a valid identifier
/usr/share/makepkg/util/pkgbuild.sh: line 30: declare: `package_visual-studio-code-bin': not a valid identifier
==> Starting package()...
cp: target '-R': No such file or directory
==> ERROR: A failure occurred in package().
Aborting...
-> error making: visual-studio-code-bin
You need to make sure that /opt/visual-studio-code/chrome-sandbox is owned by root and has mode 4755
Because I run makepkg
as a non-root user, it makes sense that any setuid
binaries in the upstream tarball lose their setuid
status during extraction.
This has been my problem more-or-less since I started using this package. After an update, I have to manually re-run the following command to restore the setuid
bit on the sandbox helper binary:
# chmod 4755 /opt/visual-studio-code/chrome-sandbox
Again, since makepkg
runs as a non-root user, I can't think of a way to resolve this in the PKGBUILD
itself. It might be possible to automate this in a post-install hook, but I've never used that functionality so can't vouch for its effectiveness.
(EDIT: Accidentally pressed tab before pressing enter and posted unfinished comment)
Pinned Comments
dcelasun commented on 2017-11-15 06:20 (UTC) (edited on 2020-02-06 21:33 (UTC) by dcelasun)
FREQUENTLY ASKED QUESTIONS (read before flagging or commenting!)
This is the official binary distribution from Microsoft. The one in the community repo is an unofficial build made from source. Beyond the license difference and branding, there are some proprietary features not available in the open source version.
Please check this page before flagging as out-of-date. If there is no new version on that page, it's not yet released. A tag on Github is NOT a release! If you can see the new version on the updates page but the AUR package is still not updated, flag it and give it time. It's usually done within a day or two.
Sometimes AUR helpers do weird things. Download the tarball and install it manually with
makepkg -si
. If that works, report the problem to your AUR helper's upstream, not here.xdg-open
uses vscode, not my file manager! How do I fix this?Install shared-mime-info-gnome. Also see this reddit thread.
Just because $X is not required to open the app, doesn't mean there is nothing that depends on it. Always search the comment history on AUR to see if that dependency has been previously discussed before writing your own comment. Still nothing? Then use namcap to make sure it's really not needed. If namcap doesn't complain, please leave a comment here and I'll investigate.
The problem might be a packaging issue (wrong paths, dependencies, icons), so please write a comment here first. If you don't get a reply, or if someone says it's an upstream issue, you can report it on Github.
No, you won't get a reply. Please stop doing this. Leave a comment here instead and be patient.