Commit Graph

39 Commits

Author SHA1 Message Date
Khem Raj
93c7fc24f5
emacs: Use GNU_MIRROR in SRC_URI
Sometimes ftp.gnu.org might be slow.
Add UPSTREAM_CHECK_URI while here

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Gyorgy Sarvari <skandigraun@gmail.com>
2025-10-08 18:46:02 -07:00
Gyorgy Sarvari
c9a55aef87
emacs: upgrade 29.1 -> 30.2
Added a new patch to avoid unexporting some environment variables that are set
by the recipe explicitly, to avoid the following build error:

| Loading env...
| 'bootstrap-emacs' -batch --no-site-file --no-site-lisp -batch -l ja-dic-cnv \
|   -f batch-skkdic-convert -dir "../../sources/emacs-29.2/leim/../lisp/leim/ja-dic" --no-reduction "../../sources/emacs-29.2/leim/SKK-DIC/SKK-JISYO.L"
<...>
| Error: <RECIP_SYSROOT_NATIVE>/usr/share/emacs/29.2/etc/charsets: No such file or directory

Changelogs:
29.2 - 29.4: https://github.com/emacs-mirror/emacs/blob/master/etc/NEWS.29
30.1 - 30.2: https://github.com/emacs-mirror/emacs/blob/master/etc/NEWS.30

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-10-06 11:34:38 -07:00
Maxin John
e737827b74 emacs: remove unused patch
0001-largefile.m4-Update-from-latest-gnulib.patch was dropped during update
to 29.1. Remove that file.

Signed-off-by: Maxin John <maxin.john@gmail.com>
2024-03-08 17:21:41 +02:00
Khem Raj
4213fb939f
emacs: Add packageconfig for selinux support
Disable it by default, since selinux may not be present on build hosts
and it can result in non-deterministic behavior during build.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-05 11:02:05 -08:00
Alejandro Hernandez Samaniego
1cfd2bcc84 emacs: update to 29.1
- Rebase (and rename) use-emacs-native-tools-for-cross-compiling.patch
- Build bootstrap-emacs for emacs-native
- Use bootstrap-emacs (native) for cross compiling.
  - We need to pass EMACSLOADPATH and EMACSDATA so we can control the
  directories being used by bootstrap-emacs.
- Create avoid-running-host-binaries-for-sanity.patch to avoid running
  the newly integrated santity-check by emacs since it tries to run target
  binaries on the host.
- Fix emacs-minimal packaging for new version.

Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-08-30 00:20:59 -07:00
Peter Marko
ed334821c2 cve_check: fix conversion errors
Conversion from CVE_CHECK_IGNORE to CVE_STATUS had some copy+paste
issues.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-31 08:10:34 -07:00
Andrej Valek
8af2f17a6f cve_check: convert CVE_CHECK_IGNORE to CVE_STATUS
- Try to add convert and apply statuses for old CVEs
- Drop some obsolete ignores, while they are not relevant for current
  version

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-27 08:54:40 -07:00
Khem Raj
77f4b570bf emacs: Fix build with autconf 2.72+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-02 10:46:35 -07:00
Alejandro Enedino Hernandez Samaniego
2239a3063c emacs: Update to version 28.2
- Remove upstreamed patch emacs-glibc-2.34.patch
- Rebase usemake-docfile-native.patch
- Emacs isnt aware we are cross compiling, detects host arch, e.g. x86
  and tries to build seccomp-filter using cross-compiler even though
  it wont work for the target arch, explicitly disable seccomp to avoid
  configure script from wronfully enabling it for target.
- Fix emacs-minimal package runtime issue.
- Fix target pollution (buildpaths) reference to TMPDIR.

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-22 03:51:38 -07:00
Davide Gardenal
efa12676dd meta-oe: ignore patched CVEs
Some old CVEs don't have a vulnerable version range in the NVD database,
this causes come mismatch with cve-check. Ignore many CVEs that are
picked up by the class but are patched in our products.

Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-07-18 09:11:22 -07:00
Khem Raj
14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Khem Raj
f8fb68218b emacs: Inherit pkgconfig
It was part of default dependencies before

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-09-24 08:12:35 -07:00
Khem Raj
fb95946eb5 emacs,libgpiod,cockpit: Fix override syntax in using FILES_${PN}
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-06 20:38:40 -07:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Khem Raj
4fe1065655 emacs: Do not use SIGSTKSZ
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-03 22:57:42 -07:00
zangrc
aaef364ac8 emacs: upgrade 27.1 -> 27.2
Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-04-01 08:32:48 -07:00
Alejandro Hernandez Samaniego
e221838a77 emacs: Fix packaging for emacs-minimal
Emacs-minimal needs disp-table at load time, add it to the minimal package

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-10-27 13:19:24 -07:00
Alejandro Enedino Hernandez Samaniego
4c84ab39b3 emacs: Create a new recipe for emacs
Emacs is for obvious reasons one of the most important
and powerful editors, being the first program released
by the GNU project and being maintained for many years.

Its not the obvious choice when being used on a small
or resource constrained device, but, on this recipe
I was able to split it into three different packages
to fit different needs for those who decide to use it,
the emacs-minimal package would install a working emacs
requiring around 2 MB of storage space, the emacs-base
package includes some themes, syntax highlighting for
some of the most used programming languages, as well
as some extra functionality like a working shell,
requiring less than 5 MB, which should work for a wide
spectrum of workflows, and lasty, the emacs-full
package contains the a fully working emacs using around
30 MB of space trading off size for functionality.

This recipe also uses BBCLASSEXTEND=native to build some
tools that emacs itself requires to build for target,
but does not build a full native emacs since that is not
necessary.

Simply installing emacs will use the emacs-base package
as default.

Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-08-21 16:35:25 -07:00
Martin Jansa
ec9e5ed062 recipes: remove blacklisted recipes
* as PNBLACKLIST message says, these recipes are blacklisted for long
  time and nobody showed any interest to fix them
* remove all unused .patch and .inc files as well

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-08-31 10:18:33 +02:00
Martin Jansa
cdb428e7c4 recipes: add removal date to PNBLACKLIST messages
* based on discussion in pndeprecated thread:
  https://patchwork.openembedded.org/patch/137573/
  update the messages to warn possible users that the
  recipe will be removed before the end of the next development
  cycle (before Yocto 2.4 is released).

* updated with:
  sed -i 's/^\(PNBLACKLIST.*".*\)"/\1 - the recipe will be removed on 2017-09-01 unless the issue is fixed"/g' `git grep PNBLACKLIST | sed 's/:.*//g' | sort -u | xargs`
* then noticed couple recipes being blacklisted only based on
  DISTRO_FEATURES, so removed those:
  meta-networking/recipes-support/lksctp-tools/lksctp-tools_1.0.17.bb
  meta-oe/recipes-connectivity/bluez/bluez-hcidump_2.5.bb
  meta-oe/recipes-connectivity/bluez/bluez4_4.101.bb
  meta-oe/recipes-connectivity/bluez/gst-plugin-bluetooth_4.101.bb
  meta-oe/recipes-navigation/foxtrotgps/foxtrotgps_1.1.1.bb
  meta-oe/recipes-navigation/gypsy/gypsy.inc
  meta-oe/recipes-navigation/navit/navit.inc
  meta-oe/recipes-support/opensync/libsyncml_0.5.4.bb

* if it isn't fixed by this date, it's fair game to be removed
  whenever someone gets around to i

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-04-05 19:36:45 +02:00
Peter Kjellerstedt
0c31f55bcf Make use of the new bb.utils.filter() function
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-07 13:30:26 +01:00
Martin Jansa
dc48e768f5 meta-oe: remove trailing spaces
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-08-22 15:56:29 +02:00
Ross Burton
21f10c11f3 meta-oe: use bb.utils.contains() instead of base_contains()
base_contains() is a compatibility wrapper and may warn in the future, so
replace all instances with bb.utils.contains().

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-04-28 10:38:38 +02:00
Andre McCurdy
234ab5fb48 emacs.inc: use x86 over-ride instead of i586
Support i686 without needing to duplicate the i586 over-ride.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-06-08 14:15:23 +02:00
Martin Jansa
96a92761c0 PNBLACKLIST: use weak assignments
* this makes it easier to unblacklist it from local.conf which
  is parsed before the recipes

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-12-17 12:55:40 +01:00
Martin Jansa
2e7f3ce93b emacs, mplayer2, gnome-mplayer, xbmc, libimobiledevice, ifuse, tk: blacklist recipes failing in world builds
* these are failing for last couple months, blacklist them until someone
  steps up and starts maintaining them
* see http://www.openembedded.org/wiki/Bitbake_World_Status

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-05-09 14:59:01 +02:00
Martin Jansa
10b899a23e emacs: remove infodir
* doesn't use autotools.bbclass which removes infodir automatically
* fixes QA warning:
  emacs-23.4: The /usr/share/info/dir file is not meant to be shipped in a particular package.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-04-20 10:46:50 +02:00
Alexandre Tuleu
a64bd5b7e4 emacs: Allows non-x11 build on distribution supporting x11
By default emacs will build with x11 if the distribution has x11
support. However in a .bbappend file a user could strip away x11
support, even if x11 is supported on the platform. There was another
check in do_compile_prepend() that checked if the distro has x11
feature and not if PACAKAGECONFIG enables x11 support.

Since in this receipe dbus dependence is only marked if x11 is
enabled, desactiving x11 support should also desactivate dbus support.

Signed-off-by: Alexandre Tuleu <alexandre.tuleu.2005@polytechnique.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-11-18 23:14:09 +01:00
Martin Jansa
e23ede5137 emacs: zlib is now in base_libdir
* moved in
  http://git.openembedded.org/openembedded-core/commit/?id=ebb8382af892bef8e11fb590292506e1124276c5

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-06-12 16:23:22 +02:00
Martin Jansa
a45830a39b recipes: Unify indentation
* This change is only aesthetic (unlike indentation in Python
  tasks).
* Some recipes were using tabs.
* Some were using 8 spaces.
* Some were using mix or different number of spaces.
* Make them consistently use 4 spaces everywhere.
* Yocto styleguide advises to use tabs (but the only reason to keep
  tabs is the need to update a lot of recipes). Lately this advice
  was also merged into the styleguide on the OE wiki.
* Using 4 spaces in both types of tasks is better because it's less
  error prone when someone is not sure if e.g.
  do_generate_toolchain_file() is Python or shell task and also allows
  to highlight every tab used in .bb, .inc, .bbappend, .bbclass as
  potentially bad (shouldn't be used for indenting of multiline
  variable assignments and cannot be used for Python tasks).
* Don't indent closing quote on multiline variables
  we're quite inconsistent wheater it's first character on line
  under opening quote or under first non-whitespace character in
  previous line.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Acked-by: Koen Kooi <koen@dominion.thruhere.net>
2013-04-15 16:23:17 +02:00
Martin Jansa
47f3975a6a emacs: add harfbuzz, libicu* to qemu root
* fails without:
  | temacs: error while loading shared libraries: libharfbuzz.so.0: cannot open shared object file: No such file or directory

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-01-13 11:39:46 +01:00
Martin Jansa
44eea8e079 emacs: fix build with libpng-1.5 from oe-core
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-12-23 09:32:56 +01:00
Martin Jansa
c988ce5518 emacs: fix X11DEPENDS and build without x11 enabled at all
* also added copy for libcroco
  librsvg is linked to it by default after
  http://git.openembedded.org/openembedded-core/commit/?id=e177f1475c55c7d0bf3e2752e6502a7e8577a075

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-09-22 15:34:16 +02:00
Martin Jansa
54c7b9df5a emacs: copy only needed stuff to qemu-treedir, not whole sysroot
* my typical sysroot is huge (5.5G) and only 86M is really needed
  we can also copy copy whole
  ${STAGING_DIR_TARGET}/${libdir}/lib*.so.*
  ${STAGING_DIR_TARGET}/${base_libdir}/l*
  but that is still quite big (3.2G)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-08-07 12:21:23 +02:00
Martin Jansa
d213bfac73 emacs: rename TUTORIAL.ko to TUTORIAL.KO so it's not picked by package.bbclass for striping
* with http://patchwork.openembedded.org/patch/33365/ it's not fatal but still anoying

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-08-07 12:21:23 +02:00
Martin Jansa
d028be056c emacs: drop older version 23.1
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-07-31 03:47:15 +02:00
Martin Jansa
aa558bc2e8 emacs: upgrade to 23.4
* package icons in PN
* pass --with-crt-dir option to resolve crt* used from host system

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-07-31 03:47:15 +02:00
Martin Jansa
b980ffb862 emacs: fix dso build
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-07-31 03:47:15 +02:00
Martin Jansa
f2afdd2b98 emacs: import from meta-smartphone
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-07-31 00:14:55 +02:00