Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xzoom: error after installing with portage, run fine otherwi
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1547
Location: Switzerland (Romandie)

PostPosted: Sun Jun 03, 2007 2:50 pm    Post subject: xzoom: error after installing with portage, run fine otherwi Reply with quote

Hi all,
I am trying to do an ebuild for xzoom. It is a nice application that magnify part of X display, with real-time updates, much better as xmag.

When installing it by hand, with just:
Code:
xmkmf -a
make
su -c "make install"

the program is working just fine.

When installing it with the following ebuild:
Code:
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

IUSE=""

inherit

RESTRICT="nomirror"

DESCRIPTION="Magnify part of X display, with real-time updates."
# Not sure, but it look like it doesn't have any homepage, so use the Debian devel page
HOMEPAGE="http://packages.qa.debian.org/x/xzoom.html"
SRC_URI="http://ftp.debian.org/debian/pool/main/x/xzoom/${PN}_${PV}.orig.tar.gz"

LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"

DEPEND="x11-misc/imake
        x11-libs/libX11
        x11-libs/libXext
        x11-libs/libXt
        x11-libs/libICE
        x11-libs/libSM
        x11-base/xorg-x11"

S="${WORKDIR}/${P}.orig"

src_compile() {
        cd ${S}
        xmkmf -a
        sed -i -e 's:/usr/local/bin:/usr/X11R6/bin:' Makefile || die "sed failed"

        emake DESTDIR="${D}/usr" || die "Compilation failed"
}

src_install() {
        emake DESTDIR="${D}" install || die "Installation failed"
        dodoc README
        mv xzoom.man xzoom.1
        doman xzoom.1
}

I get the following error and the program doesn't start:
Code:
$ xzoom
xzoom: can work only with 8 bits/pixel

What can I do?
_________________
[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
Back to top
View user's profile Send private message
brokenHeart
n00b
n00b


Joined: 15 May 2013
Posts: 14
Location: versailles

PostPosted: Sat Jun 18, 2016 10:37 am    Post subject: Reply with quote

Hi,

I want to work at pixel level for some job and can't find a magnifying tool in ebuilds except, may be orca ( https://packages.gentoo.org/packages/app-accessibility/orca ) or Compiz but I don't want to install Braille and a Braille server or Compiz just to have a small zoom tool (EDIT : and just notice Xmag in portage, but effectively Xzoom is better for what I do).

It seems a patch is needed to avoid the error message, but I don't know how to modify ebuild to include it :

Code:
$ xzoom
xzoom: can work only with 8 bits/pixel


On an amd64 without the patch, even when building from sources, you also have the error message at run ...
But ...

Code:
patch -Np1 < xzoom_0.3-23.diff
patching file Imakefile
patching file scale.h
patching file xzoom.c
patching file xzoom.man
patching file debian/copyright
patching file debian/compat
patching file debian/watch
patching file debian/changelog
patching file debian/rules
patching file debian/control
patching file debian/menu


Do the job ...

Ref. : https://aur.archlinux.org/packages/xzoom/
Patch : ftp://ftp.acc.umu.se/mirror/cdimage/snapshot/Debian/pool/main/x/xzoom/xzoom_0.3-23.diff.gz
Xzoom sources : http://webdiis.unizar.es/pub/unix/X11/xzoom-0.3.tgz


Sorry for my english, and for post diging but if it can help. Later is better than never ;-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum