LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-14-2017, 03:24 PM   #16
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Brú na Bóinne, IE
Distribution: Slackware, NetBSD
Posts: 1,555

Original Poster
Rep: Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027

Quote:
Originally Posted by 55020 View Post
Second, there is at least one build tool that supports non-root building and packaging.
Namely?
 
Old 05-14-2017, 03:49 PM   #17
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,082

Rep: Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749
Quote:
Originally Posted by Gerard Lally View Post
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 View Post
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).
 
Old 05-14-2017, 04:35 PM   #18
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Brú na Bóinne, IE
Distribution: Slackware, NetBSD
Posts: 1,555

Original Poster
Rep: Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027
Quote:
Originally Posted by bassmadrigal View Post
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?
 
Old 05-14-2017, 04:42 PM   #19
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,506

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
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)?
 
Old 05-14-2017, 04:47 PM   #20
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,082

Rep: Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749
Quote:
Originally Posted by Gerard Lally View Post
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

Last edited by bassmadrigal; 05-14-2017 at 04:50 PM. Reason: Adjustment for better grammar.
 
1 members found this post helpful.
Old 05-14-2017, 04:48 PM   #21
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 890

Rep: Reputation: Disabled
Hi,

Quote:
Originally Posted by Gerard Lally View Post
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
 
Old 05-14-2017, 04:53 PM   #22
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Brú na Bóinne, IE
Distribution: Slackware, NetBSD
Posts: 1,555

Original Poster
Rep: Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027
Quote:
Originally Posted by atelszewski View Post
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.
 
Old 05-14-2017, 04:56 PM   #23
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 890

Rep: Reputation: Disabled
Hi,

Quote:
Originally Posted by Gerard Lally View Post
No problem Andrzej. Dzieki.
;-)

--
Best regards,
Andrzej Telszewski
 
Old 05-15-2017, 07:58 PM   #24
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Brú na Bóinne, IE
Distribution: Slackware, NetBSD
Posts: 1,555

Original Poster
Rep: Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027
Source unavailable again.
 
Old 05-15-2017, 08:09 PM   #25
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,082

Rep: Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749
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"
 
Old 05-15-2017, 08:26 PM   #26
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Brú na Bóinne, IE
Distribution: Slackware, NetBSD
Posts: 1,555

Original Poster
Rep: Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027
Quote:
Originally Posted by bassmadrigal View Post
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!
 
Old 05-16-2017, 05:01 AM   #27
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
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
 
1 members found this post helpful.
Old 05-16-2017, 06:38 AM   #28
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,082

Rep: Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749Reputation: 3749
Quote:
Originally Posted by 55020 View Post
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
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
 
Old 05-22-2017, 07:51 AM   #29
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 890

Rep: Reputation: Disabled
Hi,

There you go.

--
Best regards,
Andrzej Telszewski
 
Old 05-22-2017, 08:05 AM   #30
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,506

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
Quote:
Originally Posted by montagdude View Post
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.
 
  


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
LibreOffice from source SlackBuild. orbea Slackware 28 09-09-2018 05:35 PM
PaleMoon from source SlackBuild khronosschoty Slackware 41 05-07-2017 06:55 AM
[SOLVED] Where might I find the kernel-source SlackBuild ? kjhambrick Slackware 12 10-19-2016 12:55 PM
For the Krusader fans on slackware64 slackbuild ROXR Slackware 0 07-20-2009 06:03 PM

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

All times are GMT -5. The time now is 05:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration