FreeBSD Bugzilla – Attachment 197485 Details for
Bug 231714
www/py-libsass: fix build with GCC-based architectures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
path
py-libsass.patch (text/plain), 1.73 KB, created by
Piotr Kubaj
on 2018-09-25 12:50:26 UTC
(
hide
)
Description:
path
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2018-09-25 12:50:26 UTC
Size:
1.73 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 480606) >+++ Makefile (working copy) >@@ -13,12 +13,10 @@ > LICENSE= MIT > LICENSE_FILE= ${WRKSRC}/LICENSE > >-BROKEN_powerpc64= fails to compile: cc1plus: error: unrecognized command line option -std=c++0x >- > RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} > LIB_DEPENDS= libsass.so:textproc/libsass > >-USES= localbase python >+USES= compiler:c++11-lang localbase python > USE_PYTHON= autoplist distutils > > MAKE_ENV= SYSTEM_SASS=1 >Index: files/patch-setup.py >=================================================================== >--- files/patch-setup.py (revision 480606) >+++ files/patch-setup.py (working copy) >@@ -1,4 +1,4 @@ >---- setup.py.orig 2017-11-16 05:28:26 UTC >+--- setup.py.orig 2018-09-16 19:57:43 UTC > +++ setup.py > @@ -37,7 +37,7 @@ def _maybe_clang(flags): > compiler.linker_so[0] = os.environ['CXX'] >@@ -5,7 +5,25 @@ > return compiler > distutils.sysconfig.customize_compiler = customize_compiler > - flags[:] = ['-c', '-O3'] + flags + ['-stdlib=libc++'] >-+ flags[:] = ['-c'] + flags + ['-stdlib=libc++'] >++ flags[:] = ['-c'] + flags > > > def _maybe_macos(flags): >+@@ -59,7 +59,7 @@ if system_sass: >+ _maybe_macos(flags) >+ >+ if platform.system() == 'FreeBSD': >+- link_flags = ['-fPIC', '-lc++'] >++ link_flags = ['-fPIC'] >+ else: >+ link_flags = ['-fPIC', '-lstdc++'] >+ libraries = ['sass'] >+@@ -173,7 +173,7 @@ else: >+ f.write(cencode_body) >+ >+ if platform.system() == 'FreeBSD': >+- link_flags = ['-fPIC', '-lc++'] >++ link_flags = ['-fPIC'] >+ else: >+ link_flags = ['-fPIC', '-lstdc++'] >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231714
: 197485