Skip to contentSkip to conversation

dansguardian

DISCUSSION Mahdi Saadat 2 participants 8 messages Jan 24, 2015 – Jan 27, 2015

lore
Share & tools
lore
#0 lore raw

HI
Does anyone knows about how put dansguardian on core-image-minimal? I Did some steps on creating the recipe but had some errors on config stage.

---------------
Regards
Mahdi

#1 lore raw

Hi Mahdi,

Quoted 2 lines · On Saturday 24 January 2015 11:05:45 Mahdi Saadat wrote:

Does anyone knows about how put dansguardian on core-image-minimal? I Did some steps on creating the recipe but had some errors on config stage.

You'll need to be a bit more specific about the errors you received before anyone will be able to help.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw

Hi Paul
Thanks for your response the log file is as below:
DEBUG: Executing python function rootfs_process_ignore
DEBUG: Python function rootfs_process_ignore finished
DEBUG: Executing python function rootfs_runtime_mapping
DEBUG: Python function rootfs_runtime_mapping finished
DEBUG: Executing python function do_rootfs
NOTE: configuring RPM platform settings
NOTE: configuring RPM system provides
NOTE: configuring RPM DB settings
NOTE: configuring Smart settings
NOTE: Note: adding Smart channel nimak (45)
NOTE: Note: adding Smart channel core2_32 (40)
NOTE: Note: adding Smart channel all (35)
NOTE: adding Smart RPM DB channel
NOTE: Note: configuring RPM cross-install scriptlet_wrapper
NOTE: ###### Generate rootfs #######
NOTE: Executing '/home/nimak/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --update -q /home/nimak/poky/build/tmp/deploy/rpm/all' ...
NOTE: Executing '/home/nimak/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --update -q /home/nimak/poky/build/tmp/deploy/rpm/nimak' ...
NOTE: Executing '/home/nimak/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --update -q /home/nimak/poky/build/tmp/deploy/rpm/core2_32' .$
NOTE: Installing the following packages: iptables run-postinsts dansguardian squid clamav snort packagegroup-core-boot
ERROR: dansguardian not found in the base feeds (nimak core2-32-intel-common core2-32 i586 x86 noarch any all).
acl-2.2.52-r0@core2_32 acl-dbg-2.2.52-r0@core2_32 acl-dev-2.2.52-r0@core2_32 acl-doc-2.2.52-r0@core2_32 acl-locale-de-2.2.52-r0@core2_32 acl-local$
DEBUG: Python function do_rootfs finished
ERROR: Function failed: do_rootfs

---------------
Regards
Mahdi

-----Original Message-----
From: Paul Eggleton [mailto:[email protected]]
Sent: Monday, January 26, 2015 2:18 PM
To: Mahdi Saadat
Cc: [email protected]
Subject: Re: [yocto] dansguardian

Hi Mahdi,

Quoted 2 lines · On Saturday 24 January 2015 11:05:45 Mahdi Saadat wrote:

Does anyone knows about how put dansguardian on core-image-minimal? I Did some steps on creating the recipe but had some errors on config

stage.

You'll need to be a bit more specific about the errors you received before anyone will be able to help.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#3 lore raw
Quoted 25 lines · On Tuesday 27 January 2015 11:10:03 Mahdi Saadat wrote:

Thanks for your response the log file is as below:
DEBUG: Executing python function rootfs_process_ignore
DEBUG: Python function rootfs_process_ignore finished
DEBUG: Executing python function rootfs_runtime_mapping
DEBUG: Python function rootfs_runtime_mapping finished
DEBUG: Executing python function do_rootfs
NOTE: configuring RPM platform settings
NOTE: configuring RPM system provides
NOTE: configuring RPM DB settings
NOTE: configuring Smart settings
NOTE: Note: adding Smart channel nimak (45)
NOTE: Note: adding Smart channel core2_32 (40)
NOTE: Note: adding Smart channel all (35)
NOTE: adding Smart RPM DB channel
NOTE: Note: configuring RPM cross-install scriptlet_wrapper
NOTE: ###### Generate rootfs #######
NOTE: Executing '/home/nimak/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --update -q /home/nimak/poky/build/tmp/deploy/rpm/all' ...
NOTE: Executing '/home/nimak/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --update -q /home/nimak/poky/build/tmp/deploy/rpm/nimak' ...
NOTE: Executing '/home/nimak/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --update -q /home/nimak/poky/build/tmp/deploy/rpm/core2_32' .$

Quoted 8 lines

NOTE: Installing the following packages: iptables run-postinsts dansguardian squid clamav snort packagegroup-core-boot
ERROR: dansguardian not found in the base feeds (nimak core2-32-intel-common core2-32 i586 x86 noarch any all).
acl-2.2.52-r0@core2_32 acl-dbg-2.2.52-r0@core2_32 acl-dev-2.2.52-r0@core2_32 acl-doc-2.2.52-r0@core2_32 acl-locale-de-2.2.52-r0@core2_32 acl-local$
DEBUG: Python function do_rootfs finished
ERROR: Function failed: do_rootfs

This suggests that the main package is empty, which likely means that do_install didn't install anything to ${D} (or less likely, none of the files that it did install matched that the value of FILES_${PN} for the recipe). See this section of the manual for a bit more detail:

http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#new-recipe-installing

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#4 lore raw

After I used inherit autotools in my recipe the .configure steps stop on this error:

line 6455: PKG_PROG_PKG_CONFIG: command not found
line 6482: syntax error near unexpected token `PCRE,libpcre'---------------

Regards
Mahdi

-----Original Message-----
From: Paul Eggleton [mailto:[email protected]]
Sent: Tuesday, January 27, 2015 1:11 PM
To: Mahdi Saadat
Cc: [email protected]
Subject: Re: [yocto] dansguardian

Quoted 27 lines · On Tuesday 27 January 2015 11:10:03 Mahdi Saadat wrote:

Thanks for your response the log file is as below:
DEBUG: Executing python function rootfs_process_ignore
DEBUG: Python function rootfs_process_ignore finished
DEBUG: Executing python function rootfs_runtime_mapping
DEBUG: Python function rootfs_runtime_mapping finished
DEBUG: Executing python function do_rootfs
NOTE: configuring RPM platform settings
NOTE: configuring RPM system provides
NOTE: configuring RPM DB settings
NOTE: configuring Smart settings
NOTE: Note: adding Smart channel nimak (45)
NOTE: Note: adding Smart channel core2_32 (40)
NOTE: Note: adding Smart channel all (35)
NOTE: adding Smart RPM DB channel
NOTE: Note: configuring RPM cross-install scriptlet_wrapper
NOTE: ###### Generate rootfs #######
NOTE: Executing '/home/nimak/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --update -q /home/nimak/poky/build/tmp/deploy/rpm/all' ...
NOTE: Executing '/home/nimak/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --update -q /home/nimak/poky/build/tmp/deploy/rpm/nimak' ...
NOTE: Executing '/home/nimak/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --update -q /home/nimak/poky/build/tmp/deploy/rpm/core2_32' .$
NOTE: Installing the following packages: iptables run-postinsts dansguardian squid clamav snort packagegroup-core-boot

Quoted 8 lines

ERROR: dansguardian not found in the base feeds (nimak core2-32-intel-common
core2-32 i586 x86 noarch any all).
acl-2.2.52-r0@core2_32 acl-dbg-2.2.52-r0@core2_32 acl-dev-2.2.52-r0@core2_32
acl-doc-2.2.52-r0@core2_32 acl-locale-de-2.2.52-r0@core2_32 acl-local$
DEBUG: Python function do_rootfs finished
ERROR: Function failed: do_rootfs

This suggests that the main package is empty, which likely means that do_install didn't install anything to ${D} (or less likely, none of the files that it did install matched that the value of FILES_${PN} for the recipe).
See this section of the manual for a bit more detail:

http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#new-reci
pe-installing

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#5 lore raw
Quoted 5 lines · On Tuesday 27 January 2015 15:40:43 Mahdi Saadat wrote:

After I used inherit autotools in my recipe the .configure steps stop on this error:

line 6455: PKG_PROG_PKG_CONFIG: command not found
line 6482: syntax error near unexpected token `PCRE,libpcre'---------------

That sounds like it is attempting to find pkg-config. You could try adding "inherit pkgconfig" and if you still get the error you will need to look into where it is looking for pkg-config and why that isn't valid for the cross environment.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#6 lore raw
In reply to Paul Eggleton

After I add "inherit autotools gettext pkgconfig" on .bb file the error is :
/usr/bin/install: cannot stat 'transparent1x1.gif': No such file or directory
Attached file is the do install log

---------------
Regards
mahdi
-----Original Message-----
From: Paul Eggleton [mailto:[email protected]]
Sent: Tuesday, January 27, 2015 1:11 PM
To: Mahdi Saadat
Cc: [email protected]
Subject: Re: [yocto] dansguardian

Quoted 27 lines · On Tuesday 27 January 2015 11:10:03 Mahdi Saadat wrote:

Thanks for your response the log file is as below:
DEBUG: Executing python function rootfs_process_ignore
DEBUG: Python function rootfs_process_ignore finished
DEBUG: Executing python function rootfs_runtime_mapping
DEBUG: Python function rootfs_runtime_mapping finished
DEBUG: Executing python function do_rootfs
NOTE: configuring RPM platform settings
NOTE: configuring RPM system provides
NOTE: configuring RPM DB settings
NOTE: configuring Smart settings
NOTE: Note: adding Smart channel nimak (45)
NOTE: Note: adding Smart channel core2_32 (40)
NOTE: Note: adding Smart channel all (35)
NOTE: adding Smart RPM DB channel
NOTE: Note: configuring RPM cross-install scriptlet_wrapper
NOTE: ###### Generate rootfs #######
NOTE: Executing '/home/nimak/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --update -q /home/nimak/poky/build/tmp/deploy/rpm/all' ...
NOTE: Executing '/home/nimak/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --update -q /home/nimak/poky/build/tmp/deploy/rpm/nimak' ...
NOTE: Executing '/home/nimak/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --update -q /home/nimak/poky/build/tmp/deploy/rpm/core2_32' .$
NOTE: Installing the following packages: iptables run-postinsts dansguardian squid clamav snort packagegroup-core-boot

Quoted 8 lines

ERROR: dansguardian not found in the base feeds (nimak core2-32-intel-common
core2-32 i586 x86 noarch any all).
acl-2.2.52-r0@core2_32 acl-dbg-2.2.52-r0@core2_32 acl-dev-2.2.52-r0@core2_32
acl-doc-2.2.52-r0@core2_32 acl-locale-de-2.2.52-r0@core2_32 acl-local$
DEBUG: Python function do_rootfs finished
ERROR: Function failed: do_rootfs

This suggests that the main package is empty, which likely means that do_install didn't install anything to ${D} (or less likely, none of the files that it did install matched that the value of FILES_${PN} for the recipe).
See this section of the manual for a bit more detail:

http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#new-reci
pe-installing

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#7 lore raw
Quoted 4 lines · On Tuesday 27 January 2015 15:51:12 Mahdi Saadat wrote:

After I add "inherit autotools gettext pkgconfig" on .bb file the error is :
/usr/bin/install: cannot stat 'transparent1x1.gif': No such file or directory
Attached file is the do install log

This is something specific to dansguardian's "make install", you'll need to investigate yourself why that file is not where the makefile expects it to be.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre