From 669601a9da388de17881aeec96575b0804a3e371 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 28 Sep 2017 20:04:29 +0200 Subject: [PATCH 1/2] libftdi1: Add version 1.4 Description [1]: > libFTDI is an open source library to talk to FTDI chips: FT232BM, > FT245BM, FT2232C, FT2232D, FT245R, FT232H and FT230X including the > popular bitbang mode. The library is linked with your program in > userspace, no kernel driver required. > > libFTDI works perfectly with Linux, Windows, MacOS X and BSD variants > thanks to libusb. Create the versionless bee file with the commands below. ``` $ bee init https://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.4.tar.bz2 creating libftdi1-1.4-0.bee from template '/etc/default/bee/templates/fallback' $ git add libftdi1-1.4-0.bee $ git mv libftdi1-1.4-0.bee libftdi1.be0 $ vim libftdi1.be0 ``` [1] https://www.intra2net.com/en/developer/libftdi/index.php --- libftdi1.be0 | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100755 libftdi1.be0 diff --git a/libftdi1.be0 b/libftdi1.be0 new file mode 100755 index 000000000..852c2c365 --- /dev/null +++ b/libftdi1.be0 @@ -0,0 +1,85 @@ +#!/usr/bin/env beesh + +# BEE_VERSION libftdi1-1.4-0 + +## this file was created by bee init and should be executed to build a +## bee-package. (Additional hints are located at the end of this file.) + +############################################################################### +## The source URL(s) define the location of the sources that will be +## downloaded. Version variables may be used to simplify reuse of this bee-file. + +SRCURL[0]="https://www.intra2net.com/en/developer/libftdi/download/libftdi1-${PKGVERSION}.tar.bz2" + +############################################################################### +## Add URLs/pathes to patch files to the PATCHURL array. +## The sources will be patched in the order of the array. + +# PATCHURL+=() + +############################################################################### +## Add filename patterns to the EXCLUDE array of files that should not +## be added to you package but may be present in the image directory. + +# EXCLUDE+=() + +############################################################################### +## Uncomment the next statement, if the software may not be able to be built +## outside the source directory and needs to be built inside the source +## directory. + +# build_in_sourcedir + +############################################################################### +## bee cannot detect buildtypes specified in subdirectories. +## Sometimes packages "hide" the real sources in a subdirectory named +## 'src' or 'cmake' or .. +## use 'sourcesubdir_append' to specify this directory if known. + +# sourcesubdir_append src + + +############################################################################### +## Change the default (auto-detected) steps to +## extract, patch, configure/setup, build and install the software. +## Make sure the mee_install function does install everything to the +## image directory "${D}" + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} +## by default this may be 'make install DESTDIR="${D}"' + +############################################################################### +## +## Additional hints: +## +## The name of this bee-file should follow the following naming convention: +## pkgname-pkgversion-pkgrevision.bee +## +## You may remove all comments as long as SRCURL[0] is set. +## +## Everything in this file will be executed in a bash environment. +## +## Build the package by executing +## './pkg-version-N.bee' or +## 'beesh ./pkg-version-N.bee' +## +## see http://beezinga.org/ +## From 254da39e633a8854102b162024b5274333fb05a6 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 28 Sep 2017 20:11:11 +0200 Subject: [PATCH 2/2] =?UTF-8?q?libftdi1:=20Don=E2=80=99t=20build=20Python?= =?UTF-8?q?=20bindings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` […] Scanning dependencies of target find_all_pp [ 87%] Building CXX object examples/CMakeFiles/find_all_pp.dir/find_all_pp.cpp.o [ 90%] Linking CXX executable find_all_pp [ 90%] Built target find_all_pp [ 92%] Linking CXX executable test_libftdi1 [ 92%] Built target test_libftdi1 [ 92%] Built target doc_i [ 95%] Swig source /dev/shm/bee-root/libftdi1/libftdi1-1.4-0/source/src/ftdi.h:270: Warning 451: Setting a const char * variable may leak memory. /dev/shm/bee-root/libftdi1/libftdi1-1.4-0/source/src/ftdi_i.h:131: Warning 451: Setting a const char * variable may leak memory. Scanning dependencies of target _ftdi1 [ 97%] Building C object python/CMakeFiles/_ftdi1.dir/ftdi1PYTHON_wrap.c.o /dev/shm/bee-root/libftdi1/libftdi1-1.4-0/build/python/ftdi1PYTHON_wrap.c: In function ‘PyInit__ftdi1’: /dev/shm/bee-root/libftdi1/libftdi1-1.4-0/build/python/ftdi1PYTHON_wrap.c:13548:21: warning: variable ‘md’ set but not used [-Wunused-but-set-variable] PyObject *m, *d, *md; ^ [100%] Linking C shared module _ftdi1.so /usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib64/libpython3.3m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib64/libpython3.3m.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status python/CMakeFiles/_ftdi1.dir/build.make:106: recipe for target 'python/_ftdi1.so' failed make[2]: *** [python/_ftdi1.so] Error 1 CMakeFiles/Makefile2:346: recipe for target 'python/CMakeFiles/_ftdi1.dir/all' failed make[1]: *** [python/CMakeFiles/_ftdi1.dir/all] Error 2 Makefile:151: recipe for target 'all' failed make: *** [all] Error 2 ``` --- libftdi1.be0 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libftdi1.be0 b/libftdi1.be0 index 852c2c365..85418330b 100755 --- a/libftdi1.be0 +++ b/libftdi1.be0 @@ -53,9 +53,9 @@ SRCURL[0]="https://www.intra2net.com/en/developer/libftdi/download/libftdi1-${PK # bee_patch "${@}" #} -#mee_configure() { -# bee_configure -#} +mee_configure() { + bee_configure -DPYTHON_BINDINGS=off +} #mee_build() { # bee_build