LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-03-2011, 08:41 PM   #1
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,232

Rep: Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805
Claws Mail extra plugins Slackbuild error


Slackware64 13-37
Claws Mail 3.7.10 successfully installed.
Trying to install extra plugins.

Build stops at line 33:

Code:
./claws-mail-extra-plugins.SlackBuild: line 33: syntax error near unexpected token `<<<'
./claws-mail-extra-plugins.SlackBuild: line 33: `<<<<<<< HEAD'
Please advise.

Last edited by Gerard Lally; 11-03-2011 at 08:43 PM.
 
Old 11-03-2011, 08:54 PM   #2
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
Looks like an oops while applying a git-diff.
You can hand edit the SlackBuild. Appears to be a diff to increase the build (from 1 to 3), and adjust the plugin list.
Code:
#!/bin/sh

# SlackBuild Script to build the extra plugins for claws mail

# Copyright (c) 2007, Timothy Pollard
# Copyright (c) 2008-2011, Erik Hanson
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
#   this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
#   notice, this list of conditions and the following disclaimer in the
#   documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=claws-mail-extra-plugins
VERSION=3.7.10
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

# This is an *incomplete* list of available plugins, see the README for
# information on plugins you may wish you add/remove from this list.
PLUGIN_LIST=${PLUGIN_LIST:-"acpi_notifier address_keeper archive \
 att_remover attachwarner bsfilter_plugin clamd fetchinfo-plugin \
 gtkhtml2_viewer mailmbox newmail notification_plugin \
 perl_plugin python_plugin rssyl spam_report tnef_parse vcalendar"}


if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i486"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -eu

rm -rf $PKG $TMP/$PRGNAM-$VERSION
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp RELEASE_NOTES $PKG/usr/doc/$PRGNAM-$VERSION

for plugin in $PLUGIN_LIST ; do
  printf "\nBuilding $plugin...\n\n"
  cd ./$plugin-*
  CFLAGS="$SLKCFLAGS" \
    ./configure \
    --prefix=/usr \
    --libdir=/usr/lib${LIBDIRSUFFIX} \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --disable-static \
    --build=$ARCH-slackware-linux

  make
  make install DESTDIR=$PKG

  mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/$plugin
  for docfile in AUTHORS COPYING ChangeLog INSTALL NEWS README TODO ; do
    [ -e $docfile ] && cp -a $docfile $PKG/usr/doc/$PRGNAM-$VERSION/$plugin
  done
  cd -
done

cp $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION/
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

find $PKG | xargs file | egrep "ELF.*shared object" | cut -f 1 -d : \
          | xargs strip --strip-unneeded 2> /dev/null || true

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
If you haven't already - a courtesy post to the Script's maintainer and/or a note on the mailing list will allow things to be fixed quickly.
 
1 members found this post helpful.
Old 11-03-2011, 09:14 PM   #3
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,232

Original Poster
Rep: Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805Reputation: 1805
Quote:
Originally Posted by disturbed1 View Post
Looks like an oops while applying a git-diff.
You can hand edit the SlackBuild. Appears to be a diff to increase the build (from 1 to 3), and adjust the plugin list.
Thank you very much. That did the trick. I took a look at the script and I knew something was wrong but didn't know where to start cutting stuff out.

Quote:
If you haven't already - a courtesy post to the Script's maintainer and/or a note on the mailing list will allow things to be fixed quickly.
Done. Many thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Claws Mail configuration DavidMcCann Linux - Software 2 10-09-2011 11:47 AM
[SOLVED] Claws-mail, libetpan.so.13 and slack 13.1 patostevens Slackware 10 11-28-2010 08:20 AM
LXer: Claws Mail: Mail with Attitude LXer Syndicated Linux News 0 03-20-2010 02:31 AM
How to install Claws Mail Steve900 Linux - Software 3 03-09-2007 08:20 AM
LXer: How to Install Claws mail (Mail Client) in Ubuntu LXer Syndicated Linux News 0 03-06-2007 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration