Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-03-2011, 08:41 PM
|
#1
|
Senior Member
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,232
|
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.
|
|
|
11-03-2011, 08:54 PM
|
#2
|
Senior Member
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
|
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.
|
11-03-2011, 09:14 PM
|
#3
|
Senior Member
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,232
Original Poster
|
Quote:
Originally Posted by disturbed1
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.
|
|
|
All times are GMT -5. The time now is 05:51 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|