* [ISSUE] Running vbin copies only part of AppImages
@ 2023-12-26 22:57 WilfSilver
2023-12-27 13:29 ` Johnnynator
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: WilfSilver @ 2023-12-26 22:57 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 3146 bytes --]
New issue by WilfSilver on void-packages repository
https://github.com/void-linux/void-packages/issues/47915
Description:
### Is this a new report?
Yes
### System Info
Void 6.6.8_1 x86_64 GenuineIntel notuptodate rFF
### Package(s) Affected
none
### Does a report exist for this bug with the project's home (upstream) and/or another distro?
_No response_
### Expected behaviour
While trying to learn how to add my own packages in `xbps-src`, I tried setting up a package with an AppImage (in this case `anytype` as I had installed the app image manually before), with part of the install script (see full template in steps to reproduce) being:
```
vbin ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_appimage} anytype
```
I expected this line to copy the AppImage fetched and make it an executable named `anytype`, which then could be run to start the application once properly packaged and installed.
### Actual behaviour
Once installed, and once tried to run I get the output:
```
This doesn't look like a squashfs image.
Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage
if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE
for more information
open dir error: No such file or directory
```
(which is confusing as `fuse` is a dependency and was installed)
After some investigating, I found that running the AppImage from the `hostdir` started the application without issues.
Running:
```
$ ls -al masterdir/destdir/anytype-0.37.0/usr/bin/anytype hostdir/sources/anytype-0.37.0/Anytype-0.37.0.AppImage
.rwxr-xr-x 188k wilf 26 Dec 22:14 masterdir/destdir/anytype-0.37.0/usr/bin/anytype
.rwxr-xr-x 325M wilf 22 Dec 17:11 hostdir/sources/anytype-0.37.0/Anytype-0.37.0.AppImage
```
Shows that the file sizes are different and I can find no documentation on any weird things `xbps-src` might be doing which could be causing this - but definitely could have missed something obvious.
To double check it was just copying incorrectly, I ran `chroot` and manually copied the file over with `cp` and then packaged and installed it (as shown in steps to reproduce). After doing this, it worked just fine.
I have also tried using: `vinstall`, `vcopy` and `cp` in the `do_install` which all had the same effect, so I'm really confused if I'm just blatantly missing something (especially with the `cp` one).
### Steps to reproduce
1. copy configuration from [my test package](https://github.com/WilfSilver/void-packages/commit/af29c46ad9d8e98b8dca2eb24324a0d61bc4f27f)
2. Run:
```sh
./xbps-src pkg Anytype
xi Anytype
anytype # ERROR
```
To successfully install it:
1. copy configuration from [my test package](https://github.com/WilfSilver/void-packages/commit/af29c46ad9d8e98b8dca2eb24324a0d61bc4f27f)
```sh
./xbps-src install Anytype
./xbps-src chroot
$ cp host/sources/Anytype-0.37.0/Anytype-0.37.0.AppImage destdir/Anytype-0.37.0/usr/bin/anytype
$ exit
./xbps-src pkg Anytype
xi Anytype
anytype # success
```
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Running vbin copies only part of AppImages
2023-12-26 22:57 [ISSUE] Running vbin copies only part of AppImages WilfSilver
@ 2023-12-27 13:29 ` Johnnynator
2023-12-27 13:39 ` WilfSilver
2023-12-27 13:39 ` [ISSUE] [CLOSED] " WilfSilver
2 siblings, 0 replies; 4+ messages in thread
From: Johnnynator @ 2023-12-27 13:29 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 307 bytes --]
New comment by Johnnynator on void-packages repository
https://github.com/void-linux/void-packages/issues/47915#issuecomment-1870308746
Comment:
Just a geuess, does stripping the appimage manually break it?
You could try adding `nostrip` (See `Manual.md` / other templates) and see if it might fix this.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Running vbin copies only part of AppImages
2023-12-26 22:57 [ISSUE] Running vbin copies only part of AppImages WilfSilver
2023-12-27 13:29 ` Johnnynator
@ 2023-12-27 13:39 ` WilfSilver
2023-12-27 13:39 ` [ISSUE] [CLOSED] " WilfSilver
2 siblings, 0 replies; 4+ messages in thread
From: WilfSilver @ 2023-12-27 13:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 186 bytes --]
New comment by WilfSilver on void-packages repository
https://github.com/void-linux/void-packages/issues/47915#issuecomment-1870315788
Comment:
Yup thank you! This has fixed the issue
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ISSUE] [CLOSED] Running vbin copies only part of AppImages
2023-12-26 22:57 [ISSUE] Running vbin copies only part of AppImages WilfSilver
2023-12-27 13:29 ` Johnnynator
2023-12-27 13:39 ` WilfSilver
@ 2023-12-27 13:39 ` WilfSilver
2 siblings, 0 replies; 4+ messages in thread
From: WilfSilver @ 2023-12-27 13:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 3149 bytes --]
Closed issue by WilfSilver on void-packages repository
https://github.com/void-linux/void-packages/issues/47915
Description:
### Is this a new report?
Yes
### System Info
Void 6.6.8_1 x86_64 GenuineIntel notuptodate rFF
### Package(s) Affected
none
### Does a report exist for this bug with the project's home (upstream) and/or another distro?
_No response_
### Expected behaviour
While trying to learn how to add my own packages in `xbps-src`, I tried setting up a package with an AppImage (in this case `anytype` as I had installed the app image manually before), with part of the install script (see full template in steps to reproduce) being:
```
vbin ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_appimage} anytype
```
I expected this line to copy the AppImage fetched and make it an executable named `anytype`, which then could be run to start the application once properly packaged and installed.
### Actual behaviour
Once installed, and once tried to run I get the output:
```
This doesn't look like a squashfs image.
Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage
if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE
for more information
open dir error: No such file or directory
```
(which is confusing as `fuse` is a dependency and was installed)
After some investigating, I found that running the AppImage from the `hostdir` started the application without issues.
Running:
```
$ ls -al masterdir/destdir/anytype-0.37.0/usr/bin/anytype hostdir/sources/anytype-0.37.0/Anytype-0.37.0.AppImage
.rwxr-xr-x 188k wilf 26 Dec 22:14 masterdir/destdir/anytype-0.37.0/usr/bin/anytype
.rwxr-xr-x 325M wilf 22 Dec 17:11 hostdir/sources/anytype-0.37.0/Anytype-0.37.0.AppImage
```
Shows that the file sizes are different and I can find no documentation on any weird things `xbps-src` might be doing which could be causing this - but definitely could have missed something obvious.
To double check it was just copying incorrectly, I ran `chroot` and manually copied the file over with `cp` and then packaged and installed it (as shown in steps to reproduce). After doing this, it worked just fine.
I have also tried using: `vinstall`, `vcopy` and `cp` in the `do_install` which all had the same effect, so I'm really confused if I'm just blatantly missing something (especially with the `cp` one).
### Steps to reproduce
1. copy configuration from [my test package](https://github.com/WilfSilver/void-packages/commit/af29c46ad9d8e98b8dca2eb24324a0d61bc4f27f)
2. Run:
```sh
./xbps-src pkg Anytype
xi Anytype
anytype # ERROR
```
To successfully install it:
1. copy configuration from [my test package](https://github.com/WilfSilver/void-packages/commit/af29c46ad9d8e98b8dca2eb24324a0d61bc4f27f)
```sh
./xbps-src install Anytype
./xbps-src chroot
$ cp host/sources/Anytype-0.37.0/Anytype-0.37.0.AppImage destdir/Anytype-0.37.0/usr/bin/anytype
$ exit
./xbps-src pkg Anytype
xi Anytype
anytype # success
```
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-12-27 13:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-26 22:57 [ISSUE] Running vbin copies only part of AppImages WilfSilver
2023-12-27 13:29 ` Johnnynator
2023-12-27 13:39 ` WilfSilver
2023-12-27 13:39 ` [ISSUE] [CLOSED] " WilfSilver
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).