Skip to contentSkip to conversation

openssh: Install internal header/lib files

PATCH In review Willy Tu 4 participants 20 messages Oct 21, 2022 – Nov 8, 2022 7 messages not in the archive

lore
Share & tools
lore

Willy Tu

author
#0 lore raw

PATCH 1/1 openssh: Install internal header/lib files

Install API only if opensshinternals is in DISTRO_FEATURES.

Install the OpenSSH header + lib files for other repo to build using it. For example, https://github.com/google/hiba is dependent on those files to build and this change is needed to meet that requirement.

https://github.com/openembedded/meta-openembedded/pull/597

---
meta/recipes-connectivity/openssh/openssh_9.0p1.bb | 11 +++++++++++

1 file changed, 11 insertions(+)
meta/recipes-connectivity/openssh/openssh_9.0p1.bb +0 -0
index b63ea2b137..84da118ca6 100644
@@ -137,6 +137,17 @@ do_install:append () {

${D}${sysconfdir}/init.d/sshd

install -D -m 0755 ${WORKDIR}/sshd_check_keys ${D}${libexecdir}/${BPN}/sshd_check_keys +
+ if ${@bb.utils.contains('DISTRO_FEATURES', 'opensshinternals', 'true', 'false', d)}; then
+ install -d ${D}${includedir}/ssh
+ install -d ${D}${includedir}/ssh/openbsd-compat
+ install -m0644 ${S}/*.h ${D}${includedir}/ssh
+ install -m0644 ${S}/openbsd-compat/*.h ${D}${includedir}/ssh/openbsd-compat +
+ install -d ${D}${libdir}
+ install -m0644 ${S}/libssh.a ${D}${libdir}
+ install -m0644 ${S}/openbsd-compat/libopenbsd-compat.a ${D}${libdir}
+ fi
}

do_install_ptest () {
--
2.38.0.135.g90850a2211-goog

author
#1 lore raw

just for visibility.

Quoted 48 lines · Willy Tu via lists.openembedded.org

Install API only if opensshinternals is in DISTRO_FEATURES.

Install the OpenSSH header + lib files for other repo to build using it. For example, https://github.com/google/hiba is dependent on those files to build and this change is needed to meet that requirement.

https://github.com/openembedded/meta-openembedded/pull/597

---
 meta/recipes-connectivity/openssh/openssh_9.0p1.bb | 11 +++++++++++
 1 file changed, 11 insertions(+)
meta/recipes-connectivity/openssh/openssh_9.0p1.bb +11 -1
index b63ea2b137..84da118ca6 100644
@@ -137,6 +137,17 @@ do_install:append () {
  ${D}${sysconfdir}/init.d/sshd
 
  install -D -m 0755 ${WORKDIR}/sshd_check_keys ${D}${libexecdir}/${BPN}/sshd_check_keys
+
+ if ${@bb.utils.contains('DISTRO_FEATURES', 'opensshinternals', 'true', 'false', d)}; then
+ install -d ${D}${includedir}/ssh
+ install -d ${D}${includedir}/ssh/openbsd-compat
+ install -m0644 ${S}/*.h ${D}${includedir}/ssh
+ install -m0644 ${S}/openbsd-compat/*.h ${D}${includedir}/ssh/openbsd-compat
+
+ install -d ${D}${libdir}
+ install -m0644 ${S}/libssh.a ${D}${libdir}
+ install -m0644 ${S}/openbsd-compat/libopenbsd-compat.a ${D}${libdir}
+ fi
 }
 
 do_install_ptest () {
--

2.38.0.135.g90850a2211-goog

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#172016): https://lists.openembedded.org/g/openembedded-core/message/172016
Mute This Topic: https://lists.openembedded.org/mt/94475279/6858837
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

Hi,

oe-core doesn’t accept merge requests on the github mirrors, and you pushed to meta-oe, which is a different repository.

Quoted 1 line
Quoted 1 line

+ if ${@bb.utils.contains('DISTRO_FEATURES', 'opensshinternals', 'true', 'false', d)}; then

This should be a PACKAGECONFIG, as it’s not a distro-wide setting.

Quoted 9 lines
Quoted 9 lines

+ install -d ${D}${includedir}/ssh
+ install -d ${D}${includedir}/ssh/openbsd-compat
+ install -m0644 ${S}/*.h ${D}${includedir}/ssh
+ install -m0644 ${S}/openbsd-compat/*.h ${D}${includedir}/ssh/openbsd-compat +
+ install -d ${D}${libdir}
+ install -m0644 ${S}/libssh.a ${D}${libdir}
+ install -m0644 ${S}/openbsd-compat/libopenbsd-compat.a ${D}${libdir}
+ fi

So you’re installing bits of the SSH source into the *target* packages because one piece of software needs the build tree. This is clearly an unsupported use of openssh, as the hiba build instructions literally say “build openssh, then point hiba’s configure at that build tree”. If

I suggest a better approach would be to have a bbappend in your layer which adds the files you need to *just the sysroot*, so the target packages are unaltered.

Ross

author
#3 lore raw

Hi Ross,

Thanks for the feedback.

Can you point to the right repo to update? Just to make sure that I understand the concern, you are not referring to
https://github.com/openembedded/meta-openembedded/pull/597, right? I am making changes to
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-connectivity/openssh/openssh_9.0p1.bb
which
I thought is part of oe-core.

@Tristan Lelong <[email protected]> is the maintainer for hiba and is okay with the change. Do you have any suggestions on installing it to just the sysroot in openssh while using it from the hiba recipe? I was not able to do that when I tried it.

Thanks,

Willy Tu

Quoted 31 lines · Ross Burton

Hi,

oe-core doesn’t accept merge requests on the github mirrors, and you pushed to meta-oe, which is a different repository.

Quoted 1 line
Quoted 1 line

+ if ${@bb.utils.contains('DISTRO_FEATURES', 'opensshinternals',

'true', 'false', d)}; then

This should be a PACKAGECONFIG, as it’s not a distro-wide setting.

Quoted 4 lines
Quoted 4 lines

+ install -d ${D}${includedir}/ssh
+ install -d ${D}${includedir}/ssh/openbsd-compat
+ install -m0644 ${S}/*.h ${D}${includedir}/ssh
+ install -m0644 ${S}/openbsd-compat/*.h

${D}${includedir}/ssh/openbsd-compat

Quoted 5 lines
Quoted 5 lines

+
+ install -d ${D}${libdir}
+ install -m0644 ${S}/libssh.a ${D}${libdir}
+ install -m0644 ${S}/openbsd-compat/libopenbsd-compat.a ${D}${libdir}
+ fi

So you’re installing bits of the SSH source into the *target* packages because one piece of software needs the build tree. This is clearly an unsupported use of openssh, as the hiba build instructions literally say “build openssh, then point hiba’s configure at that build tree”. If

I suggest a better approach would be to have a bbappend in your layer which adds the files you need to *just the sysroot*, so the target packages are unaltered.

Ross

A message that is not in the archive (sent off-list or not yet received): CABC0sH3LFm48+buev6gFFAAoDT2SLqR-r-rndSjx+eU54H5=1w@mail.gmail.com

author
#5 lore raw

I am testing it out again and it seems like it does install to the target .

```
$ find -name libssh.a
./tmp/sysroots-components/armv7a/openssh/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/image/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/sysroot-destdir/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/packages-split/openssh-staticdev/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/openssh-9.0p1/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/package/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/hiba/1.0+gitAUTOINC+3199239c6a-r0/recipe-sysroot/usr/lib/libssh.a
```

We don't want this, right?

I'll have to try to figure it out and fix it.

Willy Tu

Quoted 79 lines · Tristan Lelong
Quoted 11 lines · Willy Tu

Hi Ross,

Thanks for the feedback.

Can you point to the right repo to update? Just to make sure that I
understand the concern, you are not referring to
https://github.com/openembedded/meta-openembedded/pull/597, right? I am
making changes to
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-connectivity/openssh/openssh_9.0p1.bb which I thought is part of oe-core.

Quoted 5 lines

@Tristan Lelong <[email protected]> is the maintainer for hiba and is okay with the change. Do you have any suggestions on installing it to just the sysroot in openssh while using it from the hiba recipe? I was not able to do that when I tried it.

This was indeed discussed previously in another version of the patch, it seemed the best way to expose OpenSSH's internal files was via the devel package (not installed on the target), rather than hook into another package's syroot.

The OpenSSH static libraries and header files are currently not made officially available because the API is not considered stable enough, but exporting them in OE for HIBA (gated by a PACKAGECONFIG) in order to support HIBA is fine.

Quoted 43 lines

Thanks,

Willy Tu

Quoted 31 lines · Ross Burton

Hi,

oe-core doesn’t accept merge requests on the github mirrors, and you pushed to meta-oe, which is a different repository.

Quoted 1 line
Quoted 1 line

+ if ${@bb.utils.contains('DISTRO_FEATURES', 'opensshinternals',

'true', 'false', d)}; then

This should be a PACKAGECONFIG, as it’s not a distro-wide setting.

Quoted 4 lines
Quoted 4 lines

+ install -d ${D}${includedir}/ssh
+ install -d ${D}${includedir}/ssh/openbsd-compat
+ install -m0644 ${S}/*.h ${D}${includedir}/ssh
+ install -m0644 ${S}/openbsd-compat/*.h

${D}${includedir}/ssh/openbsd-compat

Quoted 5 lines
Quoted 5 lines

+
+ install -d ${D}${libdir}
+ install -m0644 ${S}/libssh.a ${D}${libdir}
+ install -m0644 ${S}/openbsd-compat/libopenbsd-compat.a ${D}${libdir}
+ fi

So you’re installing bits of the SSH source into the *target* packages because one piece of software needs the build tree. This is clearly an unsupported use of openssh, as the hiba build instructions literally say “build openssh, then point hiba’s configure at that build tree”. If

I suggest a better approach would be to have a bbappend in your layer which adds the files you need to *just the sysroot*, so the target packages are unaltered.

Ross

--
Tristan Lelong | SRE | [email protected] |

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#7 lore raw

Testing it out more and it seems like the current change is fine in that regard.

I was building it against an OpenBMC image which include the change and the header and libssh.a files doesn't show up in the image itself

```
./tmp/work/izumi-openbmc-linux-gnueabi/obmc-phosphor-image
```

doesn't have those files. I believe that's what we are looking for?

Willy Tu

Quoted 118 lines · Willy Tu via lists.openembedded.org

I am testing it out again and it seems like it does install to the target .

```
$ find -name libssh.a
./tmp/sysroots-components/armv7a/openssh/usr/lib/libssh.a

./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/image/usr/lib/libssh.a

./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/sysroot-destdir/usr/lib/libssh.a

./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/packages-split/openssh-staticdev/usr/lib/libssh.a

./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/openssh-9.0p1/libssh.a

./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/package/usr/lib/libssh.a

./tmp/work/armv7a-openbmc-linux-gnueabi/hiba/1.0+gitAUTOINC+3199239c6a-r0/recipe-sysroot/usr/lib/libssh.a
```

We don't want this, right?

I'll have to try to figure it out and fix it.

Willy Tu

Quoted 73 lines · Tristan Lelong
Quoted 11 lines · Willy Tu

Hi Ross,

Thanks for the feedback.

Can you point to the right repo to update? Just to make sure that I
understand the concern, you are not referring to
https://github.com/openembedded/meta-openembedded/pull/597, right? I am
making changes to
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-connectivity/openssh/openssh_9.0p1.bb which I thought is part of oe-core.

Quoted 5 lines

@Tristan Lelong <[email protected]> is the maintainer for hiba and is okay with the change. Do you have any suggestions on installing it to just the sysroot in openssh while using it from the hiba recipe? I was not able to do that when I tried it.

This was indeed discussed previously in another version of the patch, it seemed the best way to expose OpenSSH's internal files was via the devel package (not installed on the target), rather than hook into another package's syroot.

The OpenSSH static libraries and header files are currently not made officially available because the API is not considered stable enough, but exporting them in OE for HIBA (gated by a PACKAGECONFIG) in order to support HIBA is fine.

Quoted 41 lines

Thanks,

Willy Tu

Quoted 31 lines · Ross Burton

Hi,

oe-core doesn’t accept merge requests on the github mirrors, and you pushed to meta-oe, which is a different repository.

Quoted 1 line
Quoted 1 line

+ if ${@bb.utils.contains('DISTRO_FEATURES', 'opensshinternals',

'true', 'false', d)}; then

This should be a PACKAGECONFIG, as it’s not a distro-wide setting.

Quoted 4 lines
Quoted 4 lines

+ install -d ${D}${includedir}/ssh
+ install -d ${D}${includedir}/ssh/openbsd-compat
+ install -m0644 ${S}/*.h ${D}${includedir}/ssh
+ install -m0644 ${S}/openbsd-compat/*.h

${D}${includedir}/ssh/openbsd-compat

Quoted 4 lines
Quoted 4 lines

+
+ install -d ${D}${libdir}
+ install -m0644 ${S}/libssh.a ${D}${libdir}
+ install -m0644 ${S}/openbsd-compat/libopenbsd-compat.a

${D}${libdir}

Quoted 1 line
Quoted 1 line

+ fi

So you’re installing bits of the SSH source into the *target* packages because one piece of software needs the build tree. This is clearly an unsupported use of openssh, as the hiba build instructions literally say “build openssh, then point hiba’s configure at that build tree”. If

I suggest a better approach would be to have a bbappend in your layer which adds the files you need to *just the sysroot*, so the target packages are unaltered.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Ross

--
Tristan Lelong | SRE | [email protected] |

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#172110):
https://lists.openembedded.org/g/openembedded-core/message/172110
Mute This Topic: https://lists.openembedded.org/mt/94475279/6858837
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#9 lore raw

Friendly ping. Is there any more concern on this?

Willy Tu

Quoted 103 lines · Willy Tu via lists.openembedded.org

Testing it out more and it seems like the current change is fine in that regard.

I was building it against an OpenBMC image which include the change and the header and libssh.a files doesn't show up in the image itself

```
./tmp/work/izumi-openbmc-linux-gnueabi/obmc-phosphor-image
```

doesn't have those files. I believe that's what we are looking for?

Willy Tu

Quoted 13 lines · Willy Tu via lists.openembedded.org

I am testing it out again and it seems like it does install to the target .

```
$ find -name libssh.a
./tmp/sysroots-components/armv7a/openssh/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/image/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/sysroot-destdir/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/packages-split/openssh-staticdev/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/openssh-9.0p1/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/package/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/hiba/1.0+gitAUTOINC+3199239c6a-r0/recipe-sysroot/usr/lib/libssh.a
```
Quoted 68 lines

We don't want this, right?

I'll have to try to figure it out and fix it.

Willy Tu

Quoted 57 lines · Tristan Lelong
Quoted 8 lines · Willy Tu

Hi Ross,

Thanks for the feedback.

Can you point to the right repo to update? Just to make sure that I understand the concern, you are not referring to https://github.com/openembedded/meta-openembedded/pull/597, right? I am making changes to http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-connectivity/openssh/openssh_9.0p1.bb which I thought is part of oe-core.

@Tristan Lelong is the maintainer for hiba and is okay with the change. Do you have any suggestions on installing it to just the sysroot in openssh while using it from the hiba recipe? I was not able to do that when I tried it.

This was indeed discussed previously in another version of the patch, it seemed the best way to expose OpenSSH's internal files was via the devel package (not installed on the target), rather than hook into another package's syroot.

The OpenSSH static libraries and header files are currently not made officially available because the API is not considered stable enough, but exporting them in OE for HIBA (gated by a PACKAGECONFIG) in order to support HIBA is fine.

Quoted 34 lines

Thanks,

Willy Tu

Quoted 24 lines · Ross Burton

Hi,

oe-core doesn’t accept merge requests on the github mirrors, and you pushed to meta-oe, which is a different repository.

Quoted 1 line
Quoted 1 line

+ if ${@bb.utils.contains('DISTRO_FEATURES', 'opensshinternals', 'true', 'false', d)}; then

This should be a PACKAGECONFIG, as it’s not a distro-wide setting.

Quoted 9 lines
Quoted 9 lines

+ install -d ${D}${includedir}/ssh
+ install -d ${D}${includedir}/ssh/openbsd-compat
+ install -m0644 ${S}/*.h ${D}${includedir}/ssh
+ install -m0644 ${S}/openbsd-compat/*.h ${D}${includedir}/ssh/openbsd-compat +
+ install -d ${D}${libdir}
+ install -m0644 ${S}/libssh.a ${D}${libdir}
+ install -m0644 ${S}/openbsd-compat/libopenbsd-compat.a ${D}${libdir}
+ fi

So you’re installing bits of the SSH source into the *target* packages because one piece of software needs the build tree. This is clearly an unsupported use of openssh, as the hiba build instructions literally say “build openssh, then point hiba’s configure at that build tree”. If

I suggest a better approach would be to have a bbappend in your layer which adds the files you need to *just the sysroot*, so the target packages are unaltered.

Ross

--
Tristan Lelong | SRE | [email protected] |

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#172111): https://lists.openembedded.org/g/openembedded-core/message/172111
Mute This Topic: https://lists.openembedded.org/mt/94475279/6858837
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#11 lore raw

Is there anything else that I need to do to help move this forward?

Willy Tu

Quoted 152 lines · Willy Tu via lists.openembedded.org

Friendly ping. Is there any more concern on this?

Willy Tu

Quoted 2 lines · Willy Tu via lists.openembedded.org

Testing it out more and it seems like the current change is fine in that

regard.

Quoted 2 lines

I was building it against an OpenBMC image which include the change and

the header and libssh.a files doesn't show up in the image itself

Quoted 9 lines
```
./tmp/work/izumi-openbmc-linux-gnueabi/obmc-phosphor-image
```

doesn't have those files. I believe that's what we are looking for?

Willy Tu

On Mon, Oct 24, 2022 at 9:05 AM Willy Tu via lists.openembedded.org

Quoted 2 lines · <[email protected]> wrote:
Quoted 2 lines

I am testing it out again and it seems like it does install to the

target .

Quoted 5 lines
Quoted 5 lines

```

$ find -name libssh.a
./tmp/sysroots-components/armv7a/openssh/usr/lib/libssh.a

./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/image/usr/lib/libssh.a

Quoted 1 line
Quoted 1 line

./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/sysroot-destdir/usr/lib/libssh.a

Quoted 1 line
Quoted 1 line

./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/packages-split/openssh-staticdev/usr/lib/libssh.a

Quoted 1 line
Quoted 1 line

./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/openssh-9.0p1/libssh.a

Quoted 1 line
Quoted 1 line

./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/package/usr/lib/libssh.a

Quoted 1 line
Quoted 1 line

./tmp/work/armv7a-openbmc-linux-gnueabi/hiba/1.0+gitAUTOINC+3199239c6a-r0/recipe-sysroot/usr/lib/libssh.a

Quoted 8 lines
Quoted 8 lines

```
We don't want this, right?

I'll have to try to figure it out and fix it.

Willy Tu

On Mon, Oct 24, 2022 at 7:57 AM Tristan Lelong <[email protected]>

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines · Willy Tu
Quoted 6 lines

Hi Ross,

Thanks for the feedback.

Can you point to the right repo to update? Just to make sure that I

understand the concern, you are not referring to
https://github.com/openembedded/meta-openembedded/pull/597, right? I am making changes to
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-connectivity/openssh/openssh_9.0p1.bb
which I thought is part of oe-core.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

@Tristan Lelong is the maintainer for hiba and is okay with the

change. Do you have any suggestions on installing it to just the sysroot in openssh while using it from the hiba recipe? I was not able to do that when I tried it.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

This was indeed discussed previously in another version of the patch,

it seemed the best way to expose OpenSSH's internal files was via the devel package (not installed on the target), rather than hook into another package's syroot.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

The OpenSSH static libraries and header files are currently not made

officially available because the API is not considered stable enough, but exporting them in OE for HIBA (gated by a PACKAGECONFIG) in order to support HIBA is fine.

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Thanks,

Willy Tu

On Fri, Oct 21, 2022 at 7:59 AM Ross Burton <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Hi,

oe-core doesn’t accept merge requests on the github mirrors, and you

pushed to meta-oe, which is a different repository.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

+ if ${@bb.utils.contains('DISTRO_FEATURES', 'opensshinternals',

'true', 'false', d)}; then

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

This should be a PACKAGECONFIG, as it’s not a distro-wide setting.

Quoted 4 lines
Quoted 4 lines

+ install -d ${D}${includedir}/ssh
+ install -d ${D}${includedir}/ssh/openbsd-compat
+ install -m0644 ${S}/*.h ${D}${includedir}/ssh
+ install -m0644 ${S}/openbsd-compat/*.h

${D}${includedir}/ssh/openbsd-compat

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

+
+ install -d ${D}${libdir}
+ install -m0644 ${S}/libssh.a ${D}${libdir}
+ install -m0644 ${S}/openbsd-compat/libopenbsd-compat.a

${D}${libdir}

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line

+ fi

So you’re installing bits of the SSH source into the *target*

packages because one piece of software needs the build tree. This is clearly an unsupported use of openssh, as the hiba build instructions literally say “build openssh, then point hiba’s configure at that build tree”. If

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I suggest a better approach would be to have a bbappend in your

layer which adds the files you need to *just the sysroot*, so the target packages are unaltered.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

Ross

Quoted 9 lines
Quoted 6 lines
Quoted 2 lines

--
Tristan Lelong | SRE | [email protected] |

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#172324):
https://lists.openembedded.org/g/openembedded-core/message/172324
Mute This Topic: https://lists.openembedded.org/mt/94475279/6858837
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#12 lore raw

The correct way to do this is to discuss the issue with openssh upstream, and provide a link to any such discussion if it has already happened. If they don't want to install these things, they have reasons, and you need to at least try to convince them otherwise.

We generally do not go against upstream choices.

Alex

Quoted 123 lines · Willy Tu via lists.openembedded.org

Is there anything else that I need to do to help move this forward?

Willy Tu

Quoted 108 lines · Willy Tu via lists.openembedded.org

Friendly ping. Is there any more concern on this?

Willy Tu

Quoted 97 lines · Willy Tu via lists.openembedded.org

Testing it out more and it seems like the current change is fine in that regard.

I was building it against an OpenBMC image which include the change and the header and libssh.a files doesn't show up in the image itself

```
./tmp/work/izumi-openbmc-linux-gnueabi/obmc-phosphor-image
```

doesn't have those files. I believe that's what we are looking for?

Willy Tu

Quoted 81 lines · Willy Tu via lists.openembedded.org

I am testing it out again and it seems like it does install to the target .

```
$ find -name libssh.a
./tmp/sysroots-components/armv7a/openssh/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/image/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/sysroot-destdir/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/packages-split/openssh-staticdev/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/openssh-9.0p1/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/package/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/hiba/1.0+gitAUTOINC+3199239c6a-r0/recipe-sysroot/usr/lib/libssh.a
```

We don't want this, right?

I'll have to try to figure it out and fix it.

Willy Tu

Quoted 57 lines · Tristan Lelong
Quoted 8 lines · Willy Tu

Hi Ross,

Thanks for the feedback.

Can you point to the right repo to update? Just to make sure that I understand the concern, you are not referring to https://github.com/openembedded/meta-openembedded/pull/597, right? I am making changes to http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-connectivity/openssh/openssh_9.0p1.bb which I thought is part of oe-core.

@Tristan Lelong is the maintainer for hiba and is okay with the change. Do you have any suggestions on installing it to just the sysroot in openssh while using it from the hiba recipe? I was not able to do that when I tried it.

This was indeed discussed previously in another version of the patch, it seemed the best way to expose OpenSSH's internal files was via the devel package (not installed on the target), rather than hook into another package's syroot.

The OpenSSH static libraries and header files are currently not made officially available because the API is not considered stable enough, but exporting them in OE for HIBA (gated by a PACKAGECONFIG) in order to support HIBA is fine.

Quoted 34 lines

Thanks,

Willy Tu

Quoted 24 lines · Ross Burton

Hi,

oe-core doesn’t accept merge requests on the github mirrors, and you pushed to meta-oe, which is a different repository.

Quoted 1 line
Quoted 1 line

+ if ${@bb.utils.contains('DISTRO_FEATURES', 'opensshinternals', 'true', 'false', d)}; then

This should be a PACKAGECONFIG, as it’s not a distro-wide setting.

Quoted 9 lines
Quoted 9 lines

+ install -d ${D}${includedir}/ssh
+ install -d ${D}${includedir}/ssh/openbsd-compat
+ install -m0644 ${S}/*.h ${D}${includedir}/ssh
+ install -m0644 ${S}/openbsd-compat/*.h ${D}${includedir}/ssh/openbsd-compat +
+ install -d ${D}${libdir}
+ install -m0644 ${S}/libssh.a ${D}${libdir}
+ install -m0644 ${S}/openbsd-compat/libopenbsd-compat.a ${D}${libdir}
+ fi

So you’re installing bits of the SSH source into the *target* packages because one piece of software needs the build tree. This is clearly an unsupported use of openssh, as the hiba build instructions literally say “build openssh, then point hiba’s configure at that build tree”. If

I suggest a better approach would be to have a bbappend in your layer which adds the files you need to *just the sysroot*, so the target packages are unaltered.

Ross

--
Tristan Lelong | SRE | [email protected] |

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#172975): https://lists.openembedded.org/g/openembedded-core/message/172975
Mute This Topic: https://lists.openembedded.org/mt/94475279/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#13 lore raw

Thanks Alexander for the feedback,

We had some discussion internally with one of the OpenSSH maintainers and they are fine with it. I'll try to see if there is a public forum where we can share the discussion.

Willy Tu

Quoted 135 lines · Alexander Kanavin

The correct way to do this is to discuss the issue with openssh upstream, and provide a link to any such discussion if it has already happened. If they don't want to install these things, they have reasons, and you need to at least try to convince them otherwise.

We generally do not go against upstream choices.

Alex

Quoted 123 lines · Willy Tu via lists.openembedded.org

Is there anything else that I need to do to help move this forward?

Willy Tu

Quoted 108 lines · Willy Tu via lists.openembedded.org

Friendly ping. Is there any more concern on this?

Willy Tu

Quoted 97 lines · Willy Tu via lists.openembedded.org

Testing it out more and it seems like the current change is fine in that regard.

I was building it against an OpenBMC image which include the change and the header and libssh.a files doesn't show up in the image itself

```
./tmp/work/izumi-openbmc-linux-gnueabi/obmc-phosphor-image
```

doesn't have those files. I believe that's what we are looking for?

Willy Tu

Quoted 81 lines · Willy Tu via lists.openembedded.org

I am testing it out again and it seems like it does install to the target .

```
$ find -name libssh.a
./tmp/sysroots-components/armv7a/openssh/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/image/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/sysroot-destdir/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/packages-split/openssh-staticdev/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/openssh-9.0p1/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/openssh/9.0p1-r0/package/usr/lib/libssh.a
./tmp/work/armv7a-openbmc-linux-gnueabi/hiba/1.0+gitAUTOINC+3199239c6a-r0/recipe-sysroot/usr/lib/libssh.a
```

We don't want this, right?

I'll have to try to figure it out and fix it.

Willy Tu

Quoted 57 lines · Tristan Lelong
Quoted 8 lines · Willy Tu

Hi Ross,

Thanks for the feedback.

Can you point to the right repo to update? Just to make sure that I understand the concern, you are not referring to https://github.com/openembedded/meta-openembedded/pull/597, right? I am making changes to http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-connectivity/openssh/openssh_9.0p1.bb which I thought is part of oe-core.

@Tristan Lelong is the maintainer for hiba and is okay with the change. Do you have any suggestions on installing it to just the sysroot in openssh while using it from the hiba recipe? I was not able to do that when I tried it.

This was indeed discussed previously in another version of the patch, it seemed the best way to expose OpenSSH's internal files was via the devel package (not installed on the target), rather than hook into another package's syroot.

The OpenSSH static libraries and header files are currently not made officially available because the API is not considered stable enough, but exporting them in OE for HIBA (gated by a PACKAGECONFIG) in order to support HIBA is fine.

Quoted 34 lines

Thanks,

Willy Tu

Quoted 24 lines · Ross Burton

Hi,

oe-core doesn’t accept merge requests on the github mirrors, and you pushed to meta-oe, which is a different repository.

Quoted 1 line
Quoted 1 line

+ if ${@bb.utils.contains('DISTRO_FEATURES', 'opensshinternals', 'true', 'false', d)}; then

This should be a PACKAGECONFIG, as it’s not a distro-wide setting.

Quoted 9 lines
Quoted 9 lines

+ install -d ${D}${includedir}/ssh
+ install -d ${D}${includedir}/ssh/openbsd-compat
+ install -m0644 ${S}/*.h ${D}${includedir}/ssh
+ install -m0644 ${S}/openbsd-compat/*.h ${D}${includedir}/ssh/openbsd-compat +
+ install -d ${D}${libdir}
+ install -m0644 ${S}/libssh.a ${D}${libdir}
+ install -m0644 ${S}/openbsd-compat/libopenbsd-compat.a ${D}${libdir}
+ fi

So you’re installing bits of the SSH source into the *target* packages because one piece of software needs the build tree. This is clearly an unsupported use of openssh, as the hiba build instructions literally say “build openssh, then point hiba’s configure at that build tree”. If

I suggest a better approach would be to have a bbappend in your layer which adds the files you need to *just the sysroot*, so the target packages are unaltered.

Ross

--
Tristan Lelong | SRE | [email protected] |

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#172975): https://lists.openembedded.org/g/openembedded-core/message/172975
Mute This Topic: https://lists.openembedded.org/mt/94475279/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#14 lore raw
Quoted 6 lines · Willy Tu

Thanks Alexander for the feedback,

We had some discussion internally with one of the OpenSSH maintainers and they are fine with it. I'll try to see if there is a public forum where we can share the discussion.

If they are fine with it, then you need to submit a patch to openssh that installs the needed pieces (perhaps subject to a configure switch), get it accepted, and then add a backport to oe-core, in that order. No do_install_append hacks please.

Alex

author
#15 lore raw

I think they are fine with the hack here. oops. Ok, I'll work with them to get the fix without this change.

Thanks for the feedback.

Willy Tu

Quoted 15 lines · Alexander Kanavin
Quoted 6 lines · Willy Tu

Thanks Alexander for the feedback,

We had some discussion internally with one of the OpenSSH maintainers and they are fine with it. I'll try to see if there is a public forum where we can share the discussion.

If they are fine with it, then you need to submit a patch to openssh that installs the needed pieces (perhaps subject to a configure switch), get it accepted, and then add a backport to oe-core, in that order. No do_install_append hacks please.

Alex

A message that is not in the archive (sent off-list or not yet received): CABC0sH0DjvXC4Hw7CxM__spomLbN1ntEsV03-CQ=3OgLLDakLg@mail.gmail.com

#17 lore raw

I'd rather have this hidden in your recipes, yes. It's clearly a special needs issue, and something you shouldn't ask us to maintain for you (what I mean is that you're not going to rebase the patch when a new openssh version is out, or adjust do_install - this falls on usually me, and my time to do these ever-growing maintenance things is not infinite).

Alex

Quoted 33 lines · Tristan Lelong

To be clear: OpenSSH maintainer will not accept a patch that exposes these files in the upstream version, but we got confirmation that they were ok if we maintained such a patch in OE (or a custom do_install in the recipe).

If this solution is not acceptable from the OE maintainers point of view, the next option is to update the HIBA recipe to fetch OpenSSH sources on top of HIBA sources directly in HIBA's workdir, and use these instead of the one from sysroot.

Would this work better for you?

Quoted 25 lines · On Tue, Nov 8, 2022, 18:16 Willy Tu <[email protected]> wrote:

I think they are fine with the hack here. oops. Ok, I'll work with them to get the fix without this change.

Thanks for the feedback.

Willy Tu

Quoted 15 lines · Alexander Kanavin
Quoted 6 lines · Willy Tu

Thanks Alexander for the feedback,

We had some discussion internally with one of the OpenSSH maintainers and they are fine with it. I'll try to see if there is a public forum where we can share the discussion.

If they are fine with it, then you need to submit a patch to openssh that installs the needed pieces (perhaps subject to a configure switch), get it accepted, and then add a backport to oe-core, in that order. No do_install_append hacks please.

Alex

A message that is not in the archive (sent off-list or not yet received): [email protected]

#19 lore raw

Actually, you don't need to do this in HIBA - a bbappend to openssh will do.

Alex

Quoted 54 lines · Alexander Kanavin via lists.openembedded.org

I'd rather have this hidden in your recipes, yes. It's clearly a special needs issue, and something you shouldn't ask us to maintain for you (what I mean is that you're not going to rebase the patch when a new openssh version is out, or adjust do_install - this falls on usually me, and my time to do these ever-growing maintenance things is not infinite).

Alex

Quoted 33 lines · Tristan Lelong

To be clear: OpenSSH maintainer will not accept a patch that exposes these files in the upstream version, but we got confirmation that they were ok if we maintained such a patch in OE (or a custom do_install in the recipe).

If this solution is not acceptable from the OE maintainers point of view, the next option is to update the HIBA recipe to fetch OpenSSH sources on top of HIBA sources directly in HIBA's workdir, and use these instead of the one from sysroot.

Would this work better for you?

Quoted 25 lines · On Tue, Nov 8, 2022, 18:16 Willy Tu <[email protected]> wrote:

I think they are fine with the hack here. oops. Ok, I'll work with them to get the fix without this change.

Thanks for the feedback.

Willy Tu

Quoted 15 lines · Alexander Kanavin
Quoted 6 lines · Willy Tu

Thanks Alexander for the feedback,

We had some discussion internally with one of the OpenSSH maintainers and they are fine with it. I'll try to see if there is a public forum where we can share the discussion.

If they are fine with it, then you need to submit a patch to openssh that installs the needed pieces (perhaps subject to a configure switch), get it accepted, and then add a backport to oe-core, in that order. No do_install_append hacks please.

Alex

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#172992): https://lists.openembedded.org/g/openembedded-core/message/172992
Mute This Topic: https://lists.openembedded.org/mt/94475279/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#20 lore raw

So do you suggest adding bbappend in meta-openembedded where
https://github.com/openembedded/meta-openembedded/pull/597 will live?

I'll check with the maintainer there. And Google/hiba users will maintain that.

Best,

Willy Tu

Quoted 75 lines · Alexander Kanavin

Actually, you don't need to do this in HIBA - a bbappend to openssh will do.

Alex

Quoted 8 lines · Alexander Kanavin via lists.openembedded.org

I'd rather have this hidden in your recipes, yes. It's clearly a special needs issue, and something you shouldn't ask us to maintain for you (what I mean is that you're not going to rebase the patch when a new openssh version is out, or adjust do_install - this falls on usually me, and my time to do these ever-growing maintenance things is not infinite).

Quoted 6 lines

Alex

Quoted 2 lines · Tristan Lelong

To be clear: OpenSSH maintainer will not accept a patch that exposes

these files in the upstream version, but we got confirmation that they were ok if we maintained such a patch in OE (or a custom do_install in the recipe).

Quoted 2 lines
Quoted 2 lines

If this solution is not acceptable from the OE maintainers point of

view, the next option is to update the HIBA recipe to fetch OpenSSH sources on top of HIBA sources directly in HIBA's workdir, and use these instead of the one from sysroot.

Quoted 14 lines
Quoted 14 lines

Would this work better for you?

Quoted 10 lines · On Tue, Nov 8, 2022, 18:16 Willy Tu <[email protected]> wrote:

I think they are fine with the hack here. oops. Ok, I'll work with them to get the fix without this change.

Thanks for the feedback.

Willy Tu

On Tue, Nov 8, 2022 at 9:12 AM Alexander Kanavin <

Quoted 6 lines · [email protected]> wrote:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines · Willy Tu
Quoted 4 lines

Thanks Alexander for the feedback,

We had some discussion internally with one of the OpenSSH

maintainers

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

and they are fine with it. I'll try to see if there is a public

forum

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line

where we can share the discussion.

If they are fine with it, then you need to submit a patch to openssh that installs the needed pieces (perhaps subject to a configure switch), get it accepted, and then add a backport to oe-core, in

that

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

order. No do_install_append hacks please.

Alex

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#172992):

https://lists.openembedded.org/g/openembedded-core/message/172992

Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/94475279/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [

[email protected]]

Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

#21 lore raw

Ah, I thought this was in a separate layer. I think you're best off getting a private copy of openssh sources then.

Alex

Quoted 73 lines · Willy Tu

So do you suggest adding bbappend in meta-openembedded where https://github.com/openembedded/meta-openembedded/pull/597 will live?

I'll check with the maintainer there. And Google/hiba users will maintain that.

Best,

Willy Tu

Quoted 62 lines · Alexander Kanavin

Actually, you don't need to do this in HIBA - a bbappend to openssh will do.

Alex

Quoted 54 lines · Alexander Kanavin via lists.openembedded.org

I'd rather have this hidden in your recipes, yes. It's clearly a special needs issue, and something you shouldn't ask us to maintain for you (what I mean is that you're not going to rebase the patch when a new openssh version is out, or adjust do_install - this falls on usually me, and my time to do these ever-growing maintenance things is not infinite).

Alex

Quoted 33 lines · Tristan Lelong

To be clear: OpenSSH maintainer will not accept a patch that exposes these files in the upstream version, but we got confirmation that they were ok if we maintained such a patch in OE (or a custom do_install in the recipe).

If this solution is not acceptable from the OE maintainers point of view, the next option is to update the HIBA recipe to fetch OpenSSH sources on top of HIBA sources directly in HIBA's workdir, and use these instead of the one from sysroot.

Would this work better for you?

Quoted 25 lines · On Tue, Nov 8, 2022, 18:16 Willy Tu <[email protected]> wrote:

I think they are fine with the hack here. oops. Ok, I'll work with them to get the fix without this change.

Thanks for the feedback.

Willy Tu

Quoted 15 lines · Alexander Kanavin
Quoted 6 lines · Willy Tu

Thanks Alexander for the feedback,

We had some discussion internally with one of the OpenSSH maintainers and they are fine with it. I'll try to see if there is a public forum where we can share the discussion.

If they are fine with it, then you need to submit a patch to openssh that installs the needed pieces (perhaps subject to a configure switch), get it accepted, and then add a backport to oe-core, in that order. No do_install_append hacks please.

Alex

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#172992): https://lists.openembedded.org/g/openembedded-core/message/172992
Mute This Topic: https://lists.openembedded.org/mt/94475279/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#22 lore raw

ok, sounds good. thanks. I think I had a version that does that. I'll revert back to that version.

I'll let the maintainer there know so that we can proceed with that direction.

Willy Tu

Quoted 80 lines · Alexander Kanavin

Ah, I thought this was in a separate layer. I think you're best off getting a private copy of openssh sources then.

Alex

Quoted 73 lines · Willy Tu

So do you suggest adding bbappend in meta-openembedded where https://github.com/openembedded/meta-openembedded/pull/597 will live?

I'll check with the maintainer there. And Google/hiba users will maintain that.

Best,

Willy Tu

Quoted 62 lines · Alexander Kanavin

Actually, you don't need to do this in HIBA - a bbappend to openssh will do.

Alex

Quoted 54 lines · Alexander Kanavin via lists.openembedded.org

I'd rather have this hidden in your recipes, yes. It's clearly a special needs issue, and something you shouldn't ask us to maintain for you (what I mean is that you're not going to rebase the patch when a new openssh version is out, or adjust do_install - this falls on usually me, and my time to do these ever-growing maintenance things is not infinite).

Alex

Quoted 33 lines · Tristan Lelong

To be clear: OpenSSH maintainer will not accept a patch that exposes these files in the upstream version, but we got confirmation that they were ok if we maintained such a patch in OE (or a custom do_install in the recipe).

If this solution is not acceptable from the OE maintainers point of view, the next option is to update the HIBA recipe to fetch OpenSSH sources on top of HIBA sources directly in HIBA's workdir, and use these instead of the one from sysroot.

Would this work better for you?

Quoted 25 lines · On Tue, Nov 8, 2022, 18:16 Willy Tu <[email protected]> wrote:

I think they are fine with the hack here. oops. Ok, I'll work with them to get the fix without this change.

Thanks for the feedback.

Willy Tu

Quoted 15 lines · Alexander Kanavin
Quoted 6 lines · Willy Tu

Thanks Alexander for the feedback,

We had some discussion internally with one of the OpenSSH maintainers and they are fine with it. I'll try to see if there is a public forum where we can share the discussion.

If they are fine with it, then you need to submit a patch to openssh that installs the needed pieces (perhaps subject to a configure switch), get it accepted, and then add a backport to oe-core, in that order. No do_install_append hacks please.

Alex

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#172992): https://lists.openembedded.org/g/openembedded-core/message/172992
Mute This Topic: https://lists.openembedded.org/mt/94475279/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#23 lore raw
In reply to Willy Tu

Hi Willy

Thanks for the patch!

Quoted 9 lines · Willy Tu via lists.openembedded.org

Install API only if opensshinternals is in DISTRO_FEATURES. Install the OpenSSH header + lib files for other repo to build using it. For example, https://github.com/google/hiba is dependent on those files to build and this change is needed to meet that requirement.
https://github.com/openembedded/meta-openembedded/pull/597

---
 meta/recipes-connectivity/openssh/openssh_9.0p1.bb | 11 +++++++++++

 1 file changed, 11 insertions(+)

There's a problem with the way you send your patches though. I used to have it too.

If I apply your patch through "git am", the author of the commit will be:
Willy Tu via lists.openembedded.org <[email protected]> instead of
Willy Tu <[email protected]>

Because of this issue, the maintainer has to manually fix this field when accepting your patch. Worse, if he doesn't catch this, that's harder to fix afterwards.

You should be able to fix this by running:

git config --global sendemail.from "[email protected]"
This should add a "From" field to the sent patch which "git am" should be able to match with your name.

At least this worked for me. See https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded#Sending_using_git-send-email

Could you try to send an update? You could send it to me again through private-email first.

Thanks in advance
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author
#24 lore raw

Hi Michael,

Thanks for the response. Sorry for the delay. I must have missed the email when I was setting up the filters. I have sent the patch directly to you privately to see if that works.

As for

```
git config --global sendemail.from "[email protected]"
```

,

I think I already have to setup properly

```
$ git config --global sendemail.from
Willy Tu <[email protected]>
```

I believe the issue is because I created the topic directly with
https://lists.openembedded.org/g/openembedded-core/post. Instead with git email and it filtered out the email from there for some reason. I should probably just send the email through git instead. I did with the web UI because I wasn't able to get my message show up before. Sorry for the confusion. I'll try with git send-email next time.

Best,

Willy Tu

Quoted 51 lines · Michael Opdenacker

Hi Willy

Thanks for the patch!

Quoted 9 lines · Willy Tu via lists.openembedded.org

Install API only if opensshinternals is in DISTRO_FEATURES. Install the OpenSSH header + lib files for other repo to build using it. For example, https://github.com/google/hiba is dependent on those files to build and this change is needed to meet that requirement.
https://github.com/openembedded/meta-openembedded/pull/597

---
 meta/recipes-connectivity/openssh/openssh_9.0p1.bb | 11 +++++++++++
 1 file changed, 11 insertions(+)

There's a problem with the way you send your patches though. I used to have it too.

If I apply your patch through "git am", the author of the commit will be:
Willy Tu via lists.openembedded.org <wltu= [email protected]>
instead of
Willy Tu <[email protected]>

Because of this issue, the maintainer has to manually fix this field when accepting your patch. Worse, if he doesn't catch this, that's harder to fix afterwards.

You should be able to fix this by running:

git config --global sendemail.from "[email protected]"
This should add a "From" field to the sent patch which "git am" should be able to match with your name.

At least this worked for me. See

https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded#Sending_using_git-send-email

Could you try to send an update? You could send it to me again through private-email first.

Thanks in advance
Michael.

--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#26 lore raw

Adding +Tristan Lelong <[email protected]> for visibility and comment on any concern.

Quoted 95 lines · Willy Tu via lists.openembedded.org

Hi Michael,

Thanks for the response. Sorry for the delay. I must have missed the email when I was setting up the filters. I have sent the patch directly to you privately to see if that works.

As for

```
git config --global sendemail.from "[email protected]"
```

,

I think I already have to setup properly

```
$ git config --global sendemail.from
Willy Tu <[email protected]>
```

I believe the issue is because I created the topic directly with
https://lists.openembedded.org/g/openembedded-core/post. Instead with git email and it filtered out the email from there for some reason. I should probably just send the email through git instead. I did with the web UI because I wasn't able to get my message show up before. Sorry for the confusion. I'll try with git send-email next time.

Best,

Willy Tu

Quoted 42 lines · Michael Opdenacker

Hi Willy

Thanks for the patch!

Quoted 9 lines · Willy Tu via lists.openembedded.org

Install API only if opensshinternals is in DISTRO_FEATURES. Install the OpenSSH header + lib files for other repo to build using it. For example, https://github.com/google/hiba is dependent on those files to build and this change is needed to meet that requirement.
https://github.com/openembedded/meta-openembedded/pull/597

---
 meta/recipes-connectivity/openssh/openssh_9.0p1.bb | 11 +++++++++++
 1 file changed, 11 insertions(+)

There's a problem with the way you send your patches though. I used to have it too.

If I apply your patch through "git am", the author of the commit will be:
Willy Tu via lists.openembedded.org <wltu= [email protected]>
instead of
Willy Tu <[email protected]>

Because of this issue, the maintainer has to manually fix this field when accepting your patch. Worse, if he doesn't catch this, that's harder to fix afterwards.

You should be able to fix this by running:

git config --global sendemail.from "[email protected]"
This should add a "From" field to the sent patch which "git am" should be able to match with your name.

At least this worked for me. See

https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded#Sending_using_git-send-email

Could you try to send an update? You could send it to me again through private-email first.

Quoted 9 lines

Thanks in advance
Michael.

--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#172098):
https://lists.openembedded.org/g/openembedded-core/message/172098
Mute This Topic: https://lists.openembedded.org/mt/94475279/6858837
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-