snar / bgpq3

bgpq3
BSD 2-Clause "Simplified" License
362 stars 53 forks source link

Files not correctly installed with --prefix #49

Closed mordner closed 4 years ago

mordner commented 5 years ago

Not quite sure if this is a specific problem to Ubuntu or not but make install with --prefix puts the files in wrong places for me and so I can't use GNU stow for keeping different versions.

# mkdir /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac
$ ./configure --prefix=/usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/
$ make
$ sudo make install
/usr/bin/install -c -c -s -m 755 bgpq3 /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/bin
if test ! -d /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/man/man8 ; then mkdir -p /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/man/man8 ; fi
/usr/bin/install -c -m 644 bgpq3.8 /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/man/man8

Can't stow because it needs 'man' inside 'share'. Works when I create it like this: # /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/share/man/man8/bgpq3.8

Binary is installed as 'bin' instead of 'bin/bgpq3'.

$ find /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/ -type f
/usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/bin
/usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/man/man8/bgpq3.8
$ file /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/bin
/usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/bin: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=d8144dad429c5cab2bc5c2fd531d4d54d8c39cd8, stripped

If more details are needed please let me know.

snar commented 5 years ago

On Thu, Jan 31, 2019 at 11:12:07PM -0800, mordner wrote:

Not quite sure if this is a specific problem to Ubuntu or not but make install with --prefix puts the files in wrong places for me and so I can't use GNU stow for keeping different versions.

Problem with wrong binary name shall be fixed since last saturday, as for man page: looks like you already know how to fix it yourself.

mkdir /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac

$ ./configure --prefix=/usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/ $ make $ sudo make install /usr/bin/install -c -c -s -m 755 bgpq3 /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/bin if test ! -d /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/man/man8 ; then mkdir -p /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/man/man8 ; fi /usr/bin/install -c -m 644 bgpq3.8 /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/man/man8

Can't stow because it needs 'man' inside 'share'. Works when I create it like this:

/usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/share/man/man8

/bgpq3.8

Binary is installed as 'bin' instead of 'bin/bgpq3'.

$ find /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/ -type f /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/bin /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/man/man8/bgpq3.8 $ file /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/bin /usr/local/stow/bgpq3-07246c929b939be9ac44c4b8b23ea635114e33ac/bin: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=d8144dad429c5cab2bc5c2fd531d4d54d8c39cd8, stripped

If more details are needed please let me know.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.*

snar commented 4 years ago

Closing for inactivity