[Freeciv-tickets] [freeciv] #43879: generate_gitrev.sh: Relative path to output file does not work

Back to archive index
OSDN Ticket System norep****@osdn*****
Wed Feb 16 23:34:49 JST 2022


#43879: generate_gitrev.sh: Relative path to output file does not work

  Open Date: 2022-02-16 16:03
Last Update: 2022-02-16 16:34

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/43879
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43879

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-02-16 16:34 Updated by: cazfi

Comment:

That the gitrev build with autotools goes through is by luck. It's supposed to generate the fc_gitrev_gen.h to the build dir: '$(top_builddir)/common/fc_gitrev_gen.h' -> '../common/fc_gitrev_gen.h'. With that  output file name it actually gets generated to the source directory, and gets used from there.

---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: (None)
          Type: Bugs
        Status: Open
      Priority: 5 - Medium
     MileStone: 3.0.1
     Component: Bootstrap
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

generate_gitrev.sh writes output file relative to input (source) directory, not to the directory it was executed from.
This breaks meson builds 'gitrev' option. (gone unnoticed this far because there often is fc_gitrev_gen.h generated by earlier autotools build)

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/43879
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43879



More information about the Freeciv-tickets mailing list
Back to archive index