[vbox-dev] build dep package
Frank Mehnert
frank.mehnert at oracle.com
Mon Jun 27 09:27:27 PDT 2011
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
--
Dr.-Ing. Frank Mehnert
Senior Manager Software Development Desktop Virtualization, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany
Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603
Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://www.virtualbox.org/pipermail/vbox-dev/attachments/20110627/67772071/attachment-0001.bin
More information about the vbox-dev
mailing list