g7 / sailfishx-patcher-f5321

Patcher script that applies the f5321 (Xperia X Compact) compatibility layer on top of official Sailfish X f5121 images
29 stars 5 forks source link

Patcher does not work with Sailfish 4.0.1 #19

Closed citronalco closed 3 years ago

citronalco commented 3 years ago
$ vagrant ssh -c "/vagrant/patch.sh -a f5321 -i /vagrant/Sailfish*.zip"
W: You must be root to use this script! Trying with sudo...
I: Unzipping the Sailfish X archive
Archive:  /vagrant/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42.zip
   creating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/Jolla-4.0.1.48-f5121-armv7hl.urls  
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/fastboot.exe  
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/flash.sh  
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/hybris-boot.img  
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/os-release  
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/fastboot.img  
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/hw-release  
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/AdbWinApi.dll  
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/AdbWinUsbApi.dll  
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/md5.lst  
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/hybris-recovery.img  
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/flashing-README.txt  
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/fimage.img001  
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/flash-on-windows.bat  
I: Converting the fimage sparse image to a raw image...
I: Copying the fimage contents
'/tmp/sailfish-image-patcher/tmp.3jto4VbGp1/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/home.img.gz' -> 'patcher-tmp/work/fimage/home.img.gz'
'/tmp/sailfish-image-patcher/tmp.3jto4VbGp1/Sailfish_OS-Jolla-4.0.1.48-f5121-0.2.2.42/root.img.gz' -> 'patcher-tmp/work/fimage/root.img.gz'
I: Uncompressing the contents
I: Copying the Sailfish root contents...
I: Preparing for the patch...
I: Patching the image...
DBus unavailable, falling back to libssu
DBus unavailable, falling back to libssu
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  889k  100  889k    0     0  1616k      0 --:--:-- --:--:-- --:--:-- 1646k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162  100   162    0     0    509      0 --:--:-- --:--:-- --:--:--   524
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162  100   162    0     0    360      0 --:--:-- --:--:-- --:--:--   369
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162  100   162    0     0    627      0 --:--:-- --:--:-- --:--:--   653
error: open of <html> failed: No such file or directory
error: open of <head><title>403 failed: No such file or directory
error: open of Forbidden</title></head> failed: No such file or directory
error: open of <body failed: No such file or directory
error: open of bgcolor=white> failed: No such file or directory
error: open of <center><h1>403 failed: No such file or directory
error: open of Forbidden</h1></center> failed: No such file or directory
error: open of <hr><center>nginx</center> failed: No such file or directory
error: open of </body> failed: No such file or directory
error: open of </html> failed: No such file or directory
error: open of <html> failed: No such file or directory
error: open of <head><title>403 failed: No such file or directory
error: open of Forbidden</title></head> failed: No such file or directory
error: open of <body failed: No such file or directory
error: open of bgcolor=white> failed: No such file or directory
error: open of <center><h1>403 failed: No such file or directory
error: open of Forbidden</h1></center> failed: No such file or directory
error: open of <hr><center>nginx</center> failed: No such file or directory
error: open of </body> failed: No such file or directory
error: open of </html> failed: No such file or directory
error: open of <html> failed: No such file or directory
error: open of <head><title>403 failed: No such file or directory
error: open of Forbidden</title></head> failed: No such file or directory
error: open of <body failed: No such file or directory
error: open of bgcolor=white> failed: No such file or directory
error: open of <center><h1>403 failed: No such file or directory
error: open of Forbidden</h1></center> failed: No such file or directory
error: open of <hr><center>nginx</center> failed: No such file or directory
error: open of </body> failed: No such file or directory
error: open of </html> failed: No such file or directory
/patch.sh: line 32: zypper: not found
/patch.sh: line 33: zypper: not found
/patch.sh: line 37: zypper: not found
DBus unavailable, falling back to libssu
DBus unavailable, falling back to libssu
DBus unavailable, falling back to libssu
DBus unavailable, falling back to libssu
/patch.sh: line 49: rpm-divert: not found
/patch.sh: line 51: rpm-divert: not found
Not running on device, skipping flashing.
/patch.sh: line 58: rpm-divert: not found
/patch.sh: line 60: rpm-divert: not found
DONE!
cp: warning: source file './flash-on-windows.bat' specified more than once
mv: cannot stat 'patcher-tmp/work/tree/tmp/hybris-boot-patched.img': No such file or directory
I: Cleaning up...
Connection to 127.0.0.1 closed.
g7 commented 3 years ago

Hello,

could you try again? Repository seems accessible now - http://repo.merproject.org/obs/home:/eugenio:/compat-f5321/sailfish_latest_armv7hl/ - perhaps was an issue on the OBS side.

citronalco commented 3 years ago

Tried again. Still the same: It still fails to download zypper.

g7 commented 3 years ago

Should work now, thanks for the bug report!

citronalco commented 3 years ago

Works, thanks!