Main Stories
Slash Boxes

Slash Open Source Project

Slashcode Log In

Log In

[ Create a new account ]

Slash 1.1.6-bender Beta Release

posted by pudge on 12:53 PM March 14th, 2001   Printer-friendly   Email story
We've just release slash-1.1.6-bender, the latest beta of Slash 2.0. This is the same code running slashcode.com, and it is pretty darn stable for us. If you find any bugs, send them in to SourceForge ... time is running out! Read on for the changes in this release. They are numerous.
slash-1.1.6-bender, 2000.03.14
------------------------------

*       Major overhaul of command-line tools; many options have changed;
        all of the ones (except for the ones in sbin/) have -h (help)
        and -v (version) options now, so check the help before use

*       Lots of changes to the Makefile to work more smoothly on various
        platforms, and set hardcoded values for /usr/bin/perl and /usr/local/slash appropriately; changed PREFIX to SLASH_PREFIX
        to not conflict with perl's Makefiles

*       Move more directives out of slash.conf into site.conf

*       Fix bug with createSelect() returning data when there are
        no options

*       Update sessions to work properly again

*       Make session-based user logins work properly again

*       Update cookie on every connect, as it was not getting updated
        when it needed to be; perhaps change in the future, but
        necessary for now

*       Remove remnants of userMode and archived stories on disk

*       Add disconnect in Slash::Apache initial startup

*       Add "userdir_handler" to allow sites to allow user lookups
        via http://slashcode.com/~username/

*       Fixes to various Slash::DB::MySQL methods, including
        getMetamodComments, getSessionInstance, currentAdmin,
        setUser, _genericSet

*       Name changes to Slash::DB methods setStoriesCount
        (now setStoryCount), createFormkey (was insertFormkey),
        createAbuse (was formAbuse), checkForMetaModerator
        (was checkForModerator)

*       countComments has been split into four methods; *BySid,
        *BySidUid, *BySidPid, and FindCommentsDuplicate

*       Update story count for newstories more approriately now;
        setStoryCount and setStory now update newstories as well
        as stories table

*       Various fixes to time-related calls in DB methods

*       Add "restart" boolean paramater to sqlConnect in
        Slash::DB::Utility to allow disconnect of db handle,
        followed by subsequent connect

*       Add public function get_template to Slash::Display, so
        external programs can get an appropriate Template
        object

*       Remove "template_trim" option; it needs to be true for some
        things to work properly

*       Add support for saving compiled templates to disk to
        Slash::Provider

*       Fix whitespace handling in strip_mode in Slash::Utility

*       Allow _ in sid; properly filter qid like sid in Slash::Utility

*       Various fixes to tools, especially install-slashsite,
        template-tool, tailslash, dailyStuff, slashd

*       Add HOWTO documents for Themes, Templates, and Plugins

*       Various minor fixes to .pl files, including admin.pl,
        metamod.pl, search.pl

*       Fix various miscellaneous text/UI thingys in data dumps,
        templates, and plugins

*       Fix Search to work

*       Added template-check program
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.
  • Eric, I added a script called template-check to the distribution to automate the whole grep thing.
  • Hm, works for me. Can you be more descriptive?
  • oh, just a note, but today's cvs stuff doesn't compile. It breaks around the plugin part.....
    --

    --
    It's either on the beat or off the beat, it's that easy.
  • About the template step:
    • For download the templates: template-tool -u virtuser -d
    • For save new templates in the database: template-tool -u virtuser -s template_1 ... template_n

    virtuser is the user which you use to access he database across DBIx::Password.

  • I posted this on SourceForge [sourceforge.net] too, but spelled submissions correctly here :)

    When submitting stories, the HTML for making links doesn't seem to work correctly. For example, the code:
    1. <A HREF="http://testslashsite.here:8080">Click here</A>

    results in not including the port (8080) in the link. Also, "mailto:" links always fail. The following error shows up in the error log:

    1. [error] Can't locate object method "host" via package "URI::mailto" at /usr/lib/perl5/site_perl/5.6.0/i686- linux/Slash/Uti
  • Ok, Chris Nador suggested "Try adding "install : $(NOOP)" to the Makefile in the "plugins" directory, and try again.". That got it further, but it still is stopping.

    # Insure we use the proper perl interpreter and prefix in all scripts that
    # we install. Note the use of Perl as opposed to dirname(1) and basename(1)
    # which may or may not exist on any given system.
    (replacewith=`perl -MConfig -e 'print $Config{startperl}' | sed 's/@/\\@/g'`; binfiles=`find bin -name CVS -prune -o -type f -print`; sbinfiles=`find sbin -name CVS -prune -o -type f -print`; themefiles=`find themes -name CVS -prune -o -name \*.pl -print`; pluginfiles=`find plugins -name CVS -prune -o -name \*.pl -print`; if [ "$replacewith" != "#!/usr/bin/perl" ]; then replace=1; replacestr='(using perl)'; else replace=0; fi; for f in $binfiles $sbinfiles $themefiles $pluginfiles; do if [ $replace ]; then b=`echo $f | perl -MFile::Basename -e 'print basename()'`; d=`echo $f | perl -MFile::Basename -e 'print dirname()'`; perl -i.bak -pe "s@#!/usr/bin/perl@$replacewith@ if $. == 1" $f; fi; echo "Installing '$f' in /usr/local/slash/$d $replacestr"; install -d /usr/local/slash/$d; install $f /usr/local/slash/$d/$b; if [ -f "$f.bak" ]; then rm $f; mv $f.bak $f; fi; done)
    Installing 'bin/install-plugin.bak' in /usr/local/slash/bin
    rm: bin/install-plugin.bak: No such file or directory
    *** Error code 1

    Stop in /usr/src/slash.

    Ideas?

    --

    --
    It's either on the beat or off the beat, it's that easy.
  • so, if you already have a slash bender site installed, would something like this keep it updated?

    cvs -d:pserver:anonymous@cvs.slashcode.com:/cvsroot/sl ashcode co -r bender slash

    Chris Nador also added (from the slash discussion list):

    I keep it in /usr/src/slash, and do `cvs update -dP`, then `make; make istall`. No worries. The caveats:

    * If you did not install-slashsite with symlinks in htdocs (one of the options in install-slashsite), then your .pl files, etc. will not be upgraded.

    * If there are any changes to httpd/slash.conf or site/sitename/sitename.conf (in install-slashsite), those will not get carried over automatically.

    * Your templates will not be upgraded. You need to do this by hand. What I do is dump them (using template-tool) to a directory (read the docs on template-tool), and then run something like:

    diff -Bu ./ /usr/local/slash/themes/slashcode/templates \
    | grep -v '^Only in ' | less

    Then replace
    "/usr/local/slash/themes/slashcode/templates" with
    "/usr/local/slash/plugins/PLUGIN/templates", where * is Admin, Search, Ladybug, CheesyPortal, Journal, and any other plugin you've installed that has templates.
    Then you see what changes, and you can make changes appropriately.
    * After done upgrading, restart slashd and Apache.

    --

    --
    It's either on the beat or off the beat, it's that easy.
  • Yeah......

    I run
    cvs -d:pserver:anonymous@cvs.slashcode.com:/cvsroot/sl ashcode co -r bender slash

    cd to the slash directory.
    Do a make. All is well so far.

    Do a make install, and I get this....

    Writing /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/ auto/Slash/.packlist
    Appending installation info to /usr/libdata/perl/5.00503/mach/perllocal.pod
    # Lets go install the plugin's libraries
    #
    # If 'plugins' is already a dependency, why do we need to regenerate the
    # Makefile? - Cliff
    (cd plugins; for a in `find . -name CVS -prune -o -type d -maxdepth 1 -print`; do (cd $a; if [ -f Makefile ]; then make install; elif [ -f Makefile.PL ]; then if ! [ ] ; then perl Makefile.PL; else perl Makefile.PL INSTALLSITEARCH=`perl -MConfig -e 'print "/var/tmp/slash-buildroot/$Config{installsitearch} "'` INSTALLSITELIB=`perl -MConfig -e 'print "/var/tmp/slash-buildroot/$Config{installsitelib}" '`; fi; make install; fi); done)
    make: don't know how to make install. Stop
    *** Error code 2

    Stop in /usr/src/slash.

    Ideas?

    --

    --
    It's either on the beat or off the beat, it's that easy.
  • The install had errors for me this morning now. Fro the past 10 minutes I've been trying to post a bug report on SF, but it keeps erroring out. Just incase, here's what I'm trying to post:

    I updated from CVS 5:28am EDT 3/15 then did a new-install after rm -fR'ing /usr/local/slash. After "please select which plugins you want:

    Hit 'a' to select all, otherwise select comma separated numbers or 'q' to quit
    a
    DBD::mysql::db do failed: You have an error in your SQL syntax near ') VALUES()
    ' at line 1 at /usr/li
    --
    lottadot [lottadot.com]
  • by Anonymous Coward
    Can someone please explain this (bender 1.1.6) Make is ok Make install ends with this Appending installation info to /usr/libdata/perl/5.00503/mach/perllocal.pod # Lets go install the plugin's libraries # # If 'plugins' is already a dependency, why do we need to regenerate the # Makefile? - Cliff (cd plugins; for a in `find . -name CVS -prune -o -type d -maxdepth 1 -print`; do (cd $a; if [ -f Makefile ]; then make install; elif [ -f Makefile.PL ]; then if ! [ ] ; then perl Makefile.PL; else perl Makefile.PL INSTALLSITEARCH=`perl -MConfig -e 'print "/var/tmp/slash-buildroot/$Config{installsitearch} "'` INSTALLSITELIB=`perl -MConfig -e 'print "/var/tmp/slash-buildroot/$Config{installsitelib}" '`; fi; make install; fi); done) make: don't know how to make install. Stop *** Error code 2 under FreeBSD everything else installed like it was in install doc. thanx!
  • Go to the plugins directory and add
    install : $(NOOP)

    That will fix that problem, but there are others in the makefile that fail on FreeBSD. Cliff is supposedly working on it.

    I had to delete lines 131-133
    if [ -f "$$f.bak" ]; then \
    rm $$f; mv $$f.bak $$f; \
    fi; \

    and I had to change 145-147 and remove the -u switch in cp, which FreeBSD does not support.

    The makefile runs after that, but you'll end up with a lot of .pl.bak files which you'll need to manually straighten out.

    Good luck!

    --

    --
    It's either on the beat or off the beat, it's that easy.