From patchwork Sun Feb 17 17:56:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Shawn J. Goff" X-Patchwork-Id: 221084 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 3C9182C007A for ; Mon, 18 Feb 2013 04:56:23 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3BCD21018DD; Sun, 17 Feb 2013 17:56:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 59w43v0Xbv0b; Sun, 17 Feb 2013 17:56:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5948A1018FD; Sun, 17 Feb 2013 17:56:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 2ED6D8F753 for ; Sun, 17 Feb 2013 17:56:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 03D668C792 for ; Sun, 17 Feb 2013 17:56:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fe2XUnIEJHKS for ; Sun, 17 Feb 2013 17:56:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qa0-f50.google.com (mail-qa0-f50.google.com [209.85.216.50]) by whitealder.osuosl.org (Postfix) with ESMTPS id DC95E8C710 for ; Sun, 17 Feb 2013 17:56:15 +0000 (UTC) Received: by mail-qa0-f50.google.com with SMTP id dx4so968868qab.2 for ; Sun, 17 Feb 2013 09:56:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type; bh=eme54hv8NxjgHe297ljHjn3tkwGRzpGK0iLaGxrFeWU=; b=kdTvhUHYkVnj93meAhiG+ZM/gDrmAmnMhlE34eIhOCcRWoy4R3z2yLSHChc17cgfas SR44r7KNqQvrsOPZzlTE8f2wkJ1yYC0d4DOgZaSJIMICkTb32bBmJFOtidi7fPqi7OgL nFzf1SEHzTjlb31y3rh99QptHm94xLr4aL9yFis5Samnd7oEe6Dua8069sgFh4N4uu50 8aiO0IxNh8L+9kQZxnPJGPwwQPkv5nr9052dzNh8IgR20y3cJm9hqXyaB6sctozOCS82 a3+oyHvacAvAVm2JNh3zlfJKrgiV2DG47gjKuqNtWAJnwvgrRpxIJ7sXxJPMSGj/Nn/4 LsYA== X-Received: by 10.229.244.78 with SMTP id lp14mr777838qcb.114.1361123774416; Sun, 17 Feb 2013 09:56:14 -0800 (PST) Received: from [192.168.1.5] (pool-72-91-106-46.tampfl.fios.verizon.net. [72.91.106.46]) by mx.google.com with ESMTPS id z17sm22597707qem.4.2013.02.17.09.56.12 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 17 Feb 2013 09:56:13 -0800 (PST) Message-ID: <512119BB.9000200@gmail.com> Date: Sun, 17 Feb 2013 12:56:11 -0500 From: "Shawn J. Goff" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130109 Thunderbird/17.0.2 MIME-Version: 1.0 To: Thomas Petazzoni References: <51210E6F.6000504@gmail.com> <20130217183148.2cc7dd92@skate> In-Reply-To: <20130217183148.2cc7dd92@skate> Cc: buildroot@busybox.net Subject: Re: [Buildroot] Adding a ModemManager package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net On 02/17/2013 12:31 PM, Thomas Petazzoni wrote: > Dear Shawn J. Goff, > > On Sun, 17 Feb 2013 12:07:59 -0500, Shawn J. Goff wrote: >> I'm trying to add a ModemManager package. While building, I'm getting >> this error during the installation step: "/usr/lib/libgcc_s.so: file not >> recognized: File format not recognized". This looks like it's looking at >> my host's libgcc_s.so instead of the target's version. If that's the >> case I'm not sure why or how to fix it. I did have to use autogen.sh to >> create the configure script and lots of other stuff; I did this on my >> host system, so I'm not sure if that is affecting it. > Could you post the in-progress patch you have to add the modem-manager > package? This would allow us to check for potential suspicious things > in the .mk file, and if nothing suspicious shows up, to try and > reproduce the issue. > > Thanks! > > Thomas Sure, here's a patch. udev was disabling gudev; for now, I had to remove that part because the default configuration of ModemManager seems to require it. I don't have a patch for the autogen-created files yet. I run make, then go to the build directory and run "NOCONFIGURE=yes ./autogen.sh", then go back and continue running make. From 2698bc2f7531cf00e435df7af254e43a48d4d149 Mon Sep 17 00:00:00 2001 From: "Shawn J. Goff" Date: Sun, 17 Feb 2013 12:52:08 -0500 Subject: [PATCH] ModemManager: initial package addition --- package/Config.in | 1 + package/modem-manager/Config.in | 18 ++++++++++++++++++ package/modem-manager/modem-manager.mk | 17 +++++++++++++++++ package/udev/udev.mk | 3 --- 4 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 package/modem-manager/Config.in create mode 100644 package/modem-manager/modem-manager.mk diff --git a/package/Config.in b/package/Config.in index 4e8fe0f..730f478 100644 --- a/package/Config.in +++ b/package/Config.in @@ -615,6 +615,7 @@ source "package/netplug/Config.in" source "package/netsnmp/Config.in" source "package/netstat-nat/Config.in" source "package/network-manager/Config.in" +source "package/modem-manager/Config.in" source "package/nfacct/Config.in" source "package/noip/Config.in" source "package/ngircd/Config.in" diff --git a/package/modem-manager/Config.in b/package/modem-manager/Config.in new file mode 100644 index 0000000..3df46ca --- /dev/null +++ b/package/modem-manager/Config.in @@ -0,0 +1,18 @@ +config BR2_PACKAGE_MODEM_MANAGER + bool "ModemManager" + depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV + select BR2_PACKAGE_DBUS + depends on BR2_LARGEFILE # acl + depends on BR2_USE_WCHAR # libglib2 and gnutls + depends on BR2_TOOLCHAIN_HAS_THREADS # dbus + depends on BR2_USE_MMU # dbus + select BR2_PACKAGE_DBUS_GLIB + select BR2_PACKAGE_UDEV + select BR2_PACKAGE_UDEV_ALL_EXTRAS + help + ModemManager + http://projects.gnome.org/NetworkManager/ + +comment "ModemManager requires a toolchain with IPV6, LARGEFILE, WCHAR and thread support" + depends on !BR2_INET_IPV6 || !BR2_LARGEFILE || !BR2_USE_WCHAR || \ + !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/modem-manager/modem-manager.mk b/package/modem-manager/modem-manager.mk new file mode 100644 index 0000000..7454584 --- /dev/null +++ b/package/modem-manager/modem-manager.mk @@ -0,0 +1,17 @@ +############################################################# +# +# ModemManager +# +############################################################# +MODEM_MANAGER_VERSION = 0.7.990 +MODEM_MANAGER_SITE = git://anongit.freedesktop.org/ModemManager/ModemManager +MODEM_MANAGER_SITE_METHOD = git +MODEM_MANAGER_INSTALL_STAGING = NO +MODEM_MANAGER_DEPENDENCIES = host-pkgconf udev dbus-glib libqmi + +# uClibc by default doesn't have backtrace support, so don't use it +ifeq ($(BR2_TOOLCHAIN_BUILDROOT)$(BR2_TOOLCHAIN_EXTERNAL_UCLIBC)$(BR2_TOOLCHAIN_CTNG_uClibc),y) +MODEM_MANAGER_CONF_OPT += --disable-crashtrace +endif + +$(eval $(autotools-package)) diff --git a/package/udev/udev.mk b/package/udev/udev.mk index c55db71..d395d4a 100644 --- a/package/udev/udev.mk +++ b/package/udev/udev.mk @@ -30,9 +30,6 @@ ifeq ($(BR2_PACKAGE_UDEV_ALL_EXTRAS),y) UDEV_DEPENDENCIES += acl hwdata libglib2 UDEV_CONF_OPT += \ --enable-udev_acl -else -UDEV_CONF_OPT += \ - --disable-gudev endif ifeq ($(BR2_PACKAGE_SYSTEMD),y) -- 1.8.1.2