Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 667646 - =sys-libs/pam-1.3.1: no rule to make target 'access.conf.5', needed by 'all-am'
Summary: =sys-libs/pam-1.3.1: no rule to make target 'access.conf.5', needed by 'all-am'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-03 13:31 UTC by matoro
Modified: 2018-11-18 22:18 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,71.42 KB, application/octet-stream)
2018-10-03 13:35 UTC, matoro
Details
info.txt (info.txt,5.41 KB, text/plain)
2018-10-03 13:35 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2018-10-03 13:31:41 UTC
=sys-libs/pam-1.3.1 fails to build under at least amd64 even with vanilla CFLAGS.  I believe the issue is recursive makefile rules, but not sure.

Reproducible: Always
Comment 1 matoro archtester 2018-10-03 13:35:04 UTC
Created attachment 549152 [details]
build.log
Comment 2 matoro archtester 2018-10-03 13:35:24 UTC
Created attachment 549154 [details]
info.txt
Comment 3 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-10-07 15:22:11 UTC
we are building docs on fly right now due to docu-regenerate flag breakage, your installation behaves as if it were disabled (and therefore broken) while the current builds are taking dockbook-spec to use, so I can not say what is wrong with your installation
Comment 4 matoro archtester 2018-10-10 13:48:00 UTC
Thank you for the explanation.  For reference, I was able to solve the issue with the following steps:

- install docbook-xml-dtd-4.4 from binary package
- noticed that /usr/share/sgml/docbook/xml-dtd-4.4/ent/isogrk4.ent was a broken symlink
- reinstall docbook-xml-dtd-4.4 from source
- install docbook-xml-dtd-4.1

and it built successfully.  I am not totally familiar with exactly how the docbook build stuff works but perhaps there are some extra build deps that ought to be added to the ebuild?
Comment 5 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-10-10 14:39:32 UTC
(In reply to matoro from comment #4)
> Thank you for the explanation.  For reference, I was able to solve the issue
> with the following steps:
> 
> - install docbook-xml-dtd-4.4 from binary package
> - noticed that /usr/share/sgml/docbook/xml-dtd-4.4/ent/isogrk4.ent was a
> broken symlink
> - reinstall docbook-xml-dtd-4.4 from source
> - install docbook-xml-dtd-4.1
> 
> and it built successfully.  I am not totally familiar with exactly how the
> docbook build stuff works but perhaps there are some extra build deps that
> ought to be added to the ebuild?

all the docbook stuff are already listed in the ebuild though


https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-libs/pam/pam-1.3.1.ebuild#n17
Comment 6 matoro archtester 2018-10-11 00:33:22 UTC
(In reply to Mikle Kolyada from comment #5)
> (In reply to matoro from comment #4)
> > Thank you for the explanation.  For reference, I was able to solve the issue
> > with the following steps:
> > 
> > - install docbook-xml-dtd-4.4 from binary package
> > - noticed that /usr/share/sgml/docbook/xml-dtd-4.4/ent/isogrk4.ent was a
> > broken symlink
> > - reinstall docbook-xml-dtd-4.4 from source
> > - install docbook-xml-dtd-4.1
> > 
> > and it built successfully.  I am not totally familiar with exactly how the
> > docbook build stuff works but perhaps there are some extra build deps that
> > ought to be added to the ebuild?
> 
> all the docbook stuff are already listed in the ebuild though
> 
> 
> https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-libs/pam/pam-1.3.1.
> ebuild#n17

You are right - I am not sure how 4.4 ended up with a broken symlink however 4.1 is not listed in the ebuild.

Also, I've come across another weird snag - those steps solved it on my amd64 machine, but the only reason I tried them was because it suddenly started spitting out docbook errors.  However I also have an armv7a and armv6j box where it did not work, nor do those errors appear.  I tried several things including skipping the browser patch, installing www-client/{elinks,w3m} , and patching the makefile.  No luck on anything, so at a loss here.  Hopefully somebody else comes around with the same issue.  Thank you for your help.
Comment 7 matoro archtester 2018-11-18 03:52:38 UTC
I know this is a bit late, but I was finally able to identify the problem!  dev-libs/libxslt was what was missing.  Could you please try building without that package and seeing if you could reproduce the issue?  I suspect it may be needed in DEPEND and that this error was uncommon because most people keep build deps installed.
Comment 8 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-11-18 18:26:01 UTC
Oh somehow I missed that building pam in the new docker image though.
Thanks, now fixed here:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da1c63d8d7a5ba77d2b557f6fe8501a6e930b1c4
Comment 9 matoro archtester 2018-11-18 21:21:59 UTC
Thanks.  One more quick fix - virtual/pkg-config is also needed since it does not come with autotools.eclass.  Don't know if that qualifies for a revbump.
Comment 10 matoro archtester 2018-11-18 21:47:36 UTC
virtual/pkgconfig , my bad.  Couple other bdeps I found:

Needs app-text/docbook-xml-dtd:4.1.2 or else you end up with this:

Making all in pam_access                                                                                                                                                                                                    
make[3]: Entering directory '/var/tmp/portage/sys-libs/pam-1.3.1-r1/work/linux-pam-1.3.1-.arm/modules/pam_access'                                                                                                           
/bin/sh ../../libtool  --tag=CC   --mode=compile armv7a-unknown-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-libs/pam-1.3.1-r1/work/linux-pam-1.3.1/modules/pam_access -I../..    -I/var/tmp/portage/sys-l
ibs/pam-1.3.1-r1/work/linux-pam-1.3.1/libpam/include -I/var/tmp/portage/sys-libs/pam-1.3.1-r1/work/linux-pam-1.3.1/libpamc/include -DPAM_ACCESS_CONFIG=\"/etc/security/access.conf\" -DACCESS_CONF_GLOB=\"/etc/security/acce
ss.d/*.conf\" -O3 -pipe -march=native -funroll-loops -flto=8 -floop-block -floop-interchange -floop-strip-mine -ftree-loop-distribution -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissi
ng-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow -c -o pam_access.lo /var/tmp/portage/sys-libs/pam-1.3.1-r1/work/linux-pam-1.3.1/modules/pam_access/pam_access.c
/usr/bin/xmllint --nonet --xinclude --postvalid --noout /var/tmp/portage/sys-libs/pam-1.3.1-r1/work/linux-pam-1.3.1/modules/pam_access/access.conf.5.xml
/usr/bin/xmllint --nonet --xinclude --postvalid --noout /var/tmp/portage/sys-libs/pam-1.3.1-r1/work/linux-pam-1.3.1/modules/pam_access/pam_access.8.xml
/usr/bin/xsltproc --path /var/tmp/portage/sys-libs/pam-1.3.1-r1/work/linux-pam-1.3.1/modules/pam_access --xinclude --stringparam generate.toc "none" --nonet http://docbook.sourceforge.net/release/xsl/current/html/docbook
.xsl /var/tmp/portage/sys-libs/pam-1.3.1-r1/work/linux-pam-1.3.1/modules/pam_access/README.xml |  > /var/tmp/portage/sys-libs/pam-1.3.1-r1/work/linux-pam-1.3.1/modules/pam_access/README
/var/tmp/portage/sys-libs/pam-1.3.1-r1/work/linux-pam-1.3.1/modules/pam_access/pam_access.8.xml:3: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"
                   "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
                                                                              ^
warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"
validity error : Could not load the external subset "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"
Document /var/tmp/portage/sys-libs/pam-1.3.1-r1/work/linux-pam-1.3.1/modules/pam_access/pam_access.8.xml does not validate
make[3]: *** [/var/tmp/portage/sys-libs/pam-1.3.1-r1/work/linux-pam-1.3.1/Make.xml.rules:21: pam_access.8] Error 3
make[3]: *** Waiting for unfinished jobs....



Also needed is virtual/yacc.
Comment 11 matoro archtester 2018-11-18 22:18:41 UTC
And sys-devel/flex is the last one.  Sorry for the comment spam, was fixing these on the fly.  After all that it builds successfully reproducibly.