Subject: pkg/15972: sylpheed expects to find mime.types, let's give it one...
To: None <gnats-bugs@gnats.netbsd.org>
From: None <lww@eagle.ictech.net>
List: netbsd-bugs
Date: 03/19/2002 16:47:56
>Number:         15972
>Category:       pkg
>Synopsis:       sylpheed expects to find mime.types, let's give it one...
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 19 13:49:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Bill Warner
>Release:        NetBSD 1.5.2
>Organization:
ICTech Internet LLC
>Environment:
System: NetBSD eagle.ictech.net 1.5.2 NetBSD 1.5.2 (GENERIC_LAPTOP) #3: Sat Aug 18 23:43:41 CEST 2001 he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC_LAPTOP i386


>Description:
When processing attachments, sylpheed expects to be able to find a mime.types
file, but the distribution doesn't supply one.  This causes sylpheed to throw
a "cannot find mime.types file" error with some attachments if it can't find
a mime.types file in ${sysconfdir}, /etc, or ~/.sylpheed.
>How-To-Repeat:
Try opening various attachments
>Fix:
This should probably look in some obvious places to see if a mime.types file
already exists on the system before installing one, but then again that may
be more trouble than it's worth, and this works.  I just put a mime.types file
in ${FILESDIR}, and install it in ${PKG_SYSCONFDIR} which is passed to
configure so that sylpheed will find it.

----------------------<snip>-----------------------
diff -crP sylpheed/MESSAGE sylpheed-current/MESSAGE
*** sylpheed/MESSAGE	Wed Dec 31 19:00:00 1969
--- sylpheed-current/MESSAGE	Tue Mar 19 15:51:27 2002
***************
*** 0 ****
--- 1,3 ----
+ Sylpheed uses the ${PKG_SYSCONFDIR}/mime.types file.  You can supplement
+ this by adding additional MIME type definitions to ~/.sylpheed/mime.types in
+ your home directory.
diff -crP sylpheed/Makefile sylpheed-current/Makefile
*** sylpheed/Makefile	Tue Mar 19 16:08:40 2002
--- sylpheed-current/Makefile	Tue Mar 19 16:36:37 2002
***************
*** 1,4 ****
! # $NetBSD: Makefile,v 1.9 2002/03/17 15:14:20 uebayasi Exp $
  
  DISTNAME=		sylpheed-0.7.4
  CATEGORIES=		mail news x11
--- 1,4 ----
! # $NetBSD$
  
  DISTNAME=		sylpheed-0.7.4
  CATEGORIES=		mail news x11
***************
*** 11,16 ****
--- 11,18 ----
  
  BUILD_USES_MSGFMT=	yes
  
+ PKG_SYSCONFSUBDIR?=	sylpheed
+ 
  USE_BUILDLINK_ONLY=	yes
  USE_GMAKE=		yes
  USE_X11BASE=		yes
***************
*** 19,24 ****
--- 21,31 ----
  CONFIGURE_ARGS+=	--enable-ipv6
  CONFIGURE_ARGS+=	--enable-ssl
  CONFIGURE_ARGS+=	--enable-gpgme
+ CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
+ 
+ post-install:
+ 	${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}
+ 	${INSTALL_DATA} ${FILESDIR}/mime.types ${PKG_SYSCONFDIR}
  
  .include "../../security/gpgme/buildlink.mk"
  .include "../../security/openssl/buildlink.mk"
diff -crP sylpheed/PLIST sylpheed-current/PLIST
*** sylpheed/PLIST	Tue Mar 19 16:08:06 2002
--- sylpheed-current/PLIST	Tue Mar 19 16:36:52 2002
***************
*** 1,5 ****
! @comment $NetBSD: PLIST,v 1.2 2002/03/17 15:14:20 uebayasi Exp $
  bin/sylpheed
  share/locale/cs/LC_MESSAGES/sylpheed.mo
  share/locale/da/LC_MESSAGES/sylpheed.mo
  share/locale/de/LC_MESSAGES/sylpheed.mo
--- 1,6 ----
! @comment $NetBSD$
  bin/sylpheed
+ etc/sylpheed/mime.types
  share/locale/cs/LC_MESSAGES/sylpheed.mo
  share/locale/da/LC_MESSAGES/sylpheed.mo
  share/locale/de/LC_MESSAGES/sylpheed.mo
***************
*** 79,81 ****
--- 80,83 ----
  @dirrm share/sylpheed/faq/en
  @dirrm share/sylpheed/faq
  @dirrm share/sylpheed
+ @dirrm etc/sylpheed
diff -crP sylpheed/files/mime.types sylpheed-current/files/mime.types
*** sylpheed/files/mime.types	Wed Dec 31 19:00:00 1969
--- sylpheed-current/files/mime.types	Tue Mar 19 15:51:46 2002
***************
*** 0 ****
--- 1,100 ----
+ # This is a comment. I love comments.
+ 
+ application/activemessage
+ application/andrew-inset
+ application/applefile
+ application/atomicmail
+ application/dca-rft
+ application/dec-dx
+ application/mac-binhex40	hqx
+ application/mac-compactpro	cpt
+ application/macwriteii
+ application/msword		doc
+ application/news-message-id
+ application/news-transmission
+ application/octet-stream	bin dms lha lzh exe class
+ application/oda			oda
+ application/pdf			pdf
+ application/postscript		ai eps ps
+ application/powerpoint		ppt
+ application/remote-printing
+ application/rtf			rtf
+ application/slate
+ application/wita
+ application/wordperfect5.1
+ application/x-bcpio		bcpio
+ application/x-cdlink		vcd
+ application/x-compress
+ application/x-cpio		cpio
+ application/x-csh		csh
+ application/x-director		dcr dir dxr
+ application/x-dvi		dvi
+ application/x-gtar		gtar
+ application/x-gzip
+ application/x-hdf		hdf
+ application/x-koan		skp skd skt skm
+ application/x-latex		latex
+ application/x-mif		mif
+ application/x-netcdf		nc cdf
+ application/x-sh		sh
+ application/x-shar		shar
+ application/x-stuffit		sit
+ application/x-sv4cpio		sv4cpio
+ application/x-sv4crc		sv4crc
+ application/x-tar		tar
+ application/x-tcl		tcl
+ application/x-tex		tex
+ application/x-texinfo		texinfo texi
+ application/x-troff		t tr roff
+ application/x-troff-man		man
+ application/x-troff-me		me
+ application/x-troff-ms		ms
+ application/x-ustar		ustar
+ application/x-wais-source	src
+ application/zip			zip
+ application/x-shockwave-flash	swf cab
+ application/futuresplash	spl
+ audio/basic			au snd
+ audio/midi			mid midi kar
+ audio/mpeg			mpga mp2
+ audio/x-aiff			aif aiff aifc
+ audio/x-pn-realaudio		ram rm ra
+ audio/x-pn-realaudio-plugin	rpm
+ audio/x-realaudio		ra
+ audio/x-wav			wav
+ chemical/x-pdb			pdb xyz
+ image/gif			gif
+ image/ief			ief
+ image/jpeg			jpeg jpg jpe
+ image/png			png
+ image/tiff			tiff tif
+ image/x-cmu-raster		ras
+ image/x-portable-anymap		pnm
+ image/x-portable-bitmap		pbm
+ image/x-portable-graymap	pgm
+ image/x-portable-pixmap		ppm
+ image/x-rgb			rgb
+ image/x-xbitmap			xbm
+ image/x-xpixmap			xpm
+ image/x-xwindowdump		xwd
+ message/external-body
+ message/news
+ message/partial
+ message/rfc822
+ multipart/alternative
+ multipart/appledouble
+ multipart/digest
+ multipart/mixed
+ multipart/parallel
+ text/html			html htm
+ text/plain			txt
+ text/richtext			rtx
+ text/tab-separated-values	tsv
+ text/x-setext			etx
+ text/x-sgml			sgml sgm
+ video/mpeg			mpeg mpg mpe
+ video/quicktime			qt mov
+ video/x-msvideo			avi
+ video/x-sgi-movie		movie
+ x-conference/x-cooltalk		ice
+ x-world/x-vrml			wrl vrml
>Release-Note:
>Audit-Trail:
>Unformatted: