LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Krusader slackbuild 14.2 - no source available (https://www.linuxquestions.org/questions/slackware-14/krusader-slackbuild-14-2-no-source-available-4175605867/)

Gerard Lally 05-14-2017 03:24 PM

Quote:

Originally Posted by 55020 (Post 5710636)
Second, there is at least one build tool that supports non-root building and packaging.

Namely?

bassmadrigal 05-14-2017 03:49 PM

Quote:

Originally Posted by Gerard Lally (Post 5710623)
No offence, but the problem is not resolved by yet another private individual temporarily stepping in with his own private server.

I know trust can be difficult. That is at least why I mentioned that the md5sum matches the one in the .info, so it is at least matching what Andrzej had originally used to build the SlackBuild. But no worries, I'm certainly not offended (but I will be removing the link now... I just would prefer links to my site not 404, since I occasionally clean out my temp/ directory on that site (hence the name of the folder)).

Quote:

Originally Posted by Gerard Lally (Post 5710645)
Namely?

He wasn't wanting to toot his own horn, but he created slackrepo, and it has the ability to create packages using fakeroot. But it is much more than something like sbopkg. It will actually create a full repo with all your software, and it will update all the dependency tree when one of them changes (if x264 is updated, it will rebuild all the software that relies on x264, and the software that relies on those, etc, etc).

Gerard Lally 05-14-2017 04:35 PM

Quote:

Originally Posted by bassmadrigal (Post 5710650)
He wasn't wanting to toot his own horn, but he created slackrepo, and it has the ability to create packages using fakeroot. But it is much more than something like sbopkg. It will actually create a full repo with all your software, and it will update all the dependency tree when one of them changes (if x264 is updated, it will rebuild all the software that relies on x264, and the software that relies on those, etc, etc).

That's interesting. Much more akin to NetBSD pkgsrc, which allows you to build and install an entire system (minus base, which is <200MB) as an ordinary user.

Can we expect this tool to see more development or has it been abandoned?

montagdude 05-14-2017 04:42 PM

At the risk of sounding ignorant, can't sbopkg build package as a regular user if you redirect TMP and OUTPUT (and maybe change some of its other paths in the config file)?

bassmadrigal 05-14-2017 04:47 PM

Quote:

Originally Posted by Gerard Lally (Post 5710659)
Can we expect this tool to see more development or has it been abandoned?

I had been dormant for a few years (mainly because it worked and David was spending time elsewhere), but he has recently started tinkering with it more. Check out his github.

https://github.com/idlemoor/slackrepo

atelszewski 05-14-2017 04:48 PM

Hi,

Quote:

Originally Posted by Gerard Lally (Post 5710623)
No offence, but the problem is not resolved by yet another private individual temporarily stepping in with his own private server.

Well, if it solved your problem, then the problem is resolved ;->

I don't see you being harsh here, but anyways, keep in mind that SlackBuild maintainers sometimes try hard to make users lifes easy.
The source tarballs not always are available in the form we wished they were.
So we try to somehow distribute them, so that they are available.
Well, sometimes we fail ;-)

And version strings are sometimes art on its own.

--
Best regards,
Andrzej Telszewski

Gerard Lally 05-14-2017 04:53 PM

Quote:

Originally Posted by atelszewski (Post 5710666)
Hi,


Well, if it solved your problem, then the problem is resolved ;->

I don't see you being harsh here, but anyways, keep in mind that SlackBuild maintainers sometimes try hard to make users lifes easy.
The source tarballs not always are available in the form we wished they were.
So we try to somehow distribute them, so that they are available.
Well, sometimes we fail ;-)

And version strings are sometimes art on its own.

No problem Andrzej. Dzieki.

atelszewski 05-14-2017 04:56 PM

Hi,

Quote:

Originally Posted by Gerard Lally (Post 5710668)
No problem Andrzej. Dzieki.

;-)

--
Best regards,
Andrzej Telszewski

Gerard Lally 05-15-2017 07:58 PM

Source unavailable again.

bassmadrigal 05-15-2017 08:09 PM

Were you talking about my source or Andrzej's? Either way, try using this .SlackBuild and .info. It should build the newest KDE4 version of krusader, and it gets the source directly from github. I think this might be what Andrzej will submit once SBo submissions are reopened (they closed it for a bit due to a server migration).

krusader.SlackBuild
Code:

#!/bin/sh

# Slackware build script for krusader

# Copyright 2006,2007,2008,2009,2010  Robby Workman, Northport, Alabama, USA
# Copyright 2010 Grigorios Bouzakis <grbzks@xsmail.com>
# Copyright 2012 Bill Kirkpatrick <bkirkp@gmail.com>
# Copyright 2016 Andrzej Telszewski, Banie
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "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 AUTHOR 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=krusader
VERSION=${VERSION:-389b153}
SRCVER=${SRCVER:-389b153dab661dfc93423ce64d36bfee7843d33c}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

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

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

if [ "$ARCH" = "i586" ]; then
  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  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 -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$SRCVER
tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
cd $PRGNAM-$SRCVER
chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  -o -perm 511 \) -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

mkdir -p build
cd build
  cmake \
    -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DLIB_SUFFIX=${LIBDIRSUFFIX} \
    -DSYSCONF_INSTALL_DIR=/etc/kde \
    -DMAN_INSTALL_DIR=/usr/man \
    -DCMAKE_BUILD_TYPE=Release \
    ..
  make
  make install DESTDIR=$PKG
cd ..

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING CREDITS ChangeLog FAQ INSTALL README TODO \
  $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

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

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

krusader.info
Code:

PRGNAM="krusader"
VERSION="389b153"
HOMEPAGE="https://krusader.org/"
DOWNLOAD="https://github.com/KDE/krusader/archive/389b153/krusader-389b153dab661dfc93423ce64d36bfee7843d33c.tar.gz"
MD5SUM="f0a98626e73e560a5338a2871bddf935"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Andrzej Telszewski"
EMAIL="atelszewski@gmail.com"


Gerard Lally 05-15-2017 08:26 PM

Quote:

Originally Posted by bassmadrigal (Post 5711197)
Were you talking about my source or Andrzej's?

Just the source linked at slackbuilds.org.

Quote:

Either way, try using this .SlackBuild and .info. It should build the newest KDE4 version of krusader, and it gets the source directly from github. I think this might be what Andrzej will submit once SBo submissions are reopened (they closed it for a bit due to a server migration).
OK. I didn't realise that. Thanks for the slackbuild; I'll just compile from the krusader.org source for the time being anyway. It's straightforward. I was just making the point in my OP that these problems reflect badly on Slackware, through no fault of PV of course. They can be frustrating when they accumulate; today I had another problem trying to download slackrepo!

55020 05-16-2017 05:01 AM

oh, yes, I'd sort of forgotten about that, sorry :(

You can download and build the latest git master with this:

Code:

wget https://github.com/idlemoor/slackrepo/archive/master/slackrepo-master.tar.gz
tar xf slackrepo-master.tar.gz slackrepo-master/SlackBuild/ --strip-components=2
chmod 755 ./slackrepo.SlackBuild
OUTPUT=$(pwd) VERSION=master ./slackrepo.SlackBuild
upgradepkg --install-new --reinstall ./slackrepo-master-noarch-1_SBo.tgz

It's not got many bugs at the moment (I broke --dry-run and --keep-tmp last week), but I still need to add some new contributions and update the documentation before I tag a new version.

My saintly pal bassmadrigal has a copy of the last tagged version from two years ago:
http://bassmadrigal.tk/temp/slackrep...arch-1_dbs.txz

Oh, the irony of that word 'temp' in his URL :rolleyes:

bassmadrigal 05-16-2017 06:38 AM

Quote:

Originally Posted by 55020 (Post 5711317)
My saintly pal bassmadrigal has a copy of the last tagged version from two years ago:
http://bassmadrigal.tk/temp/slackrep...arch-1_dbs.txz

Oh, the irony of that word 'temp' in his URL :rolleyes:

Well, if it's any consolation, I haven't had it archived there for 2 years... maybe just a month or so ;)

And temp makes it sound better if the file no longer becomes available whenever I decide to clear out that folder :D

atelszewski 05-22-2017 07:51 AM

Hi,

There you go.

--
Best regards,
Andrzej Telszewski

montagdude 05-22-2017 08:05 AM

Quote:

Originally Posted by montagdude (Post 5710663)
At the risk of sounding ignorant, can't sbopkg build package as a regular user if you redirect TMP and OUTPUT (and maybe change some of its other paths in the config file)?

FWIW (probably not much) I tried this, but it doesn't work because the SlackBuild scripts chown the build directory as root:root.


All times are GMT -5. The time now is 05:59 PM.