[vbox-dev] build dep package
phalbert at cox.net
Sun Jun 26 11:17:45 PDT 2011
Hack to allow debian build until this gets fixed. Tested on Ubuntu 10.10
*** rules 2011-06-26 12:56:42.004791009 -0500
--- rules-new 2011-06-26 13:07:41.964790999 -0500
*** 384,389 ****
--- 384,391 ----
-Vsdlttf=$(if $(HEADLESS),,libsdl-ttf2.0-0) \
-Vdkms=$(if $(filter _Debian_lenny,$(debrel)),,dkms)
+ sed -i 's/_OSE/-OSE/g'
+ sed -i 's/_OSE/-OSE/g'
dh_builddeb --destdir $(pkgdir)
On 06/25/2011 09:10 PM, Perry Halbert wrote:
> Seems like a find replace and removing the _ (underscore) from _OSE
> does the trick. Not pretty but it does prove the fact that the newer
> dpkg just does not like the _ (underscore) in the version name
> VBOX_OSE. It might work with a - (hyphen) but it does not like a
> ~(tilde) at all. Complains a lot about blank space in macro.
> On 06/24/2011 05:17 PM, Perry Halbert wrote:
>> I knew what the issue was I am looking for a way to get around it.
>> So far I know it has to do with the illegal character and the fact
>> that almost everything Linux says that the _ (underscore) is invalid
>> these days. My dpkg config foo is not that good but I did manage to
>> fake it out once. Then I had to repair my system. Not to mention
>> that _OSE is in like 10,000 places in the code.
>> So the easiest way to fix this is to somehow generate a different
>> Version string that does not have the _ in the name. That's my next
>> endeavor anyway.
>> On 06/24/2011 01:45 PM, Martin Simmons wrote:
>>>>>>>> On Thu, 23 Jun 2011 15:36:58 -0500, Perry Halbert said:
>>>> Ubuntu 10.10 latest VBox from svn.
>>>> /trunk/src/VBox/Installer/linux/debian rules binary
>>>> Any idea how to get around this issue? Debian lenny will complete with
>>>> the error but does bark about it.
>>>> Looks like the issue is being generated by VBox as the control file has
>>>> the exact information that dpkg-deb: is complaining about.
>>>> dh_md5sums: Compatibility levels before 5 are deprecated.
>>>> dh_builddeb --destdir /
>>>> dh_builddeb: Compatibility levels before 5 are deprecated.
>>>> dpkg-deb: parse error, in file 'debian/virtualbox-4.0/DEBIAN/control'
>>>> near line 2 package 'virtualbox-4.0':
>>>> error in Version string '4.0.51_OSE-37581~Ubuntu~maverick': invalid
>>>> character in version number
>>>> dh_builddeb: dpkg-deb --build debian/virtualbox-4.0 / returned exit code 2
>>>> make: *** [binary] Error 9
>>>> make: Leaving directory `/trunk/src/VBox/Installer/linux'
>>>> make: *** [binary] Error 2
>>> I think the invalid character is the underscore in "_OSE", which is from the
>>> version number generated by VBox.
>>> Somehow Oracle build their packages without OSE, but the source code they
>>> release builds with OSE. There is a thread from a few days ago here, but it
>>> hasn't been resolved yet:
>>> vbox-dev mailing list
>>> vbox-dev at virtualbox.org
>> vbox-dev mailing list
>> vbox-dev at virtualbox.org
> vbox-dev mailing list
> vbox-dev at virtualbox.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vbox-dev