Reply
 
Thread Tools Display Modes
  #11  
Old 07-27-2012, 03:02 PM
purgatori purgatori is offline
Senior Member
 
Join Date: May 2010
Posts: 234
Thanks: 6
Thanked 15 Times in 14 Posts
Default
Originally Posted by Beanpole View Post
Our current Emacs PBI is actually building the editors/emacs-devel port (to keep up with the latest versions). The math/ess plugin requires the older (I.E. stable) editors/emacs port instead. Because of this, I have renamed our current emacs PBI's as Emacs-devel (without the ess plugin) and I am going to add a module for the stable editors/emacs port with the ess plugin (and simply call it Emacs). It will take a little while for the changes to take effect (need the PBI's to build and get approved first), but I think this will clear up any issues with emacs plugins, as we can simply add them to the stable Emacs PBI, and leave the Emacs-devel PBI alone for those who simply want the editor by itself.
The maintainer for editors/emacs and editors/emacs-devel will soon be changing editors/emacs to emacs 24.1 (which, after all, is the current stable version of the program), and ESS, AucTeX, etc. will depend on that version instead.[1]

[1]: http://www.mail-archive.com/freebsd-.../msg42885.html
__________________
My Blog About Emacs and (PC)BSD
Promethean Machines

Last edited by purgatori; 07-27-2012 at 03:04 PM.
Reply With Quote
  #12  
Old 07-27-2012, 07:37 PM
Beanpole's Avatar
Beanpole Beanpole is offline
Senior Member
 
Join Date: May 2010
Posts: 1,602
Thanks: 2
Thanked 145 Times in 127 Posts
Default
That is good to hear!
Once the FreeBSD ports are updated, the PBI(s) gets placed into the queue for a rebuild automatically.
As an aside, the new emacs PBI finished building recently (with the ess and emms plugins). It appears to work properly from what I can tell, but I am not that familiar with how to enable/use the plugins. Would you mind testing it out and making sure the plugins work properly? You can download it directly from the build server(s) here[1] (just search for editors/emacs, it is near the top of the list).

If it works to your satisfaction, I will go ahead and approve it so that it will be available in the AppCafe.

BTW, the new editors/emacs-devel PBI is a complete wreck. It actually crashes my entire testing system when I try to run it (makes everything hang before there is even any debugging output). I am thinking that something changed with the port recently, so I will need to go through our module to see if there is anything we can do to fix it, or if we just need to wait for a new version of the port.

[1]
http://pbibuild.pcbsd.org (32-bit)
http://pbibuild64.pcbsd.org (64-bit)
__________________
~ Ken Moore ~
PC-BSD/iXsystems

Last edited by Beanpole; 07-27-2012 at 07:38 PM. Reason: Add links to build servers
Reply With Quote
  #13  
Old 07-28-2012, 03:05 AM
purgatori purgatori is offline
Senior Member
 
Join Date: May 2010
Posts: 234
Thanks: 6
Thanked 15 Times in 14 Posts
Default
Originally Posted by Beanpole View Post
That is good to hear!
Once the FreeBSD ports are updated, the PBI(s) gets placed into the queue for a rebuild automatically.
As an aside, the new emacs PBI finished building recently (with the ess and emms plugins). It appears to work properly from what I can tell, but I am not that familiar with how to enable/use the plugins. Would you mind testing it out and making sure the plugins work properly? You can download it directly from the build server(s) here[1] (just search for editors/emacs, it is near the top of the list).

If it works to your satisfaction, I will go ahead and approve it so that it will be available in the AppCafe.

BTW, the new editors/emacs-devel PBI is a complete wreck. It actually crashes my entire testing system when I try to run it (makes everything hang before there is even any debugging output). I am thinking that something changed with the port recently, so I will need to go through our module to see if there is anything we can do to fix it, or if we just need to wait for a new version of the port.

[1]
http://pbibuild.pcbsd.org (32-bit)
http://pbibuild64.pcbsd.org (64-bit)
I'd love to I'll install PCBSD 9.0 on my laptop and use that as the test platform.

As for the latest emacs-devel crashing, what DE/WM are you launching it under? It sounds similar to a bug I ran into, and reported in this thread, and might be susceptible to the same solution.
__________________
My Blog About Emacs and (PC)BSD
Promethean Machines
Reply With Quote
  #14  
Old 07-29-2012, 06:00 AM
purgatori purgatori is offline
Senior Member
 
Join Date: May 2010
Posts: 234
Thanks: 6
Thanked 15 Times in 14 Posts
Default
Results of My Test

The Emacs installed from the new PBI runs fine with default settings, and ESS also works fine when called with:

Code:
('require ess-site)
... and used in conjunction with R.

EMMS functions correctly (adding songs to library, playing them back, listening to internet radio streams, etc.) -- provided that MP3INFO has also installed from the Appcafe -- when called with:
Code:
   (require 'emms-setup)
   (require 'emms-info-libtag)
   (require 'emms-player-simple)
   (require 'emms-source-file)
   (require 'emms-source-playlist)
   (require 'emms-info)
   (require 'emms-info-mp3info)
   (require 'emms-info-ogg)
   (require 'emms-stream-info)
   (emms-standard)
   (emms-all)
   (emms-default-players)
... and configured with:

Code:
  ;;Some general config options
   (setq emms-info-asynchronously nil) 
   (setq emms-player-list '(emms-player-mplayer
     emms-player-mplayer-playlist)) 

  ;;Show track duration
   (require 'emms-playing-time)
   (emms-playing-time 1) 

  ;;Grab track info for files and display in emacs modeline
   (setq emms-mode-line-mode-line-function
   (lambda nil
   (let ((track (emms-playlist-current-selected-track)))
   (let ((title (emms-track-get track 'info-title)))
   (let ((name (emms-track-get track 'name)))
   (if (not (null title))
   (format emms-mode-line-format title)
   (if (not (null (string-match "^url: " (emms-track-simple-description  track))))
   (format emms-mode-line-format "Internet Radio")
   (setq name2 (replace-regexp-in-string ".*\/" "" name))
   (format emms-mode-line-format name2))))))))
   (emms-mode-line-disable)
   (emms-mode-line-enable)
    (load "emms") 

  ;;Bindings
   (global-set-key (kbd "C-c p") 'emms-pause)
   (global-set-key (kbd "C-c u") 'emms-volume-raise)
   (global-set-key (kbd "C-c d") 'emms-volume-lower)
   (global-set-key (kbd "C-c f") 'emms-show)
   (global-set-key (kbd "C-c n") 'emms-next)
   (global-set-key (kbd "C-c P") 'emms-previous)
   (global-set-key (kbd "C-c r") 'emms-random)
   (global-set-key (kbd "C-c s") 'emms-stop) 

  (require 'emms-mode-line)
  (emms-mode-line 1)   

  ;;Last.FM Authentication
   (setq emms-lastfm-username "username"
    emms-lastfm-password "password")

  ;;Enable scrobbling of tracks to Last.FM by default
   (emms-lastfm-activate)
   (emms-lastfm-enable)

  ;;Make the the playlist buffer name 'visible'
   (setq emms-playlist-buffer-name "Playlist")
The following didn't work, but it's not crucial:

Code:
  ;;Display "now playing" info in ERC
   (defun erc-cmd-EMMS (&rest ignore)
      "Display the current EMMS track to the current ERC buffer."
      (let ((string (emms-show)))
        (if string
	    (erc-cmd-GAWAY (concat "Live from EMMS: " string))
          (message "Nothing is playing!"))))
    (add-hook 'emms-player-started-hook 'erc-cmd-EMMS)
Stuff still missing: Emacs-w3m

All in all, it looks good-to-go to me
__________________
My Blog About Emacs and (PC)BSD
Promethean Machines
Reply With Quote
  #15  
Old 07-30-2012, 03:35 PM
Beanpole's Avatar
Beanpole Beanpole is offline
Senior Member
 
Join Date: May 2010
Posts: 1,602
Thanks: 2
Thanked 145 Times in 127 Posts
Default
Sounds good, I will get the Emacs PBI approved in a couple minutes then. It should appear in the AppCafe within the next 24 hours.

I had to remove the emacs-w3m port temporarily because it was conflicting with its own dependencies when trying to install. Now that we at least have a working Emacs-with-plugins PBI, I am going to spend some additional time to try and trick emacs-w3m to install properly as well. I am also going to try including the mp3info port as well, that way you no longer need to have the separate PBI installed for the emms plugin to work properly.

As for the emacs-devel PBI, my testing environment is using the IceWM DE, so it is quite possible that your fix will make it work. However, I am going to see if I can get a solution similar to yours added to the PBI itself before I start modifying my testing environment. If it works, nobody should need to modify how the system logs in to the DE anymore. Thanks for the info though!
__________________
~ Ken Moore ~
PC-BSD/iXsystems
Reply With Quote
  #16  
Old 07-31-2012, 04:18 AM
purgatori purgatori is offline
Senior Member
 
Join Date: May 2010
Posts: 234
Thanks: 6
Thanked 15 Times in 14 Posts
Default
Originally Posted by Beanpole View Post
Sounds good, I will get the Emacs PBI approved in a couple minutes then. It should appear in the AppCafe within the next 24 hours.

I had to remove the emacs-w3m port temporarily because it was conflicting with its own dependencies when trying to install. Now that we at least have a working Emacs-with-plugins PBI, I am going to spend some additional time to try and trick emacs-w3m to install properly as well. I am also going to try including the mp3info port as well, that way you no longer need to have the separate PBI installed for the emms plugin to work properly.

As for the emacs-devel PBI, my testing environment is using the IceWM DE, so it is quite possible that your fix will make it work. However, I am going to see if I can get a solution similar to yours added to the PBI itself before I start modifying my testing environment. If it works, nobody should need to modify how the system logs in to the DE anymore. Thanks for the info though!
Nice. I like that the PBI system allows the user to install Emacs with all the fixins' so easily
__________________
My Blog About Emacs and (PC)BSD
Promethean Machines
Reply With Quote
  #17  
Old 08-03-2012, 04:24 PM
purgatori purgatori is offline
Senior Member
 
Join Date: May 2010
Posts: 234
Thanks: 6
Thanked 15 Times in 14 Posts
Default
/editors/emacs has been updated to 24.1, so I'll test it (and the add-ons) as soon as it appears in the PBI autobuild directory
__________________
My Blog About Emacs and (PC)BSD
Promethean Machines
Reply With Quote
  #18  
Old 08-05-2012, 07:19 PM
purgatori purgatori is offline
Senior Member
 
Join Date: May 2010
Posts: 234
Thanks: 6
Thanked 15 Times in 14 Posts
Default
I noticed that the autobuilds for /editors/emacs and /editors/emacs-devel failed. Is this because there is no longer an emacs-devel in the port tree, and that the PBI autobuild system is trying to build the wrong (23.x) version of Emacs?
__________________
My Blog About Emacs and (PC)BSD
Promethean Machines
Reply With Quote
  #19  
Old 08-06-2012, 05:44 PM
Beanpole's Avatar
Beanpole Beanpole is offline
Senior Member
 
Join Date: May 2010
Posts: 1,602
Thanks: 2
Thanked 145 Times in 127 Posts
Default
No, you need to look through the build.log for the build failures to determine the cause of the failure (usually right near the bottom of the file). In this case, the editors/emacs build ran into the port confict with www/emacs-w3m again, and the emacs-devel PBI looks like it just had a random build error with devel/dbus.
__________________
~ Ken Moore ~
PC-BSD/iXsystems
Reply With Quote
  #20  
Old 08-06-2012, 09:50 PM
Tigersharke Tigersharke is offline
Senior Member
 
Join Date: Sep 2010
Location: Saint Paul, MN
Posts: 129
Thanks: 20
Thanked 24 Times in 19 Posts
Default
Personally, it seems like the PBI system should also work to optimize plugins for programs that are PBIs, however the problem currently is the download size- every PBI includes all dependencies in every download (except the PBI updates). Though I do recognize that a very commonly used plugin if its one of only a few existing or itself is very small, may as well be part of the primary PBI.

The dreamed of optimization:
If WidgetApp is a PBI and gets installed, then later Plugin-for-WidgetApp is made into a PBI, installing the Plugin-for-WidgetApp PBI would only install the Plugin and not its dependencies. And the reverse (which may not be immediately obvious due to the history of installing software) if the WidgetApp is not installed, it is included as a dependency of the Plugin-for-WidgetApp PBI, and therefore functions as though it didn't need the WidgetApp installed. I hope that further improvements to the PBI system will allow this additional optimization. It will be an even more amazing system when existence of PBIs also add to download optimization.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:17 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.