[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: In a single binary source package how does one fail to install some files? It did not work



On Wednesday, August 17, 2011 04:46:30 AM Arno Töll wrote:
> Hi,
> 
> On 17.08.2011 05:52, Vincent Cheng wrote:
> > override_dh_install:
> > 	find . -name "*.la" -delete
> > 	dh_install
> 
> a single binary package most likely installs a single .la file only, so
> a recursive search seems unneeded. That said a simple "rm
> path/to/libfoo.la" will do it.
> 
> By the way, dh_install also has a -X option ...
> 
>        -Xitem, --exclude=item
>            Exclude files that contain item anywhere in their filename
> from being installed.

It did not work! The following file failed to delete COPYING LICENSE.TXT
> #!/usr/bin/make -f
> # -*- makefile -*-
> # Sample debian/rules that uses debhelper.
> # This file was originally written by Joey Hess and Craig Small.
> # As a special exception, when this file is copied by dh-make into a
> # dh-make output file, you may use that output file without restriction.
> # This special exception was added by Craig Small in version 0.37 of
> dh-make.
> 
> # Uncomment this to turn on verbose mode.
> #export DH_VERBOSE=1
> 
> %:
> 	dh $@
> 
> override_dh_install:
> 	dh_install --exclude=COPYING --exclude=LICENSE.TXT


But this one did delete the 2 files from the .deb file. What is wrong with --
exclude????? 
> #!/usr/bin/make -f
> # -*- makefile -*-
> # Sample debian/rules that uses debhelper.
> # This file was originally written by Joey Hess and Craig Small.
> # As a special exception, when this file is copied by dh-make into a
> # dh-make output file, you may use that output file without restriction.
> # This special exception was added by Craig Small in version 0.37 of
> dh-make.
> 
> # Uncomment this to turn on verbose mode.
> #export DH_VERBOSE=1
> 
> %:
> 	dh $@
> 
> override_dh_install:
> 	rm debian/swe-standard-data/usr/share/doc/swe-standard-data/COPYING \
> 	debian/swe-standard-data/usr/share/doc/swe-standard-data/LICENSE.TXT
> 	dh_install

Thank you.
-- 
Paul Elliott                               1(512)837-1096
pelliott@BlackPatchPanel.com               PMB 181, 11900 Metric Blvd Suite J
http://www.free.blackpatchpanel.com/pme/   Austin TX 78758-3117

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: