Bug 1161023

Summary: Add support for Sereal format
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: fileAssignee: Marek Cermak <macermak>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jkaluza, macermak
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://github.com/Sereal/Sereal/blob/master/sereal_spec.pod#user-content-document-header-format
Whiteboard:
Fixed In Version: file-5.31-8.fc27 file-5.30-8.fc26 file-5.29-7.fc25 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-08 08:06:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Example none

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.