Comments (8)
Thanks for the patch!
Could you please submit the patch in "svn diff" (diff -u) format?
Original comment by [email protected]
on 18 Feb 2009 at 3:50
from distcc.
--- /tmp/distcc-read-only/packaging/RedHat/rpm.spec 2009-02-18
10:21:51.000000000 -0500
+++ ./rpm.spec 2009-02-20 13:44:15.000000000 -0500
@@ -85,6 +85,10 @@
%doc %{_mandir}/man1/include_server.1.gz
%doc %{_docdir}
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%dir %{python_sitelib}/include_server
+%{python_sitelib}/include_server/*.pyo
+
%package server
Summary: Server side program for distributed C/C++ compilations.
Original comment by [email protected]
on 20 Feb 2009 at 7:02
from distcc.
Sorry for the slow response.
I tried patching this in and running "make rpm", on an Ubuntu Dapper system,
but I got the following error
bash$ make rpm
...
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
+ /usr/lib/rpm/brp-strip-static-archive
+ /usr/lib/rpm/brp-strip-comment-note
Processing files: distcc-3.1-1
error: File not found by glob:
/var/tmp/distcc-buildroot/usr/lib/python2.4/site-packages/include_server/*.pyo
Processing files: distcc-server-3.1-1
Provides: config(distcc-server) = 3.1-1 distccd
Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(pre): /bin/sh
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires(postun): /bin/sh
Requires: /bin/bash config(distcc-server) = 3.1-1
Obsoletes: crosstool-distcc-server
RPM build errors:
File not found by glob:
/var/tmp/distcc-buildroot/usr/lib/python2.4/site-packages/include_server/*.pyo
Original comment by [email protected]
on 8 Apr 2009 at 6:01
from distcc.
I'm only using distcc on Fedora 10, so I'm unable to test with Ubuntu. It's
possible
that Ubuntu puts things in different places. In any case, I had though Ubuntu
only
used .deb and not .rpm -- is there some reason why Ubuntu would want a rpm?
Original comment by [email protected]
on 27 Apr 2009 at 5:55
from distcc.
The build process for the .deb works by first building a .rpm and then
converting the
.rpm to a .deb file using "alien".
Original comment by [email protected]
on 27 Apr 2009 at 7:00
from distcc.
The patch doesn't work on 64-bit RHEL 5.4 system because
# python -c "from distutils.sysconfig import get_python_lib; print
get_python_lib()"
/usr/lib/python2.4/site-packages
But the files are in /usr/lib64:
RPM build errors:
File not found:
/var/tmp/distcc-buildroot/usr/lib/python2.4/site-packages/include_server
File not found by glob:
/var/tmp/distcc-buildroot/usr/lib/python2.4/site-packages/include_server/*.pyo
Installed (but unpackaged) file(s) found:
/usr/lib64/python2.4/site-packages/include_server/__init__.pyo
/usr/lib64/python2.4/site-packages/include_server/basics.pyo
I don't know enough python to fix this correctly, but obviously this kludge
works:
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%define python_sitelib /usr/lib64/python2.4/site-packages
Original comment by [email protected]
on 3 Jan 2010 at 10:48
from distcc.
You can always do plat_specific to include ``lib64'', like this:
# python -c "from distutils.sysconfig import get_python_lib; print
get_python_lib(plat_specific=True)"
/usr/lib64/python2.4/site-packages
Hint found at:
http://stackoverflow.com/questions/122327/how-do-i-find-the-location-of-my-pytho
n-site-packages-directory/122387#122387
Original comment by [email protected]
on 29 Jul 2011 at 8:29
from distcc.
@fergus
Your error is due to different location of python site-packages(dist-packages)
on Ubuntu Dapper.
However, I wonder if it's necessary to continue to support Dapper or not. On
Ubuntu11, there is no such problem.
There are some useful macros and they can make some statements platform
specific, like below. It works well on my rhel6.2 and ubuntu11.
%if 0%{?rhel} > 5
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print
get_python_lib(plat_specific=True)")}
%dir %{python_sitelib}/include_server
%{python_sitelib}/include_server/*.pyo
%endif
Original comment by [email protected]
on 2 Jul 2012 at 12:39
from distcc.
Related Issues (20)
- Compilation fails under Cygwin HOT 2
- --coverage flag not treated correctly HOT 1
- missing feature: support --coverage to compile remotely HOT 1
- ls HOT 1
- Apparently not getting much parallelism HOT 9
- [deleted issue]
- Include server not covering... HOT 6
- GPL3 encumbrance HOT 9
- disable distcc HOT 3
- unknown translation unit - mips64 compiler HOT 4
- Building with GCC 4.7.3 on x86_32 fails due to warnings in lzo/minilzo.c HOT 3
- Documentation for --random is incomplete
- lsdistcc_1.html Shown as Raw File in Browser HOT 1
- zeroconf hosts have a hardcoded slots value of 4? HOT 2
- OS X Yosemite Compile Fixes
- absence of DISTCC_SSH setting causes exec("ssh") failure HOT 1
- lsdistcc segfaults when called with more than 502 hosts
- [PATCH] SOCKSv5 proxy support HOT 2
- distccd not honoring DISTCC_TCP_CORK=0
- gnome/distccmon-gnome.desktop is not utf-8 encoded file.It is ISO-8859.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distcc.