Skip to content
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

[PPS-54-v12] - Fix warnings that installbuilder throws during installer build #36

Draft
wants to merge 4 commits into
base: REL-12
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 0 additions & 83 deletions server/commandlinetools.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,51 +39,6 @@
</compareText>
</ruleList>
</folder>
<!-- LINUX_X64: Program files -->
<folder>
<description>Program Files</description>
<destination>${installdir}</destination>
<name>programfileslinux-x64</name>
<platforms>linux-x64</platforms>
<distributionFileList>
<distributionDirectory>
<origin>staging/linux-x64/commandlinetools/lib</origin>
</distributionDirectory>
<distributionDirectory>
<origin>staging/linux-x64/commandlinetools/bin</origin>
</distributionDirectory>
<distributionDirectory>
<origin>staging/linux-x64/commandlinetools/share</origin>
</distributionDirectory>
<distributionDirectory>
<origin>staging/linux-x64/commandlinetools/installer</origin>
</distributionDirectory>
<distributionDirectory>
<origin>staging/linux-x64/commandlinetools/scripts</origin>
</distributionDirectory>
<distributionFile>
<origin>staging/linux-x64/commandlinetools/commandlinetools_3rd_party_licenses.txt</origin>
</distributionFile>
</distributionFileList>
</folder>
<!-- LINUX_PPC64: Program files -->
<folder>
<description>Program Files</description>
<destination>${installdir}</destination>
<name>programfileslinux-ppc64</name>
<platforms>linux-ppc</platforms>
<distributionFileList>
<distributionDirectory>
<origin>staging/linux-ppc64/pgAdmin 4</origin>
</distributionDirectory>
<distributionFile>
<origin>../resources/license.txt</origin>
</distributionFile>
<distributionFile>
<origin>staging/linux-ppc64/server_3rd_party_licenses.txt</origin>
</distributionFile>
</distributionFileList>
</folder>
<!-- MAC: Program files -->
<folder>
<description>Program Files</description>
Expand Down Expand Up @@ -135,42 +90,6 @@
</distributionFile>
</distributionFileList>
</folder>
<!-- SOLARIS_X64: Program files -->
<folder>
<description>Program Files</description>
<destination>${installdir}</destination>
<name>programfilessolaris-x64</name>
<platforms>solaris-intel</platforms>
<distributionFileList>
<distributionDirectory>
<origin>staging/solaris-x64/pgAdmin 4</origin>
</distributionDirectory>
<distributionFile>
<origin>../resources/license.txt</origin>
</distributionFile>
<distributionFile>
<origin>staging/solaris-x64/server_3rd_party_licenses.txt</origin>
</distributionFile>
</distributionFileList>
</folder>
<!-- SOLARIS_SPARC: Program files -->
<folder>
<description>Program Files</description>
<destination>${installdir}</destination>
<name>programfilessolaris-sparc</name>
<platforms>solaris-sparc</platforms>
<distributionFileList>
<distributionDirectory>
<origin>staging/solaris-sparc/pgAdmin 4</origin>
</distributionDirectory>
<distributionFile>
<origin>../resources/license.txt</origin>
</distributionFile>
<distributionFile>
<origin>staging/solaris-sparc/server_3rd_party_licenses.txt</origin>
</distributionFile>
</distributionFileList>
</folder>
</folderList>
<!-- WIN: Start Menu -->
<startMenuShortcutList>
Expand Down Expand Up @@ -233,8 +152,6 @@
<type>regexp</type>
<substitutionList>
<substitution pattern="Cflags:.*include" value="Cflags: -I${installdir}/include"/>
</substitutionList>
<substitutionList>
<substitution pattern="Libs:.*lib" value="Libs: -L${installdir}/lib"/>
</substitutionList>
<ruleList>
Expand Down
109 changes: 16 additions & 93 deletions server/installer.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,6 @@ EOF
</initializationActionList>


<readyToInstallActionList/>

<installationAbortedActionList>
<deleteFile path="${system_temp_directory}/postgresql_installer_${random_number}" abortOnError="0" showMessageOnError="0">
<ruleList>
Expand Down Expand Up @@ -1252,21 +1250,6 @@ EOF
<isFalse value="${extract_mode}"/>
</ruleList>
</unpackFile>
<unpackFile>
<component>default</component>
<destination>${system_temp_directory}/postgresql_installer_${random_number}</destination>
<folder>defaultlinux-x64</folder>
<origin>prerun_checks.sh</origin>
<customErrorMessage>${msg(error.writing.temp)}</customErrorMessage>
<ruleList>
<compareText>
<logic>equals</logic>
<text>${platform_name}</text>
<value>linux-x64</value>
</compareText>
<isFalse value="${extract_mode}"/>
</ruleList>
</unpackFile>
<unpackFile>
<component>default</component>
<destination>${system_temp_directory}/postgresql_installer_${random_number}</destination>
Expand All @@ -1282,34 +1265,6 @@ EOF
<isFalse value="${extract_mode}"/>
</ruleList>
</unpackFile>
<unpackFile>
<component>default</component>
<destination>${system_temp_directory}/postgresql_installer_${random_number}</destination>
<folder>programfilessolaris-x64</folder>
<origin>server/installer/prerun_checks.sh</origin>
<ruleList>
<compareText>
<logic>equals</logic>
<text>${platform_name}</text>
<value>solaris-intel</value>
</compareText>
<isFalse value="${extract_mode}"/>
</ruleList>
</unpackFile>
<unpackFile>
<component>default</component>
<destination>${system_temp_directory}/postgresql_installer_${random_number}</destination>
<folder>programfilessolaris-sparc</folder>
<origin>server/installer/prerun_checks.sh</origin>
<ruleList>
<compareText>
<logic>equals</logic>
<text>${platform_name}</text>
<value>solaris-sparc</value>
</compareText>
<isFalse value="${extract_mode}"/>
</ruleList>
</unpackFile>

<actionGroup>
<actionList>
Expand Down Expand Up @@ -2070,28 +2025,6 @@ ${dbsummary}${cltsummary}${pgadminsummary}${sbsummary}${msg(summary.installation
</compareText>
</ruleList>
</folder>
<!-- LINUX-X64: files for default component -->
<folder>
<description>Program Files</description>
<destination>${installdir}/installer/server</destination>
<name>defaultlinux-x64</name>
<platforms>linux-x64</platforms>
<distributionFileList>
<distributionDirectory>
<origin>staging/linux-x64/server/installer/prerun_checks.sh</origin>
</distributionDirectory>
<distributionDirectory>
<origin>staging/linux-x64/server/scripts</origin>
</distributionDirectory>
</distributionFileList>
<ruleList>
<compareText>
<logic>contains</logic>
<text>${platform_name}</text>
<value>linux-x64</value>
</compareText>
</ruleList>
</folder>
<!-- MacOSX: files for default component -->
<folder>
<description>Program Files</description>
Expand Down Expand Up @@ -2133,7 +2066,7 @@ ${dbsummary}${cltsummary}${pgadminsummary}${sbsummary}${msg(summary.installation
<folder>
<description>Program Files</description>
<destination>${installdir}/installer</destination>
<name>defaultwindows-x64</name>
<name>defaultwindows64</name>
<platforms>windows</platforms>
<distributionFileList>
<distributionDirectory>
Expand Down Expand Up @@ -2263,15 +2196,6 @@ ${dbsummary}${cltsummary}${pgadminsummary}${sbsummary}${msg(summary.installation
<cliOptionName>prefix</cliOptionName>
<width>30</width>
<mustBeWritable>yes</mustBeWritable>
<ruleList>
<stringTest>
<text>${iBaseDirectory}</text>
<type>empty</type>
</stringTest>
</ruleList>
<postShowPageActionList>
<wow64FsRedirection action="disable" />
</postShowPageActionList>

<validationActionList>
<validateInstallDir installdir="${installdir}">
Expand All @@ -2282,6 +2206,7 @@ ${dbsummary}${cltsummary}${pgadminsummary}${sbsummary}${msg(summary.installation
</validationActionList>

<postShowPageActionList>
<wow64FsRedirection action="disable" />
<actionGroup>
<actionList>
<actionGroup>
Expand Down Expand Up @@ -2337,6 +2262,10 @@ ${dbsummary}${cltsummary}${pgadminsummary}${sbsummary}${msg(summary.installation
</postShowPageActionList>
<ruleList>
<isTrue value="${component(server).selected}"/>
<stringTest>
<text>${iBaseDirectory}</text>
<type>empty</type>
</stringTest>
</ruleList>
</directoryParameter>

Expand Down Expand Up @@ -2382,23 +2311,14 @@ ${dbsummary}${cltsummary}${pgadminsummary}${sbsummary}${msg(summary.installation
<cliOptionName>datadir</cliOptionName>
<width>30</width>
<mustBeWritable>yes</mustBeWritable>
<ruleList>
<stringTest>
<text>${iDataDirectory}</text>
<type>empty</type>
</stringTest>
<isFalse value="${extract_mode}"/>
</ruleList>
<postShowPageActionList>
<wow64FsRedirection action="disable" />
</postShowPageActionList>

<!-- Check the directory selected. If it's a valid data directory, change to upgrade mode -->

<!-- Note that this validation occurs in a postShowPageActionList due -->
<!-- to some odd behaviour in InstallBuilder in the way <allowEmptyValue> -->
<!-- interacts with default values, on the advice of tech support -->
<postShowPageActionList>
<wow64FsRedirection action="disable" />
<!-- !WIN: Always check if the data directory path looks valid and is writeable -->
<actionGroup>
<!-- We need this because this isn't a validateActionList> -->
Expand Down Expand Up @@ -2719,9 +2639,8 @@ ${dbsummary}${cltsummary}${pgadminsummary}${sbsummary}${msg(summary.installation
</compareText>
</ruleList>
</actionGroup>
</actionList>
<!-- Switch to upgrade mode -->
<actionList>

<!-- Switch to upgrade mode -->
<setInstallerVariable>
<name>IsUpgrade</name>
<value>1</value>
Expand All @@ -2741,7 +2660,7 @@ ${dbsummary}${cltsummary}${pgadminsummary}${sbsummary}${msg(summary.installation
<pattern>^.*port\s*=\s*([\d]+)\s+.*$</pattern>
<substitution>\1</substitution>
</setInstallerVariableFromRegEx>
</actionList>
</actionList>

<!-- We only check the data directory if it exists and isn't empty -->
<ruleList>
Expand Down Expand Up @@ -2788,6 +2707,11 @@ ${dbsummary}${cltsummary}${pgadminsummary}${sbsummary}${msg(summary.installation
</actionGroup>
</postShowPageActionList>
<ruleList>
<stringTest>
<text>${iDataDirectory}</text>
<type>empty</type>
</stringTest>
<isFalse value="${extract_mode}"/>
<isTrue value="${component(server).selected}"/>
</ruleList>
</directoryParameter>
Expand Down Expand Up @@ -3285,8 +3209,7 @@ ${dbsummary}${cltsummary}${pgadminsummary}${sbsummary}${msg(summary.installation
<isTrue value="${component(server).selected}"/>
</ruleList>
</parameterGroup>
</parameterList>
<parameterList>

<infoParameter>
<name>preinstallsummary</name>
<title>${msg(preinstall.summary)}</title>
Expand Down
Loading