LinuxQuestions.org
Register a domain and help support LQ
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 04-07-2014, 09:50 AM   #31
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,142

Rep: Reputation: 152Reputation: 152

I messed up with some backups here and I ended up breaking my system. I reinstalled it yesterday and I think I will give up on upgrading mesa for now. To be honest, with the stock packages the system feels faster (can't actually confirm that but anyways). I am not noticing a sluggish behaviour like I was before. I think I will let it this way.
 
Old 04-07-2014, 10:14 AM   #32
hendrickxm
Member
 
Registered: Feb 2014
Posts: 86

Rep: Reputation: Disabled
Quote:
Originally Posted by moisespedro View Post
I messed up with some backups here and I ended up breaking my system. I reinstalled it yesterday and I think I will give up on upgrading mesa for now. To be honest, with the stock packages the system feels faster (can't actually confirm that but anyways). I am not noticing a sluggish behaviour like I was before. I think I will let it this way.
With the slackbuild for mesa I posted I succesfully updated to xorg-1.15. I have a nvidia gpu.
 
Old 04-07-2014, 10:16 AM   #33
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 96

Rep: Reputation: Disabled
Here is SlackBuild that I had used to build mesa-10.0.3 if it is of any interest..

Code:
#!/bin/sh

# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2013  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=mesa
VERSION=10.0.3
DEMOVERS=8.1.0
BUILD=${BUILD:-1}

NUMJOBS=${NUMJOBS:--j3}

# Be sure this list is up-to-date:
DRI_DRIVERS="i915,i965,r200,swrast"

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

CWD=${CWD:-$(pwd)}
TMP=${TMP:-/tmp}
PKG=$TMP/package-mesa

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC -march=native"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf Mesa-${VERSION}

tar xvf $CWD/MesaLib-${VERSION}.tar.?z* || exit 1
cd Mesa-$VERSION

# Let's kill the warning about operating on a dangling symlink:
rm -f src/gallium/state_trackers/d3d1x/w32api

# Make sure ownerships and permissions are sane:
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 {} \;

# Apply patches from git (and maybe elsewhere):
# Patches obtained by:
#   git checkout origin/8.0
#   git format-patch 3d657b14b4cab98a2945904823e78cd8950944f4.. # 8.0.3 release
if /bin/ls $CWD/patches/*.patch 1> /dev/null 2> /dev/null ; then
  for patch in $CWD/patches/*.patch ; do
    patch -p1 < $patch || exit 1 ; 
  done
fi

if [ ! -r configure ]; then
  autoreconf || exit 1
fi

# Running autogen to avoid problems if our autotools don't match upstream's:
./autogen.sh

CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --mandir=/usr/man \
  --docdir=/usr/doc/mesa-$VERSION \
  --with-dri-driverdir=/usr/lib${LIBDIRSUFFIX}/xorg/modules/dri \
  --with-dri-drivers="$DRI_DRIVERS" \
  --with-gallium-drivers=nouveau,r300,r600,svga \
  --enable-gallium-llvm \
  --enable-shared-glapi \
  --enable-xa \
  --enable-osmesa \
  --build=$ARCH-slackware-linux

# r300 requires llvm
# Other gallium drivers:
# galahad,i915,identity,llvmpipe,noop,nv50,nvc0,nvfx,rbug,softpipe,svga,trace

make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1

# Now install the demos
( cd $TMP
  rm -rf mesa-demos-$DEMOVERS
  tar xvf $CWD/mesa-demos-$DEMOVERS.tar.?z* || exit 1
  cd mesa-demos-$DEMOVERS
  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 {} \;  
  CFLAGS="$SLKCFLAGS" \
  ./configure \
    --prefix=/usr \
    --build=$ARCH-slackware-linux
  # Build and install gears and glinfo, as well as a few other demos
  make -C src/demos gears glinfo
  make -C src/xdemos \
    glthreads glxcontexts glxdemo glxgears glxgears_fbconfig \
    glxheads glxinfo glxpbdemo glxpixmap
  mkdir -p $PKG/usr/bin
  cp -a src/demos/{gears,glinfo} $PKG/usr/bin
  for i in glthreads glxcontexts glxdemo glxgears glxgears_fbconfig \
      glxheads glxinfo glxpbdemo glxpixmap ; do
        cp -a src/xdemos/$i $PKG/usr/bin ;
  done
)
  
# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null

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

# Compress info files, if any:
if [ -d $PKG/usr/info ]; then
  rm -f $PKG/usr/info/dir
  gzip -9 $PKG/usr/info/*
fi

mkdir -p $PKG/usr/doc/Mesa-$VERSION/html
cp -a \
  docs/COPYING* docs/relnotes-${VERSION}*.html docs/README* docs/GL* \
  $PKG/usr/doc/Mesa-$VERSION
cp -a docs/*.html $PKG/usr/doc/Mesa-$VERSION/html
rm -f $PKG/usr/doc/Mesa-$VERSION/html/relnotes*.html

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

cd $PKG
/sbin/makepkg -l y -c n $TMP/"${PKGNAM}-$VERSION-$ARCH-$BUILD"_custom.txz
 
Old 04-22-2014, 06:26 PM   #34
Stuferus
Member
 
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 144

Original Poster
Rep: Reputation: Disabled
i dont have any news or new ideas for this, but i think it may be time for a push. maybe we solve it before the next release of slackware and take some work of the team? or maybe do it with the team?

greatings.
 
Old 04-22-2014, 07:19 PM   #35
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097
I played with this a bit when I had some free time, but simply can't figure out what is going wrong here. I even tried it with a small Gentoo installation to figure out if there is maybe a regression somewhere, but on Gentoo everything compiles and works as intended. Sadly, I have no clue how Gentoo's ebuild files work, so that I can apply its build scripts to the Slackbuilds.

I am totally out of ideas here and, to be honest, currently thinking about switching my main machine to Gentoo (and learning how those ebuilds and Portage work). Portage seems to me to be sbopkg on steroids and I really like its concept.
 
Old 04-22-2014, 07:37 PM   #36
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,142

Rep: Reputation: 152Reputation: 152
Portage is cool, really complex but vrry nice. You gonna like Gentoo.
 
Old 04-23-2014, 05:31 AM   #37
Stuferus
Member
 
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 144

Original Poster
Rep: Reputation: Disabled
well ok, but i still hope the next slackware has xserver 1.15 und mesa 10.1.x - would be sweet.

ill guess this will be unsolved for ever.
 
Old 04-23-2014, 05:42 AM   #38
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,142

Rep: Reputation: 152Reputation: 152
By the way Tobi what happened? What went wrong?
 
Old 04-23-2014, 10:34 AM   #39
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097
Quote:
Originally Posted by moisespedro View Post
By the way Tobi what happened? What went wrong?
I am not able to compile a Mesa package in a way that it does not end up in /usr/local, which in turn seems to cause other packages to fail to compile. I just can't figure out what is wrong.
 
Old 04-23-2014, 10:40 AM   #40
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,142

Rep: Reputation: 152Reputation: 152
Have you tried the script aaditya posted? I am gonna do a clean Slackware install and try it once more.
 
Old 04-23-2014, 01:43 PM   #41
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097
Quote:
Originally Posted by moisespedro View Post
Have you tried the script aaditya posted?
No, in the relevant options of the configure command it is not different to mine, so I didn't try that.
Quote:
I am gonna do a clean Slackware install and try it once more.
Good luck with that.
 
Old 04-23-2014, 02:22 PM   #42
ReaperX7
Senior Member
 
Registered: Jul 2011
Location: California
Distribution: LFS-7.6, Slackware 14.1, FreeBSD 10.1
Posts: 3,851
Blog Entries: 15

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Did you check your account environment settings and see if there are any flags to redirect --prefix=/usr elsewhere?
 
Old 04-23-2014, 02:24 PM   #43
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,142

Rep: Reputation: 152Reputation: 152
I think I am giving up, it complains about a missing "dri3proto" even knowing I've set "disable-dri3" on it. I am with no mood to build dri3.

This is my mesa.SlackBuild, so far I've only build libdrm and llvm (had to put --enable-shared on llvm):

www.hastebin.com/ulovekuyen.parser3

Last edited by moisespedro; 04-23-2014 at 02:26 PM.
 
Old 04-23-2014, 02:40 PM   #44
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097Reputation: 4097
Quote:
Originally Posted by ReaperX7 View Post
Did you check your account environment settings and see if there are any flags to redirect --prefix=/usr elsewhere?
Yes. This was done in a clean chroot with no additions from me and all other packages compiled just fine and into the directories they belonged in.
 
Old 04-23-2014, 04:09 PM   #45
hendrickxm
Member
 
Registered: Feb 2014
Posts: 86

Rep: Reputation: Disabled
Did you build llvm3.4?
 
  


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
[SOLVED] Firefox-3.5.2 Segfaults, but I don't care) & ATI video business_kid Slackware 10 05-21-2010 11:21 AM
LXer: Share your experiences with FLOSS in health care LXer Syndicated Linux News 0 03-17-2010 12:30 AM
ATI Customer Care Response... Keithjr Linux - General 2 11-16-2004 08:48 PM
compiling ATI 3.7.0 with 2.6.3 kernel Darktyco Slackware 2 03-21-2004 05:23 AM
compiling ATI Mach64GX driver rastavideo Linux - Newbie 2 01-29-2003 03:39 PM


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