From nobody@FreeBSD.org  Sun Sep 19 18:55:16 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 850CF106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 19 Sep 2010 18:55:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 74AF88FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 19 Sep 2010 18:55:16 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o8JItGuJ029214
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 19 Sep 2010 18:55:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o8JItGA9029207;
	Sun, 19 Sep 2010 18:55:16 GMT
	(envelope-from nobody)
Message-Id: <201009191855.o8JItGA9029207@www.freebsd.org>
Date: Sun, 19 Sep 2010 18:55:16 GMT
From: kena <kena@vodka-pomme.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [libmagic] magic.mime.mgc not recompiled on system upgrade
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         150735
>Category:       kern
>Synopsis:       [libmagic] magic.mime.mgc not recompiled on system upgrade
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 19 19:00:17 UTC 2010
>Closed-Date:    Mon Sep 20 20:09:31 UTC 2010
>Last-Modified:  Mon Sep 20 20:09:31 UTC 2010
>Originator:     kena
>Release:        8.1-PRERELEASE
>Organization:
>Environment:
FreeBSD fungus.vodka-pomme.net 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #2: Tue Jul 13 19:27:45 CEST 2010     root@fungus.vodka-pomme.net:/scratch/usr/obj/scratch/usr/src/sys/GENERIC  i386
>Description:

The file /usr/share/misc/magic.mime.mgc is a compiled version of /usr/share/misc/magic.mime; when I upgraded the latter through a usual "make installworld"  the former was not re-generated.

Casual inspection of /usr/src/lib/libmagic/Makefile suggests there is no dependency to re-build the .mime version.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: arundel 
State-Changed-When: Mon Sep 20 16:19:26 UTC 2010 
State-Changed-Why:  
Are you sure that the magic.mime.* files are actually part of world? I checked 
using `cat /usr/src/lib/libmagic/Makefile|grep mime` and didn't get a result. 
On my system `ls -la /usr/share/misc|grep magic` returns: 

-r--r--r--   1 root  wheel   536241 15 Sep 23:45 magic 
-r--r--r--   1 root  wheel  1751200 15 Sep 23:45 magic.mgc 

So 'magic' gets compiled (TARGET=magic.mgc) in /usr/src/lib/libmagic/Makefile 
just fine. 
However my src.conf has a lot of entries so maybe i'm wrong and the reason the 
magic.mime.* files don't exist on my system at all is due to a/some src.conf 
entry/entries. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150735 

From: Raphael 'kena' Poss <kena@vodka-pomme.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/150735: [libmagic] magic.mime.mgc not recompiled on system upgrade
Date: Mon, 20 Sep 2010 18:37:42 +0200

 Hi again
 
 my bad, after checking it appears that this is a remnant of v7. In that =
 version  src/contrib/file/Makefile.am was in charge of providing =
 magic.mime and compiling magic.mime.mgc.=20
 
 Any reason why magic.mime was removed in v8? It is useful to a number of =
 web applications.
 
 Thanks
 
 -- k=

From: Raphael 'kena' Poss <kena@vodka-pomme.net>
To: poyopoyo@puripuri.plala.or.jp
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/150735: [libmagic] magic.mime.mgc not recompiled on system	upgrade
Date: Mon, 20 Sep 2010 19:41:18 +0200

 Ok thanks. I guess this PR can be closed then.
 
 -- k
 

From: poyopoyo@puripuri.plala.or.jp
To: Raphael 'kena' Poss <kena@vodka-pomme.net>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/150735: [libmagic] magic.mime.mgc not recompiled on system	upgrade
Date: Tue, 21 Sep 2010 02:35:30 +0900

 At Mon, 20 Sep 2010 17:00:17 GMT,
 Raphael 'kena' Poss wrote:
 >  Any reason why magic.mime was removed in v8? It is useful to a number of
 >  web applications.
 
 So it stopped working for you? I guess it works as before.
 
 Because magic.mime has been inlined into single magic file starting at
 file-4.26 and removed from the source.
 grep mime /usr/share/misc/magic and find all your goodies.
 
 -- 
 kuro
State-Changed-From-To: feedback->analyzed 
State-Changed-By: arundel 
State-Changed-When: Mon Sep 20 19:59:08 UTC 2010 
State-Changed-Why:  
magic.mime.* support was removed in r186693. 
note to originator: please be sure to run `make delete-old` after every 
`make installworld`. `make delete-old` would have informed you that these files 
are obsolete and would have offered to delete them for you. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150735 
State-Changed-From-To: analyzed->closed 
State-Changed-By: arundel 
State-Changed-When: Mon Sep 20 20:09:16 UTC 2010 
State-Changed-Why:  
Not a bug. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150735 
>Unformatted:
