reinstalling Macports
Due to the numerous failures I had in my upgrade outdated followed by failure to install py36-jupyter, py36-spyder and py36-gnureadline, I decided to uninstall Macports following the ”migration” webpage which ends up with : curl --location --remote-name https://github.com/macports/macports-contrib/raw/master/restore_ports/restore_ports.tcl chmod +x restore_ports.tcl sudo ./restore_ports.tcl myports.txt Despite this indepth cleaning, installation still fails at some point : ---> Activating xorg-xproto @7.0.31_0 Error: Failed to activate xorg-xproto: Image error: /opt/local/include/X11/X.h is being used by the active tk port. Please deactivate this port first, or use 'port -f activate xorg-xproto' to force the activation. The log is attached (compressed… otherwise above 500 kb) Should I force activation and relaunch the .restore_ports.tcl or should I totally erase the /opt/local branch, reinstall Macports and launch the restore_ports.tcl or will the later fail because everything has been erased ? Or did it fail because I run XEmacs (from opt/local/bin/xemacs) in parallel ? I need some explanations! Thanks. L. main.log.gz Description: GNU Zip compressed data
Re: reinstalling Macports
On Apr 17, 2018, at 06:08, pagani laurent wrote: > ---> Activating xorg-xproto @7.0.31_0 > Error: Failed to activate xorg-xproto: Image error: > /opt/local/include/X11/X.h is being used by the active tk port. Please > deactivate this port first, or use 'port -f activate xorg-xproto' to force > the activation. > > The log is attached (compressed… otherwise above 500 kb) > Should I force activation and relaunch the .restore_ports.tcl or should I > totally erase the /opt/local branch, reinstall Macports and launch the > restore_ports.tcl or will the later fail because everything has been erased ? > Or did it fail because I run XEmacs (from opt/local/bin/xemacs) in parallel ? You should not force the activation. Since we don't yet know why this problem happened for you, uninstalling and reinstalling MacPorts again might result in the same problem again, so I would not recommend doing that at this point. tk should not provide /opt/local/include/X11/X.h. What else does it provide that it should not? What's the output of: port contents tk If we could see the log of the tk build, that might help us understand why it is providing files it should not, but unfortunately, MacPorts automatically removes the logs of builds it considers successful.
Re: reinstalling Macports
/mann/tkerror.n.gz /opt/local/share/man/mann/tkwait.n.gz /opt/local/share/man/mann/toplevel.n.gz /opt/local/share/man/mann/ttk_button.n.gz /opt/local/share/man/mann/ttk_checkbutton.n.gz /opt/local/share/man/mann/ttk_combobox.n.gz /opt/local/share/man/mann/ttk_entry.n.gz /opt/local/share/man/mann/ttk_frame.n.gz /opt/local/share/man/mann/ttk_image.n.gz /opt/local/share/man/mann/ttk_intro.n.gz /opt/local/share/man/mann/ttk_label.n.gz /opt/local/share/man/mann/ttk_labelframe.n.gz /opt/local/share/man/mann/ttk_menubutton.n.gz /opt/local/share/man/mann/ttk_notebook.n.gz /opt/local/share/man/mann/ttk_panedwindow.n.gz /opt/local/share/man/mann/ttk_progressbar.n.gz /opt/local/share/man/mann/ttk_radiobutton.n.gz /opt/local/share/man/mann/ttk_scale.n.gz /opt/local/share/man/mann/ttk_scrollbar.n.gz /opt/local/share/man/mann/ttk_separator.n.gz /opt/local/share/man/mann/ttk_sizegrip.n.gz /opt/local/share/man/mann/ttk_spinbox.n.gz /opt/local/share/man/mann/ttk_style.n.gz /opt/local/share/man/mann/ttk_treeview.n.gz /opt/local/share/man/mann/ttk_vsapi.n.gz /opt/local/share/man/mann/ttk_widget.n.gz /opt/local/share/man/mann/winfo.n.gz /opt/local/share/man/mann/wm.n.gz > Le 18 avr. 2018 à 05:23, Ryan Schmidt a écrit : > > > On Apr 17, 2018, at 06:08, pagani laurent wrote: > >> ---> Activating xorg-xproto @7.0.31_0 >> Error: Failed to activate xorg-xproto: Image error: >> /opt/local/include/X11/X.h is being used by the active tk port. Please >> deactivate this port first, or use 'port -f activate xorg-xproto' to force >> the activation. >> >> The log is attached (compressed… otherwise above 500 kb) >> Should I force activation and relaunch the .restore_ports.tcl or should I >> totally erase the /opt/local branch, reinstall Macports and launch the >> restore_ports.tcl or will the later fail because everything has been erased >> ? Or did it fail because I run XEmacs (from opt/local/bin/xemacs) in >> parallel ? > > You should not force the activation. > > Since we don't yet know why this problem happened for you, uninstalling and > reinstalling MacPorts again might result in the same problem again, so I > would not recommend doing that at this point. > > tk should not provide /opt/local/include/X11/X.h. What else does it provide > that it should not? What's the output of: > > port contents tk > > If we could see the log of the tk build, that might help us understand why it > is providing files it should not, but unfortunately, MacPorts automatically > removes the logs of builds it considers successful. >
Re: reinstalling Macports
Ryan, I removed explicit tk installation from the myport.txt list, uninstalled tk and restarted restore_ports.tcl myport.txt and all went through nicely. Tk has been reinstalled as requested from python ports as dependent port. And in that case, it does not contain explicitly X.h and other such header files as you can see in the new ”port contents tk” command return which I attach to this mail but I also provide directly the difference between the two (left side is the one from requested installation, left one from indirect installation) : Macports>diff tk_contents.txt tk_contents_2.txt 4,12d3 < /opt/local/include/X11/X.h < /opt/local/include/X11/Xatom.h < /opt/local/include/X11/Xfuncproto.h < /opt/local/include/X11/Xlib.h < /opt/local/include/X11/Xutil.h < /opt/local/include/X11/cursorfont.h < /opt/local/include/X11/keysym.h < /opt/local/include/X11/keysymdef.h < /opt/local/include/X11/xbytes.h 15,16d5 < /opt/local/include/tkIntXlibDecls.h < /opt/local/include/tkMacOSX.h 18,19d6 < /opt/local/lib/Tk.icns < /opt/local/lib/Tk.tiff Hope this helps. L. Port tk contains: /opt/local/bin/wish /opt/local/bin/wish8.6 /opt/local/include/tk.h /opt/local/include/tkDecls.h /opt/local/include/tkPlatDecls.h /opt/local/lib/libtk.dylib /opt/local/lib/libtk8.6.dylib /opt/local/lib/libtkstub8.6.a /opt/local/lib/pkgconfig/tk.pc /opt/local/lib/tk8.6/bgerror.tcl /opt/local/lib/tk8.6/button.tcl /opt/local/lib/tk8.6/choosedir.tcl /opt/local/lib/tk8.6/clrpick.tcl /opt/local/lib/tk8.6/comdlg.tcl /opt/local/lib/tk8.6/console.tcl /opt/local/lib/tk8.6/demos/README /opt/local/lib/tk8.6/demos/anilabel.tcl /opt/local/lib/tk8.6/demos/aniwave.tcl /opt/local/lib/tk8.6/demos/arrow.tcl /opt/local/lib/tk8.6/demos/bind.tcl /opt/local/lib/tk8.6/demos/bitmap.tcl /opt/local/lib/tk8.6/demos/browse /opt/local/lib/tk8.6/demos/button.tcl /opt/local/lib/tk8.6/demos/check.tcl /opt/local/lib/tk8.6/demos/clrpick.tcl /opt/local/lib/tk8.6/demos/colors.tcl /opt/local/lib/tk8.6/demos/combo.tcl /opt/local/lib/tk8.6/demos/cscroll.tcl /opt/local/lib/tk8.6/demos/ctext.tcl /opt/local/lib/tk8.6/demos/dialog1.tcl /opt/local/lib/tk8.6/demos/dialog2.tcl /opt/local/lib/tk8.6/demos/en.msg /opt/local/lib/tk8.6/demos/entry1.tcl /opt/local/lib/tk8.6/demos/entry2.tcl /opt/local/lib/tk8.6/demos/entry3.tcl /opt/local/lib/tk8.6/demos/filebox.tcl /opt/local/lib/tk8.6/demos/floor.tcl /opt/local/lib/tk8.6/demos/fontchoose.tcl /opt/local/lib/tk8.6/demos/form.tcl /opt/local/lib/tk8.6/demos/goldberg.tcl /opt/local/lib/tk8.6/demos/hello /opt/local/lib/tk8.6/demos/hscale.tcl /opt/local/lib/tk8.6/demos/icon.tcl /opt/local/lib/tk8.6/demos/image1.tcl /opt/local/lib/tk8.6/demos/image2.tcl /opt/local/lib/tk8.6/demos/images/earth.gif /opt/local/lib/tk8.6/demos/images/earthmenu.png /opt/local/lib/tk8.6/demos/images/earthris.gif /opt/local/lib/tk8.6/demos/images/flagdown.xbm /opt/local/lib/tk8.6/demos/images/flagup.xbm /opt/local/lib/tk8.6/demos/images/gray25.xbm /opt/local/lib/tk8.6/demos/images/letters.xbm /opt/local/lib/tk8.6/demos/images/noletter.xbm /opt/local/lib/tk8.6/demos/images/ouster.png /opt/local/lib/tk8.6/demos/images/pattern.xbm /opt/local/lib/tk8.6/demos/images/tcllogo.gif /opt/local/lib/tk8.6/demos/images/teapot.ppm /opt/local/lib/tk8.6/demos/items.tcl /opt/local/lib/tk8.6/demos/ixset /opt/local/lib/tk8.6/demos/knightstour.tcl /opt/local/lib/tk8.6/demos/label.tcl /opt/local/lib/tk8.6/demos/labelframe.tcl /opt/local/lib/tk8.6/demos/license.terms /opt/local/lib/tk8.6/demos/mclist.tcl /opt/local/lib/tk8.6/demos/menu.tcl /opt/local/lib/tk8.6/demos/menubu.tcl /opt/local/lib/tk8.6/demos/msgbox.tcl /opt/local/lib/tk8.6/demos/nl.msg /opt/local/lib/tk8.6/demos/paned1.tcl /opt/local/lib/tk8.6/demos/paned2.tcl /opt/local/lib/tk8.6/demos/pendulum.tcl /opt/local/lib/tk8.6/demos/plot.tcl /opt/local/lib/tk8.6/demos/puzzle.tcl /opt/local/lib/tk8.6/demos/radio.tcl /opt/local/lib/tk8.6/demos/rmt /opt/local/lib/tk8.6/demos/rolodex /opt/local/lib/tk8.6/demos/ruler.tcl /opt/local/lib/tk8.6/demos/sayings.tcl /opt/local/lib/tk8.6/demos/search.tcl /opt/local/lib/tk8.6/demos/spin.tcl /opt/local/lib/tk8.6/demos/states.tcl /opt/local/lib/tk8.6/demos/style.tcl /opt/local/lib/tk8.6/demos/tclIndex /opt/local/lib/tk8.6/demos/tcolor /opt/local/lib/tk8.6/demos/text.tcl /opt/local/lib/tk8.6/demos/textpeer.tcl /opt/local/lib/tk8.6/demos/timer /opt/local/lib/tk8.6/demos/toolbar.tcl /opt/local/lib/tk8.6/demos/tree.tcl /opt/local/lib/tk8.6/demos/ttkbut.tcl /opt/local/lib/tk8.6/demos/ttkmenu.tcl /opt/local/lib/tk8.6/demos/ttknote.tcl /opt/local/lib/tk8.6/demos/ttkpane.tcl /opt/local/lib/tk8.6/demos/ttkprogress.tcl /opt/local/lib/tk8.6/demos/ttkscale.tcl /opt/local/lib/tk8.6/demos/twind.tcl /opt/local/lib/tk8.6/demos/unicodeout.tcl /opt/local/lib/tk8.6/demos/vscale.tcl /opt/local/li
Re: reinstalling Macports
Hello, I also had tk as a sticking point in my last run of "upgrade outdated" (after selfupdate to 2.4.3). It came very near the end of updating everything so I succumbed to temptation and forced it with -f. I haven't noticed anything going terribly wrong yet, but "tk contents" does show the X11 header files including X.h in /opt/local/include/X11. What should I be looking for that might indicate that it is causing problems and what is the specific procedure to remove/repair this? (I have read the previous messages in this thread but want to be certain I am not uninstalling or "nuking" anything beyond what might be absolutely necessary.) I have El Capitan 10.11.6. Thanks for any help. On Wed, Apr 18, 2018 at 4:08 AM pagani laurent via macports-users < macports-users@lists.macports.org> wrote: > Ryan, > > I removed explicit tk installation from the myport.txt list, uninstalled > tk and restarted restore_ports.tcl myport.txt and all went through nicely. > Tk has been reinstalled as requested from python ports as dependent port. > And in that case, it does not contain explicitly X.h and other such header > files as you can see in the new ”port contents tk” command return which I > attach to this mail but I also provide directly the difference between the > two (left side is the one from requested installation, left one from > indirect installation) : > > Macports>diff tk_contents.txt tk_contents_2.txt > 4,12d3 > < /opt/local/include/X11/X.h > < /opt/local/include/X11/Xatom.h > < /opt/local/include/X11/Xfuncproto.h > < /opt/local/include/X11/Xlib.h > < /opt/local/include/X11/Xutil.h > < /opt/local/include/X11/cursorfont.h > < /opt/local/include/X11/keysym.h > < /opt/local/include/X11/keysymdef.h > < /opt/local/include/X11/xbytes.h > 15,16d5 > < /opt/local/include/tkIntXlibDecls.h > < /opt/local/include/tkMacOSX.h > 18,19d6 > < /opt/local/lib/Tk.icns > < /opt/local/lib/Tk.tiff > > Hope this helps. > > L. > >
Re: reinstalling Macports
Thanks. I think this problem was introduced by a presumably unintentional part of this commit: https://github.com/macports/macports-ports/commit/e3710d6800e803ebaa9528d3bdb38fb2fcade513#diff-5513a677784c8c1520463fedf268a37f I think that needs to be reverted, and the tk port's revision increased to ensure any incorrect builds out there get fixed. Vince? On Apr 18, 2018, at 04:08, pagani laurent wrote: > Ryan, > > I removed explicit tk installation from the myport.txt list, uninstalled tk > and restarted restore_ports.tcl myport.txt and all went through nicely. > Tk has been reinstalled as requested from python ports as dependent port. And > in that case, it does not contain explicitly X.h and other such header files > as you can see in the new ”port contents tk” command return which I attach to > this mail but I also provide directly the difference between the two (left > side is the one from requested installation, left one from indirect > installation) : > > Macports>diff tk_contents.txt tk_contents_2.txt > 4,12d3 > < /opt/local/include/X11/X.h > < /opt/local/include/X11/Xatom.h > < /opt/local/include/X11/Xfuncproto.h > < /opt/local/include/X11/Xlib.h > < /opt/local/include/X11/Xutil.h > < /opt/local/include/X11/cursorfont.h > < /opt/local/include/X11/keysym.h > < /opt/local/include/X11/keysymdef.h > < /opt/local/include/X11/xbytes.h > 15,16d5 > < /opt/local/include/tkIntXlibDecls.h > < /opt/local/include/tkMacOSX.h > 18,19d6 > < /opt/local/lib/Tk.icns > < /opt/local/lib/Tk.tiff > > Hope this helps. > > L. > >
Re: reinstalling Macports
On Apr 18, 2018, at 23:42, Ryan Schmidt wrote: > Thanks. I think this problem was introduced by a presumably unintentional > part of this commit: > > https://github.com/macports/macports-ports/commit/e3710d6800e803ebaa9528d3bdb38fb2fcade513#diff-5513a677784c8c1520463fedf268a37f > > I think that needs to be reverted, and the tk port's revision increased to > ensure any incorrect builds out there get fixed. > > Vince? The problem was brought up again in this ticket: https://trac.macports.org/ticket/56531 I fixed by reverting Vincent's change: https://github.com/macports/macports-ports/commit/a11b15ca0f34af6272ed560aba505e08da45e360