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

Number of parameters for install.sh in CMakeLists.txt does not match required number #695

Open
AndreRicardo-Zoetis opened this issue Feb 18, 2025 · 1 comment · May be fixed by #698
Open

Comments

@AndreRicardo-Zoetis
Copy link
Contributor

Expected Behavior

CMakelist.txt mentions 4 variables ${ADUC_CONF_FOLDER} ${ADUC_CONF_FILE} ${ADUC_LOG_FOLDER} ${ADUC_DATA_FOLDER}

CODE "execute_process (COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/install.sh ${ADUC_CONF_FOLDER} ${ADUC_CONF_FILE} ${ADUC_LOG_FOLDER} ${ADUC_DATA_FOLDER})"

but install.sh expects 5 variables

echo "Usage: install.sh configuration_dir configuration_file home_dir log_dir data_dir"

Seems that home_dir variable is missing.

Does it map to ADUC_HOME_FOLDER ?

Current Behavior

Error on install

$ sudo cmake --build . --target install
[0/1] Install the project...
-- Install configuration: "Debug"
-- Installing: /usr/local/lib/systemd/system/deviceupdate-agent.service
Usage: install.sh configuration_dir configuration_file home_dir log_dir data_dir
Expected 5 command line args, but got 4

Steps to Reproduce

Provide a detailed set of steps to reproduce the bug.

  1. ./scripts/build.sh -c -u --build-packages
  2. cd out
  3. sudo cmake --build . --target install

Device Information

  • Host OS [e.g. Ubuntu 18.04, Windows Server IoT 2019]:
    Debian 11
  • Architecture [e.g. amd64, arm32, arm64]:
    amd64
  • Provisioning Method:
    N/A
    *DU Agent Version (run 'sudo -u adu /usr/bin/AducIotAgent -v'):

Logs

$ sudo cmake --build . --target install
[0/1] Install the project...
-- Install configuration: "Debug"
-- Installing: /usr/local/lib/systemd/system/deviceupdate-agent.service
Usage: install.sh configuration_dir configuration_file home_dir log_dir data_dir
Expected 5 command line args, but got 4
Create the 'adu' group.
Error: 'adu' group already exists.
-- Installing: /usr/local/bin/AducIotAgent
-- Set runtime path of "/usr/local/bin/AducIotAgent" to ""
-- Installing: /usr/local/bin/adu-shell
-- Installing: /usr/local/bin/adu-swupdate.sh
-- Installing: /var/lib/adu/extensions/sources/libcurl_content_downloader.so
-- Installing: /var/lib/adu/extensions/sources/libdeliveryoptimization_content_downloader.so
-- Set runtime path of "/var/lib/adu/extensions/sources/libdeliveryoptimization_content_downloader.so" to ""
-- Installing: /var/lib/adu/extensions/sources/libcontoso_component_enumerator.so
-- Installing: /var/lib/adu/extensions/sources/libmicrosoft_delta_download_handler.so
-- Set runtime path of "/var/lib/adu/extensions/sources/libmicrosoft_delta_download_handler.so" to ""
-- Installing: /var/lib/adu/extensions/sources/libmicrosoft_apt_1.so
-- Set runtime path of "/var/lib/adu/extensions/sources/libmicrosoft_apt_1.so" to ""
-- Installing: /var/lib/adu/extensions/sources/libmicrosoft_script_1.so
-- Set runtime path of "/var/lib/adu/extensions/sources/libmicrosoft_script_1.so" to ""
-- Installing: /var/lib/adu/extensions/sources/libmicrosoft_simulator_1.so
-- Set runtime path of "/var/lib/adu/extensions/sources/libmicrosoft_simulator_1.so" to ""
-- Installing: /var/lib/adu/extensions/sources/libmicrosoft_swupdate_2.so
-- Set runtime path of "/var/lib/adu/extensions/sources/libmicrosoft_swupdate_2.so" to ""
-- Installing: /var/lib/adu/extensions/sources/libmicrosoft_steps_1.so
-- Set runtime path of "/var/lib/adu/extensions/sources/libmicrosoft_steps_1.so" to ""
@AndreRicardo-Zoetis
Copy link
Contributor Author

PR: #698

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant