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 11-06-2019, 09:02 AM   #76
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,797

Rep: Reputation: Disabled

Quote:
Originally Posted by GazL View Post
Exactly. the shell-script is the easy part in all this. Collecting the right set of patches and choosing the right set of build options is the difficult part.
I thought the hard part was dealing with unreasonable upstreams that ship broken software and do not respect bug reports.
 
Old 11-06-2019, 09:02 AM   #77
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,613

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by Didier Spaier View Post
I don' really understand what you request or suggest, and other's answers make me think I am not alone.

If you provide as an example at least the beginning of a free language description of a very simple SlackBuild, maybe that would help me and others to actually understand what you want.
Yeah, I asked him to do that already. He said no, it's easy, so everyone else should do it for him. I'm honestly wondering whether he is just trolling us at this point.
 
Old 11-06-2019, 09:05 AM   #78
GazL
LQ Guru
 
Registered: May 2008
Posts: 5,250
Blog Entries: 18

Rep: Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991
Quote:
Originally Posted by orbea View Post
I thought the hard part was dealing with unreasonable upstreams that ship broken software and do not respect bug reports.
That as well.
 
Old 11-06-2019, 10:58 AM   #79
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 1,405

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Ok, I am asking for volunteer to provide its own script. I will decribe it in my own language. Just description. Volunteer may copy and paste here or provide a link.
 
Old 11-06-2019, 11:05 AM   #80
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,613

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by igadoter View Post
Ok, I am asking for volunteer to provide its own script. I will decribe it in my own language. Just description. Volunteer may copy and paste here or provide a link.
There are thousands of them on slackbuilds.org.
 
Old 11-06-2019, 11:22 AM   #81
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 1,405

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by montagdude View Post
There are thousands of them on slackbuilds.org.
Nope, I need authorization. If you can create your own - create it put it here and I will start to describe it. These people created these scripts - they are signed and even licensed. I would eg. talk to author about something inside.
 
Old 11-06-2019, 11:40 AM   #82
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,051

Rep: Reputation: Disabled
You don't need any authorization to comment a SlackBuild. This notwithstanding, feel free to do what you want with this one, that I wrote and put in the public domain:
Code:
#!/bin/sh

CWD=$(pwd)

PKGNAM=speechd-el
VERSION=2.8
BUILD=${BUILD:-3slint}

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

TMP=$CWD
PKG=$TMP/package-${PKGNAM}
rm -rf $PKG
mkdir -p $PKG

cd $TMP
rm -rf ${PKGNAM}-${VERSION}
tar xvf $CWD/${PKGNAM}-$VERSION.tar.?z* || exit 1
cd ${PKGNAM}-$VERSION || exit 1

ROOTPKG=$PKG/usr/share/emacs/site-lisp/speechd-el
mkdir -p $ROOTPKG
cp *.el $ROOTPKG
mkdir -p $PKG/usr/bin
cp speechd-log-extractor $PKG/usr/bin
chmod -R 755 $PKG/usr/bin
mkdir -p $PKG/usr/doc/${PKGNAM}-$VERSION/texi
mkdir -p $PKG/usr/info 
for i in *info; do
  gzip -c9 $i > $PKG/usr/info/$(basename $i).gz
done
cd $PKG/usr/doc/${PKGNAM}-$VERSION/
find $CWD/${PKGNAM}-$VERSION -name "*.texi" -exec cp $(basename '{}') texi/ ';'
cp -f $CWD/${PKGNAM}-$VERSION/{speechd-speak.pdf,speechd-el.html} ./
cp $CWD/${PKGNAM}-$VERSION/{ANNOUNCE,AUTHORS,COPYING,NEWS,README} ./
cp $CWD/README.Slint ./
chown -R root:root $PKG 
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $TMP/package-${PKGNAM}
/sbin/makepkg -l y -c n ../${PKGNAM}-$VERSION-$ARCH-$BUILD.txz
It is named speehchd-el.SlackBuild and you will find it in context here: http://slackware.uk/slint/x86_64/sli...ce/speechd-el/

Last edited by Didier Spaier; 11-06-2019 at 11:41 AM.
 
Old 11-06-2019, 12:30 PM   #83
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,734

Rep: Reputation: 6297Reputation: 6297Reputation: 6297Reputation: 6297Reputation: 6297Reputation: 6297Reputation: 6297Reputation: 6297Reputation: 6297Reputation: 6297Reputation: 6297
Quote:
Originally Posted by igadoter View Post
I asked for free language description of sbo script. Nothing really precise, adequate, just in own words. Do you think this is lot of things? But as usually thread diverged.
Your question has been answered, several times, in this thread. I must assume that you do not read what we write.
It's time for you to either shut up or provide some work that you yourself produced.
 
1 members found this post helpful.
Old 11-06-2019, 12:48 PM   #84
urbanwks
Member
 
Registered: Sep 2003
Distribution: Slackware64-Current, FreeBSD 11.0
Posts: 182

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by igadoter View Post
Nope, I need authorization. If you can create your own - create it put it here and I will start to describe it. These people created these scripts - they are signed and even licensed. I would eg. talk to author about something inside.
This is categorically untrue as most if not all are BSD/MIT (a bit nuts to suggest as well, since a quick look at any slackbuild proves otherwise), and the absolute refusal to do something as simple as going to slackbuilds.org and grabbing any random script simply to paste here convinces me (and others I'm sure) that there's no interest in doing anything at all on your own.
 
1 members found this post helpful.
Old 11-06-2019, 12:54 PM   #85
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 3,550
Blog Entries: 9

Rep: Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970Reputation: 1970
Does this thread really need to continue? It's doing nothing useful.
 
Old 11-06-2019, 01:02 PM   #86
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 1,405

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
You don't need any authorization to comment a SlackBuild. This notwithstanding, feel free to do what you want with this one, that I wrote and put in the public domain:
Code:
#!/bin/sh

CWD=$(pwd)

PKGNAM=speechd-el
VERSION=2.8
BUILD=${BUILD:-3slint}

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

TMP=$CWD
PKG=$TMP/package-${PKGNAM}
rm -rf $PKG
mkdir -p $PKG

cd $TMP
rm -rf ${PKGNAM}-${VERSION}
tar xvf $CWD/${PKGNAM}-$VERSION.tar.?z* || exit 1
cd ${PKGNAM}-$VERSION || exit 1

ROOTPKG=$PKG/usr/share/emacs/site-lisp/speechd-el
mkdir -p $ROOTPKG
cp *.el $ROOTPKG
mkdir -p $PKG/usr/bin
cp speechd-log-extractor $PKG/usr/bin
chmod -R 755 $PKG/usr/bin
mkdir -p $PKG/usr/doc/${PKGNAM}-$VERSION/texi
mkdir -p $PKG/usr/info 
for i in *info; do
  gzip -c9 $i > $PKG/usr/info/$(basename $i).gz
done
cd $PKG/usr/doc/${PKGNAM}-$VERSION/
find $CWD/${PKGNAM}-$VERSION -name "*.texi" -exec cp $(basename '{}') texi/ ';'
cp -f $CWD/${PKGNAM}-$VERSION/{speechd-speak.pdf,speechd-el.html} ./
cp $CWD/${PKGNAM}-$VERSION/{ANNOUNCE,AUTHORS,COPYING,NEWS,README} ./
cp $CWD/README.Slint ./
chown -R root:root $PKG 
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $TMP/package-${PKGNAM}
/sbin/makepkg -l y -c n ../${PKGNAM}-$VERSION-$ARCH-$BUILD.txz
It is named speehchd-el.SlackBuild and you will find it in context here: http://slackware.uk/slint/x86_64/sli...ce/speechd-el/
Just you are repackaging here some emacs plugin. Script as usually contains preamble, cleanup, there is no build here, so no compiler flags, script is rather dirty but it works. At this point no agreement was reached to use "$PROTECTED" or $NOTPROTECTED references. Some commands comparing to another scripts are in different order. Using tar in the way as in the script is in my opinion dirty. I think it would be better to provide explicitly --distdir. To set TMP to point to CWD is also unusual. Commonly it is taken form environment or set to default. But for you I understand it is more convenient. So this is my description.
 
Old 11-06-2019, 01:30 PM   #87
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,051

Rep: Reputation: Disabled
Quote:
Originally Posted by igadoter View Post
So this is my description.
OK. Now, what is the next step? What can we do with this description?
 
1 members found this post helpful.
Old 11-06-2019, 03:55 PM   #88
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: slackware...
Posts: 98

Rep: Reputation: 42
Looks like compiler/interpreter directives?
 
1 members found this post helpful.
Old 11-06-2019, 04:40 PM   #89
GazL
LQ Guru
 
Registered: May 2008
Posts: 5,250
Blog Entries: 18

Rep: Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991Reputation: 2991
And here's one of mine, which doesn't follow the SBo template, though its pretty much the same process.
Code:
#!/bin/sh
# Build script for 'cwm'  ( based on build_template 1.5 )

set -e

DATE="$(date +%Y%m%d)"

PRGNAM='cwm'
BUILD="${BUILD:-1}"
TAG="${TAG:-_local}"

case "${ARCH:=$(uname -m)}" in
      i686)  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
             LIBDIRSUFFIX=""
             ;;
      i586)  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
             LIBDIRSUFFIX=""
             ;;
      arm*)  ARCH="arm"
             SLKCFLAGS=""
             LIBDIRSUFFIX=""
             ;;
    x86_64)  SLKCFLAGS="-O2"
             LIBDIRSUFFIX="64"
             ;;
      s390)  SLKCFLAGS=""
             LIBDIRSUFFIX=""
             ;;
         *)  SLKCFLAGS=""
             LIBDIRSUFFIX=""
             ;;
esac

CWD="$(pwd)"
PKGTMP="$(mktemp -t -d "pkg-$PRGNAM.XXXXXX")"
SRCTMP="$(mktemp -t -d "src-$PRGNAM.XXXXXX")"

########################################################################

# Unpack:

SRCDIR="/usr/src/$PRGNAM"

if [ -d "$SRCDIR/.git" ]; then
  cd "$SRCDIR"
  VERSION=$( git describe --abbrev=0 )
  mkdir "$SRCTMP/$PRGNAM-$VERSION"
  cp -R * "$SRCTMP/$PRGNAM-$VERSION/"
else 
  TARBALL="$(find "$CWD" -maxdepth 1 -name "${PRGNAM}*.tar.*" | head -n 1)"
  VERSION="${TARBALL##*/${PRGNAM}-}"
  VERSION="${VERSION%.tar.*}"
  cd "$SRCTMP" && tar xvf "$TARBALL"
fi

cd "$SRCTMP/$PRGNAM-$VERSION"

# Build:

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make PREFIX=/usr MANPREFIX=/usr/man DESTDIR="$PKGTMP" install

# Support files:
cp $CWD/startcwm "$PKGTMP/usr/bin/startcwm"
chmod 755 "$PKGTMP/usr/bin/startcwm"
mkdir -p "$PKGTMP/etc/X11/xinit/"
cp $CWD/xinitrc.cwm "$PKGTMP/etc/X11/xinit/xinitrc.cwm"

# Docs:
mkdir -p "$PKGTMP/usr/doc/$PRGNAM-$VERSION"
cp -a -t "$PKGTMP/usr/doc/$PRGNAM-$VERSION" \
          README 
cp $CWD/cwmrc.sample "$PKGTMP/usr/doc/$PRGNAM-$VERSION"

########################################################################
# Packaging:

OUTPUT="${OUTPUT:-/tmp}"
PKGFILE="$OUTPUT/$PRGNAM-${VERSION//-/_}-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}"

mkdir -p "$PKGTMP/install"
cat "$CWD/slack-desc" > "$PKGTMP/install/slack-desc"

if [ -f "$CWD/doinst.sh" ]; then 
  cat "$CWD/doinst.sh" > "$PKGTMP/install/doinst.sh"
fi

cd "$PKGTMP" && /usr/local/bin/buildpkg "$PKGFILE"

########################################################################
Pretty self explanatory, other than 'buildpkg'.

/usr/local/bin/buildpkg is a wrapper around makepkg I wrote. I does all the stuff like compressing man-pages and info-files so that I don't have to include that part in each and every build script. It also invokes itself using sudo so my build scripts can run as non-root.
 
Old 11-06-2019, 09:52 PM   #90
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,505

Rep: Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836Reputation: 1836
I'm starting to believe that @igadoter is a PhD studying psychology and we are part of some type of experiment.
 
3 members found this post helpful.
  


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
Suitesparse /Cuda SBo, complains about too advanced GCC, although being built with GCC 5 from the same SBo. Lockywolf Slackware 5 04-28-2019 11:17 PM
nvidia-driver SBo The symbolic link '/usr/lib/libGL.so.1' does not point to 'tmp/SBo/package-nvidia-driver/usr/lib64/libGL.so.1' Gerardo Zamudio Slackware 5 07-30-2017 11:44 PM
Questions for Robby, ponce, or anyone from SBo about SBo submission requirements. ReaperX7 Slackware 4 06-07-2015 12:30 PM
Nvidia-driver.SlackBuild from SBo (or: I am a bad and sloppy SBo maintainer) kingbeowulf Slackware 8 08-31-2012 03:41 AM

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

All times are GMT -5. The time now is 08:10 PM.

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