linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Michael Göhler" <visit-rE2GDwZd62U@public.gmane.org>
To: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH] i2c-tools: py-smbus linker issue in arch
Date: Thu, 05 Mar 2015 13:36:51 +0100	[thread overview]
Message-ID: <d2aeb8ce046071b00780df2656945101@myjm.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 178 bytes --]

Hi,

this fixes a linker issue in py-smbus for Arch-Linux 
(https://aur.archlinux.org/packages/python-smbus/) and makes it possible 
to run setup.py independently again.

Thanks!

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: i2c-tools-arch-linker-issue.patch --]
[-- Type: text/x-diff; name=i2c-tools-arch-linker-issue.patch, Size: 901 bytes --]

Index: py-smbus/Module.mk
===================================================================
--- py-smbus/Module.mk	(revision 6277)
+++ py-smbus/Module.mk	(working copy)
@@ -12,7 +12,7 @@
 PYTHON ?= python
 DISTUTILS := \
 	cd $(PY_SMBUS_DIR) && \
-	CPPFLAGS="$(CPPFLAGS) -I../include" LDFLAGS="$(LDFLAGS) -Llib -li2c" $(PYTHON) setup.py
+	$(PYTHON) setup.py
 
 all-python: $(INCLUDE_DIR)/i2c/smbus.h
 	$(DISTUTILS) build
Index: py-smbus/setup.py
===================================================================
--- py-smbus/setup.py	(revision 6277)
+++ py-smbus/setup.py	(working copy)
@@ -11,4 +11,10 @@
 	maintainer_email="linux-i2c@vger.kernel.org",
 	license="GPLv2",
 	url="http://lm-sensors.org/",
-	ext_modules=[Extension("smbus", ["smbusmodule.c"])])
+	ext_modules=[Extension(
+		"smbus",
+		["smbusmodule.c"],
+		extra_compile_args=['-I../include'],
+		extra_link_args=['-li2c']
+	)]
+)

                 reply	other threads:[~2015-03-05 12:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d2aeb8ce046071b00780df2656945101@myjm.de \
    --to=visit-re2gdwzd62u@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).