LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-03-2022, 08:27 PM   #1
adcdam
Member
 
Registered: Aug 2020
Location: Berisso, Argentina
Distribution: Slackware
Posts: 255

Rep: Reputation: 205Reputation: 205Reputation: 205
EMWM slackbuild for current


HI Jeebizz wanted a EMWM slackbuild so i made the two slackbuilds
i didnt test them but they build fine perhaps jeebizz can test them.

https://fastestcode.org/emwm.html
https://sourceforge.net/projects/emwm/
Download the two sources from here https://sourceforge.net/projects/emwm/files/
put them in a directory in your home for example home/youruser/EMWM
inside the directory
extract the two source code files: tar -Jxvf emwm-src-1.0.tar.xz
tar -Jxvf emwm-utils-src-1.0.tar.xz

remame the extracted source emwm-src-1.0 to EMWM-1.0
mv emwm-src-1.0 EMWM-1.0
compress to tar.gz:
tar -czvf EMWM-1.0.tar.gz EMWM-1.0
that would give a EMWM-1.0.tar.gz file

do the same for the other source
mv emwm-utils-src-1.0 EMWM-utils-1.0
tar -czvf EMWM-utils-1.0.tar.gz EMWM-utils-1.0
make the slackbuild executable
chmod +x EMWM.SlackBuild
chmod +x EMWM-utils.SlackBuild
run the slackbuild:
as root
./EMWM.SlackBuild

EMWM.SlackBuild

Code:
#!/bin/bash

# Slackware build script for EMWM

# Copyright 2021 adcdam Berisso,Argentina
# 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=EMWM		
VERSION=${VERSION:-1.0}	
BUILD=${BUILD:-1}
TAG=${TAG:-_adcdam}		

# Automatically determine the architecture we're building on:
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-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
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 {} \;


CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \

# Compile the application and install it into the $PKG directory
make
cd src
install -Dm 775 emwm -t $PKG/usr/bin/
install -Dm 664 emwm.1 -t $PKG/usr/man/man1
install -Dm 664 system.emwmrc -t  $PKG/etc/X11
mv Emwm.ad Emwm
install -Dm 664 Emwm -t $PKG/etc/X11/app-defaults

cd ..

# Strip binaries and libraries - this can be done with 'make install-strip'
# in many source trees, and that's usually acceptable if so, but if not,
# use this:
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

mkdir -p $PKG/etc/X11/xinit
cat $CWD/xinitrc.EMWM > $PKG/etc/X11/xinit/xinitrc.EMWM
chmod 0755 $PKG/etc/X11/xinit/xinitrc.EMWM

# Compress man pages
# If the man pages are installed to /usr/share/man instead, you'll need to either
# add the --mandir=/usr/man flag to configure or move them manually after the
# make install process is run.
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

# Remove perllocal.pod and other special files that don't need to be installed,
# as they will overwrite what's already on the system.  If this is not needed,
# remove it from the script.
# Remove 'special' files
find $PKG -name perllocal.pod \
  -o -name ".packlist" \
  -o -name "*.bs" \
  | xargs rm -f

# Copy the slack-desc (and a custom doinst.sh if necessary) into ./install
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

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

slack-desc

Code:
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.

    |-----handy-ruler------------------------------------------------------|
EMWM: 
EMWM:Enhanced Motif Window Manager (MWM fork).
EMWM
EMWM:Supports Xinerama, Xrandr, UTF-8/Xft, 
EMWM:
EMWM:and relevant Extended Window Manager Hints (EWMH)  
EMWM:Webpage: https://fastestcode.org/misc/emwm-guide.html 
EMWM:https://github.com/alx210/emwm 
EMWM:https://sourceforge.net/projects/emwm 
EMWM: 
EMWM:
xinitrc.EMWM

Code:
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

# Start the window manager:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  exec ck-launch-session /usr/bin/emwm
else
  exec /usr/bin/emwm
fi
install the package that is created in /tmp as root with installpkg
now do the same with the other slackbuild
make it executable run it and install

EMWM-utils.SlackBuild


Code:
#!/bin/sh

# Slackware build script for EMWM-utils

# Copyright 2021 adcdam Berisso,Argentina
# 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=EMWM-utils		
VERSION=${VERSION:-1.0}	
BUILD=${BUILD:-1}
TAG=${TAG:-_adcdam}		

# Automatically determine the architecture we're building on:
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-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
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 {} \;


CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \

# Compile the application and install it into the $PKG directory
make
cd src
install -Dm 775 xmsession -t $PKG/usr/bin
install -Dm 775 xmtoolbox -t $PKG/usr/bin
install -Dm 4775 xmsm -t $PKG/usr/bin
install -Dm 664 xmtoolbox.1 -t $PKG/usr/man/man1
install -Dm 664 xmsm.1 -t $PKG/usr/man/man1
mv XmSm.ad XmSm
install -Dm 664 XmSm -t $PKG/etc/X11/app-defaults
mv XmToolbox.ad XmToolbox
install -Dm 664 XmToolbox -t $PKG/etc/X11/app-defaults
install -Dm 664 toolboxrc -t $PKG/etc/X11

cd ..

# Strip binaries and libraries - this can be done with 'make install-strip'
# in many source trees, and that's usually acceptable if so, but if not,
# use this:
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

# Compress man pages
# If the man pages are installed to /usr/share/man instead, you'll need to either
# add the --mandir=/usr/man flag to configure or move them manually after the
# make install process is run.
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

# Remove perllocal.pod and other special files that don't need to be installed,
# as they will overwrite what's already on the system.  If this is not needed,
# remove it from the script.
# Remove 'special' files
find $PKG -name perllocal.pod \
  -o -name ".packlist" \
  -o -name "*.bs" \
  | xargs rm -f

# Copy the slack-desc (and a custom doinst.sh if necessary) into ./install
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

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

Code:
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.

    |-----handy-ruler------------------------------------------------------|
EMWM-utils: 
EMWM-utils: A simple session manager and a /toolchest/ like launcher 
EMWM-utils:
EMWM-utils: for EMWM
EMWM-utils:
EMWM-utils:  
EMWM-utils:https://sourceforge.net/projects/emwm/ 
EMWM-utils: 
EMWM-utils:
EMWM-utils: 
EMWM-utils:

Last edited by adcdam; 01-04-2022 at 01:10 PM.
 
Old 01-03-2022, 11:21 PM   #2
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
It didn't compile:
Code:
root@vslack:/home/slacker/emwm/emwm-src-1.0# ./EMWM.SlackBuild 
emwm-src-1.0/
emwm-src-1.0/COPYING
emwm-src-1.0/Makefile
emwm-src-1.0/README
emwm-src-1.0/mf/
emwm-src-1.0/mf/Makefile.FreeBSD
emwm-src-1.0/mf/Makefile.Linux
emwm-src-1.0/mf/Makefile.OpenBSD
emwm-src-1.0/mf/Makefile.SunOS
emwm-src-1.0/mf/Makefile.Tribblix
emwm-src-1.0/mf/Makefile.generic
emwm-src-1.0/src/
emwm-src-1.0/src/Emwm.ad
emwm-src-1.0/src/Mwm.msg
emwm-src-1.0/src/WmBitmap.h
emwm-src-1.0/src/WmCDInfo.c
emwm-src-1.0/src/WmCDInfo.h
emwm-src-1.0/src/WmCDecor.c
emwm-src-1.0/src/WmCDecor.h
emwm-src-1.0/src/WmCEvent.c
emwm-src-1.0/src/WmCEvent.h
emwm-src-1.0/src/WmCPlace.c
emwm-src-1.0/src/WmCPlace.h
emwm-src-1.0/src/WmCmd.c
emwm-src-1.0/src/WmCmd.h
emwm-src-1.0/src/WmColormap.c
emwm-src-1.0/src/WmColormap.h
emwm-src-1.0/src/WmDebug.h
emwm-src-1.0/src/WmError.c
emwm-src-1.0/src/WmError.h
emwm-src-1.0/src/WmEvent.c
emwm-src-1.0/src/WmEvent.h
emwm-src-1.0/src/WmEwmh.c
emwm-src-1.0/src/WmEwmh.h
emwm-src-1.0/src/WmFeedback.c
emwm-src-1.0/src/WmFeedback.h
emwm-src-1.0/src/WmFunction.c
emwm-src-1.0/src/WmFunction.h
emwm-src-1.0/src/WmGlobal.h
emwm-src-1.0/src/WmGraphics.c
emwm-src-1.0/src/WmGraphics.h
emwm-src-1.0/src/WmIBitmap.h
emwm-src-1.0/src/WmICCC.h
emwm-src-1.0/src/WmIDecor.c
emwm-src-1.0/src/WmIDecor.h
emwm-src-1.0/src/WmIPlace.c
emwm-src-1.0/src/WmIPlace.h
emwm-src-1.0/src/WmIconBox.c
emwm-src-1.0/src/WmIconBox.h
emwm-src-1.0/src/WmImage.c
emwm-src-1.0/src/WmImage.h
emwm-src-1.0/src/WmInitWs.c
emwm-src-1.0/src/WmInitWs.h
emwm-src-1.0/src/WmKeyFocus.c
emwm-src-1.0/src/WmKeyFocus.h
emwm-src-1.0/src/WmMain.c
emwm-src-1.0/src/WmManage.c
emwm-src-1.0/src/WmManage.h
emwm-src-1.0/src/WmMenu.c
emwm-src-1.0/src/WmMenu.h
emwm-src-1.0/src/WmOL.h
emwm-src-1.0/src/WmProperty.c
emwm-src-1.0/src/WmProperty.h
emwm-src-1.0/src/WmProtocol.c
emwm-src-1.0/src/WmProtocol.h
emwm-src-1.0/src/WmResCvt.c
emwm-src-1.0/src/WmResCvt.h
emwm-src-1.0/src/WmResNames.h
emwm-src-1.0/src/WmResParse.c
emwm-src-1.0/src/WmResParse.h
emwm-src-1.0/src/WmResource.c
emwm-src-1.0/src/WmResource.h
emwm-src-1.0/src/WmSignal.c
emwm-src-1.0/src/WmSignal.h
emwm-src-1.0/src/WmWinConf.c
emwm-src-1.0/src/WmWinConf.h
emwm-src-1.0/src/WmWinInfo.c
emwm-src-1.0/src/WmWinInfo.h
emwm-src-1.0/src/WmWinList.c
emwm-src-1.0/src/WmWinList.h
emwm-src-1.0/src/WmWinState.c
emwm-src-1.0/src/WmWinState.h
emwm-src-1.0/src/WmWsm.c
emwm-src-1.0/src/WmWsm.h
emwm-src-1.0/src/WmWsmLib/
emwm-src-1.0/src/WmWsmLib/debug.c
emwm-src-1.0/src/WmWsmLib/disp.c
emwm-src-1.0/src/WmWsmLib/free.c
emwm-src-1.0/src/WmWsmLib/pack.c
emwm-src-1.0/src/WmWsmLib/recv.c
emwm-src-1.0/src/WmWsmLib/send.c
emwm-src-1.0/src/WmWsmLib/util.c
emwm-src-1.0/src/WmWsmLib/utm_send.c
emwm-src-1.0/src/WmWsmLib/utm_send.h
emwm-src-1.0/src/WmWsmLib/wsm_funcs.h
emwm-src-1.0/src/WmWsmLib/wsm_proto.h
emwm-src-1.0/src/WmXSMP.c
emwm-src-1.0/src/WmXSMP.h
emwm-src-1.0/src/WmXinerama.c
emwm-src-1.0/src/WmXinerama.h
emwm-src-1.0/src/Xm/
emwm-src-1.0/src/Xm/VirtKeysI.h
emwm-src-1.0/src/common.mf
emwm-src-1.0/src/emwm.1
emwm-src-1.0/src/system.emwmrc
./EMWM.SlackBuild: line 67: cd: EMWM-1.0: No such file or directory
root@vslack:/home/slacker/emwm/emwm-src-1.0#
Also instead of decompressing and recompressing to tar.gz , can't an argument just be passed to extract the .xz archive in the script?

From tar's manpage:
Quote:
-J, --xz filter the archive through xz

Last edited by Jeebizz; 01-03-2022 at 11:25 PM.
 
Old 01-03-2022, 11:49 PM   #3
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Well I figured out what I did wrong and in the end it did compile , next trying emwm-utils...
 
Old 01-04-2022, 12:11 AM   #4
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
EMWM-Utils does not compile:
Code:
cc -O2 -Wall -I./Xm -I/usr/local/include  -DLARGECURSORS -DUNMAP_ON_RESTART -DNO_OL_COMPAT -DNO_MESSAGE_CATALOG -DRCDIR='"/etc/X11"'   -c -o WmWsmLib/recv.o WmWsmLib/recv.c
cc -O2 -Wall -I./Xm -I/usr/local/include  -DLARGECURSORS -DUNMAP_ON_RESTART -DNO_OL_COMPAT -DNO_MESSAGE_CATALOG -DRCDIR='"/etc/X11"'   -c -o WmWsmLib/send.o WmWsmLib/send.c
cc -O2 -Wall -I./Xm -I/usr/local/include  -DLARGECURSORS -DUNMAP_ON_RESTART -DNO_OL_COMPAT -DNO_MESSAGE_CATALOG -DRCDIR='"/etc/X11"'   -c -o WmWsmLib/util.o WmWsmLib/util.c
cc -O2 -Wall -I./Xm -I/usr/local/include  -DLARGECURSORS -DUNMAP_ON_RESTART -DNO_OL_COMPAT -DNO_MESSAGE_CATALOG -DRCDIR='"/etc/X11"'   -c -o WmWsmLib/utm_send.o WmWsmLib/utm_send.c
cc -L/usr/local/lib -o emwm WmCDInfo.o  WmCDecor.o      WmCEvent.o WmCPlace.o  WmColormap.o     WmError.o WmEvent.o     WmFeedback.o    WmFunction.o WmGraphics.o       WmIDecor.o      WmIPlace.o WmIconBox.o  WmKeyFocus.o    WmMain.o WmManage.o     WmProperty.o    WmResCvt.o WmResParse.o WmResource.o    WmSignal.o WmWinConf.o  WmWinInfo.o     WmWinList.o WmWinState.o        WmWsm.o         WmXSMP.o WmCmd.o        WmImage.o       WmInitWs.o WmMenu.o     WmProtocol.o    WmXinerama.o WmEwmh.o WmWsmLib/debug.o WmWsmLib/disp.o WmWsmLib/free.o WmWsmLib/pack.o WmWsmLib/recv.o WmWsmLib/send.o WmWsmLib/util.o WmWsmLib/utm_send.o -lm -lXm -lXt -lXext -lXrandr -lXinerama -lX11
make[1]: Leaving directory '/tmp/SBo/EMWM-utils-1.0/src'
install: cannot stat 'xmsession': No such file or directory
bash-5.1#
 
Old 01-04-2022, 03:38 AM   #5
lancsuk
Member
 
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 226

Rep: Reputation: 204Reputation: 204Reputation: 204
just a trifle

EMWM.SlackBuild

Code:
--- old/EMWM.SlackBuild	2022-01-04 09:24:01.205328076 +0000
+++ EMWM.SlackBuild	2022-01-04 09:20:54.530335731 +0000
@@ -25,6 +25,7 @@
 # |-----------------------------------------------------------------| #
 
 PRGNAM=EMWM		
+SRCNAM=emwm-src		
 VERSION=${VERSION:-1.0}	
 BUILD=${BUILD:-1}
 TAG=${TAG:-_adcdam}		
@@ -62,9 +63,9 @@
 rm -rf $PKG
 mkdir -p $TMP $PKG $OUTPUT
 cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.xz
+cd $SRCNAM-$VERSION
 chown -R root:root .
 find -L . \
  \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
EMWM-utils.SlackBuild

Code:
--- old/EMWM-utils.SlackBuild	2022-01-04 09:27:38.851319151 +0000
+++ EMWM-utils.SlackBuild	2022-01-04 09:21:31.327334222 +0000
@@ -25,6 +25,7 @@
 # |-----------------------------------------------------------------| #
 
 PRGNAM=EMWM-utils		
+SRCNAM=emwm-utils-src
 VERSION=${VERSION:-1.0}	
 BUILD=${BUILD:-1}
 TAG=${TAG:-_adcdam}		
@@ -62,9 +63,9 @@
 rm -rf $PKG
 mkdir -p $TMP $PKG $OUTPUT
 cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.xz
+cd $SRCNAM-$VERSION
 chown -R root:root .
 find -L . \
  \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
Attached Thumbnails
Click image for larger version

Name:	2022-01-04-091345_1920x1080_scrot.png
Views:	62
Size:	191.6 KB
ID:	37993  
 
Old 01-04-2022, 10:25 AM   #6
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Quote:
Originally Posted by lancsuk View Post
just a trifle

What about the utils, did you try those? The sole reasons for wanting EMWM is that it is supposed to be easier to customize. I will try again later to recompile it - and if it does live up; then hopefully Pat might notice - and replace MWM with EMWM *fingers crossed*.

Last edited by Jeebizz; 01-04-2022 at 10:28 AM.
 
Old 01-04-2022, 11:47 AM   #7
lancsuk
Member
 
Registered: Jul 2019
Location: Burnley / UK
Distribution: Slackware current
Posts: 226

Rep: Reputation: 204Reputation: 204Reputation: 204
Quote:
Originally Posted by Jeebizz View Post
What about the utils, did you try those? The sole reasons for wanting EMWM is that it is supposed to be easier to customize. I will try again later to recompile it - and if it does live up; then hopefully Pat might notice - and replace MWM with EMWM *fingers crossed*.
I have just built the packages and customized the root menu. Sadly I have no experience with mwm/emwm and I was surprised because I couldn't find any window decoration themes in cyberspace.
 
Old 01-04-2022, 12:09 PM   #8
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Quote:
Originally Posted by lancsuk View Post
I have just built the packages and customized the root menu. Sadly I have no experience with mwm/emwm and I was surprised because I couldn't find any window decoration themes in cyberspace.
I admit I don't know either - does it or can it utilize those types of files that CDE uses (can't remember the file extension) - but they are essentially code (not actual images), but it generates a 'backdrop', and some look kinda cool. Also I just wanted an easier way of tweaking the colors and such, because again tl;dr on the manual, and I couldn't find anything in the manpages for MWM as there was so much to go through.
 
Old 01-04-2022, 12:13 PM   #9
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Also I am dumb, how do I update the slackbuilds for the utils?
 
Old 01-04-2022, 01:14 PM   #10
adcdam
Member
 
Registered: Aug 2020
Location: Berisso, Argentina
Distribution: Slackware
Posts: 255

Original Poster
Rep: Reputation: 205Reputation: 205Reputation: 205
i think you made a mistake with EMWM-utils.Slackbuild it build fine, are you sure you use the right source? you can copy the EMWM-utils and EMWM-utils source code and slack-desc to another directory and run the slackbuild from there.
 
Old 01-04-2022, 01:41 PM   #11
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
You are right again - I have no excuse even if it was late last night - and I wasn't even drunk... It compiled now after redownloading the RIGHT file..... dopey me...again

Click image for larger version

Name:	VirtualBox_Slackware --Current_04_01_2022_13_40_57.png
Views:	34
Size:	189.4 KB
ID:	37995

Last edited by Jeebizz; 01-04-2022 at 01:42 PM.
 
1 members found this post helpful.
Old 01-04-2022, 01:50 PM   #12
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Well I am in EMWM......nothing different, and I even got the utils installed but nothing in the context menu on the utils ... sooo ........ yea my stupidity is rearing up again...Now what am I missing?

Click image for larger version

Name:	VirtualBox_Slackware --Current_04_01_2022_13_49_19.png
Views:	33
Size:	10.6 KB
ID:	37996Click image for larger version

Name:	Screenshot_2022-01-04_13-51-13.png
Views:	30
Size:	115.6 KB
ID:	37997

Last edited by Jeebizz; 01-04-2022 at 01:52 PM.
 
Old 01-04-2022, 02:22 PM   #13
alnun
LQ Newbie
 
Registered: Mar 2021
Posts: 29

Rep: Reputation: Disabled
Has virtual desktops been aded to EMWM? Because that's the one thing stopping me from using EMWM right now. I recall the guy maintaining the fork said he was going to add it eventually.
 
Old 01-04-2022, 02:38 PM   #14
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Quote:
Originally Posted by alnun View Post
Has virtual desktops been aded to EMWM? Because that's the one thing stopping me from using EMWM right now. I recall the guy maintaining the fork said he was going to add it eventually.
From https://fastestcode.org/emwm-hist.txt , it does not look like it yet. Maybe try shooting him an email? *shrug*
 
Old 01-04-2022, 02:42 PM   #15
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,190

Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Although checking further - this implies it should support virtual desktops?

Quote:
https://fastestcode.org/misc/emwm-guide.html

Didn't MWM have multiple desktop/workspace support at some point in time?

MWM had it all along, and the code is still there, albeit currently disabled, because it is implemented on top of Sun's IPC. The old code can be eventually repurposed for an EWMH based implementation. Then again, while it was a desirable feature when all you had was a 14" CRT with 800x600 pixel resolution, with screen space available nowadays I personally don't care for it at all.

Last edited by Jeebizz; 01-04-2022 at 05:15 PM.
 
  


Reply



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] sbopkg installs "original" SlackBuild to /usr/doc/<pkg>/ instead of "local" SlackBuild drumz Slackware 29 01-20-2018 12:12 AM
[Patch and SlackBuild] Grub-2.02~beta2 SlackBuild and Patch. ReaperX7 Slackware 3 01-28-2015 09:30 AM
How can I make PyQt4 slackbuild compile in Slackware64 <current>...? Alexvader Slackware 9 12-30-2009 07:45 AM
fluxbox.SlackBuild in -current typo? wadsworth Slackware 9 11-13-2008 01:59 PM
GSB.SlackBuild ran on Slack-Current acummings Slackware 7 08-04-2006 08:30 AM

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

All times are GMT -5. The time now is 09:38 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
Open Source Consulting | Domain Registration