From nobody@FreeBSD.org  Sun Dec 24 00:43:41 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 6A6A916A407
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 Dec 2006 00:43:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 46D1613C43A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 Dec 2006 00:43:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kBO0hekT085502
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 24 Dec 2006 00:43:40 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id kBO0he2B085501;
	Sun, 24 Dec 2006 00:43:40 GMT
	(envelope-from nobody)
Message-Id: <200612240043.kBO0he2B085501@www.freebsd.org>
Date: Sun, 24 Dec 2006 00:43:40 GMT
From: Rechistov Grigory<ggg_mail@inbox.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: amarok-1.4.4 doesn't enable MTP support even if it is explicitly turned on
X-Send-Pr-Version: www-3.0

>Number:         107158
>Category:       ports
>Synopsis:       amarok-1.4.4 doesn't enable MTP support even if it is explicitly turned on
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mich
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 24 00:50:15 GMT 2006
>Closed-Date:    Tue Dec 26 15:01:46 GMT 2006
>Last-Modified:  Tue Dec 26 15:10:15 GMT 2006
>Originator:     Rechistov Grigory
>Release:        6.1-RELEASE
>Organization:
>Environment:
FreeBSD ipv82-180.rt.private.mipt.ru 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Wed Jul 12 01:31:04 MSD 2006     GGG@ipv82-180.rt.private.mipt.ru:/usr/obj/usr/src/sys/DELL_v2  i386
>Description:
Last update of port is claiming that it's possible to use MTP with hardware MP3 players and amarok. But in fact no mtp support is enabled during configuring. So no choice of MTP device is given in amarok.
>How-To-Repeat:
Doing next commands as root:

# cd /usr/ports/audio/amarok
# make rmconfig
# make config
<enabling MTP support in menu>
# make

After fetching, unpacking, pathich etc - during "configure" script there are lines in output:

..
checking for libmtp >= 0.0.15... gnome-config: not found
gnome-config: not found
checking for libmtp >= 0.0.12... gnome-config: not found
gnome-config: not found
checking for libmtp < 0.0.12... gnome-config: not found
gnome-config: not found
..

After that "configure" reports:

 ==========================
 ===  Amarok - PLUGINS  ========================================================
 ==========================
 =
 = The following extra functionality will NOT be included:
 =   - NMM-engine
 =   - Helix-engine
 =   - libvisual Support
 =   - XMMS Visualization Wrapper
 =   - MySql Support
 =   - Postgresql Support
 =   - iPod Support
 =   - iRiver iFP Support
 =   - MTP Device Support
 =   - Rio Karma Support
 =
 = The following extra functionality will be included:
 =   + xine-engine
 =   + Konqueror Sidebar
 =   + MusicBrainz Support
 =   + MP4/AAC Tag Write Support
 =   + Creative Nomad Jukebox Support
 =
 ===============================================================================

Good - your configure finished. Start make now

And after that amarok compiles flawlessly, but when it is run no MTP device is present in drop-down list (there are Generic, Nomad etc)

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mich 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Dec 24 00:53:08 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

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

From: =?koi8-r?B?UmVjaGlzdG92IEdyaWdvcnkgKPLF3snT1M/XIOfSycfP0snKKQ==?= <ggg_mail@inbox.ru>
To: bug-followup@freebsd.org, ggg_mail@inbox.ru
Cc:  
Subject: Re: ports/107158: amarok-1.4.4 doesn't enable MTP support even if it is explicitly turned on
Date: Mon, 25 Dec 2006 15:31:02 +0300

 I found the cause of crashing when connecting to device. libmtp  has  
 unsufficient access rights to /dev/ugen0* which is my player. When I  
 changed its owner to current user everything works flawlessly. Gnomad2  
 also works fine now (except the representing of Russian letter, and this  
 is another story)
 
 So there is support of MTP, but one has to assign correct rights to device  
 (in /dev/devfs.rules, I suppose). I think it should be mentioned somewhere  
 in documentation.
 
 Best regadrs, Grigory Rechistov.

From: =?koi8-r?B?UmVjaGlzdG92IEdyaWdvcnkgKPLF3snT1M/XIOfSycfP0snKKQ==?= <ggg_mail@inbox.ru>
To: bug-followup@freebsd.org, ggg_mail@inbox.ru
Cc:  
Subject: Re: ports/107158: amarok-1.4.4 doesn't enable MTP support even if it is explicitly turned on
Date: Mon, 25 Dec 2006 14:28:54 +0300

 Hello!
 
 I've managed to add MTP support in amarok by hacking configure script  =
 
 (bypassing the checking of libmtp presence tests and specifying paths to=
   =
 
 libraries by hand). Now this type of devices is availible in dropdown  =
 
 list. But the application crashes everytime when my Creative Zen  =
 
 MicroPhoto is plugged in when I press "Connect" button. The output in a =
  =
 
 console (when I run "amarokapp", not "amarok")
 
 amarok: BEGIN: virtual bool MtpMediaDevice::openDevice(bool)
 Found non-autodetected device "Creative Zen MicroPhoto" on USB bus...
 Amarok is crashing...
 Running: gdb --nw -n --batch -x /var/tmp/kde-GGG/amaroklMhTXG.tmp  =
 
 amarokapp 75564
 
 warning: Unable to get location for thread creation breakpoint: generic =
  =
 
 error
 /var/tmp/kde-GGG/amaroklMhTXG.tmp:6: Error in sourced command file:
 Previous frame inner to this frame (corrupt stack?)
 Killed: 9
 /usr/home/GGG>Running: file `which amarokapp`
 1.4.4 [NOTstripped][validity: 0.70][frames:  69][xine]
 
 By the way, I ve tried gnomad2 application. It crashes the similar way:
 
 $ gnomad2 -D 15
 ....
 Enter view_and_sort_list_store(2)...
 =3D=3D> NJB_Discover
     =3D=3D> njb_discover
     <=3D=3D njb_discover
 <=3D=3D NJB_Discover
 Found non-autodetected device "Creative Zen MicroPhoto" on USB bus...
 Segmentation fault: 11 (core dumped)
 
 May be this can help to find the bug...
 
 Best regards, GGG.
State-Changed-From-To: open->closed 
State-Changed-By: mich 
State-Changed-When: Tue Dec 26 15:01:02 UTC 2006 
State-Changed-Why:  
I've added a pkg-message, referring to the handbook's usb-disk section. 
Thanks. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/107158: commit references a PR
Date: Tue, 26 Dec 2006 15:01:01 +0000 (UTC)

 mich        2006-12-26 15:00:46 UTC
 
   FreeBSD ports repository
 
   Modified files:
     audio/amarok         Makefile pkg-message 
   Log:
   - add pkg-message explaining user-mount when using iPod and MTP devices
   
   PR:             ports/107158
   Submitted by:   Rechistov Grigory <ggg_mail@inbox.ru>
   
   Revision  Changes    Path
   1.62      +1 -1      ports/audio/amarok/Makefile
   1.4       +5 -3      ports/audio/amarok/pkg-message
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
