Page 1 of 1
Vice 2.3 with ethernet enabled
Posted: 5. Aug 2012, 22:59
by Tim CowChip
I have built an ethernet enabled Vice 2.3 package for Salix64 13.37 with slkbuild. The files are
here.
I would like to submit a ticket on the Salix package submission site.
If any changes need to be made, please respond when you have time.
Re: Vice 2.3 with ethernet enabled
Posted: 8. Aug 2012, 01:13
by Shador
There seem to be no major problems here. At a quick look everything seems alright. Go ahead with the ticket. The package is then going to be tested and reviewed and you'll be given the possibility to correct problems if any.
On a sidenote you don't need to ask for every package before creating a ticket. Your cairo one was not closed due to formal issues (that's what testing and review are for) it was a deeper problem, which needed a discussion prior to building any packages. If such a discussion is not needed because it's clear what packages are needed and how they are to be built you can just go ahead and submit a ticket. If then any formal problems are found, you're given the chance to correct the package. Of course we trust you to believe that everything formally is alright. But oversights happen or some details are not known. But that's unlike the cairo thing nothing that needs a bigger discssion. Just: Hey, there's a problem. - Fixed. - OK, package uploaded.
Re: Vice 2.3 with ethernet enabled
Posted: 8. Aug 2012, 01:40
by Tim CowChip
Ok. Shador, thanks for the explanation. I will submit the ticket. I may not be getting younger, but hopefully I'm not too old to learn.
Re: Vice 2.3 with ethernet enabled
Posted: 14. Aug 2012, 22:15
by Tim CowChip
Here is a matedialog script for selecting emulator type when launching the "vice" entry in the menu.
Code: Select all
#!/bin/bash
title="VICE: Which emulator do you want to use ?"
emulator_type=`matedialog --width="530" --height="275" --title="$title" --list --radiolist --column="Click Here" \
--column="Emulator Type" --column="Description" \
FALSE "x64" "C64 emulator"\
FALSE "x64dtv" "C64 Direct-to-TV (DTV) emulator"\
FALSE "x128" "C128 emulator"\
FALSE "xvic" "VIC20 emulator"\
FALSE "xpet" "PET emulator"\
FALSE "xplus4" "PLUS4 emulator"\
FALSE "xcbm2" "CBM-II emulator"\
| sed 's/ max//g' `
echo "$emulator_type chosen as the Emulator Type!."
#user must select a target type (Check if they cancelled)
if [ ! "$emulator_type" ]; then
exit
fi
######### This part takes the selection and applies it! #############
if [ "$emulator_type" = "x64" ]
then
# Do x64 here.
x64
elif [ "$emulator_type" = "x64dtv" ]
then
# Do x64dtv here.
x64dtv
elif [ "$emulator_type" = "x128" ]
then
# Do x128 here.
x128
elif [ "$emulator_type" = "xvic" ]
then
# Do xvic here.
xvic
elif [ "$emulator_type" = "xpet" ]
then
# Do xpet here.
xpet
elif [ "$emulator_type" = "xplus4" ]
then
# Do xplus4 here.
xplus4
elif [ "$emulator_type" = "xcbm2" ]
then
# Do xcbm2 here.
xcbm2
else
#if [ "$exit_type" = "Cancel" ]
#then
# Do Cancel here.
sleep 1 | matedialog --progress --percentage=95 --title=Cancelling Exit --auto-close --auto-kill --no-cancel --width=300
fi
Re: Vice 2.3 with ethernet enabled
Posted: 17. Aug 2012, 23:05
by Tim CowChip
Thanks for providing the font patch, gapan.
I copied it to the build directory then ran
Code: Select all
patch -p1 < $startdir/src/vice-2.3-no-fc-cache.patch || exit 1
and then
guessing that is what you meant by "running configure"
Before the patch
Code: Select all
Making install in fonts
make[2]: Entering directory `/home/chris/builds/vice-2.3/src/vice-2.3/data/fonts'
test -z "/usr/lib/vice/fonts" || /usr/bin/mkdir -p "/home/chris/builds/vice-2.3/pkg/usr/lib/vice/fonts"
/usr/bin/ginstall -c -m 644 vice-cbm.bdf CBM.ttf '/home/chris/builds/vice-2.3/pkg/usr/lib/vice/fonts'
Preparing fontdir, please wait...
cp: cannot stat ‘/usr/lib/vice/fonts/CBM.ttf’: No such file or directory
/home/chris/.fonts: failed to write cache
make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/chris/builds/vice-2.3/src/vice-2.3/data/fonts'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/chris/builds/vice-2.3/src/vice-2.3/data'
make: *** [install-recursive] Error 1
After the patch
Code: Select all
Making install in fonts
make[2]: Entering directory `/home/chris/builds/vice/src/vice-2.3/data/fonts'
test -z "/usr/lib/vice/fonts" || /usr/bin/mkdir -p "/home/chris/builds/vice/pkg/usr/lib/vice/fonts"
/usr/bin/ginstall -c -m 644 vice-cbm.bdf CBM.ttf '/home/chris/builds/vice/pkg/usr/lib/vice/fonts'
Preparing fontdir, please wait...
/home/chris/.fonts: failed to write cache
make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/chris/builds/vice/src/vice-2.3/data/fonts'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/chris/builds/vice/src/vice-2.3/data'
make: *** [install-recursive] Error 1
Is this what you expected ?
Re: Vice 2.3 with ethernet enabled
Posted: 17. Aug 2012, 23:18
by laprjns
Tim CowChip wrote:Thanks for providing the font patch, gapan.
I copied it to the build directory then ran
Code: Select all
patch -p1 < $startdir/src/vice-2.3-no-fc-cache.patch || exit 1
and then
guessing that is what you meant by "running configure"
No that's not correct. You need to put the patch line in the SLKBUILD file just before the ./configure line
Re: Vice 2.3 with ethernet enabled
Posted: 17. Aug 2012, 23:41
by Tim CowChip
Thank you laprjns,
here's the SLKBUILD
Code: Select all
#Maintainer: Chris Farrell <chris~at~opensuse~dot~us>
#Former Maintainer(s): George Vlahavas (vlahavas~at~gmail~dot~com)
#Mandatory
pkgname=vice
pkgver=2.3
pkgrel=1cf
source=("http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-$pkgver.tar.gz"
"http://people.salixos.org/timcowchip/i486_packages/vice-2.3/icons.tar.gz"
"http://people.salixos.org/timcowchip/i486_packages/vice-2.3/vice.desktop"
"http://people.salixos.org/timcowchip/i486_packages/vice-2.3/vice" )
docs=("AUTHORS" "COPYING" "ChangeLog" "FEEDBACK" "INSTALL" "NEWS" "README")
url=http://www.viceteam.org/
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"vice (an emulator for Commodore's 8-bit computers)"
"VICE is a program that runs on a Unix, MS-DOS, Win32, OS/2, Acorn"
"RISC OS, BeOS, QNX 6.x, Amiga, GP2X or Mac OS X machine and executes"
"programs intended for the old 8-bit computers. The current version"
"emulates the C64, the C128, the VIC20, almost all PET models, the"
"PLUS4 and the CBM-II (aka C610)."
)
build() {
cd $startdir/src/$pkgname-$pkgver
patch -p1 < $startdir/src/vice-2.3-no-fc-cache.patch || exit 1
./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --sysconfdir=/etc --enable-gnomeui --enable-ethernet --enable-fullscreen --disable-ffmpeg --without-oss
make || return 1
make install DESTDIR=$startdir/pkg
mkdir -p $startdir/pkg/usr/bin
cp $startdir/src/vice $startdir/pkg/usr/bin
chmod a+x $startdir/pkg/usr/bin/vice
mkdir -p $startdir/pkg/usr/share/applications
cp $startdir/src/vice.desktop $startdir/pkg/usr/share/applications/
# Copy icons to the right place
ICONSIZES="48 32 24 22 16"
for i in $ICONSIZES; do
mkdir -p $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps;
mv $startdir/src/$pkgname-$i.png $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps/$pkgname.png;
done;
# Remove unwanted files
rm -rf $startdir/pkg/usr/share/info/dir
}
the patch
Code: Select all
--- a/configure.in 2011-02-19 23:07:05.000000000 +0100
+++ b/configure.in 2012-08-06 13:18:46.000000000 +0200
@@ -1990,12 +1990,7 @@
fi
-AC_PATH_PROGS(FCCACHE, fc-cache, false)
-if test x"$FCCACHE" = "xfalse"; then
AM_CONDITIONAL(HAVE_FC_CACHE, false)
-else
- AM_CONDITIONAL(HAVE_FC_CACHE, true)
-fi
if test x"$is_amigaos4" = "xyes"; then
if test x"$enable_sdlui" != "xyes"; then
problem is when I run
I get
Code: Select all
./build-vice.sh: line 174: /home/chris/builds/vice/src/vice-2.3-no-fc-cache.patch: No such file or directory
Re: Vice 2.3 with ethernet enabled
Posted: 18. Aug 2012, 00:01
by laprjns
You need to add the following to the source lines in SLKBUILD
"
http://people.salixos.org/timcowchip/i4 ... ache.patch"
And upload the patch your repository site. The patch is considered part of the sources that you need to build the package
Re: Vice 2.3 with ethernet enabled
Posted: 18. Aug 2012, 00:31
by Tim CowChip
Ok I added the source line to SLKBUILD and I no longer get the error. I thought the patch file in the build directory would work, but I guess not.
Thanks again.
Code: Select all
Making install in fonts
make[2]: Entering directory `/home/chris/builds/vice/src/vice-2.3/data/fonts'
/usr/bin/mkdir -p '/home/chris/builds/vice/pkg/usr/lib/vice/fonts'
/usr/bin/ginstall -c -m 644 vice-cbm.bdf CBM.ttf '/home/chris/builds/vice/pkg/usr/lib/vice/fonts'
Preparing fontdir...
make[2]: Leaving directory `/home/chris/builds/vice/src/vice-2.3/data/fonts'
make[2]: Entering directory `/home/chris/builds/vice/src/vice-2.3/data'
make[3]: Entering directory `/home/chris/builds/vice/src/vice-2.3/data'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/chris/builds/vice/src/vice-2.3/data'
make[2]: Leaving directory `/home/chris/builds/vice/src/vice-2.3/data'
make[1]: Leaving directory `/home/chris/builds/vice/src/vice-2.3/data'