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

Fix -dev split rule #173

Merged
merged 6 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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
12 changes: 12 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,23 @@ jobs:
ls -l /tmp/apks/*/* | grep -e "${{ steps.test-data.outputs.apk-pkg-name }}-doc-[[:alnum:]\._git]\+-r0.apk"
echo "Checking main package"
ls -l /tmp/apks/*/* | grep -e "${{ steps.test-data.outputs.apk-pkg-name }}-[[:alnum:]\._git]\+-r0.apk"

mkdir -p /tmp/pkg-main
cd /tmp/pkg-main
f-fl0 marked this conversation as resolved.
Show resolved Hide resolved
- name: Test split-dev
if: steps.test-data.outputs.split-dev
run: |
echo "Checking dev package"
ls -l /tmp/apks/*/* | grep -e "${{ steps.test-data.outputs.apk-pkg-name }}-dev-[[:alnum:]\._git]\+-r0.apk"
- name: Show package contents
run: |
for apk in /tmp/apks/*/*/*.apk; do
echo "-----"
echo ${apk}
echo "-----"
tar -tvf ${apk} 2>/dev/null
echo
done

- name: Login to GitHub Container Registry
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
Expand Down
17 changes: 10 additions & 7 deletions generate_rospkg_apkbuild/APKBUILD.em.sh
Original file line number Diff line number Diff line change
Expand Up @@ -396,14 +396,17 @@ dev() {
mkdir -p $subpkgdir
install_if="${subpkgname%-dev}=$pkgver-r$pkgrel ros-dev"

if ls $pkgdir/usr/ros/*/lib/pkgconfig >/dev/null 2>/dev/null; then
amove 'usr/ros/*/lib/pkgconfig'
fi
if ls $pkgdir/usr/ros/*/share/*/cmake >/dev/null 2>/dev/null; then
amove 'usr/ros/*/share/*/cmake'
fi
cd $pkgdir || return 0

default_dev
for i in \
usr/ros/*/lib/pkgconfig \
usr/ros/*/share/*/cmake \
usr/ros/*/include \
$(find usr/ros/*/lib -name -name '*.[choa]' -o -name '*.prl' 2>/dev/null); do
if [ -e "$i" ] || [ -L "$i" ]; then
amove "$i"
fi
done
}
@[end if]
if [ -f ./apkbuild_hook.sh ]; then
Expand Down