[vbox-dev] build dep package
Perry Halbert
phalbert at cox.net
Sun Jun 26 11:31:05 PDT 2011
Sorry I diff'ed the wrong file. This one is the right one.
*** rules 2011-06-26 12:56:42.004791009 -0500
--- rules2 2011-06-26 13:28:44.744790998 -0500
***************
*** 383,388 ****
--- 383,390 ----
-Vpulse=$(if $(HEADLESS),,libpulse0) \
-Vsdlttf=$(if $(HEADLESS),,libsdl-ttf2.0-0) \
-Vdkms=$(if $(filter _Debian_lenny,$(debrel)),,dkms)
+ sed -i 's/_OSE/-OSE/g'
/trunk/src/VBox/Installer/linux/debian/virtualbox-4.0/DEBIAN/control
+ sed -i 's/_OSE/-OSE/g'
/trunk/src/VBox/Installer/linux/debian/virtualbox-4.0-dbg/DEBIAN/control
dh_md5sums
dh_builddeb --destdir $(pkgdir)
endif
On 06/26/2011 01:17 PM, Perry Halbert wrote:
> 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)
> dh_md5sums
> + sed -i 's/_OSE/-OSE/g'
> /trunk/src/VBox/Installer/linux/debian/virtualbox-4.0/DEBIAN/control
> + sed -i 's/_OSE/-OSE/g'
> /trunk/src/VBox/Installer/linux/debian/virtualbox-4.0-dbg/DEBIAN/control
> dh_builddeb --destdir $(pkgdir)
> endif
>
> 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[1]: *** [binary] Error 9
>>>>> make[1]: 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:
>>>>
>>>> http://vbox.innotek.de/pipermail/vbox-dev/2011-June/004251.html
>>>>
>>>> __Martin
>>>>
>>>> _______________________________________________
>>>> vbox-dev mailing list
>>>> vbox-dev at virtualbox.org
>>>> http://vbox.innotek.de/mailman/listinfo/vbox-dev
>>>>
>>>
>>> _______________________________________________
>>> vbox-dev mailing list
>>> vbox-dev at virtualbox.org
>>> http://vbox.innotek.de/mailman/listinfo/vbox-dev
>>
>>
>> _______________________________________________
>> vbox-dev mailing list
>> vbox-dev at virtualbox.org
>> http://vbox.innotek.de/mailman/listinfo/vbox-dev
>
>
> _______________________________________________
> vbox-dev mailing list
> vbox-dev at virtualbox.org
> http://vbox.innotek.de/mailman/listinfo/vbox-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20110626/f9f00ffc/attachment-0001.html
More information about the vbox-dev
mailing list