[vbox-dev] build dep package

Perry Halbert phalbert at cox.net
Mon Jun 27 16:58:09 GMT 2011


Oh I see add the subst to the debver.

I have been known to be a little dense sometimes. I'll give it a shot 
later today.

No problem with the wine fix.  just letting you know.  They suggested 
wineboot instead of the winepre...
I am happily compiling with version 1.0

Thanks for straightening me out Frank.



On 06/27/2011 11:27 AM, Frank Mehnert wrote:
> Perry, Martin,
>
> The correct fix should be in r37650.
>
> Re the Wine issue: We will try to check this eventually but usually
> we build the Wine stuff as well as the Doc stuff in a separate step.
> Therefore this issue is not urgent for us.
>
> Kind regards,
>
> Frank
>
> On Monday 27 June 2011 18:17:08 Perry Halbert wrote:
>> Saw them *but.  It appears the VBOX_VERSION_STRING is tied to other
>> functions of the build and particularly the _OSE.  The code you
>> reference is appended as far as I can tell and the _ (underscore) is
>> expected in the VBOX_VERSION_STRING unless you replace it throughout the
>> entire code (which did work by the way, but even nastier IMHO since you
>> would need to do that with every SVN update).  Like I said this is just
>> a (debian version) hack to get the build to complete until it gets fixed
>> by only changing the control file versions that Ubuntu dpkg needed to
>> see to complete.  Dirty but works without issues in a short amount of
>> time. I'll leave the rest to the experts.
>>
>> As a side note: Ubuntu 11.04 does not work native with the wine hack
>> (docs .chm) since it uses version 1.3.  I needed to uninstall 1.3 and
>> install version 1.0.  Some functions have been deprecated in newer
>> version of wine as well as dpkg and refused to build.
>>
>> On 06/27/2011 05:15 AM, Martin Simmons wrote:
>>> Have you seen the similar tweaks for _ALPHA and _BETA in the same script?
>>> They look slightly cleaner.
>>>
>>> __Martin
>>>
>>>>>>>> On Sun, 26 Jun 2011 18:58:33 -0500, Perry Halbert said:
>>>> This works well if you use a different top level folder than /trunk
>>>>
>>>> *** rules    2011-06-26 18:48:44.900727018 -0500
>>>> --- rules    2011-06-26 17:49:06.000000000 -0500
>>>> ***************
>>>> *** 58,66 ****
>>>>
>>>>      NOWEBSVC ?= $(ose)
>>>>      NOWINE   := $(if $(NODOCS),$(if $(STAGEDISO),1,),)
>>>>
>>>> -
>>>> -
>>>> -
>>>>
>>>>      ifneq ($(wildcard $(verfile)),)
>>>>      include $(verfile)
>>>>      ver      := $(VBOX_VERSION_STRING)
>>>>
>>>> --- 58,63 ----
>>>> ***************
>>>> *** 383,388 ****
>>>> --- 380,387 ----
>>>>
>>>>            -Vpulse=$(if $(HEADLESS),,libpulse0) \
>>>>            -Vsdlttf=$(if $(HEADLESS),,libsdl-ttf2.0-0) \
>>>>            -Vdkms=$(if $(filter _Debian_lenny,$(debrel)),,dkms)
>>>>
>>>> +     sed -i 's/_OSE/-OSE/g'
>>>> $(vboxroot)/src/VBox/Installer/linux/debian/virtualbox-4.0/DEBIAN/contro
>>>> l +     sed -i 's/_OSE/-OSE/g'
>>>> $(vboxroot)/src/VBox/Installer/linux/debian/virtualbox-4.0-dbg/DEBIAN/co
>>>> ntrol
>>>>
>>>>          dh_md5sums
>>>>          dh_builddeb --destdir $(pkgdir)
>>>>
>>>>      endif
>>>>
>>>> On 06/26/2011 01:31 PM, Perry Halbert wrote:
>>>>> 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/contro
>>>>> l
>>>>>
>>>>>         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/contr
>>>>>> ol
>>>>>>
>>>>>>         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
>>>>> _______________________________________________
>>>>> 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/20110627/2a4fadec/attachment.html>


More information about the vbox-dev mailing list