Add revision info to Help->About

Bug #789885 reported by Till Hofmann
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
Low
Daniel Schürmann
1.10
Fix Released
Low
Daniel Schürmann
1.9
Won't Fix
Low
Unassigned

Bug Description

Help->About doesn't give any information about the version of mixxx.
In trunk, it says "trunk" but in the mixxx ppa, About gives no information at all.

OS:
Ubuntu 10.10 Maverick
ppa:mixxx/mixxx

RJ Skerry-Ryan (rryan)
Changed in mixxx:
status: New → Confirmed
milestone: none → 1.10.0
Revision history for this message
Sean M. Pappalardo (pegasus-renegadetech) wrote :

Version information automatically shows up when building a release. The code is in defs_version.h and the SConscript. Basically, if the branch being built is called release<something> it uses the version in defs_version.h. Otherwise, it uses the name of the branch. So some more logic needs to be added to accommodate the PPA build environment.

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

I think Till is saying that the PPA shows no version info in Help->About, despite being one of our release channels.

Changed in mixxx:
importance: Undecided → Low
RJ Skerry-Ryan (rryan)
summary: - add version information to Help->About
+ PPA has no version information in Help->About
Changed in mixxx:
milestone: 1.10.0 → 1.10.1
Revision history for this message
RJ Skerry-Ryan (rryan) wrote : Re: PPA has no version information in Help->About

Confirmed in latest 1.9.2 / 1.10.0 Beta PPAs.

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Actually, seems to be fixed in the beta PPA.

Changed in mixxx:
milestone: 1.10.1 → 1.10.0
milestone: 1.10.0 → none
status: Confirmed → Fix Committed
assignee: nobody → RJ Ryan (rryan)
Changed in mixxx:
status: Fix Committed → In Progress
Revision history for this message
Daniel Schürmann (daschuer) wrote :

The version 1.10.0-beta1 does not show version information in the about box.
There is only "mixxx"

The 64 bit version has Version information in the Title bar. But I think the best place for it is actually the about box.

It would be nice if we could add also the bzr Revision e.g.:

mixxx 1.10.0-beta1 bzr #2880
or
mixxx 1.10.0.2880-beta1

This was tested on Ubuntu Oneiric 32 bit / Ubuntu Lucid 32 bit / Ubuntu Maverick 64 bit

Revision history for this message
RJ Skerry-Ryan (rryan) wrote : Re: [Bug 789885] Re: PPA has no version information in Help->About

I was thinking the best way to change this is to make the about box always
say the version # on which the build is based. We should introduce a
separate build constant that includes the build information such as branch
name, revision info, and so on which is only shown if the build is not a
release build.

So for example, when building Mixxx from trunk today, the about box woudl
say 1.11.0-alpha or something like that. And then since it would be a debug
build it would mention the branch name and revision.

This problem stems from the sconscript behavior where it replaces the build
version constant with a string mentioning the branch name. This is
confusing to OS-level APis that expect a version number to be
an X.Y.Z-like number as well (Debian and OSX do this).

2011/12/2 Daniel Schürmann <email address hidden>

> The version 1.10.0-beta1 does not show version information in the about
> box.
> There is only "mixxx"
>
> The 64 bit version has Version information in the Title bar. But I think
> the best place for it is actually the about box.
>
> It would be nice if we could add also the bzr Revision e.g.:
>
> mixxx 1.10.0-beta1 bzr #2880
> or
> mixxx 1.10.0.2880-beta1
>
> This was tested on Ubuntu Oneiric 32 bit / Ubuntu Lucid 32 bit / Ubuntu
> Maverick 64 bit
>
> --
> You received this bug notification because you are a member of Mixxx
> Development Team, which is subscribed to Mixxx.
> https://bugs.launchpad.net/bugs/789885
>
> Title:
> PPA has no version information in Help->About
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mixxx/+bug/789885/+subscriptions
>

Revision history for this message
Daniel Schürmann (daschuer) wrote : Re: PPA has no version information in Help->About

The attached patch displays the bzr revision in the about box and and prints out the build flag values if > 1.

Revision history for this message
Daniel Schürmann (daschuer) wrote :

The attached patch distinguishes whether the bzr tree is modified or not. If modified, a "+" is added to the bzr revision.

Doing that I had strange problems with the build.h location.
The scons scripts are writing the file to lin32_build/build.h, but are reading from src/build.h

I have checked out a fresh copy lp:mixxx (without src/build.h) for cross-check. After the first build a src/build.h appears.
If you now delete src/build.h mixxx building fails.

For my feeling the lin32_build/build.h location is best because of the temporary nature of build.h.

The attached patch fixes this for me, but it may not be a common solution.

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Thanks Daniel, I added your patch along with some other fixes. Now the version # is never over-written by the branch name. Instead, the branch name is provided in a separate pre-processor define BUILD_BRANCH. I output this in the syslog on startup and also in the about box.

summary: - PPA has no version information in Help->About
+ Add revision info to Help->About
Changed in mixxx:
assignee: RJ Ryan (rryan) → Daniel Schürmann (daschuer)
status: In Progress → Fix Committed
RJ Skerry-Ryan (rryan)
Changed in mixxx:
status: Fix Committed → Fix Released
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/5909

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.