Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(54)

Issue 6463066: Tidies binary relocation (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by PhilEHolmes
Modified:
11 years, 8 months ago
Reviewers:
Graham Percival, pkx166h, email, dak, mail
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

I found this code while trying to work out how to get lilypond to run from the command line with the windows PATH statement. There are pointless if statements, and the use of a now undocumented environment variable. This patch tidies that up.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -51 lines) Patch
M lily/relocate.cc View 1 chunk +37 lines, -51 lines 0 comments Download

Messages

Total messages: 8
PhilEHolmes
Please review
11 years, 8 months ago (2012-08-18 14:08:43 UTC) #1
Graham Percival
I haven't looked at the new logic in detail, but exactly what was LILYPOND_RELOCATE_PREFIX doing, ...
11 years, 8 months ago (2012-08-18 14:19:23 UTC) #2
mail_philholmes.net
----- Original Message ----- From: <graham@percival-music.ca> To: <PhilEHolmes@googlemail.com>; <dak@gnu.org> Cc: <reply@codereview-hr.appspotmail.com>; <lilypond-devel@gnu.org> Sent: Saturday, August ...
11 years, 8 months ago (2012-08-18 14:40:26 UTC) #3
Graham Percival
On Sat, Aug 18, 2012 at 03:40:19PM +0100, Phil Holmes wrote: > ----- Original Message ...
11 years, 8 months ago (2012-08-18 18:30:00 UTC) #4
email_philholmes.net
----- Original Message ----- From: "Graham Percival" <graham@percival-music.ca> To: "Phil Holmes" <mail@philholmes.net> Cc: <PhilEHolmes@googlemail.com>; <dak@gnu.org>; ...
11 years, 8 months ago (2012-08-19 09:27:45 UTC) #5
dak
"Phil Holmes" <email@philholmes.net> writes: > I think we should do some sweeping up in cobwebby ...
11 years, 8 months ago (2012-08-19 09:32:50 UTC) #6
pkx166h
On 19 Aug 2012, at 10:27, "Phil Holmes" <email@philholmes.net> wrote: -- -- > ----- Original ...
11 years, 8 months ago (2012-08-19 09:33:53 UTC) #7
Graham Percival
11 years, 8 months ago (2012-08-19 13:15:52 UTC) #8
On Sun, Aug 19, 2012 at 10:27:37AM +0100, Phil Holmes wrote:
> ----- Original Message ----- From: "Graham Percival"
> <graham@percival-music.ca>
> To: "Phil Holmes" <mail@philholmes.net>
> >OTOH, I don't think that we should delete bits of code unless we
> >know why they were there in the first place.  There's just so many
> >dark corners of lilypond that no active developers are familiar
> >with.
> 
> I think we should do some sweeping up in cobwebby corners, if we
> can.  In particular, when we can't find any reason for the code to
> be there in the first place.  I've not worked out yet how to get git
> to show which commit put that code in.  If someone could either do
> that, or explain how to, I think it could help.

gitk lily/relocate.cc lily/include/relocate.hh

you can list as many (or as few) files as you want to get only the
history specific to those file(s).  Adding an entire directory
will give you everything for all files in that directory (and
subdirectories).

> >I'm not saying that I'm completely opposed to having this in git
> >master.  I'd feel better if you made some binaries and asked users
> >to test them first.  But even without that, as long as you'll be
> >around in Sep to revert this patch if necessary, I think it could
> >still go forward.
> 
> I've made binaries and tested them under Ubuntu.  The code is not
> windows specific, it's OS independent.  It relies on someone setting
> the environment value LILYPOND_RELOCATE_PREFIX which could work on
> any OS.

Yes, but that environment variable could be set up by the OSX .app
or the windows installer.  I agree that in this case it seems
unlikely since we haven't found that string in the lilypad or gub
repositories, though.  But I wanted to note that environment
variables don't require the user to set them up specifically.

>  So I think the only way to get enough people to test would
> be to put it into a release and see if anyone complains.  I would
> revert in that case.

There *is* another way: build binaries, upload to your server,
email -user asking for volunteers to test them.  I used to do this
quite a bit when I was working on GUB back in Fall 2009.  Yes,
it's more work, but OTOH it meant that I wasn't treating git
master as an testing ground.  The lilypond developer community is
getting pickier about only putting patches into master if there's
evidence that they do no harm -- that's the whole point of the
reviews and Patchy.  When it comes to build system stuff,
unfortunately there's no way to test it on a single platform.

That said, don't take this as a vote against the patch.  I'm ok
with it going through.

- Graham
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b