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

add aarch64 control-freec (debugging) #52018

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from 8 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
7 changes: 6 additions & 1 deletion recipes/control-freec/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

# Debug for ARM build, can remove later
set -x
Comment on lines +2 to +3
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Add shell safety flags and plan debug mode cleanup.

While set -x is helpful for debugging ARM builds, consider:

  1. Adding recommended shell safety flags
  2. Removing debug mode once ARM issues are resolved
 #!/bin/bash
-# Debug for ARM build, can remove later
-set -x
+set -euo pipefail
+
+# TODO: Remove after ARM debugging is complete
+if [[ "${CONDA_BUILD_CROSS_COMPILATION:-}" == "1" ]]; then
+    set -x
+fi
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# Debug for ARM build, can remove later
set -x
#!/bin/bash
set -euo pipefail
# TODO: Remove after ARM debugging is complete
if [[ "${CONDA_BUILD_CROSS_COMPILATION:-}" == "1" ]]; then
set -x
fi


mkdir -p $PREFIX/bin

Expand All @@ -11,5 +12,9 @@ do
cp $f $PREFIX/bin
done

ls -l $PREFIX/bin
echo get_fasta_lengths.pl is...
cat $PREFIX/bin/get_fasta_lengths.pl

cd src
$CXX -o $PREFIX/bin/freec $CXXFLAGS $LDFLAGS *.cpp -lpthread
11 changes: 8 additions & 3 deletions recipes/control-freec/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ source:
- perl_shebang.patch

build:
number: 0
number: 1
run_exports:
- {{ pin_subpackage('control-freec', max_pin="x") }}

Expand All @@ -30,6 +30,8 @@ requirements:

test:
commands:
- ls -l
- ls -l bin
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Remove debugging directory listing commands

The ls commands appear to be debugging artifacts and don't contribute to package validation. The existing test commands already properly verify the installation of all components.

  test:
    commands:
-    - ls -l
-    - ls -l bin
     - freec
     - freec2bed.pl
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- ls -l
- ls -l bin
- freec
- freec2bed.pl

- freec
- freec2bed.pl
- freec2circos.pl
Expand All @@ -42,7 +44,8 @@ test:

about:
home: https://github.com/BoevaLab/FREEC
license: GPL (>=2)
license: GPL-2.0-or-later
license_family: GPL2
summary: |
Copy number and genotype annotation from whole genome and whole exome
sequencing data.
Expand All @@ -54,4 +57,6 @@ extra:
like e.g. freec2bed.pl and freec2circos.pl (see homepage) are available in the
command line as well.
identifiers:
- biotools:freec
- biotools:freec
additional-platforms:
- linux-aarch64
Loading