Modify

Opened 6 months ago

Closed 6 months ago

Last modified 5 months ago

#23858 closed defect (fixed)

JMapViewer Sources zip files contain .rej files

Reported by: sebastic Owned by: team
Priority: normal Milestone:
Component: JMapViewer Version:
Keywords: Cc:

Description

The JMapViewer sources zip files contain BingAerialTileSource.java.rej since 2.20:

$ unzip -l ../JMapViewer-2.18-Source.zip | grep rej$
$ unzip -l ../JMapViewer-2.20-Source.zip | grep rej$
      968  2024-07-16 08:55   jmapviewer-2.20/src/org/openstreetmap/gui/jmapviewer/tilesources/BingAerialTileSource.java.rej
$ unzip -l ../JMapViewer-2.21-Source.zip | grep rej$
      968  2024-07-16 08:55   jmapviewer-2.21/src/org/openstreetmap/gui/jmapviewer/tilesources/BingAerialTileSource.java.rej

The files are not present in the SVN repo which suggests a dirty working directory is used to create the zip files.

The Debian packaging tools automatically remove .rej files in the clean target which then causes it to complain about missing files from the upstream source tree.

Attachments (0)

Change History (13)

comment:1 by taylor.smock, 6 months ago

Resolution: fixed
Status: newclosed

In 36307/osm:

Fix #23858: Remove rej files from JMapViewer sources

comment:2 by taylor.smock, 6 months ago

svn st doesn't show .rej files. And I don't know why.

in reply to:  2 comment:3 by sebastic, 6 months ago

Replying to taylor.smock:

svn st doesn't show .rej files. And I don't know why.

You may have global-ignores configured.

It doesn't seem like svn:ignore in the osm repo is responsible, but Trac might not show svn:global-ignore properties.

comment:4 by taylor.smock, 6 months ago

It looks like svn ignores .rej by default. See https://subversion.apache.org/docs/api/latest/svn__config_8h_source.html line 217.

comment:5 by stoecker, 6 months ago

Use svn status --no-ignore ;-).

comment:6 by stoecker, 6 months ago

P.S. From a packagers view: It's very bad habit to change the past. For the future: Better is to make a correct new release and leave the past as it was.

comment:7 by taylor.smock, 6 months ago

Fair enough. With that said, I'm more inclined to update Nexus-JMapViewer to build the nexus jar files instead of extracting them from something we put in source control.

@sebastic: This might be a stupid question, but why aren't you using the maven sources from our nexus? Right now they are going to be the same.

@stoecker: Do you know why we put the jar files in source control? Or is it just something we've always done, so we continue to do it?

in reply to:  7 comment:8 by stoecker, 6 months ago

Replying to taylor.smock:

@stoecker: Do you know why we put the jar files in source control?

I think Vincent started to package JMapViewer to satisfy the requests from Debian. Before it was included in JOSM codebase directly.

Or is it just something we've always done

Very likely.

, so we continue to do it?

Not necessarily. Proper download documentation on the Wiki should be enough and the link can be whatever we want.

As far as I know currently download documentation of JMapViewer is rather non-existent? Probably a page wiki:JMapViewer would be a good idea linked from downloads page and probably also from start page.

Last edited 6 months ago by stoecker (previous) (diff)

in reply to:  6 comment:9 by sebastic, 6 months ago

Replying to stoecker:

P.S. From a packagers view: It's very bad habit to change the past. For the future: Better is to make a correct new release and leave the past as it was.

I second this. Don't modify released artifacts once published.

Replying to taylor.smock:

@sebastic: This might be a stupid question, but why aren't you using the maven sources from our nexus?

Because we've used the zip files when they became available. And our packaging tools support importing zip files in addition to tarballs, jar files are not supported.

We're using the josm source jar only for the dependency sources, the josm source we get from svn export. We have a relatively elaborate procedure to create a tarball from the various sources (svn export for JOSM sources, source JAR for dependency sources, svn export for i18n, bzr export for .po files). This is unfortunately a very custom process, we can't just run gbp import-orig --uscan to download and import a published release tarballs like we do for pretty much every other package. The JMapViewer zip file is equivalent to a release tarball from a packaging POV.

Replying to stoecker:

As far as I know currently download documentation of JMapViewer is rather non-existent? Probably a page wiki:JMapViewer would be a good idea linked from downloads page and probably also from start page.

https://wiki.openstreetmap.org/wiki/JMapViewer links to the releases.

Last edited 6 months ago by sebastic (previous) (diff)

comment:10 by taylor.smock, 6 months ago

source JAR for dependency sources

That is exactly what I linked to in comment:7 (https://josm.openstreetmap.de/nexus/service/local/repositories/releases/content/org/openstreetmap/jmapviewer/jmapviewer/2.21/jmapviewer-2.21-sources.jar -- note the -sources suffix).
I've updated the osmwiki:JMapViewer page to point at the nexus maven repo as well.

in reply to:  10 comment:11 by sebastic, 6 months ago

Replying to taylor.smock:

source JAR for dependency sources

That is exactly what I linked to in comment:7 (https://josm.openstreetmap.de/nexus/service/local/repositories/releases/content/org/openstreetmap/jmapviewer/jmapviewer/2.21/jmapviewer-2.21-sources.jar -- note the -sources suffix).

We don't use the JMapViewer source JAR, the source JAR i meant is josm-snapshot-${SVNREV}-sources.jar. We don't use the JMapViewer sources from that since we already build that and link to the binary JAR from the jmapviewer package.

The freeplane package might be going away as it requires a newer gradle which practically impossible to bootstrap, if that happens we can also remove the jmapviewer package and just build it as part of josm.

comment:12 by taylor.smock, 5 months ago

I just modified the deploy job (jenkins/job/Nexus-JMapViewer) to deploy using the pom.xml file. This won't affect the source:osm/applications/viewer/jmapviewer/releases files unfortunately -- we still have to manually build those.

@stoecker: If you are getting failure emails from Jenkins, sorry about that.

in reply to:  12 comment:13 by stoecker, 5 months ago

Replying to taylor.smock:

@stoecker: If you are getting failure emails from Jenkins, sorry about that.

I have a very good server based mail filter. One of the advantages when hosting an own mail server ;-)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.