LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 05-19-2007, 09:45 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 48
Using Ubuntu Xorg-amd package on Debian etc


Guys,

Finally I found a .deb package for my AMD Geode LX Graphic card. The problem is that it is ubuntu package and I am using Debian etch with kernel 2.6.18. How can I install this package at the same time resolving the dependencies issues?

Here is the link of the page which tells about the package that I require.
http://www.linutop.com/wiki/index.php/Graphic_Driver

The name of the package is xserver-xorg-video-amd which is not there in Debain repo.

Please advice how to proceed.

Thanks
 
Old 05-19-2007, 09:52 PM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 59
The package in Debian is xserver-xorg-video-ati, and I'm sure it came with your Xorg installation. Feel free to try installing Ubuntu packages, but sooner or later you will make a major mess.

If you think it is a different package than the Xorg driver, the link you provided has it's own link to the sources. Build it yourself.

Last edited by rickh; 05-19-2007 at 09:54 PM.
 
Old 05-19-2007, 10:40 PM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by rickh
The package in Debian is xserver-xorg-video-ati, and I'm sure it came with your Xorg installation. Feel free to try installing Ubuntu packages, but sooner or later you will make a major mess.

If you think it is a different package than the Xorg driver, the link you provided has it's own link to the sources. Build it yourself.
Thanks rickh for your answer. Actually I am little bit confused after your reply. It could because I am not expert of Xorg stuff.

I mentioned that I need the driver:
xserver-xorg-video-amd

whereas you said that in Debian the same package is:
xserver-xorg-video-ati

AMd v/s ATI? I couldn't get it. I assume that in the xserver-xorg-video-ati package, the drivers will be for ATI cards and not AMD Geode LX cards....????


Can you please clarify?

THanks a lot once again.
 
Old 05-19-2007, 10:46 PM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 59
Sorry. I went back and looked closer. You're right it is a different driver. You need to follow these instructions from the page you linked.

Code:
The Linutop graphical chipset is an AMD Geode LX. 
A free Xorg driver exists, available in a git repository.

To grab the driver, install git and run:

 git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-amd.git

To build it, install the xorg devel packages 
(-dev or -devel packages depending on the Linux distribution you use) 
and run:

 ./autogen.sh --prefix=/usr
 make
 make install # run this last command as root

Last edited by rickh; 05-19-2007 at 10:48 PM.
 
Old 05-20-2007, 11:09 AM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally Posted by kushalkoolwal
Guys,

Finally I found a .deb package for my AMD Geode LX Graphic card. The problem is that it is ubuntu package and I am using Debian etch with kernel 2.6.18. How can I install this package at the same time resolving the dependencies issues?

Here is the link of the page which tells about the package that I require.
http://www.linutop.com/wiki/index.php/Graphic_Driver

The name of the package is xserver-xorg-video-amd which is not there in Debain repo.

Please advice how to proceed.

Thanks
Get the .dsc, .diff.gz and .orig.tar.gz files from this page for the -amd package your probably best off downloading into a directory you create for this purpose. Now make sure that you have the build-essential, dpkg-dev and x-dev packages installed then in the directory you have created use.

Code:
dpkg-source -x xserver-xorg-video-amd_2.7.6.5~20070208-0ubuntu0linutop1.dsc
cd xserver-xorg-video-amd-2.7.6.5~20070208/ 
fakeroot dpkg-buildpackage -uc -us
Hopefully the package will build without errors here it seems to fail with something to do with assembler instructions being invalid probably due to me compiling on 64bit. If it builds without problems then become root user and install the resulting .deb(s) that were created.

Edit: If you get any errors about files missing then install apt-file then use apt-file update as root then once it completes you can use the apt-file search file/missing.h as normal user for instance to see which package contains the needed file that you will need to install.

Last edited by HappyTux; 05-20-2007 at 11:12 AM.
 
Old 05-21-2007, 02:24 AM   #6
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by HappyTux
Get the .dsc, .diff.gz and .orig.tar.gz files from this page for the -amd package your probably best off downloading into a directory you create for this purpose. Now make sure that you have the build-essential, dpkg-dev and x-dev packages installed then in the directory you have created use.

Code:
dpkg-source -x xserver-xorg-video-amd_2.7.6.5~20070208-0ubuntu0linutop1.dsc
cd xserver-xorg-video-amd-2.7.6.5~20070208/ 
fakeroot dpkg-buildpackage -uc -us
Hopefully the package will build without errors here it seems to fail with something to do with assembler instructions being invalid probably due to me compiling on 64bit. If it builds without problems then become root user and install the resulting .deb(s) that were created.

Edit: If you get any errors about files missing then install apt-file then use apt-file update as root then once it completes you can use the apt-file search file/missing.h as normal user for instance to see which package contains the needed file that you will need to install.
Thanks HappyTux. Your instructions will be very useful. However, what is the best thing to do? Compile from sources or install the pre-built .deb package in this case. Which is a better option from point of view of future maintenance.

Thanks
 
Old 05-21-2007, 04:57 AM   #7
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
ok, I tried the instructions and I got the following error message when I gave the command:
akeroot dpkg-buildpackage -uc -us -d
(Note: I had to add the "-d" flag which was not there in the original instruction as I got an error message which asked me to use "-d" flag to override.
Code:
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XORG... configure: error: Package requirements (xorg-server xproto fontsproto ) were not met:

No package 'xorg-server' found
No package 'fontsproto' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XORG_CFLAGS
and XORG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

make: *** [build-stamp] Error 1
debian:/usr/src/amd_xorg_driver/xserver-xorg-video-amd-2.7.6.5~20070208#

Last edited by kushalkoolwal; 05-21-2007 at 04:58 AM.
 
Old 05-21-2007, 10:37 AM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally Posted by kushalkoolwal
ok, I tried the instructions and I got the following error message when I gave the command:
akeroot dpkg-buildpackage -uc -us -d
(Note: I had to add the "-d" flag which was not there in the original instruction as I got an error message which asked me to use "-d" flag to override.
Code:
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XORG... configure: error: Package requirements (xorg-server xproto fontsproto ) were not met:

No package 'xorg-server' found
No package 'fontsproto' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XORG_CFLAGS
and XORG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

make: *** [build-stamp] Error 1
debian:/usr/src/amd_xorg_driver/xserver-xorg-video-amd-2.7.6.5~20070208#
Looks like you do not have the development files for X installed try installing the xserver-xorg-dev package checking to see if x11proto-core-dev, x11proto-fonts-dev and build-essential for that matter got installed as well. For your other question the pre-built .deb is the best to install but if you don't have that option then building from source is all that is left to get what you need done and working then thats what you gotta do.
 
Old 05-25-2007, 01:40 PM   #9
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by HappyTux
Looks like you do not have the development files for X installed try installing the xserver-xorg-dev package checking to see if x11proto-core-dev, x11proto-fonts-dev and build-essential for that matter got installed as well. For your other question the pre-built .deb is the best to install but if you don't have that option then building from source is all that is left to get what you need done and working then thats what you gotta do.
Thanks Happy Tux. I did what you recommended and it did installed the fonts-dev package. Then I gave the command again and I got a similar error message:
Code:
hecking if XV is defined... no
checking if DPMSExtension is defined... no
checking if XFreeXDGA is defined... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XORG... configure: error: Package requirements (xorg-server xproto fontsproto ) were not met:

No package 'xorg-server' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XORG_CFLAGS
and XORG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

make: *** [build-stamp] Error 1
debian:/usr/src/amd_xorg_driver/xserver-xorg-video-amd-2.7.6.5~20070208# apt-get install xorg-server
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package xorg-server
debian:/usr/src/amd_xorg_driver/xserver-xorg-video-amd-2.7.6.5~20070208#
Should I try the XORG_FLAGS and PKG_CONFIG_PATH thing? If yes then how should I go about it?

Thanks you once again.
 
Old 05-25-2007, 02:11 PM   #10
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally Posted by kushalkoolwal
Thanks Happy Tux. I did what you recommended and it did installed the fonts-dev package. Then I gave the command again and I got a similar error message:
Code:
hecking if XV is defined... no
checking if DPMSExtension is defined... no
checking if XFreeXDGA is defined... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XORG... configure: error: Package requirements (xorg-server xproto fontsproto ) were not met:

No package 'xorg-server' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XORG_CFLAGS
and XORG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

make: *** [build-stamp] Error 1
debian:/usr/src/amd_xorg_driver/xserver-xorg-video-amd-2.7.6.5~20070208# apt-get install xorg-server
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package xorg-server
debian:/usr/src/amd_xorg_driver/xserver-xorg-video-amd-2.7.6.5~20070208#
Should I try the XORG_FLAGS and PKG_CONFIG_PATH thing? If yes then how should I go about it?

Thanks you once again.

Oh they have the packaged named differently, what does the control file contain in the debian directory can you show it to me.
 
Old 05-25-2007, 02:43 PM   #11
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by HappyTux
Oh they have the packaged named differently, what does the control file contain in the debian directory can you show it to me.
Here is the control file:
Code:
Source: xserver-xorg-video-amd
Section: x11
Priority: optional
Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Uploaders: David Nusinow <dnusinow@debian.org>, Branden Robinson <branden@debian.org>, Fabio M. Di Nitto <fabbione@fabbione.net>
Build-Depends: debhelper (>= 4.0.0), pkg-config, xserver-xorg-dev (>= 1:1.1.1), x11proto-video-dev, x11proto-core-dev, x11proto-fonts-dev, x11proto-randr-dev, x11proto-render-dev, x11proto-xext-dev, x11proto-xf86dga-dev
Standards-Version: 3.6.1.0

Package: xserver-xorg-video-amd
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, xserver-xorg-core (>= 1:1.1.1)
Provides: xserver-xorg-video
Replaces: xserver-xorg (<< 6.8.2-35), xserver-xorg-driver-amd
Conflicts: xserver-xorg-driver-amd
Description: X.Org X server -- AMD display driver
 This package provides the driver for AMD video card chipsets.
 .
 More information about X.Org can be found at:
 <URL:http://xorg.freedesktop.org>
 <URL:http://lists.freedesktop.org/mailman/listinfo/xorg>
 .
 This module can be found as the module 'xorg/driver/xf86-video-amd' at
 <URL:http://gitweb.freedesktop.org/>
 
Old 05-25-2007, 02:56 PM   #12
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
Umm, are you sure you have all the depends mentioned in that file installed?
 
Old 05-25-2007, 04:27 PM   #13
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by makuyl
Umm, are you sure you have all the depends mentioned in that file installed?
Friend, you are absolutely right!!! I was still missing one of the packages. Thanks HappyTux for leading into that direction. You guys are awesome.

Although it seems that the compilation finished, but it gave me some messages before it finished. Should I be concerned of the following messages at the end of the compilation process?
Code:
make[3]: Leaving directory `/usr/src/amd_xorg_driver/xserver-xorg-video-amd-2.7.6.5~20070208/obj-i486-linux-gnu'
make[2]: Leaving directory `/usr/src/amd_xorg_driver/xserver-xorg-video-amd-2.7.6.5~20070208/obj-i486-linux-gnu'
make[1]: Leaving directory `/usr/src/amd_xorg_driver/xserver-xorg-video-amd-2.7.6.5~20070208/obj-i486-linux-gnu'
dh_testdir
dh_testroot
dh_installdocs
dh_installchangelogs
dh_install --sourcedir=debian/tmp
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
dh_md5sums
dh_builddeb
dpkg-deb: building package `xserver-xorg-video-amd' in `../xserver-xorg-video-amd_2.7.6.5~20070208-0ubuntu0linutop1_i386.deb'.
 dpkg-genchanges
dpkg-genchanges: not including original source code in upload
dpkg-buildpackage: binary and diff upload (original source NOT included)
debian:/usr/src/amd_xorg_driver/xserver-xorg-video-amd-2.7.6.5~20070208#
What should I do in this case?

Last edited by kushalkoolwal; 05-25-2007 at 04:33 PM.
 
Old 05-25-2007, 04:39 PM   #14
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally Posted by kushalkoolwal
Friend, you are absolutely right!!! I was still missing one of the packages. Thanks HappyTux for leading into that direction. You guys are awesome.

Although it seems that the compilation finished, but it gave me some messages before it finished. Should I be concerned of the following messages at the end of the compilation process?
Code:
make[3]: Leaving directory `/usr/src/amd_xorg_driver/xserver-xorg-video-amd-2.7.6.5~20070208/obj-i486-linux-gnu'
make[2]: Leaving directory `/usr/src/amd_xorg_driver/xserver-xorg-video-amd-2.7.6.5~20070208/obj-i486-linux-gnu'
make[1]: Leaving directory `/usr/src/amd_xorg_driver/xserver-xorg-video-amd-2.7.6.5~20070208/obj-i486-linux-gnu'
dh_testdir
dh_testroot
dh_installdocs
dh_installchangelogs
dh_install --sourcedir=debian/tmp
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
dh_md5sums
dh_builddeb
dpkg-deb: building package `xserver-xorg-video-amd' in `../xserver-xorg-video-amd_2.7.6.5~20070208-0ubuntu0linutop1_i386.deb'.
 dpkg-genchanges
dpkg-genchanges: not including original source code in upload
dpkg-buildpackage: binary and diff upload (original source NOT included)
debian:/usr/src/amd_xorg_driver/xserver-xorg-video-amd-2.7.6.5~20070208#
What should I do in this case?
Your welcome good to see you got it done. I have never seen the miscepends warning before it must be Ubuntu specific the two at the bottom about the source code are normal when building yourself and not doing an upload to a Debian server, I would go ahead and install the resulting package(s) to see how it works.
 
Old 05-25-2007, 05:12 PM   #15
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by HappyTux
Your welcome good to see you got it done. I have never seen the miscepends warning before it must be Ubuntu specific the two at the bottom about the source code are normal when building yourself and not doing an upload to a Debian server, I would go ahead and install the resulting package(s) to see how it works.
Ok I tried installing the package and this is the error message that I got:
Code:
debian-epm11:~/Desktop# dpkg -i xserver-xorg-video-amd_2.7.6.5~20070208-0ubuntu0linutop1_i386.deb
tar: ./control: time stamp 2007-05-25 14:31:51 is 2849070.585658451 s in the future
tar: ./md5sums: time stamp 2007-05-25 14:31:51 is 2849070.584284168 s in the future
tar: .: time stamp 2007-05-25 14:31:51 is 2849070.583828717 s in the future
Selecting previously deselected package xserver-xorg-video-amd.
dpkg: regarding xserver-xorg-video-amd_2.7.6.5~20070208-0ubuntu0linutop1_i386.deb containing xserver-xorg-video-amd:
 xserver-xorg-core conflicts with xserver-xorg-video
  xserver-xorg-video-amd provides xserver-xorg-video and is to be installed.
dpkg: error processing xserver-xorg-video-amd_2.7.6.5~20070208-0ubuntu0linutop1_i386.deb (--install):
 conflicting packages - not installing xserver-xorg-video-amd
Errors were encountered while processing:
 xserver-xorg-video-amd_2.7.6.5~20070208-0ubuntu0linutop1_i386.deb
debian-epm11:~/Desktop#

I am not an expert while building debian packages from source. So guys it would be really great if you can help me out?

Thanks
 
  


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
LXer: Debian/Ubuntu Package management Using dpkg LXer Syndicated Linux News 0 04-19-2007 09:47 PM
Ubuntu AMD 64 woes NoobDave Ubuntu 4 12-18-2006 12:43 PM
Ubuntu package in Debian repos craigevil Debian 1 11-14-2006 07:58 AM
Remove a ubuntu package in Debian Sarge gbratig Linux - Distributions 3 07-29-2006 08:04 AM
xorg sdk package bobbens Debian 2 12-22-2005 12:17 AM


All times are GMT -5. The time now is 11:43 AM.

Main Menu
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