View previous topic :: View next topic |
Author |
Message |
KingKong n00b
Joined: 13 Jul 2018 Posts: 4
|
|
Back to top |
|
|
Josef.95 Advocate
Joined: 03 Sep 2007 Posts: 4555 Location: Germany
|
Posted: Fri Jul 13, 2018 11:27 am Post subject: emake fail - ERROR: mail-filter/clamsmtp-1.10::gentoo failed |
|
|
Hey KingKong, welcome in gentoo Forum! :)
KingKong wrote: | Code: | In file included from ../common/sock_any.h:44:0,
from ../common/smtppass.c:68:
/usr/include/netinet/in.h:31:8: error: redefinition of ‘struct in_addr’
struct in_addr
|
|
Sounds like here is already a Bug 629684 reported. |
|
Back to top |
|
|
KingKong n00b
Joined: 13 Jul 2018 Posts: 4
|
Posted: Fri Jul 13, 2018 3:53 pm Post subject: |
|
|
Hi Josef.95, thank you very much for your reply.
So what should I do, any suggestion? Copy the new clamsmtp-1.10-r1.ebuild and clamsmtp-smtppass.patch from the Bug #629684 onto /usr/portage/mail-filter/clamsmtp and emerge again?
Running 'emerge --sync' won't update the portage of clamsmtp for the patch, is the bug fixed (sorry, I'm new to Gentoo's bugzilla[/code])? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30917 Location: here
|
|
Back to top |
|
|
Josef.95 Advocate
Joined: 03 Sep 2007 Posts: 4555 Location: Germany
|
|
Back to top |
|
|
KingKong n00b
Joined: 13 Jul 2018 Posts: 4
|
Posted: Sat Jul 14, 2018 9:36 am Post subject: |
|
|
Hi Fedeliallalinea;
I was trying to do the patch following the guide and have created the bashrc to enable /etc/portage/patches for all builds, but no luck, user patch not applied. Not sure any steps was missing... The output of ebuild:
Code: | localhost /usr/portage/mail-filter/clamsmtp # ebuild clamsmtp-1.10.ebuild clean prepare
* clamsmtp-1.10.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking clamsmtp-1.10.tar.gz to /var/tmp/portage/mail-filter/clamsmtp-1.10/work
>>> Source unpacked in /var/tmp/portage/mail-filter/clamsmtp-1.10/work
|
Hi Josef.95
I haven't try your suggestion, but has read the link, it might be too heavy for me to set up custom repo, I would rather give up clamsmtp and find other similar replacement. Anyway, many thanks for the reply. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30917 Location: here
|
Posted: Sat Jul 14, 2018 9:58 am Post subject: |
|
|
KingKong wrote: | I was trying to do the patch following the guide and have created the bashrc to enable /etc/portage/patches for all builds, but no luck, user patch not applied. Not sure any steps was missing... The output of ebuild: |
You right, src_prepare function (phase for apply the user patches) have been introduced only in the EAPI 2 then my solution doesn't work
KingKong wrote: | I haven't try your suggestion, but has read the link, it might be too heavy for me to set up custom repo, I would rather give up clamsmtp and find other similar replacement. Anyway, many thanks for the reply. |
It's not so complicated
Code: | # mkdir -p /usr/local/portage/{metadata,profiles}
# echo 'localrepo' > /usr/local/portage/profiles/repo_name
# echo -e "masters = gentoo\nauto-sync = false" >> /usr/local/portage/metadata/layout.conf
# echo -e "[localrepo]\nlocation = /usr/local/portage" >> /etc/portage/repos.conf/localrepo.conf
# mkdir -p /usr/local/portage/mail-filter/clamsmtp
# mkdir /usr/local/portage/mail-filter/clamsmtp /files
# wget "https://629684.bugs.gentoo.org/attachment.cgi?id=498518" -O /usr/local/portage/mail-filter/clamsmtp/clamsmtp-1.10-r1.ebuild
# wget "https://629684.bugs.gentoo.org/attachment.cgi?id=498516" -O /usr/local/portage/mail-filter/clamsmtp/files/clamsmtp-smtppass.patch
# chown -R portage:portage /usr/local/portage
# ebuild /usr/local/portage/mail-filter/clamsmtp/clamsmtp-1.10-r1.ebuild manifest
# emerge clamsmtp::localrepo
|
This ebuild already contain to apply patch then you can remove it from /etc/portage/patches _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
KingKong n00b
Joined: 13 Jul 2018 Posts: 4
|
Posted: Sat Jul 14, 2018 10:23 am Post subject: |
|
|
Hi fedeliallalinea;
Your solution works like a charm. I've just finished emergeing the clamsmtp, it's up and running now...
One single step missing is before generate the manifest, I've copied the 'clamsmtpd.init' from the gentoo repo into the files/ directory.
Thank you so many for kind asistant and advice. Cheers! |
|
Back to top |
|
|
zark n00b
Joined: 27 Mar 2004 Posts: 74 Location: Belgium
|
Posted: Fri Aug 17, 2018 3:16 pm Post subject: |
|
|
Hi fedeliallalinea;
I have the same issue.
I applied your exact same solution,
but i'm getting this :
Quote: | !!! newinitd: /var/tmp/portage/mail-filter/clamsmtp-1.10-r1/files/clamsmtpd.init does not exist |
any ideas ?
ok. solved.
add :
Quote: | cp /usr/portage/mail-filter/clamsmtp/files/clamsmtpd.init /usr/local/portage/mail-filter/clamsmtp/files/ |
before running the ebuild command [/quote] |
|
Back to top |
|
|
|