Opened 12 years ago

Closed 10 years ago

#38606 closed defect (fixed)

py27-cairo: cairo must be installed with +x11 and without +quartz

Reported by: chicagotripp (Altoine Barker) Owned by: seanfarley (Sean Farley)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: nonstop.server@…, cooljeanius (Eric Gallager), tmp32666@…, egon.geerardyn@…, rowue@…, wtmonroe.ls@…, ryandesign (Ryan Carsten Schmidt), majoc-at-astro (majoc-at-astro), Russell-Jones-OxPhys (Russell Jones)
Port: py-cairo

Description

py27-cairo produces the following error message when building:

DEBUG: Executing org.macports.main (py27-cairo)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: archivefetch phase started at Sat Mar 30 08:21:51 CDT 2013
--->  Fetching archive for py27-cairo
DEBUG: Executing proc-pre-org.macports.archivefetch-archivefetch-0
DEBUG: cairo is installed with the following variants: +quartz+x11
DEBUG:   required: x11, forbidden: quartz
DEBUG:   rejected, because forbidden variant quartz is present
Error: org.macports.archivefetch for port py27-cairo returned: cairo must be installed with +x11 and without +quartz.
DEBUG: Error code: NONE
DEBUG: Backtrace: cairo must be installed with +x11 and without +quartz.
    while executing
"$pre $targetname"
Warning: targets not executed for py27-cairo: org.macports.activate org.macports.archivefetch org.macports.fetch org.macports.checksum org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Failed to install py27-cairo
DEBUG: could not read "/opt/local/share/man/man1/pdfunite.1.gz": no such file or directory
    while executing
"::file type $file"
Please see the log file for port py27-cairo for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-cairo/py27-cairo/main.log

Attachments (2)

main.log (1.6 KB) - added by chicagotripp (Altoine Barker) 12 years ago.
macports install kdelibs4 - py27-cairo install error (54.9 MB) - added by wtmonroe.ls@… 10 years ago.

Change History (30)

Changed 12 years ago by chicagotripp (Altoine Barker)

Attachment: main.log added

comment:1 Changed 12 years ago by chicagotripp (Altoine Barker)

Cc: nDiScReEt@… added

Cc Me!

comment:2 Changed 12 years ago by chicagotripp (Altoine Barker)

Cc: nDiScReEt@… removed

Cc Me!

comment:3 Changed 12 years ago by chicagotripp (Altoine Barker)

Cc sean@…

comment:4 Changed 12 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to sean@…
Port: py-cairo added

comment:5 Changed 12 years ago by jmroot (Joshua Root)

Have you tried installing with -x11?

comment:6 in reply to:  5 Changed 12 years ago by chicagotripp (Altoine Barker)

Replying to jmr@…:

Have you tried installing with -x11?

Please, excuse my delay. I had to wait until I was back to my computer. I cleaned all ports:

port clean installed

Then, I uninstalled all ports:

port -fp uninstall installed

Next, I removed macports:

sudo rm -rf     /opt/local     /Applications/DarwinPorts     /Applications/MacPorts     /Library/LaunchDaemons/org.macports.*     /Library/Receipts/DarwinPorts*.pkg     /Library/Receipts/MacPorts*.pkg     /Library/StartupItems/DarwinPortsStartup     /Library/Tcl/darwinports1.0     /Library/Tcl/macports1.0     ~/.macports

I reinstalled and this time installed gimp with the animation and quartz variants. Everything installed this time with little problem. (i.e. gegl was needed by gimp-html-en so I installed that and then cleaned gimp-html-en port tree:

port clean gimp-html-en

This allowed gimp-html-en to install without any errors then I reran my original port command:

port inatll gimp +animation +quartz

Everything installed without incident. I checked cairo with port info and it showed:

cairo @1.12.14_0+quartz+x11 (active)

This was interesting since my original report py27-cairo complained about cairo being installed with both the variants x11 and quartz together. So, I checked py27-cairo with port info and it showed:

py27-cairo @1.10.0_1 (active)

No more problem. I guess this ticket can be closed. I think there is an issue but I believe it to be with base not clearing receipts for some ports when you uninstall and later another port depends on that port and throws up an error. Thank you for your help.

comment:7 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: py27-cairo @1.10.0 Revision 1 won't build +quartzpy27-cairo: cairo must be installed with +x11 and without +quartz

Has duplicate #39297. It's unexpected that py-cairo mandates that "cairo must be installed with +x11 and without +quartz". Why does this requirement exist? Why must cairo's quartz variant be disabled? The cairo port has had no problem installing with both x11 and quartz simultaneously for several years now. It seems like py-cairo should be satisfied that cairo is installed with x11, and not care whether it is also installed with quartz.

comment:8 Changed 11 years ago by nonstop.server@…

Cc: nonstop.server@… added

Cc Me!

comment:9 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:10 Changed 11 years ago by tmp32666@…

Cc: tmp32666@… added

Deleting and re-installing the ports installation is no 'solution' (for me), but it seems to indicate that the problem arises during an upgrade, that is not present in a clean install

Last edited 11 years ago by tmp32666@… (previous) (diff)

comment:11 Changed 11 years ago by egon.geerardyn@…

Cc: egon.geerardyn@… added

Cc Me!

comment:12 Changed 11 years ago by rowue@…

Cc: rowue@… added

Cc Me!

comment:13 Changed 11 years ago by rowue@…

Perhaps the following bits will help:

If my variants.conf read: "-x11 +no_x11 +quartz"

py27-cairo builds fine ....

if it reads: "+no_x11 +quartz"

building of py27-cairo fails ...

I hope this give a clue where to find the error

comment:14 Changed 11 years ago by seanfarley (Sean Farley)

Resolution: worksforme
Status: newclosed

Changed 10 years ago by wtmonroe.ls@…

comment:15 Changed 10 years ago by wtmonroe.ls@…

Hello,

I believe I have encountered the same error that was reported here. From a completely clean install and updated version of macports, I ran the following commands:

sudo port -v install qt4-mac +debug
sudo port -v install qt4-mac-sqlite3-plugin +debug
sudo port -v install kdelibs4 +debug

I got the same error during two attempts (see attached terminal output):

Error: org.macports.archivefetch for port py27-cairo returned: cairo must be installed with +x11 and without +quartz

During a third attempt, I tried modifying /etc/macports/variants.conf to allow the +x11 and +quartz options described in the error (actually, variants.conf had the very same options commented out as an example; I just uncommented them).

FWIW, I was using the steps described in this tutorial: https://projects.kde.org/projects/extragear/graphics/digikam/digikam-software-compilation/repository/revisions/master/entry/README.MACOSX

One of the software (digiKam) maintainers suggested that it might be a problem with macports mirros but I am not sure how to evaluate this. Can anyone advise the steps I can take to resolve or troubleshoot this problem? I've had no troubles using ports on OSX 10.10 until encountering this error.

Thanks,

Will

comment:16 Changed 10 years ago by wtmonroe.ls@…

Resolution: worksforme
Status: closedreopened

comment:17 Changed 10 years ago by wtmonroe.ls@…

Cc: wtmonroe.ls@… added

Cc Me!

comment:18 in reply to:  15 Changed 10 years ago by larryv (Lawrence Velázquez)

Cc: ryandesign@… added

Replying to wtmonroe.ls@…:

I got the same error during two attempts (see attached terminal output):

Error: org.macports.archivefetch for port py27-cairo returned: cairo must be installed with +x11 and without +quartz

I don’t think cairo can be installed with -quartz on OS X anymore.

comment:19 Changed 10 years ago by wtmonroe.ls@…

Thanks for the reply. Can you suggest troubleshooting steps or alternate installation scenarios?

comment:20 Changed 10 years ago by majoc-at-astro (majoc-at-astro)

Cc: majoc@… added

Cc Me!

comment:21 Changed 10 years ago by Russell-Jones-OxPhys (Russell Jones)

Cc: russell.jones@… added

Cc Me!

comment:22 in reply to:  19 Changed 10 years ago by Russell-Jones-OxPhys (Russell Jones)

Replying to wtmonroe.ls@…:

Thanks for the reply. Can you suggest troubleshooting steps or alternate installation scenarios?

Could you attach a main.log? running port cat py27-cairo it's a bit puzzling where "org.macports.archivefetch for port py27-cairo returned: cairo must be installed with +x11 and without +quartz" comes from. There's no explicit conflict that I can see in the Portfile or setup.py.patch.

comment:23 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

We don't need more logs or troubleshooting; the port simply needs to correct its usage of require_active_variants.

comment:24 Changed 10 years ago by Russell-Jones-OxPhys (Russell Jones)

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:25 Changed 10 years ago by wtmonroe.ls@…

Thanks to both of you. Based on the replies, it appears that a log isn't required. Is there anything else I can provide? Also, is the proposed correction pending?

comment:26 Changed 10 years ago by seanfarley (Sean Farley)

I'm finally back online but am putting out other fires right now. If someone else wants to fix this, then feel free to go for it.

comment:27 in reply to:  26 Changed 10 years ago by yarrgk@…

Me too! and also py34-cairo too!

comment:28 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: reopenedclosed

There's no reason to have all that logic. The python module doesn't care what backends cairo is using.

r129111

Note: See TracTickets for help on using tickets.