Re: How to deal with arch-specific paths in .install files

2017-05-07 Thread Charles Plessy
Le Wed, May 03, 2017 at 11:36:01AM -0700, Shawn Sörbom a écrit :
> 
> I have a package .install file where a library expects to go into /usr/lib/
> x86_64-gnu/[subdirectory] on amd64 systems. I realize this is not portable. 
> What regex can I use to substitute for the arch directory in my .install file?

Hi Shawn,

you can find an answer (and many alternatives) in the following wiki page:

https://wiki.debian.org/Multiarch/Implementation

Have a nice day,

-- 
Charles Plessy
Tsurumi, Kanagawa, Japan



Re: How to deal with arch-specific paths in .install files

2017-05-04 Thread phil

On 2017-05-03 20:36, Shawn Sörbom wrote:

Hi
I have a package .install file where a library expects to go into 
/usr/lib/
x86_64-gnu/[subdirectory] on amd64 systems. I realize this is not 
portable.
What regex can I use to substitute for the arch directory in my 
.install file?

Thanks,
shawn


I didn't manage to use the install file for this. Globbing is too 
restrictive an there are various subdirs in /usr/lib. I update the rules 
file as below:


---8<---
export DEB_TARGET_GNU_CPU = $(shell dpkg-architecture 
-qDEB_TARGET_GNU_CPU)
export DEB_TARGET_GNU_SYSTEM = $(shell dpkg-architecture 
-qDEB_TARGET_GNU_SYSTEM)


override_dh_install:
dh_install
	dh_install -p  
/usr/lib/$(DEB_TARGET_GNU_CPU)-$(DEB_TARGET_GNU_SYSTEM)/

---8<---

The source_file should not be in the .install file. dh_install will 
install all others files using (among others) the install files content.
Then this very file will be installed using the tuples given by 
dpkg-architecture.


--
Philippe THIERRY.



Re: How to deal with arch-specific paths in .install files

2017-05-03 Thread Rebecca N. Palmer

.install uses shell wildcards, not regexes, so /usr/lib/*/subdirectory

The standard name on amd64 is actually x86_64-linux-gnu 
(https://wiki.debian.org/Multiarch/Tuples).




How to deal with arch-specific paths in .install files

2017-05-03 Thread Shawn Sörbom
Hi
I have a package .install file where a library expects to go into /usr/lib/
x86_64-gnu/[subdirectory] on amd64 systems. I realize this is not portable. 
What regex can I use to substitute for the arch directory in my .install file?
Thanks,
shawn