Your message dated Tue, 10 Nov 2009 13:32:35 +0000
with message-id <e1n7qpn-00027o...@ries.debian.org>
and subject line Bug#555489: fixed in gmediaserver 0.13.0-5
has caused the Debian Bug report #555489,
regarding gmediaserver fails to recognize mp3 files when built against current 
libmagic1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
555489: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=555489
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: gmediaserver
Version: 0.13.0-4
Severity: important
Tags: patch

My UPNP client shows only the directory hierarchy of my music collection, 
but no music tracks at all. If I run 

$ gmediaserver --profile=generic --expire-time=600 --file-types=mp3,m3u,pls  
--file-types=mp3 --verbose=4 /home/roderich/Music 

....
  Scanning directory `/home/roderich/Music/Yo La Tengo'
    Scanning directory `/home/roderich/Music/Yo La Tengo/Summer Sun'
      Found regular file `01. Beach Party Tonight.mp3'
        Matched no type
        Skipping (file type excluded)
      Found regular file `02. Little Eyes.mp3'
        Matched no type
        Skipping (file type excluded)

The reason is that with current libmagic1 magic_file() as called by
gemediaserver returns "audio/mpeg; charset=binary" for these files
(same string as reported by "file -i ..."). But gmediaserver only expects
the "audio/mpeg" part, hence fails to recognize the file type.
Apparently the MAGIC_* flags for magic_open()
changed in newer version of libmagic1 and one should use
MAGIC_MIME_TYPE (instead of MAGIC_MIME) to get the MIME type only.

Patch attached.



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31.5 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gmediaserver depends on:
ii  dpkg                      1.15.4.1       Debian package management system
ii  install-info              4.13a.dfsg.1-5 Manage installed documentation in 
ii  libc6                     2.10.1-6       GNU C Library: Shared libraries
ii  libid3-3.8.3c2a           3.8.3-7.2      Library for manipulating ID3v1 and
ii  libmagic1                 5.03-2         File type determination library us
ii  libtag1c2a                1.6.1-1        TagLib Audio Meta-Data Library
ii  libtagc0                  1.6.1-1        TagLib Audio Meta-Data Library (C 
ii  libupnp3                  1:1.6.6-3      Portable SDK for UPnP Devices (sha
ii  libuuid1                  2.16.1-4       Universally Unique ID library

gmediaserver recommends no packages.

gmediaserver suggests no packages.

-- no debconf information
--- a/src/metadata.c    2009-11-09 20:54:46.000000000 +0100
+++ b/src/metadata.c    2009-11-09 20:56:04.000000000 +0100
@@ -1018,7 +1018,7 @@
 bool
 init_metadata(void)
 {
-    magic_cookie = magic_open(MAGIC_SYMLINK|MAGIC_MIME|MAGIC_ERROR);
+    magic_cookie = magic_open(MAGIC_SYMLINK|MAGIC_MIME_TYPE|MAGIC_ERROR);
     if (magic_cookie == NULL) {
         warn(_("cannot initialize magic library\n"));
         return false;

--- End Message ---
--- Begin Message ---
Source: gmediaserver
Source-Version: 0.13.0-5

We believe that the bug you reported is fixed in the latest version of
gmediaserver, which is due to be installed in the Debian FTP archive:

gmediaserver_0.13.0-5.diff.gz
  to main/g/gmediaserver/gmediaserver_0.13.0-5.diff.gz
gmediaserver_0.13.0-5.dsc
  to main/g/gmediaserver/gmediaserver_0.13.0-5.dsc
gmediaserver_0.13.0-5_sparc.deb
  to main/g/gmediaserver/gmediaserver_0.13.0-5_sparc.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 555...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jochen Friedrich <joc...@scram.de> (supplier of updated gmediaserver package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 10 Nov 2009 13:33:43 +0100
Source: gmediaserver
Binary: gmediaserver
Architecture: source sparc
Version: 0.13.0-5
Distribution: unstable
Urgency: low
Maintainer: Jochen Friedrich <joc...@scram.de>
Changed-By: Jochen Friedrich <joc...@scram.de>
Description: 
 gmediaserver - UPnP Mediaserver
Closes: 555489
Changes: 
 gmediaserver (0.13.0-5) unstable; urgency=low
 .
   * Change flags for libmagic1. (Closes: #555489). Thanks to
     Roderich Schupp <roderich.sch...@googlemail.com> for the patch.
Checksums-Sha1: 
 f26ff022336a429b295005f510c2dde1eb2ccfc0 1182 gmediaserver_0.13.0-5.dsc
 4ea4268053129a9ef95d0bc76bd6a455da94de51 8005 gmediaserver_0.13.0-5.diff.gz
 8dfafd1f6ba43b7589b426f5312f297b89e3a615 109112 gmediaserver_0.13.0-5_sparc.deb
Checksums-Sha256: 
 1894623a6d4231de4b4d1cc22d1c7ad6a93dec749f4ae92789c91607125b0118 1182 
gmediaserver_0.13.0-5.dsc
 b8b0cddba7a418b2e7f7d9961929ab103b0e1239a7ab71f3468298ff00e8306c 8005 
gmediaserver_0.13.0-5.diff.gz
 e48a6e026ce4e01a35c66dc500f1b0691e71885fb4c1aa8f8b8a79e1b810988e 109112 
gmediaserver_0.13.0-5_sparc.deb
Files: 
 d9e7a0beb674f35f4ad4fd2e05e31c9d 1182 net extra gmediaserver_0.13.0-5.dsc
 6c2921678d19f2d679a355c3e7d8644f 8005 net extra gmediaserver_0.13.0-5.diff.gz
 6e43d26828a5225192125598b25f890a 109112 net extra 
gmediaserver_0.13.0-5_sparc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFK+WkS0fhX0Y/ocz0RArQ/AJ9/m97DU/PBEJmFu8VmDjOLja1jYQCeMnLY
Bk2cHrJjv2k4w6xBGGKjAJY=
=Gg28
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to