further explanations for DEB Tutorial

Discussions related to using the OSE version of VirtualBox.
Post Reply
feldmaus
Posts: 19
Joined: 28. Mar 2011, 10:05
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: 4.0.2

further explanations for DEB Tutorial

Post by feldmaus »

Hi All,

i dont understand the instructions here Build VirtualBox DEB packages from SVN.

I am on a LMDE System with kernel 3.6.11 and trying to make a DEB package. The instructions in the above link tell me to make a file called "/etc/debian" or "/etc/lmde" or "/etc/debian_version", what is this correct?

In my current file "/etc/debian_version" contains "wheezy/sid".

I want to use Virtualbox under all users in "vboxusers", so what do i have to do? Do i have to do the next steps in the above instructions/link as root or normal user?

regards Markus
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: further explanations for DEB Tutorial

Post by Perryg »

feldmaus
Posts: 19
Joined: 28. Mar 2011, 10:05
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: 4.0.2

Re: further explanations for DEB Tutorial

Post by feldmaus »

I created a file "/etc/distname" whit the contents:

Code: Select all

Debian wheezy
When i execute <debian/rules binary> i get the message:

Code: Select all

debian/rules:89: *** package distribution not detected (debrel=_LinuxMint_debian).  Schluss.
Any idea?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: further explanations for DEB Tutorial

Post by Perryg »

Sure. You are not using wheezy, your using Mint built off of wheezy.
Your deb release is listed in the error code.

VirtualBox does not build a dedicated LMDE so you would need to add the LMDE release name the distribution_deb and the /etc/distname

Code: Select all

_LinuxMint_debian = DEBIAN_7_0
feldmaus
Posts: 19
Joined: 28. Mar 2011, 10:05
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: 4.0.2

Re: further explanations for DEB Tutorial

Post by feldmaus »

Thanks, i added "_LinuxMint_debian = DEBIAN_7_0" to the file "/usr/src/vbox/src/VBox/Installer/linux/distributions_deb".

In the "rules" file is the command "shell" which is not existing on my system and therefor i get an unknown command error when i execute it manually. Is it to late for me?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: further explanations for DEB Tutorial

Post by Perryg »

Did you do a clean?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: further explanations for DEB Tutorial

Post by Perryg »

You probably also need to add the rel to the line in the rules
instmod := $(if $(filter _Ubuntu_lucid _Ubuntu_maverick _Ubuntu_natty _Ubuntu_oneiric _Debian_sid _LinuxMint_debian,$(debrel)),,1)
feldmaus
Posts: 19
Joined: 28. Mar 2011, 10:05
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: 4.0.2

Re: further explanations for DEB Tutorial

Post by feldmaus »

Perryg wrote:You probably also need to add the rel to the line in the rules
instmod := $(if $(filter _Ubuntu_lucid _Ubuntu_maverick _Ubuntu_natty _Ubuntu_oneiric _Debian_sid _LinuxMint_debian,$(debrel)),,1)
How can i see, whether i need this modified line?

Yesterday i successfuly compiled the DEB package. But when i start virtualbox it leads me into my old problem, discussed -->here<--. How can i tell the compile process to disable opengl? <debian/rules --disable-opengl binary> ?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: further explanations for DEB Tutorial

Post by Perryg »

You would need to add the following to the rules file. --disable-opengl , but I doubt this is what you really want.
feldmaus
Posts: 19
Joined: 28. Mar 2011, 10:05
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: 4.0.2

Re: further explanations for DEB Tutorial

Post by feldmaus »

Perryg wrote:You would need to add the following to the rules file. --disable-opengl , but I doubt this is what you really want.
Where do i have to put this option? In which line of the file "rules" ?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: further explanations for DEB Tutorial

Post by Perryg »

In the cfg_flags section.
Post Reply