Bug 249839 - clean-libtool insufficient with subdir-objects
clean-libtool insufficient with subdir-objects
Product: Fedora
Classification: Fedora
Component: automake (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Karsten Hopp
Fedora Extras Quality Assurance
: Reopened
Depends On:
  Show dependency treegraph
Reported: 2007-07-27 08:48 EDT by Miloslav Trmač
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-08-14 05:42:29 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Reproducer (556 bytes, application/octet-stream)
2007-07-27 08:48 EDT, Miloslav Trmač
no flags Details

  None (edit)
Description Miloslav Trmač 2007-07-27 08:48:14 EDT
Description of problem:
(make distclean) leaves a libtool temporary subdirectory around if
subdir-objects are used.

Version-Release number of selected component (if applicable):

Steps to Reproduce:
1. extract the attached tarball
2. autoreconf -is && ./configure && make
3. make distclean
Actual results:
.src/libs was not removed
Comment 1 Miloslav Trmač 2007-07-27 08:48:14 EDT
Created attachment 160114 [details]
Comment 2 Karsten Hopp 2007-08-09 11:24:00 EDT
I think you need to do the following as automake won't know about the subdir
- add  AC_CONFIG_FILES([src/Makefile]) to configure.ac in the main directory
- echo "SUBDIRS = src" > Makefile.am
- echo "bin_PROGRAMS = main" > src/Makefile.am
Comment 3 Miloslav Trmač 2007-08-09 11:35:32 EDT
Automake does already know about the subdirectory, see e.g.

@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/main.Po@am__quote@

in the generated Makefile.in.  If automake didn't interpret src/main specially,
the line would have to be

@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/src/main.Po@am__quote@

wouldn't it?

Using a separate Makefile for the subdirectory completely defeats the point of
using subdir-objects.
Comment 4 Karsten Hopp 2007-08-13 07:35:57 EDT
do you remember which package had this problem ? I'd remove AC_PROG_LIBTOOL from
configure.ac in this testcase as it isn't required anywhere, but this most
probably won't fix the issues in the original package.
Comment 5 Miloslav Trmač 2007-08-13 07:42:39 EDT
rawhide's audit - but that's irrelevant, IMHO.

I'm reporting this because it is a bug and because it should eventually be
fixed, not because I need a workaround.

Note You need to log in before you can comment on or make changes to this bug.