Giter Site home page Giter Site logo

Incorrect gzip tail about qdk HOT 8 CLOSED

qnap-dev avatar qnap-dev commented on August 22, 2024
Incorrect gzip tail

from qdk.

Comments (8)

fcwu avatar fcwu commented on August 22, 2024 1

@edhongcy

In QDK2, we truncate tailing garbage in https://github.com/qnap-dev/qdk2/blob/master/QDK_2.2/bin/qbuild#L620.

I guess it's relating with @Johnsik problem

from qdk.

edhongcy avatar edhongcy commented on August 22, 2024

Hello Johnsik

1."/bin/tar: Exiting with failure status due to previous errors"
The return value is how to produce.

2."aa" 0.1 installation failed. Data file error.
aa.qpkg is this QDK build?

from qdk.

Johnsik avatar Johnsik commented on August 22, 2024

Hi edhongcy!
TS-419P II with QDK 2.2.13:

qbuild --create-env aa
cd aa
qbuild
sh ./build/aa_0.1.qpkg

result is:

Install QNAP package on TS-NAS...
8+1 records in
8+1 records out
./
./qinstall.sh
./qpkg.cfg
./package_routines
./built_info
0+1 records in
0+1 records out
0+1 records in
0+1 records out
aa 0.1 installation failed. Data file error.
Installation Abort.

Problem is ONLY when I install from terminal. There is no problem in web GUI.

If I comment /bin/rm -fr \$_EXTRACT_DIR && exit $retval in qbuild and after run
/bin/tar xvf /share/HDA_DATA/.qpkg/.tmp/data.tar.gz
I've got:

./
./.gitkeep
./aa.sh

gzip: stdin: decompression OK, trailing garbage ignored
/bin/tar: Child returned status 2
/bin/tar: Exiting with failure status due to previous errors

tar version is 1.22

from qdk.

edhongcy avatar edhongcy commented on August 22, 2024

Hi Johnsik

I hope you can reply to a few questions .It can accelerate to clarify my question .

  1. How you take QDK 2.2.13?
  2. You NAS QDK is upgrade or remove old QDK than install new QDK.

I guess it's NAS QDK incomplete upgrade issue.

from qdk.

edhongcy avatar edhongcy commented on August 22, 2024

@fcwu
Thank you tell me "Truncate" bug in qbuild.
I will fix it in qdk.

from qdk.

Johnsik avatar Johnsik commented on August 22, 2024

@edhongcy

  1. From QPKG Development Guidelines.
  2. Remove old and install new.

Also I have installed Optware-ng. But qbuild include absolute path to utils (like /bin/tar) so it not must be a problem.

UPD. Ups... I'm try to disable Optware-ng and the problem is gone.

from qdk.

Johnsik avatar Johnsik commented on August 22, 2024

data.tar.gz in qpkg isn't fully correct. It contain a trailing garbage.
tar w/o Optware-ng use /bin/gzip from BusyBox that isn't show warning about trailing garbage.
tar with Optware-ng use /opt/bin/gzip that is show warning about trailing garbage.

from qdk.

edhongcy avatar edhongcy commented on August 22, 2024

Hello @Johnsik

I use "cat" data.tar.gz.
[/share/CACHEDEV1_DATA/aa/build] # cat data.tar.gz �����Qo�0����Oq�xX'��@���� T{�&0���,P�j��~�*tR7��N���rv������\�::�" �c��Z3&��F���a��I��bA����[�-���7:�.d�e�z+���c̕˿Y����X������,���G�͉7��'�v{���<^̽�:OE��l�3W���~����Ɯr� ���ԓ�;S^i��G����ZW�ɐ�K��P�����v<��=Zz�]ٖ{O��zqB'�څO?��T�p�]���S�����<]O�9��� q@�6��jq��������V��s�Ҝ�V���z�n|1�&g�r�B��E�Er���8��|mB���Qi�|�V�}l!a!�p����(��i*�9��Ӂ�8N������z4�f�ٴ͙֛�'���9����@����ש������͑�����aD�zTL������A��A��A��A��A��A��A^�O�7ǀ( 1085687375 aa 0.1 QNAPQPKG

I think you say "trailing garbage" is QDK write information " 1085687375 aa 0.1 QNAPQPKG" in end of file.
So that is QNAP deliberately stayed information not issue.

from qdk.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.