Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82325 - add vbetool to the portagetree
Summary: add vbetool to the portagetree
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Robin Johnson
URL: http://www.srcf.ucam.org/~mjg59/vbetool/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-02-17 02:23 UTC by alex f
Modified: 2005-04-29 18:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
vbetool-0.2.ebuild (vbetool-0.2.ebuild,596 bytes, text/plain)
2005-02-26 05:54 UTC, alex f
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alex f 2005-02-17 02:23:33 UTC
vbetool uses lrmi in order to run code from the video BIOS. Currently, it is able to alter DPMS states, save/restore video card state and attempt to initialize the video card from scratch. Which seems to be useful for laptops when resuming from suspend. I'd have atempted an ebuild myself, but the compilation fails due to  unfound pciutils. Although I have that installed. the homepage is http://www.srcf.ucam.org/~mjg59/vbetool/ also see http://packages.debian.org/testing/utils/vbetool
Comment 1 Daniel Black (RETIRED) gentoo-dev 2005-02-18 01:20:09 UTC
please attach your attempt
Comment 2 alex f 2005-02-18 01:47:54 UTC
I simply tried the usual configure;make;make install

alexf@tosh ~/temp $ tar xzf vbetool_0.2.orig.tar.gz 
alexf@tosh ~/temp $ cd vbetool-0.2/
alexf@tosh ~/temp/vbetool-0.2 $ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
alexf@tosh ~/temp/vbetool-0.2 $ LANG=C make
if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKA
GE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"vbetool\" -DVERSION=\"0.2\" 
 -I. -I.    -g -Wall -Werror -pedantic -g -O2 -MT vbetool.o -MD -MP -MF ".deps/v
betool.Tpo" \
  -c -o vbetool.o `test -f 'vbetool.c' || echo './'`vbetool.c; \
then mv -f ".deps/vbetool.Tpo" ".deps/vbetool.Po"; \
else rm -f ".deps/vbetool.Tpo"; exit 1; \
fi
if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKA
GE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"vbetool\" -DVERSION=\"0.2\" 
 -I. -I.    -g -Wall -Werror -pedantic -g -O2 -MT lrmi.o -MD -MP -MF ".deps/lrmi
.Tpo" \
  -c -o lrmi.o `test -f 'lrmi.c' || echo './'`lrmi.c; \
then mv -f ".deps/lrmi.Tpo" ".deps/lrmi.Po"; \
else rm -f ".deps/lrmi.Tpo"; exit 1; \
fi
gcc -g -Wall -Werror -pedantic -g -O2 -lpci  -o vbetool  vbetool.o lrmi.o  
vbetool.o(.text+0x1d0): In function `do_post':
/home/alexf/temp/vbetool-0.2/vbetool.c:180: undefined reference to `pci_scan_bus
'
vbetool.o(.text+0x1ed):/home/alexf/temp/vbetool-0.2/vbetool.c:183: undefined ref
erence to `pci_read_word'
vbetool.o(.text+0x672): In function `main':
/home/alexf/temp/vbetool-0.2/vbetool.c:47: undefined reference to `pci_alloc'
vbetool.o(.text+0x686):/home/alexf/temp/vbetool-0.2/vbetool.c:49: undefined refe
rence to `pci_init'
collect2: ld returned 1 exit status
make: *** [vbetool] Error 1
Comment 3 alex f 2005-02-18 01:54:55 UTC
 $ equery list pciutils 
[ Searching for package 'pciutils' in all categories among: ]
 * installed packages
[I--] [  ] sys-apps/pciutils-2.1.11-r4 (0)
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-26 02:24:49 UTC
alex f: 
please attach your attempted ebuild.
Comment 5 alex f 2005-02-26 02:42:38 UTC
I said that I _would have_ attempted to make an ebuild, but didn't see the point after it didn't compile in the first place.
Comment 6 alex f 2005-02-26 05:54:42 UTC
Created attachment 52183 [details]
vbetool-0.2.ebuild

Alright, after reading the gcc manpage I found the compilation problem and
fixed it. So here is the ebuild. I think app-misc or app-laptop might be
appropiate categories for it.
Comment 7 Henrik Brix Andersen 2005-03-28 07:19:07 UTC
I have had an ebuild for this sitting in my overlay at http://dev.gentoo.org/~brix/files/overlay/sys-apps/vbetool/ for a while...
Comment 8 Wernfried Haas (RETIRED) gentoo-dev 2005-03-31 11:19:33 UTC
Both the ebuild by Alex and vbetool work fine for me, thanks.
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-04-29 18:09:22 UTC
in cvs now.