93 Commits

Author SHA1 Message Date
Khem Raj 8f3df8b447 recipes: Convert licenses to SPDX expressions
- Automatically convert all licenses to valid SPDX license expressions
  using convert-spdx-licenses.py

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-07-20 22:35:47 -07:00
Wang Mingyu d18b472bd0 postfix: upgrade 3.11.4 -> 3.11.5
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-07-16 21:14:55 -07:00
Wang Mingyu e8c66d9543 postfix: upgrade 3.11.3 -> 3.11.4
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-06-25 08:45:11 -07:00
Wang Mingyu f553e9bdd6 postfix: upgrade 3.11.2 -> 3.11.3
0001-Fix-build-with-musl.patch
refreshed for 3.11.3

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-05-31 03:08:49 -07:00
Changqing Li ad0f53d2bb postfix: upgrade 3.10.9 -> 3.11.2
* Refresh patch to mute patch-fuzz
* Remove 0001-makedefs-Account-for-linux-7.x-version.patch
* This upgrade include the following commit, which make postfix can
  compile on latest stable ubuntu 26.04, which have Linux 7.x kernel

  Postfix works on Linux 7.x kernels. Frank Scheiner. Files:
        makedefs, util/sys_defs.h.

Changes:
https://www.ftp.saix.net/MTA/postfix/official/postfix-3.11.2.HISTORY

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-05-14 23:15:56 -07:00
Yi Zhao 7c6ce9d100 postfix: upgrade 3.10.8 -> 3.10.9
Security fix: CVE-2026-43964

Add a patch to fix build with musl.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-05-13 00:20:42 -07:00
Changqing Li a1503aa0f2 postfix: make it can compile with linux 7.x
Fix compile failure on host with linux 7.x

| DEBUG: Executing shell function do_compile
| NOTE: make -j 64 OPT= DEBUG= OPTS= makefiles
| make -f Makefile.in MAKELEVEL= Makefiles
| (echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
| ATTENTION:
| ATTENTION: Unknown system type: Linux 7.0.0-14-generic
| ATTENTION:
| make: *** [Makefile.in:33: Makefiles] Error 1
| make: *** [Makefile:22: makefiles] Error 2
| ERROR: oe_runmake failed

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-05-13 00:15:14 -07:00
Michal Sieron a4b25c01a5 postfix: Convert confusing appends to override syntax
While in this case `RDEPENDS:class-target +=` wouldn't result in any
unwanted override, there is no guarantee there won't be a change, which
would be hidden by this override. To avoid any surprises in the future
let's use `:append:class-target =` syntax here.

Signed-off-by: Michal Sieron <michalwsieron@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-04-01 13:16:37 -07:00
Wang Mingyu 09cc9579d4 postfix: upgrade 3.10.6 -> 3.10.8
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-03-02 19:25:48 -08:00
Wang Mingyu cde1da5ec1 postfix: upgrade 3.10.5 -> 3.10.6
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-02 09:22:49 -08:00
Hongxu Jia 9ec1605567 postfix: switch to libpcre2
Postfix 3.7 and later supports pcre2 library [1]

[1] https://www.postfix.org/PCRE_README.html

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-01 08:45:52 -08:00
Yi Zhao 0586c2e570 postfix: add UPSTREAM_CHECK_URI
Add UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX to check the correct
latest stable verison.

Before the patch:
$ devtool latest-version postfix
INFO: Current version: 3.10.5
INFO: Latest version:

After the patch:
$ devtool latest-version postfix
INFO: Current version: 3.10.5
INFO: Latest version: 3.10.5

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-09 06:52:51 -08:00
Yi Zhao f1d96d2e33 postfix: upgrade 3.10.1 -> 3.10.5
ChangeLog:
http://www.postfix.org/announcements/postfix-3.10.2.html
http://www.postfix.org/announcements/postfix-3.10.3.html
http://www.postfix.org/announcements/postfix-3.10.4.html
http://www.postfix.org/announcements/postfix-3.10.5.html

Drop 0006-postfix-add-preliminary-setting.patch as the issue has been
fixed upstream.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-10-29 10:14:12 -07:00
Jinfeng Wang f72a91a5d9 postfix: fix rootfs file difference
Rootfs file differs with the same project configure, add preliminary
setting to avoid this.

Signed-off-by: Jinfeng Wang <jinfeng.wang.cn@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-02 23:27:07 -07:00
Alexander Kanavin fc78d37ff0 meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00
Martin Jansa e984a3504f postfix: use gnu17 for now
* as recommended by postfix author in:
  https://marc.info/?l=postfix-users&m=173542420611213

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-26 10:31:27 -07:00
Richard Purdie eac1f5b9c0 recipes: Fix variable assignment whitespace
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-20 08:46:56 -07:00
Yi Zhao 09a888062b postfix: upgrade 3.8.9 -> 3.10.1
ChangeLog:
https://www.postfix.org/announcements/postfix-3.10.0.html
https://www.postfix.org/announcements/postfix-3.10.1.html

Refresh local patches.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-25 04:50:39 -08:00
Yi Zhao 9e656e3ac2 postfix: upgrade 3.8.6 -> 3.8.9
ChangeLog:
http://ftp.porcupine.org/mirrors/postfix-release/official/postfix-3.8.9.HISTORY

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-25 04:50:38 -08:00
Khem Raj ffc64e9c6f recipes: Start WORKDIR -> UNPACKDIR transition
Replace references of WORKDIR with UNPACKDIR where it makes sense to do
so in preparation for changing the default value of UNPACKDIR.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-23 08:44:44 -07:00
Randy MacLeod 4416aaf88e postfix: switch SRC_URI to http
Switch the SRC_URI to http since the postfix site does not yet use https.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-04-09 13:56:26 -07:00
Yi Zhao 297c8b2031 postfix: upgrade 3.8.5 -> 3.8.6
ChangeLog:
https://www.postfix.org/announcements/postfix-3.8.6.html

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-08 10:07:25 -08:00
Yi Zhao a326451eb6 postfix: upgrade 3.7.3 -> 3.8.5
ChangeLog:
https://www.postfix.org/announcements/postfix-3.8.0.html
https://www.postfix.org/announcements/postfix-3.8.1.html
https://www.postfix.org/announcements/postfix-3.8.2.html
https://www.postfix.org/announcements/postfix-3.8.3.html
https://www.postfix.org/announcements/postfix-3.8.4.html
https://www.postfix.org/announcements/postfix-3.8.5.html

* Drop 0006-makedefs-Account-for-linux-6.x-version.patch as the issue
  has been fixed upstream.
* Merge inc file into single recipe

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-01 16:37:55 -08:00
Martin Jansa 92fa8f33d2 postfix: remove 2nd Upstream-Status
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-22 07:49:59 -07:00
Martin Jansa be8c765c7c *.patch: add Upstream-Status to all patches
There is new patch-status QA check in oe-core:
https://git.openembedded.org/openembedded-core/commit/?id=76a685bfcf927593eac67157762a53259089ea8a

This is temporary work around just to hide _many_ warnings from
optional patch-status (if you add it to WARN_QA).

This just added
Upstream-Status: Pending
everywhere without actually investigating what's the proper status.

This is just to hide current QA warnings and to catch new .patch files being
added without Upstream-Status, but the number of Pending patches is now terrible:

5 (26%) 	meta-xfce
6 (50%) 	meta-perl
15 (42%)        meta-webserver
21 (36%)        meta-gnome
25 (57%)        meta-filesystems
26 (43%)        meta-initramfs
45 (45%)        meta-python
47 (55%)        meta-multimedia
312 (63%)       meta-networking
756 (61%)       meta-oe

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-21 09:15:20 -07:00
Martin Jansa 2393cd93ae postfix: fix malformed Upstream-Status
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-21 09:15:19 -07:00
Kai Kang b75c138a1c postfix: fix multilib conflict of sample-main.cf
It fails to install postfix and lib32-postfix at same time:

| Error: Transaction test error:
|   file /etc/postfix/sample-main.cf conflicts between attempted installs of
    lib32-postfix-cfg-3.7.3-r0.i586 and postfix-cfg-3.7.3-r0.core2_64

Rename sample-main.cf with ${MLPREFIX}.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-05 18:02:40 -08:00
Khem Raj dd5226bed9 postfix: Upgrade to 3.7.3
Fix build on systems with linux 6.x

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-19 10:33:43 -07:00
Yi Zhao 6ebe45deb4 postfix: upgrade 3.6.4 -> 3.6.5
ChangeLog:
https://www.postfix.org/announcements/postfix-3.6.5.html

* Drop 0006-correct-signature-of-closefrom-API.patch as the issue has
been fixed upstream.

* Update main.cf to eliminate startup warning:
postfix: Postfix is running with backwards-compatible default settings
postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use "postconf compatibility_level=3.6" and "postfix reload"

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-24 09:45:25 -07:00
Yi Zhao 2c710b005a postfix: upgrade 3.6.3 -> 3.6.4
Refresh patches.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-18 09:01:51 -08:00
Yi Zhao 45fee2d0ce postfix: upgrade 3.6.2 -> 3.6.3
Release Notes:
http://www.postfix.org/announcements/postfix-3.6.3.html

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-21 18:49:37 -08:00
Khem Raj ba9810159f postfix: Add missing dependency on m4
Fixes
| extract_cfg.sh: line 42: m4: command not found

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-09-24 08:12:36 -07:00
Khem Raj b6ce7fbc51 postfix: 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
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
Yi Zhao 8446eab8fd postfix: upgrade 3.6.1 -> 3.6.2
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-27 09:52:23 -07:00
Khem Raj 06cae38842 postfix: Upgrade to 3.6.1
Fix build with glibc 2.34+
Details of this release [1]

[1] http://cdn.postfix.johnriley.me/mirrors/postfix-release/official/postfix-3.6.1.RELEASE_NOTES

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-16 09:23:03 -07:00
Adrian Bunk 3d81f6d013 postfix: Upgrade 3.4.10 -> 3.4.12
Remove patch applied upstream.
Manual -fcommon is no longer necessary.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-05-21 15:07:44 -07:00
Khem Raj d04f3a1be3 postfix: Upgrade to 3.4.10 and compile with -fcommon
Ensures it can build with gcc10

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-05-16 14:52:48 -07:00
Yi Zhao 335e0bd0cc postfix: split ${PN}-bin from ${PN} to solve recursive dependency
The commit 89d86b96f8 which tries to fix
the installation issue for ostree introduces a recursive dependency
issue. When installing the postfix package on target via online
repository, the postinst function for postfix-cfg package needs
newaliases but this command is from postfix package which causes an
error:
  Configuring postfix-cfg.
  /var/lib/opkg/info/postfix-cfg.postinst: line 9: newaliases: not found
  pkg_run_script: package "postfix-cfg" postinst script returned status 127.

Split a new package postfix-bin from postfix and make it as the runtime
dependency for postfix-cfg.

Set USERADD_PACKAGES to ${PN}-bin to avoid image do_rootfs warnings when
installing postfix via IMAGE_INSTALL:
  [log_check] warning: group postdrop does not exist - using root
  [log_check] warning: user postfix does not exist - using root

Set ALTERNATIVE to ${PN}-bin to make sure the newaliases symbolic link
is installed before installing postfix-cfg.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-17 19:05:58 -07:00
Wang Mingyu ecc0bb9fa3 postfix: upgrade 3.4.7 -> 3.4.8
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-08 08:15:03 -07:00
Zheng Ruoqin 1f546d9602 postfix: upgrade 3.4.5 -> 3.4.7
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-28 15:26:42 -07:00
Hongxu Jia 308d0f602e postfix.inc: make deterministic build
This postinst can fail depending on host setup, which makes non-deterministic
build on different host.

Use postinst ontarget to always fail at do_rootfs and rerun at target first
boot.

In this situation, remove postfix-native from PACKAGE_WRITE_DEPS

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-25 10:29:51 -07:00
Hongxu Jia 89d86b96f8 postfix: split /etc from ${PN} to ${PN}-cfg for ostree
In postinst of ${PN}, call newaliases on etc may fail at do_rootfs
due to host setup. If fail, the postinst will rerun at target first
boot which cause update-alternatives in postinst rerun.

For ostree system, /usr is readonly, /etc is writable, the
update-alternatives will be failed when run on target since it
needs write files in /usr. Split the postinst into two packages
can fix the problem:
* update-alternatives runs at do_rootfs
* newaliases runs at do_rootfs or first boot, it needs write files
  in /etc when run at first boot, while /etc is writable for ostree.

For non-ostree, everything will be OK as normal

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-25 10:29:51 -07:00
Khem Raj ca22e1996d postfix: Fix build failures with glibc 2.30
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-07-30 19:15:24 -07:00
Qi.Chen@windriver.com dbe4429e73 postfix: use alternatives to manage /usr/lib/sendmail
There are several packages which all provide /usr/lib/sendmail
when lsb is enabled. So use alternative to manage it.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-07-15 08:03:29 -07:00
Adrian Bunk 10f2232c70 postfix: Upgrade 3.4.1 -> 3.4.5
Remove patch for issue fixed upstream.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-05-09 20:34:33 -07:00
Khem Raj 33c4e075db postfix: Upgrade to 3.4.1 release
Fix build with kernel >= 5.x

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-07 18:24:39 -08:00
Yi Zhao 47a9cc6c53 postfix: add -lnsl and -lresolv to SYSLIBS by default
When building native package, the do_compile function tries to check
libnsl.so and libresolv.so on host machine and add -lnsl and -lresolv to
SYSLIBS if they exist. But finally it will link the libnsl.so from
${STAGING_LIBDIR_NATIVE}. Actually there is no need to check them since
the libnsl2 is specified in DEPENDS and libresolv.so is from c libarary.
So add -lnsl and -lresolv to SYSLIBS directly.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-10-12 02:07:52 -07:00
Randy MacLeod 8a71561246 postfix: update to 3.3.1
The patch:
   0001-Check-for-glibc-before-setting-CANT_USE_SEND_RECV_MS.patch
has ben integrated upstream.

update the upstream check regex

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-10-09 19:07:58 -07:00
Mingli Yu e6d2fc45e5 postfix: fix pkg_postinst_${PN}
"exit 0" will break the postinst logic
below the line "exit 0" such as:

===
update-alternatives --install /usr/sbin/sendmail sendmail /usr/sbin/sendmail.postfix 120
update-alternatives --install /usr/bin/mailq mailq /usr/bin/mailq.postfix 120
update-alternatives --install /usr/bin/newaliases newaliases /usr/bin/newaliases.postfix 120
===

It's enough to call "$INTERCEPT_DIR/postinst_intercept delay_to_first_boot ${PKG} mlprefix=${MLPREFIX}"
, so remove it to guarantee the postinstall logic is correct

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-14 19:01:41 -07:00