Package libffi was not found while upgrading to Reviewboard 2.5.16

702 views
Skip to first unread message

Sami

unread,
Oct 23, 2017, 4:19:10 PM10/23/17
to reviewboard-dev
Hello,

I was trying to upgrade from Reviewboard 2.5.6.1 to 2.5.16 and hitting the error below. I tried to install the libffi-devel and have it in my sytem:
rpm -qa | grep libffi
libffi43-devel-4.3.4_20091019-0.37.28
libffi-devel-4.3-62.200.2
libffi43-4.3.4_20091019-0.37.28
 
I tried to set the PKG_CONFIG_PATH as well did not help. Can you please let me know how can I pass this error:



Searching for ReviewBoard
Reading https://pypi.python.org/simple/ReviewBoard/
Best match: ReviewBoard 2.5.16
Downloading https://pypi.python.org/packages/cc/3a/caa3c86633230a4886232f6ecb95e95d4e33eaf0671fe88d6ec29308f139/ReviewBoard-2.5.16-py2.6.egg#md5=ae4506a623e615072dcbd4536273c158
Processing ReviewBoard-2.5.16-py2.6.egg
removing '/usr/local/lib64/python2.6/site-packages/ReviewBoard-2.5.16-py2.6.egg' (and everything under it)
creating /usr/local/lib64/python2.6/site-packages/ReviewBoard-2.5.16-py2.6.egg
Extracting ReviewBoard-2.5.16-py2.6.egg to /usr/local/lib64/python2.6/site-packages
ReviewBoard 2.5.16 is already the active version in easy-install.pth
Installing rbext script to /usr/local/bin
Installing rbssh script to /usr/local/bin
Installing rb-site script to /usr/local/bin

Installed /usr/local/lib64/python2.6/site-packages/ReviewBoard-2.5.16-py2.6.egg
Processing dependencies for ReviewBoard
Searching for cryptography>=1.8.1
Reading https://pypi.python.org/simple/cryptography/
Best match: cryptography 2.1.1
Downloading https://pypi.python.org/packages/bf/da/6a9f49cc7a970380c8235b3adab0c08c7c3d4814876f7383b33e3882a577/cryptography-2.1.1.tar.gz#md5=fa98118b468020349a798776aac6d572
Processing cryptography-2.1.1.tar.gz
Writing /tmp/easy_install-upAX7y/cryptography-2.1.1/setup.cfg
Running cryptography-2.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-upAX7y/cryptography-2.1.1/egg-dist-tmp-7LJdD6
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
compiling '_configtest.c':
__thread int some_threadlocal_variable_42;
compiling '_configtest.c':
int main(void) { __sync_synchronize(); return 0; }

Installed /tmp/easy_install-upAX7y/cryptography-2.1.1/.eggs/cffi-1.11.2-py2.6-linux-x86_64.egg
Searching for pycparser
Reading https://pypi.python.org/simple/pycparser/
Best match: pycparser 2.18
Downloading https://pypi.python.org/packages/8c/2d/aad7f16146f4197a11f8e91fb81df177adcc2073d36a17b1491fd09df6ed/pycparser-2.18.tar.gz#md5=72370da54358202a60130e223d488136
Processing pycparser-2.18.tar.gz
Writing /tmp/easy_install-upAX7y/cryptography-2.1.1/temp/easy_install-pBwgVl/pycparser-2.18/setup.cfg
Running pycparser-2.18/setup.py -q bdist_egg --dist-dir /tmp/easy_install-upAX7y/cryptography-2.1.1/temp/easy_install-pBwgVl/pycparser-2.18/egg-dist-tmp-LUoK2z
warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
warning: no previously-included files matching 'lextab.*' found under directory 'tests'
warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
warning: no previously-included files matching 'lextab.*' found under directory 'examples'
zip_safe flag not set; analyzing archive contents...
pycparser.ply.lex: module references __file__
pycparser.ply.lex: module MAY be using inspect.getsourcefile
pycparser.ply.yacc: module references __file__
pycparser.ply.yacc: module MAY be using inspect.getsourcefile
pycparser.ply.yacc: module MAY be using inspect.stack
pycparser.ply.ygen: module references __file__
creating /tmp/easy_install-upAX7y/cryptography-2.1.1/.eggs/pycparser-2.18-py2.6.egg
Extracting pycparser-2.18-py2.6.egg to /tmp/easy_install-upAX7y/cryptography-2.1.1/.eggs

Installed /tmp/easy_install-upAX7y/cryptography-2.1.1/.eggs/pycparser-2.18-py2.6.egg
error: Setup script exited with error in cryptography setup command: Invalid environment marker: platform_python_implementation != 'PyPy'

Christian Hammond

unread,
Oct 23, 2017, 5:31:33 PM10/23/17
to reviewb...@googlegroups.com
Hi Sami,

Can you run the following in a terminal and show me the output:

    $ pkg-config --libs libffi
    $ rpm -ql libffi-devel
    $ rpm -ql libffi43-devel

Christian

--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

--

---
You received this message because you are subscribed to the Google Groups "reviewboard-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stephen Gallagher

unread,
Oct 23, 2017, 6:06:57 PM10/23/17
to reviewb...@googlegroups.com
Also, if this is RHEL/CentOS 7, you may have an easier time if you use the ReviewBoard package from EPEL
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-d...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "reviewboard-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-d...@googlegroups.com.

Sami

unread,
Oct 23, 2017, 10:07:35 PM10/23/17
to reviewboard-dev
Hi Christian,
Here is the output:
toolsrv2:~ #  pkg-config --libs libffi

Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
toolsrv2:~ # rpm -ql libffi-devel
/usr/share/doc/packages/libffi-devel
/usr/share/doc/packages/libffi-devel/README
toolsrv2:~ # rpm -ql libffi43-devel
/usr/include/ffi.h
/usr/include/ffitarget.h
/usr/lib64/libffi.a
/usr/lib64/libffi.so
toolsrv2:~ #


Also this is SLES 11 SP4
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-d...@googlegroups.com.

Christian Hammond

unread,
Oct 24, 2017, 12:05:59 AM10/24/17
to reviewb...@googlegroups.com
Looks like those libffi development packages don't ship pkg-config files. This might be a packaging issue on SuSE's end, or there might be some other package that's required. I'm not sure, as SuSE is not a common server target for Review Board.

This looks possibly related to https://bugzilla.novell.com/show_bug.cgi?id=657789, which is pretty old.

In general, I'd recommend RHEL, Ubuntu, or CentOS, as those are well-used and tested.

Christian
--

Sami

unread,
Oct 24, 2017, 2:29:13 PM10/24/17
to reviewboard-dev
Hi Christian,

We have been using SuSE for last 2 years and moving to another OS would be a lot of work at this point. I also did not have any issue on previous upgrades.

 Do we need cryptography 2.1.1 for reviewboard? Seems I am hitting it when it is trying to install cryptography 2.1.1.

Regards

Christian Hammond

unread,
Oct 24, 2017, 2:32:56 PM10/24/17
to reviewb...@googlegroups.com
cryptography is an absolute requirement. The reason for the dependency change is that PyCrypto (which we were previously using) was no longer maintained and security issues were no longer being fixed. The cryptography package is the de facto standard in the Python world these days, required by a lot of software, and now by Review Board as well.

In the end, the problem you're hitting appears very much to be a SuSE packaging issue. If you have an enterprise contract, it might be worth reaching out to them about what's going on with the missing pkg-config entries.

Alternatively, you could craft a custom one. Here's one I have from an Ubuntu install. You'd have to alter paths and the version appropriately.

$ cat /usr/lib64/pkgconfig/libffi.pc
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib64
includedir=/usr/include

Name: libffi
Description: Library supporting Foreign Function Interfaces
Version: 3.0.13
Libs: -L${libdir} -lffi
Cflags: -I${includedir}


- Christian


To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages