From on@cs.ait.ac.th  Thu May 19 03:12:55 2005
Return-Path: <on@cs.ait.ac.th>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 52CF816A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 May 2005 03:12:55 +0000 (GMT)
Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C3BE443DAC
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 May 2005 03:12:50 +0000 (GMT)
	(envelope-from on@cs.ait.ac.th)
Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5])
	by mail.cs.ait.ac.th (8.12.11/8.12.11) with ESMTP id j4J3CkfH067045
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 May 2005 10:12:46 +0700 (ICT)
Received: (from on@localhost)
	by banyan.cs.ait.ac.th (8.13.1/8.12.11) id j4J3CjiK074074;
	Thu, 19 May 2005 10:12:45 +0700 (ICT)
Message-Id: <200505190312.j4J3CjiK074074@banyan.cs.ait.ac.th>
Date: Thu, 19 May 2005 10:12:45 +0700 (ICT)
From: Olivier Nicole <on@cs.ait.ac.th>
Reply-To: Olivier Nicole <on@cs.ait.ac.th>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: missing magic.h include with libmagic
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         81237
>Category:       kern
>Synopsis:       missing magic.h include with libmagic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 19 03:20:01 GMT 2005
>Closed-Date:    Fri Jul 22 18:42:08 GMT 2005
>Last-Modified:  Fri Jul 22 18:42:08 GMT 2005
>Originator:     Olivier Nicole
>Release:        FreeBSD 5.3-RELEASE-p6 i386; 5.3-RELEASE-p15 i386; 5.3-RELEASE-p14  amd64
>Organization:
Asian Institue of technology
>Environment:
System: FreeBSD .cs.ait.ac.th 5.3-RELEASE-p6 FreeBSD 5.3-RELEASE-p6 #2: Tue Mar 29 10:00:42 ICT 2005 .cs.ait.ac.th:/usr/obj/usr/src/sys/SMALL i386
        FreeBSD cs.ait.ac.th 5.3-RELEASE-p15 FreeBSD 5.3-RELEASE-p15 #2: Fri May 13 12:07:45 ICT 2005     cs.ait.ac.th:/usr/obj/usr/src/sys/GENERIC  i386
        FreeBSD xxx.net 5.3-RELEASE-p14 FreeBSD 5.3-RELEASE-p14 #4: Wed May 11 08:35:02 CEST 2005     xxx.net:/usr/obj/usr/src/sys/OMC  amd64

>Description:
	man libmagic says #include <magic.h>
        but there is no such magic.h in /usr/include

        Among other things, it breaks the port of
/usr/ports/sysutils/pecl-fileinfo/

>How-To-Repeat:
	Any 5.3 that I can see (2 arch and 3 release level)
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-standards->freebsd-bugs 
Responsible-Changed-By: keramida 
Responsible-Changed-When: Thu May 19 10:15:24 GMT 2005 
Responsible-Changed-Why:  
Refile under misc/.  This is not a standards compliance problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81237 
State-Changed-From-To: open->feedback 
State-Changed-By: keramida 
State-Changed-When: Thu May 19 10:16:26 GMT 2005 
State-Changed-Why:  
A fix for this has been committed to RELENG_5 in December 2004, 
after 5.3-RELEASE was out.  Since the "security branches" only 
see security fixes, can you try a newer release (i.e. 5.4 which 
is already out)? 

FWIW, the "fix" is simple enough that you can apply it locally, 
if upgrading is not possible.  The only change needed is in 
/usr/src/lib/libmagic/Makefile and it is: 

%  SRCS=  apprentice.c apptype.c ascmagic.c compress.c fsmagic.c funcs.c  
%         is_tar.c magic.c print.c readelf.c softmagic.c 
% +INCS=  magic.h 
%  
%  MAGICPATH?=    /usr/share/misc 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81237 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Jul 22 18:41:56 GMT 2005 
State-Changed-Why:  
Feedback timeout (2 months). 

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