Skip to content

ripe-atlas: follow-up changes after PR which added package - #30067

Open
commodo wants to merge 3 commits into
openwrt:masterfrom
commodo:ripe-atlas-followup
Open

ripe-atlas: follow-up changes after PR which added package#30067
commodo wants to merge 3 commits into
openwrt:masterfrom
commodo:ripe-atlas-followup

Conversation

@commodo

@commodo commodo commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

📦 Package Details

Maintainer: @tiagogaspar8

Description:

Folow-up after PR #30030


🧪 Run Testing Details

  • OpenWrt Version:
  • OpenWrt Target/Subtarget:
  • OpenWrt Device:

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

Comment thread net/ripe-atlas/Makefile

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed 2 new commits; no new issues found.


Generated by Claude Code

@commodo
commodo force-pushed the ripe-atlas-followup branch from 947aeba to 70f7e06 Compare July 22, 2026 08:01

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed 2 new commits; no new issues found.


Generated by Claude Code

commodo added 3 commits August 1, 2026 11:17
openssh-client and openssh-keygen already depend on libopenssl, so listing
it explicitly in ripe-atlas-common is redundant.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
Update to the latest upstream ripe-atlas-software-probe release.

Drop 001-uname.patch: upstream now calls `uname -n` instead of
`hostname -s` for the generic ssh-key creation, so the patch is included
in this release.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
OpenWrt puts the compiler-driver flag -fuse-ld= in TARGET_LDFLAGS, but the
bundled busybox hands LDFLAGS straight to ld, which rejects it and aborts
the build on newer binutils. Filter -fuse-ld=% out of TARGET_LDFLAGS; it is
a no-op in the common case, since busybox already links with the default bfd.

Fixes: openwrt#30083
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
@commodo
commodo force-pushed the ripe-atlas-followup branch from 70f7e06 to cb42070 Compare August 1, 2026 08:31

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed 1 new commit (cb42070). One inline finding on the busybox -fuse-ld= workaround — the commit message matches its diff.


Generated by Claude Code

Comment thread net/ripe-atlas/Makefile
Comment on lines +26 to +28
# The bundled busybox feeds LDFLAGS straight to ld, which rejects the
# -fuse-ld= compiler flag OpenWrt puts in TARGET_LDFLAGS; drop it here.
TARGET_LDFLAGS:=$(filter-out -fuse-ld=%,$(TARGET_LDFLAGS))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Filtering only -fuse-ld=% treats a symptom, not the cause, so this likely does not close #30083. The bundled kbuild tree links built-in.o with $(LD) -nostdlib $(ld_flags) -r; busybox normally defines LD = $(CC) -nostdlib, but OpenWrt's default MAKE_FLAGS passes LD="$(TARGET_LD)" on the make command line, and TARGET_LD is ld.$(TARGET_LINKER) — the raw linker. This package sets no MAKE_FLAGS/MAKE_VARS of its own, so LDFLAGS reaches ld.bfd verbatim, and -fuse-ld=bfd is only one of several compiler-driver-only flags in there:

  • hardening.mk:22 adds $(FPIC) -specs=$(INCLUDE_DIR)/hardened-ld-pie.specs under CONFIG_PKG_ASLR_PIE_ALL-specs= triggers the exact same ld.bfd: -f may not be used without -shared message this patch is chasing.
  • package.mk:57 adds -flto=auto -fuse-linker-plugin under CONFIG_USE_LTO.
  • package.mk:52 adds -Wl,--gc-sections, which ld also does not understand.

The issue reporter tested this commit and reports the same failure, which matches the above. Restoring busybox's own LD looks like the more complete fix, e.g. instead of the filter-out:

# The bundled probe-busybox kbuild tree links built-in.o with "$(LD) -r" and
# passes LDFLAGS straight to it. It expects LD to be the compiler driver
# (busybox's own "LD = $(CC) -nostdlib"), but OpenWrt's MAKE_FLAGS point LD at
# ld.bfd, which chokes on -fuse-ld=/-specs=/-flto=/-Wl,... Restore the default.
MAKE_FLAGS += LD="$(TARGET_CC) -nostdlib"

(the later command-line assignment wins over the one in MAKE_FLAGS). Since I can't build this here, could you confirm which variant actually builds on the reporter's config before landing?


Generated by Claude Code

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR is a small follow-up for the net/ripe-atlas package, updating it to a newer upstream release and adjusting build packaging details to better fit the OpenWrt build environment.

Changes:

  • Bump ripe-atlas from 5110 to 5120 (with updated source hash).
  • Drop the now-unneeded uname patch (likely incorporated upstream).
  • Filter -fuse-ld= out of TARGET_LDFLAGS to avoid failures with the bundled busybox build, and remove an explicit libopenssl dependency (still transitively pulled via OpenSSH packages).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
net/ripe-atlas/Makefile Version/hash bump; adjust linker flags for bundled busybox; dependency cleanup.
net/ripe-atlas/patches/001-uname.patch Removes a patch that is presumably upstreamed in the newer release.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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 this pull request may close these issues.

4 participants