Package Details: cockpit-file-sharing 4.3.2-1

Git Clone URL: https://aur.archlinux.org/cockpit-file-sharing.git (read-only, click to copy)
Package Base: cockpit-file-sharing
Description: A Cockpit plugin to easily manage samba and NFS file sharing.
Upstream URL: https://github.com/45Drives/cockpit-file-sharing
Keywords: cockpit cockpit-plugin file filesharing nfs plugin samba
Licenses: GPL-3.0-only
Provides: cockpit-file-sharing
Submitter: brodi1
Maintainer: michael_wzq
Last Packager: michael_wzq
Votes: 10
Popularity: 0.034165
First Submitted: 2022-05-19 14:35 (UTC)
Last Updated: 2025-09-24 01:52 (UTC)

Latest Comments

1 2 3 Next › Last »

foux commented on 2025-10-24 15:08 (UTC) (edited on 2025-10-24 15:09 (UTC) by foux)

Unable to build on a fresh system, be it with yay or via makepkg :

➤ YN0060: │ eslint is listed by your project with version 8.57.1 (p9abcf8), which doesn't satisfy what @vue/eslint-config-typescript and other dependencies request (^9.10.0).
➤ YN0060: │ typescript is listed by your project with version 5.9.2 (p5233f9), which doesn't satisfy what typedoc and other dependencies request (~5.0.0 || ~5.1.0 || ~5.2.0 || ~5.3.0 || ~5.4.0 || ~5.5.0 || ~5.6.0 || ~5.7.0 || ~5.8.0).
➤ YN0002: │ @45drives/houston-common@workspace:houston-common doesn't provide monet (p8e497e), requested by @45drives/houston-common-lib.
➤ YN0002: │ @45drives/houston-common@workspace:houston-common doesn't provide neverthrow (p0ff6f5), requested by @45drives/houston-common-lib.
➤ YN0002: │ file-sharing@workspace:file-sharing doesn't provide prettier (p654f54), requested by @vue/eslint-config-prettier.
➤ YN0086: │ Some peer dependencies are incorrectly met by your project; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code.
➤ YN0086: │ Some peer dependencies are incorrectly met by dependencies; run yarn explain peer-requirements for details.
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 550ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 0s 216ms
➤ YN0000: · Done with warnings in 1s 64ms
yarn --cwd houston-common-ui build
failed to load config from /home/foux/cockpit-file-sharing/src/cockpit-file-sharing/houston-common/houston-common-ui/vite.config.ts
error during build:
TypeError: localStorage.getItem is not a function
    at getTimelineLayersStateFromStorage (file:///home/foux/cockpit-file-sharing/src/cockpit-file-sharing/node_modules/@vue/devtools-kit/dist/index.js:2272:30)
    at initStateFactory (file:///home/foux/cockpit-file-sharing/src/cockpit-file-sharing/node_modules/@vue/devtools-kit/dist/index.js:2565:26)
    at file:///home/foux/cockpit-file-sharing/src/cockpit-file-sharing/node_modules/@vue/devtools-kit/dist/index.js:2569:68
    at ModuleJob.run (node:internal/modules/esm/module_job:377:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:691:26)
    at async loadConfigFromBundledFile (file:///home/foux/cockpit-file-sharing/src/cockpit-file-sharing/houston-common/houston-common-ui/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:49416:15)
    at async bundleAndLoadConfigFile (file:///home/foux/cockpit-file-sharing/src/cockpit-file-sharing/houston-common/houston-common-ui/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:49259:22)
    at async loadConfigFromFile (file:///home/foux/cockpit-file-sharing/src/cockpit-file-sharing/houston-common/houston-common-ui/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:49222:44)
    at async resolveConfig (file:///home/foux/cockpit-file-sharing/src/cockpit-file-sharing/houston-common/houston-common-ui/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:48718:24)
    at async createBuilder (file:///home/foux/cockpit-file-sharing/src/cockpit-file-sharing/houston-common/houston-common-ui/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:46707:18)
ERROR: "build-only" exited with 1.
make[1]: *** [Makefile:20: houston-common-ui/dist/index.js] Error 1
make[1] : on quitte le répertoire « /home/foux/cockpit-file-sharing/src/cockpit-file-sharing/houston-common »
make: *** [Makefile:80: houston-common] Error 2
==> ERREUR : Une erreur s’est produite dans build().
    Abandon…

michael_wzq commented on 2025-08-14 03:36 (UTC)

The package builds both in a clean chroot and with yay

OzzyHelix commented on 2025-08-11 17:55 (UTC)

Please update to Cockpit File Sharing 4.2.13-2 and please fix build issues

OzzyHelix commented on 2025-08-08 23:44 (UTC)

build fails when trying to build with yay and with makepkg -i https://gist.github.com/OzzyHelix/480c642f45d7931d084918203ca55da6

daniel_shub commented on 2025-08-06 18:52 (UTC)

@Lucki have you tried the change to the package function suggested here: https://aur.archlinux.org/packages/cockpit-file-sharing?O=0#comment-1026665

@michael_wzq does this build in a clean chroot for you?

Lucki commented on 2025-08-06 15:02 (UTC)

This fails building.

==> Starting package()...
./bootstrap.sh
+ command -v sponge
+ command -v yarn
+ jq 'del(.packageManager)' ./package.json
+ sponge ./package.json
+ rm .yarnrc.yml .yarn -rf
+ yarn set version stable
cp -af system_files/* /build/cockpit-file-sharing/pkg/cockpit-file-sharing//
Installing file-sharing
Creating install directory
mkdir -p /build/cockpit-file-sharing/pkg/cockpit-file-sharing//usr/share/cockpit/file-sharing
cp: cannot stat 'system_files/*': No such file or directory

make: [Makefile:133: system-files-install] Error 1 (ignored)
Copying files
cp: cannot stat 'file-sharing/dist/*': No such file or directory
/bin/sh: line 3: rsync: command not found
make: *** [Makefile:116: plugin-install-file-sharing] Error 127
make: *** Waiting for unfinished jobs....
➤ YN0000: You don't seem to have Corepack enabled; we'll have to rely on yarnPath instead
➤ YN0000: Downloading https://repo.yarnpkg.com/4.9.2/packages/yarnpkg-cli/bin/yarn.js
➤ YN0000: Saving the new release in .yarn/releases/yarn-4.9.2.cjs
➤ YN0000: Done with warnings in 0s 194ms
+ yarn config set nodeLinker node-modules
➤ YN0000: Successfully set nodeLinker to 'node-modules'
==> ERROR: A failure occurred in package().

noideaman commented on 2025-05-30 02:09 (UTC)

Ok actually figured it out

update package() to this

package() {
  cd "$srcdir/$pkgname" || exit 1
  make DESTDIR="$pkgdir/"
  make DESTDIR="$pkgdir/" install RESTART_COCKPIT=1
}

noideaman commented on 2025-05-30 01:41 (UTC) (edited on 2025-05-30 01:58 (UTC) by noideaman)

Comment out lines 20 and 21

REMOTE_TEST_HOST=192.168.123.5
REMOTE_TEST_USER=root

ok i tried a clean build with it, and it fails

some how running pkgbuild, fail to build, edit makefile, run pkgbuild again works

daniel_shub commented on 2025-05-15 19:59 (UTC)

The package fails to build in a clean chroot because rsync is missing.

@RuneArch this is NOT a cyber security issue. It is trying to call home to a non public IP (192.168.123.5). I am pretty sure it is a bug in the make file (https://github.com/45Drives/cockpit-file-sharing/blob/main/Makefile) where plugin-install- fails at cp -af $/dist/ $(DESTDIR)$(INSTALL_PREFIX)/$*$(INSTALL_SUFFIX) and drops into a remote testing install. That said make files are black magic to me so I have no idea why it is failing or how to fix it.

My guess is it is an Arch issue of how/where the sources are getting unpacked as opposed to upstream, but again it is way over my head.

RuneArch commented on 2025-05-14 07:15 (UTC) (edited on 2025-05-14 07:17 (UTC) by RuneArch)

Not happy seeing this in the logs:

ssh: connect to host 192.168.123.5 port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(232) [sender=3.4.1]

Why would an installation package be attempting to ssh or rsync anything?

Nothing obvious in the PKGBUILD or the .git folder, so I'm presuming that a live downloaded package is attempting this... do we have a cyber security issue here?