<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <font face="Verdana">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.<br>
      <br>
      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.<br>
      <br>
      <br>
      <br>
    </font><br>
    On 06/27/2011 05:15 AM, Martin Simmons wrote:
    <blockquote
      cite="mid:201106271015.p5RAFhL5026828@higson.cam.lispworks.com"
      type="cite">
      <pre wrap="">Have you seen the similar tweaks for _ALPHA and _BETA in the same script?
They look slightly cleaner.

__Martin


</pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <blockquote type="cite">
            <blockquote type="cite">
              <blockquote type="cite">
                <pre wrap="">On Sun, 26 Jun 2011 18:58:33 -0500, Perry Halbert said:
</pre>
              </blockquote>
            </blockquote>
          </blockquote>
        </blockquote>
        <pre wrap="">
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/control
+     sed -i 's/_OSE/-OSE/g' 
$(vboxroot)/src/VBox/Installer/linux/debian/virtualbox-4.0-dbg/DEBIAN/control
       dh_md5sums
       dh_builddeb --destdir $(pkgdir)
   endif



On 06/26/2011 01:31 PM, Perry Halbert wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">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:
</pre>
          <blockquote type="cite">
            <pre wrap="">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:
</pre>
            <blockquote type="cite">
              <pre wrap="">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:
</pre>
              <blockquote type="cite">
                <pre wrap="">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:
</pre>
                <blockquote type="cite">
                  <blockquote type="cite">
                    <blockquote type="cite">
                      <blockquote type="cite">
                        <blockquote type="cite">
                          <blockquote type="cite">
                            <pre wrap="">On Thu, 23 Jun 2011 15:36:58 -0500, Perry Halbert said:
</pre>
                          </blockquote>
                        </blockquote>
                      </blockquote>
                    </blockquote>
                    <pre wrap="">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
</pre>
                  </blockquote>
                </blockquote>
                <pre wrap="">I think the invalid character is the underscore in "_OSE", which is from the
version number generated by VBox.
</pre>
                <blockquote type="cite">
                  <pre wrap="">
</pre>
                </blockquote>
                <pre wrap="">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:
</pre>
                <blockquote type="cite">
                  <pre wrap="">
</pre>
                </blockquote>
                <pre wrap=""><a class="moz-txt-link-freetext" href="http://vbox.innotek.de/pipermail/vbox-dev/2011-June/004251.html">http://vbox.innotek.de/pipermail/vbox-dev/2011-June/004251.html</a>
</pre>
                <blockquote type="cite">
                  <pre wrap="">
</pre>
                </blockquote>
                <pre wrap="">__Martin
</pre>
                <blockquote type="cite">
                  <pre wrap="">
</pre>
                </blockquote>
                <pre wrap="">_______________________________________________
vbox-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>
<a class="moz-txt-link-freetext" href="http://vbox.innotek.de/mailman/listinfo/vbox-dev">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a>
</pre>
                <blockquote type="cite">
                  <pre wrap="">
</pre>
                </blockquote>
                <pre wrap="">
_______________________________________________
vbox-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>
<a class="moz-txt-link-freetext" href="http://vbox.innotek.de/mailman/listinfo/vbox-dev">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a>
</pre>
              </blockquote>
              <pre wrap="">

_______________________________________________
vbox-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>
<a class="moz-txt-link-freetext" href="http://vbox.innotek.de/mailman/listinfo/vbox-dev">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a>
</pre>
            </blockquote>
            <pre wrap="">

_______________________________________________
vbox-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>
<a class="moz-txt-link-freetext" href="http://vbox.innotek.de/mailman/listinfo/vbox-dev">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a>
</pre>
          </blockquote>
          <pre wrap="">

_______________________________________________
vbox-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>
<a class="moz-txt-link-freetext" href="http://vbox.innotek.de/mailman/listinfo/vbox-dev">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a>
</pre>
        </blockquote>
        <pre wrap="">
</pre>
      </blockquote>
      <pre wrap="">
_______________________________________________
vbox-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>
<a class="moz-txt-link-freetext" href="http://vbox.innotek.de/mailman/listinfo/vbox-dev">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a>

</pre>
    </blockquote>
  </body>
</html>