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

[kf5notifications] new port #19828

Merged
merged 24 commits into from
Sep 29, 2021
Merged

Conversation

wrobelda
Copy link
Contributor

@wrobelda wrobelda commented Aug 31, 2021

Describe the pull request
Adds new port.
Depends on:

@hellozee
Copy link
Contributor

This only fails in the CI, locally works. For some reason it looks into the wrong directory I suppose or it just be the CI is configured that way. Cause it refers to the location where snoretoast is installed before running the post install checks.

@wrobelda
Copy link
Contributor Author

This only fails in the CI, locally works. For some reason it looks into the wrong directory I suppose or it just be the CI is configured that way. Cause it refers to the location where snoretoast is installed before running the post install checks.

Same exact experience.

@NancyLi1013 NancyLi1013 added category:new-port The issue is requesting a new library to be added; consider making a PR! depends:different-pr This PR or Issue depends on a PR which has been filed labels Sep 1, 2021
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have modified or added at least one portfile where deprecated functions are used.

If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)

In the ports that use the new function, you have to add the corresponding dependencies:

{
  "name": "vcpkg-cmake",
  "host": true
},
{
  "name": "vcpkg-cmake-config",
  "host": true
}

The following files are affected:

  • ports/ecm/portfile.cmake
  • ports/kf5notifications/portfile.cmake
  • ports/libcanberra/portfile.cmake

@wrobelda wrobelda marked this pull request as ready for review September 16, 2021 22:36
@NancyLi1013
Copy link
Contributor

The failures are like this:

Installing in D:/packages/kf5notifications_x86-windows/debug. Run D:/buildtrees/kf5notifications/x86-windows-dbg/prefix.sh to set the environment for KNotifications.
CMake Error in src/CMakeLists.txt:
  Imported target "SnoreToast::SnoreToastActions" includes non-existent path

    "D:/packages/libsnoretoast_x86-windows/include/snoretoast"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in src/CMakeLists.txt:
  Imported target "SnoreToast::SnoreToastActions" includes non-existent path

    "D:/packages/libsnoretoast_x86-windows/include/snoretoast"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

@hellozee
Copy link
Contributor

It is not reproducible locally tbh, no idea if we are doing anything wrong or there is something wrong with the CI.

@dg0yt
Copy link
Contributor

dg0yt commented Sep 17, 2021

CMake Error in src/CMakeLists.txt:
Imported target "SnoreToast::SnoreToastActions" includes non-existent path

"D:/packages/libsnoretoast_x86-windows/include/snoretoast"

in its INTERFACE_INCLUDE_DIRECTORIES.

and

It is not reproducible locally tbh, no idea if we are doing anything wrong or there is something wrong with the CI.

It is a packages path. You may have this path locally after building the dependency libsnoretoast. But it may be missing after removal & re-install from cache.
Please check the exported config from libsnoretoast for references to packages.

@hellozee
Copy link
Contributor

Ahh make sense, would check that.

@wrobelda
Copy link
Contributor Author

wrobelda commented Sep 17, 2021

It is a packages path. You may have this path locally after building the dependency libsnoretoast. But it may be missing after removal & re-install from cache.
Please check the exported config from libsnoretoast for references to packages.

This is more nuanced than that. Locally built Config.cmake has:

  INTERFACE_INCLUDE_DIRECTORIES "C:/vcpkg/packages/libsnoretoast_x64-windows-static/include/snoretoast"

The path is correct, and the headers are included in the cached package:

PS C:\vcpkg> cat .\installed\vcpkg\info\libsnoretoast_0.8.0_x64-windows-static.list
x64-windows-static/
x64-windows-static/include/
x64-windows-static/include/snoretoast/
x64-windows-static/include/snoretoast/config.h
x64-windows-static/include/snoretoast/snoretoastactions.h
x64-windows-static/share/
x64-windows-static/share/libsnoretoast/
x64-windows-static/share/libsnoretoast/LibSnoreToastConfig-debug.cmake
x64-windows-static/share/libsnoretoast/LibSnoreToastConfig-release.cmake
x64-windows-static/share/libsnoretoast/LibSnoreToastConfig.cmake
x64-windows-static/share/libsnoretoast/copyright
x64-windows-static/share/libsnoretoast/vcpkg_abi_info.txt
x64-windows-static/tools/
x64-windows-static/tools/libsnoretoast/
x64-windows-static/tools/libsnoretoast/snoretoast.exe

EDIT: scratch that, just realized we're talking about the ephemeral packages folder, not the installed 🤦🏻‍♂️
EDIT2: Hardcoded CMAKE_INSTALL_PREFIX usage caused this: https://github.com/KDE/snoretoast/blob/2fae686f5826ac4c407c772db56873f538a384ba/src/CMakeLists.txt#L2
EDIT3: #20229 fixes it

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

Error: Local changes detected for libsnoretoast but no changes to version or port version.
-- Version: 0.8.0
-- Old SHA: 7ddd1b84089de293b4a9d74af6b7593d089084a9
-- New SHA: c30fe7a20b36f824198b72117cb13ae5e4eec46b
-- Did you remember to update the version or port version?
-- Pass `--overwrite-version` to bypass this check.
***No files were updated.***
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 30a3d841d88dbf1e668d875bcfc050aacdedc63b -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/libsnoretoast.json b/versions/l-/libsnoretoast.json
index 713dbcb..609c6e7 100644
--- a/versions/l-/libsnoretoast.json
+++ b/versions/l-/libsnoretoast.json
@@ -1,8 +1,8 @@
 {
   "versions": [
     {
-      "git-tree": "c30fe7a20b36f824198b72117cb13ae5e4eec46b",
-      "version": "0.8.0",
+      "git-tree": "7ddd1b84089de293b4a9d74af6b7593d089084a9",
+      "version-semver": "0.8.0",
       "port-version": 0
     }
   ]

You have modified or added at least one portfile where deprecated functions are used.

If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)

In the ports that use the new function, you have to add the corresponding dependencies:

{
  "name": "vcpkg-cmake",
  "host": true
},
{
  "name": "vcpkg-cmake-config",
  "host": true
}

The following files are affected:

  • ports/ecm/portfile.cmake
  • ports/ffnvcodec/portfile.cmake
  • ports/kf5notifications/portfile.cmake
  • ports/libcanberra/portfile.cmake
  • ports/libproxy/portfile.cmake
  • ports/libsnoretoast/portfile.cmake

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

Error: Local changes detected for libsnoretoast but no changes to version or port version.
-- Version: 0.8.0
-- Old SHA: 7ddd1b84089de293b4a9d74af6b7593d089084a9
-- New SHA: babb3a1599adf46a6862815fab452d9048920c84
-- Did you remember to update the version or port version?
-- Pass `--overwrite-version` to bypass this check.
***No files were updated.***
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 69d5556d0d8c105f75055326cef346546e40e615 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/libsnoretoast.json b/versions/l-/libsnoretoast.json
index 6c478ba..609c6e7 100644
--- a/versions/l-/libsnoretoast.json
+++ b/versions/l-/libsnoretoast.json
@@ -1,8 +1,8 @@
 {
   "versions": [
     {
-      "git-tree": "babb3a1599adf46a6862815fab452d9048920c84",
-      "version": "0.8.0",
+      "git-tree": "7ddd1b84089de293b4a9d74af6b7593d089084a9",
+      "version-semver": "0.8.0",
       "port-version": 0
     }
   ]

You have modified or added at least one portfile where deprecated functions are used.

If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)

In the ports that use the new function, you have to add the corresponding dependencies:

{
  "name": "vcpkg-cmake",
  "host": true
},
{
  "name": "vcpkg-cmake-config",
  "host": true
}

The following files are affected:

  • ports/ecm/portfile.cmake
  • ports/ffnvcodec/portfile.cmake
  • ports/kf5notifications/portfile.cmake
  • ports/libcanberra/portfile.cmake
  • ports/libproxy/portfile.cmake
  • ports/libsnoretoast/portfile.cmake

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!

After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 69d5556d0d8c105f75055326cef346546e40e615 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/libsnoretoast.json b/versions/l-/libsnoretoast.json
index 53233ef..513047f 100644
--- a/versions/l-/libsnoretoast.json
+++ b/versions/l-/libsnoretoast.json
@@ -6,8 +6,8 @@
       "port-version": 1
     },
     {
-      "git-tree": "babb3a1599adf46a6862815fab452d9048920c84",
-      "version": "0.8.0",
+      "git-tree": "7ddd1b84089de293b4a9d74af6b7593d089084a9",
+      "version-semver": "0.8.0",
       "port-version": 0
     }
   ]

You have modified or added at least one portfile where deprecated functions are used.

If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)

In the ports that use the new function, you have to add the corresponding dependencies:

{
  "name": "vcpkg-cmake",
  "host": true
},
{
  "name": "vcpkg-cmake-config",
  "host": true
}

The following files are affected:

  • ports/ecm/portfile.cmake
  • ports/ffnvcodec/portfile.cmake
  • ports/kf5notifications/portfile.cmake
  • ports/libcanberra/portfile.cmake
  • ports/libproxy/portfile.cmake
  • ports/libsnoretoast/portfile.cmake

@wrobelda
Copy link
Contributor Author

@NancyLi1013 this no longer has any dependencies, ready to be merged.

@NancyLi1013 NancyLi1013 removed the depends:different-pr This PR or Issue depends on a PR which has been filed label Sep 28, 2021
ports/kf5notifications/fix_config_cmake.patch Outdated Show resolved Hide resolved
ports/kf5notifications/vcpkg.json Outdated Show resolved Hide resolved
@wrobelda wrobelda mentioned this pull request Sep 28, 2021
5 tasks
@NancyLi1013
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@NancyLi1013 NancyLi1013 added the info:reviewed Pull Request changes follow basic guidelines label Sep 29, 2021
@BillyONeal BillyONeal merged commit a7e7bcd into microsoft:master Sep 29, 2021
@BillyONeal
Copy link
Member

Thanks for all the kf5Xxx ports!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:new-port The issue is requesting a new library to be added; consider making a PR! info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants