[MacPorts] #43686: defect: file (libmagic) : runtime failure
#43686: defect: file (libmagic) : runtime failure ----------------------+-------------------------------- Reporter: vergus@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: file ----------------------+-------------------------------- Using the file command provided by the port 'file' has not been working for a while now. It only ever produces runtime errors like the following: {{{ $ file /tmp/testmldbm /tmp/testmldbm: ERROR: line 46: softmagic.c, 481: format `(Hash, version %d, native byte-order)' does not match with `%lu' }}} However, downloading and building the same version source (5.18) works as expected: {{{ $ ./src/file -m magic/magic.mgc /tmp/testmldbm /tmp/testmldbm: Berkeley DB 1.85 (Hash, version 2, native byte-order) }}} As does the older version (5.04) provided by OS X in /usr/bin: {{{ $ /usr/bin/file /tmp/testmldbm /tmp/testmldbm: Berkeley DB 1.85 (Hash, version 2, native byte-order) }}} -- Ticket URL: <https://trac.macports.org/ticket/43686> MacPorts <http://www.macports.org/> Ports system for OS X
#43686: defect: file (libmagic) : runtime failure -----------------------+-------------------------------- Reporter: vergus@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: file | -----------------------+-------------------------------- Comment (by ryandesign@…): I haven't seen any problems with the file port recently (the latest version fixed the regex errors we were seeing before), but perhaps it's specific to this type of file your checking. How do I produce a file like your "testmldbm" to test with? -- Ticket URL: <https://trac.macports.org/ticket/43686#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#43686: defect: file (libmagic) : runtime failure -----------------------+-------------------------------- Reporter: vergus@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: file | -----------------------+-------------------------------- Comment (by dluke@…): I also see this with macports file vs the system provided file on BDB 1.85 hash files (like my local copy of non-macports spamassassin uses). I'm attaching a small test file which was created with the following program: {{{ #!/opt/local/bin/perl use DB_File; my %hash; my $X = tie %hash, 'DB_File', "test_file"; $X->put("foo", "bar"); $X->sync; }}} It also has the same issue: {{{ % /opt/local/bin/file test_file test_file: ERROR: line 46: softmagic.c, 481: format `(Hash, version %d, native byte-order)' does not match with `%lu' % /usr/bin/file test_file test_file: Berkeley DB 1.85 (Hash, version 2, native byte-order) }}} -- Ticket URL: <https://trac.macports.org/ticket/43686#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#43686: libmagic: format `(Hash, version %d, native byte-order)' does not match with `%lu' -----------------------+-------------------------- Reporter: vergus@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: libmagic | -----------------------+-------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (removed) * owner: macports-tickets@… => ryandesign@… * status: new => assigned * port: file => libmagic Comment: The patch I was [comment:ticket:41069:21 asked to apply] to fix some problems in the 5.18 release seems to have introduced this new problem. -- Ticket URL: <https://trac.macports.org/ticket/43686#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#43686: libmagic: format `(Hash, version %d, native byte-order)' does not match with `%lu' -----------------------+-------------------------- Reporter: vergus@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: libmagic | -----------------------+-------------------------- Comment (by vergus@…): file 5.19 was released 3 days ago: ftp://ftp.astron.com/pub/file/ -- Ticket URL: <https://trac.macports.org/ticket/43686#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#43686: libmagic: format `(Hash, version %d, native byte-order)' does not match with `%lu' -----------------------+-------------------------- Reporter: vergus@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: libmagic | -----------------------+-------------------------- Comment (by ryandesign@…): I will update the port when I get a chance but I'm quite busy this week. -- Ticket URL: <https://trac.macports.org/ticket/43686#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#43686: libmagic: format `(Hash, version %d, native byte-order)' does not match with `%lu' -----------------------+-------------------------- Reporter: vergus@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: libmagic | -----------------------+-------------------------- Comment (by mp@…): The added patch solves the issue. Tested on Mavericks. patch-post-518.diff can be removed. -- Ticket URL: <https://trac.macports.org/ticket/43686#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#43686: libmagic: format `(Hash, version %d, native byte-order)' does not match with `%lu' -----------------------+-------------------------- Reporter: vergus@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: libmagic | -----------------------+-------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: Thanks. r122222. -- Ticket URL: <https://trac.macports.org/ticket/43686#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts