SlackwareThis 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.
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.
Hello Slackware users
I compile gcc-4.8.1 and rebuild my entire system from scratch.Yes i know i use minimal system installation but all packages build perfectly.
This is the steps and packages that i rebuild from source using new gcc-4.8.1
First i recompile all the packages/dependencies needed to rebuild my entire system.
First i recompile all packages/dependencies with gcc-4.8.0
The dependencie packages needed to rebuild my entire system
This is the build order
Second step is compiling toolchain
Build order are
Code:
binutils
kernel-headers
gcc-4.8.0_static
glibc
gcc
ncurses
bash
bzip2
coreutils
diffutils
perl
file
findutils
gawk
grep
gzip
make
sed
tar - #add sed -i -e '/gets is a/d' gnu/stdio.in.h to Slackbuild to compile tar against new glibc-2.17
xz
Third step is to recompile again all the dependencies with new gcc-4.8.1
Four step is to recompile system packages
Build order are
Code:
aaa_base
aaa_elflibs
alsa-lib
alsa-oss
alsa-utils
atk
attr
audiofile
bin
bc
cairo
cdrtools
cxxlibs
cyrus-sasl
dbus
dbus-glib
devs
dhcpcd
dialog
e2fsprogs
eject
etc
exiv2
flac
fribidi
freetype
harfbuzz
icu4c
gdk-pixbuf2
pango
geeqie
giflib
glib2
gnupg
gtk+2
gvfs
htop
infozip
iputils
kernel-firmware
kmod
lcms
lcms2
libatasmart
libcdio
libcroco
libffi
libgcrypt
libmad
libmcs
libmng
libmowgli
libmpc
libnotify
libogg
libpng
libtheora
libvorbis
libwnck
libxklavier
libxml2
lilo
links
lzo
mpg123
nano
#net-tools #Missing kernel header file ip_h
network-scripts
openssl
phonon
pkgtools
polkit
poppler
procps
sdl
shadow
shared-mime-info
#slackpkg # No source available
slocate
startup-notification
sysklogd
sysvinit
sysvinit-scripts
udev # To compile udev with new glibc-2.17 i need to add -lrt CFLAG
udisks2
unrar
util-linux
vte
wget
which
zlib
kernel
kernel-modules
Five step is to compile X
Build order are
Code:
fontconfig
freeglut
glew
libdrm
mtdev
mesa
glu
x11-skel
fontconfig-infinality
xorg-server packages - I use minimal instalation and this is the packages from X
iceauth
setxkbmap
xauth
xinit
xkbutils
xkeyboard-config
xf86-input-evdev
xf86-video-ati
libfontenc
libICE
libSM
libX11
libXau
libxcb
libXcomposite
libXcursor
libXdamage
libXdmcp
libXext
libXfixes
libXfont
libXft
libXi
libXinerama
libxkbfile
libXmu
libXrandr
libXrender
libXres
libXScrnSaver
libXt
libXv
libXxf86dga
libXxf86vm
pixman
libxcb
xcb-util
xorg-server
Six step is to recompile xfce4
This is the build order
With this net-tools now compiles perfect
This is updated SlackBuild script.I made some modifications to it
Code:
#!/bin/sh
# Copyright 2006, 2007, 2008, 2009, 2010, 2012 Patrick J. Volkerding, Sebeka, MN, USA
# 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.
PKGNAM=net-tools
VERSION=${VERSION:-CVS_20101030}
BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i486 ;;
arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-${PKGNAM}
rm -rf $PKG
mkdir -p $TMP $PKG
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
elif [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
else
SLKCFLAGS="-O2"
fi
cd $TMP
rm -rf net-tools-$VERSION
tar xvf $CWD/net-tools-$VERSION.tar.gz || exit 1
cd net-tools-$VERSION || exit 1
sed -i -e '/Token/s/y$/n/' config.in
sed -i -e '/HAVE_HWSTRIP/s/y$/n/' config.in
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
mkdir -p $PKG/usr/doc/net-tools-$VERSION
cp -a COPYING* README* $PKG/usr/doc/net-tools-$VERSION
chmod 644 $PKG/usr/doc/net-tools-$VERSION/*
chown root:root $PKG/usr/doc/net-tools-$VERSION/*
yes "" | make config
make
make update DESTDIR=$PKG
strip --strip-unneeded ipmaddr iptunnel hostname arp ifconfig nameif rarp route netstat plipconfig slattach mii-tool
mkdir -p $PKG/sbin $PKG/bin $PKG/usr/sbin
cat arp > $PKG/sbin/arp
cat ifconfig > $PKG/sbin/ifconfig
cat rarp > $PKG/sbin/rarp
cat route > $PKG/sbin/route
cat hostname > $PKG/bin/hostname
cat mii-tool > $PKG/sbin/mii-tool
cat nameif > $PKG/sbin/nameif
cat netstat > $PKG/bin/netstat
cat plipconfig > $PKG/sbin/plipconfig
cat slattach > $PKG/usr/sbin/slattach
cat ipmaddr > $PKG/sbin/ipmaddr
cat iptunnel > $PKG/sbin/iptunnel
chmod 755 $PKG/sbin/* $PKG/bin/* $PKG/usr/sbin/*
cd man/en_US
mkdir -p $PKG/usr/man/man{1,5,8}
for page in dnsdomainname.1 domainname.1 hostname.1 nisdomainname.1 \
ypdomainname.1 ; do
cat $page | gzip -9c > $PKG/usr/man/man1/$page.gz
done
cat ethers.5 | gzip -9c > $PKG/usr/man/man5/ethers.5.gz
for page in arp.8 ifconfig.8 mii-tool.8 nameif.8 netstat.8 rarp.8 route.8 \
slattach.8 plipconfig.8 ; do
cat $page | gzip -9c > $PKG/usr/man/man8/$page.gz
done
( cd $PKG/bin
ln -sf hostname dnsdomainname
ln -sf hostname nisdomainname
ln -sf hostname ypdomainname
)
# This is a little Slackware-specific tool used in some of the network
# related scripts to calculate network and broadcast addresses:
( cd $PKG/bin
cc -O2 -o ipmask $CWD/ipmask.c
strip --strip-unneeded ipmask
chmod 755 ipmask
)
cat $CWD/ipmask.8 | gzip -9c > $PKG/usr/man/man8/ipmask.8.gz
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz
tux, in your gcc script, you hardcoded x86_64 only
why not both arches ?
Well i don't think that anybody want to try this.
My host is x86_64 it's not so hard to edit this script and reconfigure it to i686.
I also have create a build script for all dependencies,"system stuff",all toolchain packages,"other stuff" ,etc
And, because, of its development model, Slackware is considered as "not easy rebuild-able from sources", and even "un-rebuild-able from sources", I suggest you to continue to develop your work and this thread is what I call "it should be sticky"!
Why? Because if we manage to have a sources tree where with execution of an "slackware.Slackbuild" of even few scripts, we have opened a great window for experimentation, i.e. "which one is better as ARCH? i486, i586 or i686?" and for even more stability for Slackware, i.e. a more simple way to resolve The Great LibPNG Problem.
Also, porting the slackware to an new ARM platform will become more easy, when we known "how to build Slackware, step-by-step".
Last edited by Darth Vader; 06-05-2013 at 04:03 PM.
And, because, of its development model, Slackware is considered as "not easy rebuild-able from sources", and even "un-rebuild-able from sources", I suggest you to continue to develop your work and this thread is what I call "it should be sticky"!
Why? Because if we manage to have a sources tree where with execution of an "slackware.Slackbuild" of even few scripts, we have opened a great window for experimentation, i.e. "which one is better as ARCH? i486, i586 or i686?" and for even more stability for Slackware, i.e. a more simple way to resolve The Great LibPNG Problem.
Also, porting the slackware to an new ARM platform will become more easy, when we known "how to build Slackware, step-by-step".
Thank you for your support neighbour
Well the hardest part of that build was the build order for the packages.Especially for dependiencies
Здравей Йоане
Hello all.Now i use google-chrome.To make possible to download magnet links with transmission i need to patch xdg-open.
This is the patch that i used.
Code:
--- xdg-open 2012-02-18 14:22:48.058497027 +0200
+++ xdg-open 2012-02-18 14:24:04.326875223 +0200
@@ -440,6 +440,11 @@
exit_success
fi
fi
+ elif (echo "$1" | grep -q '^magnet:'); then
+ transmission-gtk "$1"
+ if [ $? -eq 0 ]; then
+ exit_success
+ fi
fi
IFS=":"
Ok now this is for Pat
This patch is needed to openssl to build with new perl-5.18 because the build fails in pod2man while trying to generate man pages from the pod files
This is the error
Code:
cms.pod around line 457: Expected text after =item, not a number
cms.pod around line 461: Expected text after =item, not a number
cms.pod around line 465: Expected text after =item, not a number
cms.pod around line 470: Expected text after =item, not a number
cms.pod around line 474: Expected text after =item, not a number
POD document had syntax errors at /usr/bin/pod2man line 71.
make: *** [install_docs] Error 1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.