Skip to content

Commit 4f62d7f

Browse files
committed
only run check if parent directory isn’t symlink
1 parent f98da5f commit 4f62d7f

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

debian/changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
ruby3.4 (3.4.1-1ppa5) focal; urgency=medium
2+
3+
[ Aaron Ogata ]
4+
* only run check if parent directory isn’t symlink
5+
6+
-- root <aogata@instructure.com> Tue, 04 Feb 2025 10:20:03 -0800
7+
18
ruby3.4 (3.4.1-1ppa4) focal; urgency=medium
29

310
[ Aaron Ogata ]

debian/sanity_check

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ archlibdir=usr/lib/${arch}
99

1010
# files that should NOT exist
1111
test '!' -f debian/tmp/${libdir}/libruby-${RUBY_VERSION}.so.${RUBY_VERSION}
12-
ls -la debian/tmp/${libdir}/pkgconfig
13-
test '!' -f debian/tmp/${libdir}/pkgconfig/ruby-${RUBY_VERSION}.pc
12+
13+
# only run if this is not a symbolic link
14+
# https://github.com/ruby/ruby/commit/120c291fafd438e2bc58f098023c669dadc64b08
15+
if [ ! -L "debian/tmp/${libdir}/pkgconfig" ]; then
16+
test '!' -f "debian/tmp/${libdir}/pkgconfig/ruby-${RUBY_VERSION}.pc"
17+
fi
1418

1519
# files that should exist
1620
ls -1 debian/tmp/${archlibdir}/libruby-${RUBY_VERSION}.so.${RUBY_VERSION}

0 commit comments

Comments
 (0)