Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 16111] New: QuickJS binaries in `/usr/local/bin` (instead of `/usr/bin`)
@ 2024-06-17 14:52 bugzilla
  2024-06-17 15:09 ` [Buildroot] [Bug 16111] " bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2024-06-17 14:52 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=16111

            Bug ID: 16111
           Summary: QuickJS binaries in `/usr/local/bin` (instead of
                    `/usr/bin`)
           Product: buildroot
           Version: 2024.05
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned@buildroot.uclibc.org
          Reporter: ciprian.craciun@gmail.com
                CC: buildroot@uclibc.org
  Target Milestone: ---

After BuildRoot has updated QuickJS to version 2024-01-13, now QuickJS installs
it's binaries under `/usr/local/bin` as opposed to `/usr/bin` (as it was before
the update of QuickJS release).

Apparently the BuildRoot `quickjs.mk` script uses `prefix=/usr`, but the latest
QuickJS makefile seems to expect `PREFIX=/usr`.

The following minor patch solves the issue:
~~~~
diff --git i/package/quickjs/quickjs.mk w/package/quickjs/quickjs.mk
--- i/package/quickjs/quickjs.mk
+++ w/package/quickjs/quickjs.mk
@@ -22,25 +22,25 @@ define QUICKJS_BUILD_CMDS
        EXTRA_LIBS="$(QUICKJS_EXTRA_LIBS)" \
        all
 endef

 define QUICKJS_INSTALL_STAGING_CMDS
    $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
        CROSS_PREFIX="$(TARGET_CROSS)" \
        EXTRA_LIBS="$(QUICKJS_EXTRA_LIBS)" \
        DESTDIR=$(STAGING_DIR) \
        STRIP=/bin/true \
-       prefix=/usr \
+       PREFIX=/usr \
        install
 endef

 define QUICKJS_INSTALL_TARGET_CMDS
    $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
        CROSS_PREFIX="$(TARGET_CROSS)" \
        EXTRA_LIBS="$(QUICKJS_EXTRA_LIBS)" \
        DESTDIR=$(TARGET_DIR) \
        STRIP=/bin/true \
-       prefix=/usr \
+       PREFIX=/usr \
        install
 endef

 $(eval $(generic-package))
~~~~

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] [Bug 16111] QuickJS binaries in `/usr/local/bin` (instead of `/usr/bin`)
  2024-06-17 14:52 [Buildroot] [Bug 16111] New: QuickJS binaries in `/usr/local/bin` (instead of `/usr/bin`) bugzilla
@ 2024-06-17 15:09 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2024-06-17 15:09 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=16111

Yann E. MORIN <yann.morin.1998@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yann.morin.1998@free.fr
             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #1 from Yann E. MORIN <yann.morin.1998@free.fr> ---
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

Please open an issue there.

Thank you!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-17 15:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-17 14:52 [Buildroot] [Bug 16111] New: QuickJS binaries in `/usr/local/bin` (instead of `/usr/bin`) bugzilla
2024-06-17 15:09 ` [Buildroot] [Bug 16111] " bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox