Skip to content

Commit

Permalink
Provide sysconfdir to FreeTDS
Browse files Browse the repository at this point in the history
You can use this parameter to specify a `freetds.conf` there. per default, it will use the build path, which will be some obscure thing on GitHub Actions. Although most people will customize this location at runtime using environment variables, it still makes sense to provide sensible defaults.
  • Loading branch information
andyundso committed Jan 9, 2025
1 parent 3dd127c commit 3dff397
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
uses: actions/cache@v4
with:
path: ports
key: cross-compiled-v9-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
key: cross-compiled-v1-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
restore-keys: |
cross-compiled-v9-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
cross-compiled-v9-${{ matrix.platform }}-
cross-compiled-v1-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
cross-compiled-v1-${{ matrix.platform }}-
- name: Build gem
shell: bash
Expand Down
1 change: 1 addition & 0 deletions ext/tiny_tds/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def configure_defaults

recipe.configure_options << "--with-openssl=#{openssl_recipe.path}"
recipe.configure_options << "--with-libiconv-prefix=#{libiconv_recipe.path}"
recipe.configure_options << "--sysconfdir=#{MiniPortile.windows? ? "C:/Sites" : "/usr/local/etc"}"

recipe.gem_platform = gem_platform
recipe.cook_and_activate
Expand Down

0 comments on commit 3dff397

Please sign in to comment.