Bug 1161023 - Add support for Sereal format
Summary: Add support for Sereal format
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: file
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Marek Cermak
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/Sereal/Sereal/blob...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-06 08:04 UTC by Petr Pisar
Modified: 2017-08-08 08:19 UTC (History)
2 users (show)

Fixed In Version: file-5.31-8.fc27 file-5.30-8.fc26 file-5.29-7.fc25
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-08 08:06:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Example (7 bytes, application/octet-stream)
2014-11-06 13:02 UTC, Petr Pisar
no flags Details

Description Petr Pisar 2014-11-06 08:04:35 UTC
There is a new data format called "Sereal". You can produce a file with the format by this command:

$ perl -MSereal::Encoder -e 'print Sereal::Encoder::encode_sereal({})' | hexdump -C
00000000  3d f3 72 6c 03 00 50                              |=.rl..P|
00000007

The official documentation of the magic string is <https://github.com/Sereal/Sereal/blob/master/sereal_spec.pod#user-content-document-header-format>.

Current file-5.20-2.fc22 does not support the format. Please enhance the file tool to support the Sereal format.

Comment 1 Petr Pisar 2014-11-06 13:02:26 UTC
Created attachment 954432 [details]
Example

This is the output of command. It's the latest version 3 format.

Comment 2 Jan Kaluža 2014-11-06 13:52:35 UTC
Proposed upstream: http://bugs.gw.com/view.php?id=396

Comment 3 Jan Kaluža 2015-07-20 12:15:13 UTC
This is fixed in rawhide by update to file-5.24.

Comment 4 Fedora Admin XMLRPC Client 2016-06-24 10:59:16 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Marek Cermak 2017-08-08 08:06:01 UTC
$ rpm -q file
file-5.31-8.fc27.x86_64
$ file sample.sereal
sample.sereal: Sereal data packet (version 0, uncompressed)

$ rpm -q file
file-5.30-8.fc26.x86_64
$ file sample.sereal
sample.sereal: Sereal data packet (version 0, uncompressed)

$ rpm -q file
file-5.29-7.fc25.x86_64
$ file sample.sereal
sample.sereal: Sereal data packet (version 0, uncompressed)

Comment 6 Petr Pisar 2017-08-08 08:19:33 UTC
Thank you.


Note You need to log in before you can comment on or make changes to this bug.