SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.04k stars 1.24k forks source link

homeassistant - wrong requirements-custom.txt.new.new #5690

Closed th0ma7 closed 1 year ago

th0ma7 commented 1 year ago

Is this a new Bug?

Package Name

homeassistant

Package Version

latest

Device Model

blah

Device Architecture

ARMv7

Firmware Version

7.1

What happened?

upgrade to existing install

Reproduction steps

1.
2.
3.
...

Install Log

2023/04/09 13:39:15 ===> Step postinst. STATUS=UPGRADE USER=sc-homeassistant GROUP= SHARE_PATH=
2023/04/09 13:39:15 Begin save_wizard_variables
2023/04/09 13:39:15 End save_wizard_variables
2023/04/09 13:39:15 Begin syno_sync_var_folder
2023/04/09 13:39:15 Install files from var folder
2023/04/09 13:39:15 /bin/rsync -avh --ignore-existing --remove-source-files /volume1/@appstore/homeassistant/var/ /volume1/@appdata/homeassistant
2023/04/09 13:39:15 sending incremental file list
2023/04/09 13:39:15 ./
2023/04/09 13:39:15 sent 113 bytes  received 19 bytes  264.00 bytes/sec
2023/04/09 13:39:15 total size is 593  speedup is 4.49
2023/04/09 13:39:15 /bin/rsync -avh --remove-source-files /volume1/@appstore/homeassistant/var/ /volume1/@appdata/homeassistant
2023/04/09 13:39:15 sending incremental file list
2023/04/09 13:39:15 ./
2023/04/09 13:39:16 requirements-custom.txt.new.new
2023/04/09 13:39:16 sent 762 bytes  received 46 bytes  538.67 bytes/sec
2023/04/09 13:39:16 total size is 593  speedup is 0.73
2023/04/09 13:39:16 End syno_sync_var_folder
2023/04/09 13:39:16 Begin service_postinst
2023/04/09 13:39:16 ====================================================
2023/04/09 13:39:16 Restore pip cache from /volume1/@tmp/synopkg.tmp/homeassistant/pip-cache
2023/04/09 13:39:18 ====================================================

...

2023/04/09 14:24:14 Successfully installed AEMET_OpenData-0.2.1 Authlib-1.2.0 CO2Signal-0.4.2 SecretStorage-3.3.3 WSDiscovery-2.0.0 abodepy-1.2.0 accuweather-0.4.0 adax-0.2.0 adext-0.4.2 adguardhome-0.6.1 advantage_air-0.4.1 aenum-3.1.11 agent_py-0.0.23 aioambient-2021.11.0 aioasuswrt-1.4.0 aioazuredevops-1.3.5 aiocoap-0.4.3 aiodns-3.0.0 aiofiles-22.1.0 aiogithubapi-22.10.1 aiohue-4.5.0 aiosqlite-0.18.0 airly-1.1.0 alarmdecoder-1.13.11 ambiclimate-0.2.1 arcam_fmj-1.0.1 arrow-1.2.3 async-timeout-4.0.2 asyncio_dgram-2.1.2 asyncio_throttle-1.0.2 asyncssh-2.13.0 asyncstdlib-3.10.6 axis-44 backoff-2.2.1 beautifulsoup4-4.11.1 bellows-0.34.6 bimmer_connected-0.12.0 bitstring-4.0.1 bleak-0.20.1 blebox_uniapi-2.1.3 blinkpy-0.19.2 boschshcpy-0.2.35 broadlink-0.18.3 brother-2.1.1 buienradar-1.0.5 cachetools-5.3.0 casttube-0.2.1 chacha20poly1305-reuseable-0.2.2 click-8.1.3 click-log-0.4.0 coloredlogs-15.0.1 colorlog-6.7.0 colorzero-2.0 commentjson-0.9.0 convertdate-2.4.0 crccheck-1.3.0 crcmod-1.7 croniter-1.0.6 cssselect-1.2.0 dacite-1.7.0 dataclasses_json-0.5.3 dateparser-1.1.6 dbus-fast-1.84.2 deepmerge-1.1.0 denonavr-0.10.12 dicttoxml-1.7.16 dicttoxml2-2.1.0 docopt-0.6.2 fjaraskupan-2.2.0 fritzconnection-1.10.3 future-0.18.3 geographiclib-2.0 geojson-2.5.0 geopy-2.3.0 getmac-0.8.2 google_api_core-2.11.0 google_auth-2.16.0 googleapis-common-protos-1.59.0 gpiozero-1.6.2 greeclimate-1.3.0 ha_ffmpeg-3.0.2 haversine-2.7.0 hijri_converter-2.2.4 httpsig-1.3.0 humanfriendly-10.0 importlib-metadata-6.2.1 inflection-0.5.1 intelhex-2.3.0 isodate-0.6.1 jaraco.classes-3.2.3 jeepney-0.8.0 jsonpickle-3.0.1 jsonrpc_async-2.1.1 jsonrpc_base-2.1.1 jsonrpc_websocket-3.1.4 jsonschema-4.17.3 keyring-23.13.1 keyrings.alt-4.2.0 korean_lunar_calendar-0.3.1 lark-parser-0.7.8 loguru-0.6.0 lomond-0.3.3 marshmallow-3.19.0 marshmallow_dataclass-8.5.11 marshmallow_enum-1.5.1 metar-1.9.0 more-itertools-9.1.0 ms_cv-0.1.1 mypy_extensions-0.4.3 natsort-8.3.1 oauthlib-3.2.2 packaging-21.3 pkce-1.0.3 platformdirs-2.6.2 plumbum-1.8.1 ply-3.11 ptyprocess-0.7.0 pubnub-7.1.0 pure-pcapy3-1.0.1 pyMetno-0.9.0 py_canary-0.5.3 py_synologydsm_api-1.0.8 pyairvisual-2022.12.1 pyalmond-0.0.2 pyasn1-modules-0.2.8 pyatag-0.3.5.3 pyatv-0.10.3 pyclimacell-0.18.2 pycountry-22.3.5 pydaikin-2.8.0 pydantic-1.10.2 pyfritzhome-0.6.7 pyialarm-2.2.0 pyicloud-1.0.0 pyipp-0.12.1 pymeeus-0.5.12 pyoctoprintapi-0.1.9 pyownet-0.10.0.post1 pyparsing-3.0.9 pyquery-2.0.0 pyserial_asyncio-0.6 pysiaalarm-3.0.2 pysmb-1.2.9.1 pysnmp-pyasn1-1.1.3 pysnmp-pysmi-1.1.10 pysnmplib-5.0.20 python_engineio-3.14.2 python_izone-1.2.9 python_socketio-4.6.1 python_songpal-0.15.1 pytradfri-9.0.0 pytz-deprecation-shim-0.1.0.post0 pyusb-1.2.1 pywemo-0.9.1 radios-0.1.1 requests_file-1.5.1 requests_oauthlib-1.3.1 semver-2.13.0 soupsieve-2.4 srptools-1.0.1 stringcase-1.2.0 synology_srm-0.2.0 tenacity-8.1.0 tqdm-4.65.0 typing_inspect-0.8.0 tzdata-2023.3 tzlocal-4.2 vincenty-0.1.4 vol-0.1.1 xmltodict-0.13.0 yalexs-1.2.6 zeep-4.2.1 zha_quirks-0.0.90 zigpy-0.53.0 zigpy_deconz-0.19.2 zigpy_xbee-0.16.2 zigpy_zigate-0.10.3 zigpy_znp-0.9.2 zipp-3.15.0

Service Log

No response

Other Logs

No response

th0ma7 commented 1 year ago

@hgy59 something that came accross this morning, the process is expecting to never overwrite original files. Thus in this case it create a .new then a subsequent .new.new at the next upgrade. Question is: did it continued using the originating file when going through the custom requirement file for finalizing the installation?

hgy59 commented 1 year ago

@hgy59 something that came accross this morning, the process is expecting to never overwrite original files. Thus in this case it create a .new then a subsequent .new.new at the next upgrade. Question is: did it continued using the originating file when going through the custom requirement file for finalizing the installation?

@th0ma7 no it does not create subsequent .new.new.new. The file is installed as requirements-custom.txt.new so it does append one additional .new. This should be fixed in the next update.