-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add FirebirdSQL server #5837
Open
vitkabele
wants to merge
15
commits into
SynoCommunity:master
Choose a base branch
from
vitkabele:firebird
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,539
−0
Open
Add FirebirdSQL server #5837
Changes from 2 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
80a50e7
Add native/libtool (#5837)
vitkabele 651fcbf
Add cross/firebird (#5837)
vitkabele c108b23
Add spk/firebird (#5837)
vitkabele 62172ff
High-quality logo
mreid-tt a3a2a0c
[firebird] Define PKG_DIST_FILE variable in cross/firebird/Makefile (…
vitkabele edd5643
[firebird] Remove BETA and redundant include from spk/firebird/Makefi…
vitkabele e5ef0f7
[firebird] Update input type in install wizard
vitkabele f6cc627
[firebird] Remove shebang and move SYSDBA.password to PKGVAR (#5837)
vitkabele 585124d
[firebird] Remove useless and obsolete files from PLIST (#5837)
vitkabele 18969c8
[firebird] Define security database location as $SYNOPKG_PKGVAR
vitkabele 9bcf340
[firebird] Explain what is SYSDBA user in the install_uifile (#5837)
vitkabele fe8628c
[firebird] The service-setup now sets sysdba password more carefully …
vitkabele 4e39aeb
Don't use install_log in service-setup.sh script
vitkabele 808b003
Do not even build the binaries not added to the plist
vitkabele 48123ab
[firebird] Move config files to $SYNOPKG_PKGVAR
vitkabele File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
cross/firebird/patches/0002-do-not-build-qli-gpre-examples.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- builds/posix/Makefile.in.1 2023-08-18 21:59:51.408045740 +0200 | ||
+++ builds/posix/Makefile.in 2023-08-18 22:03:41.578508436 +0200 | ||
@@ -348,9 +348,7 @@ cross2: | ||
$(MAKE) engine | ||
$(MAKE) fbintl | ||
$(MAKE) utilities | ||
- $(MAKE) $(GPRE) | ||
$(MAKE) plugins | ||
- $(MAKE) -f Makefile.plugins_examples | ||
$(MAKE) cross_rest | ||
|
||
|
||
@@ -660,7 +658,7 @@ GBAK_FILES := $(subst Native,$(TARGET),$ | ||
|
||
rest: qli message_file tzdata | ||
|
||
-cross_rest: qli gbak_files | ||
+cross_rest: gbak_files | ||
$(MAKE) $(BUILD_FILE) | ||
|
||
qli: $(QLI) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a missunderstanding
SYNOPKG_*
variables are for installer only (i.e. service-setup.sh), not for building packagesfor Makefiles you have to use the Makefile Variables as documented in the wiki
like
STAGING_INSTALL_PREFIX
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If FirebirdSQL follows the known rules, you only have to define
FB_PREFIX
and other subfolders are defaulted to ${FB_PREFIX}/bin, ${FB_PREFIX}/lib, ...}you should only require the variables
INSTALL_PREFIX
INSTALL_PREFIX_VAR
normally you do not define such FB_* variables as compiler flags but as configure options.
the configure arg
--prefix=$(INSTALL_PREFIX)
should make the definition ofADDITIONAL_CFLAGS += FB_PREFIX=$(INSTALL_PREFIX)
obsolete.NB:
the spksrc framework is designed to use
/usr(local/{packagename}
as prefix when building a package with the cross Makefile and to use/var/packages/{packagename}/target
as prefix when building the package in the spk folder.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I understand, the
STAGING_INSTALL_PREFIX
is the location where the files should be copied to be found by the PLIST magic. What I need here is actually the runtime location of the files, because Firebird compiles this information in the binary. If not set properly, it does not find the configuration etc.This works to a certain extent. With this setup, configuration files are located in
$FB_PREFIX
, where the installer does not find them. Even if I move them later to$FB_PREFIX/var
, the Firebird itself won't find them during startup and crashes.This is true, but the Firebird's build process is non-standard at least. The server is built in two phases, first some native part is built, this is then used to pre-process certain files and then the actual cross toolchain is used to build the binary.
In this process, the
--with-fbprefix
and similar configure option have only limited usability, because the value from them does not reach the cross phase for the reason you mention in your next comment. The file that should be generated withautoconf
is not generated, which is the destination location of the discussed variables.There is a cli option for firebird server to change the firebird root on startup, but this unfortunately breaks other things. Please see my related question in firebird-support mailing list.
TL;DR The build process cannot handle when install prefix and actual runtime prefix is different. This is the purpose of this
-DFB_*
fun.