This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Units and Cygport

Hi everyone,

Sorry if this is OT - I don't mind being directed to the right place...

I'm trying to create my first cygport package - an update of units. 
Unfortunately I've run aground...

I copied the /usr/share/cygport/sample.cygport to units-1.86-1.cygport and
edited it to be:

DESCRIPTION="Converts between different systems of units."


cygport units-1.86-1 download

correctly retrieves the package and prep works although I get an 'info'
warning about "CYGPORT SCRIPT signature missing"?

cygport units-1.86-1 compile

has no problems, but

cygport units-1.86-1 install

fails with...

>>> Installing units-1.86-1
mkdir /home/John/units-1.86-1/inst/usr
mkdir /home/John/units-1.86-1/inst/usr
mkdir: cannot create directory `/home/John/units-1.86-1/inst/usr': File
mkdir /home/John/units-1.86-1/inst/usr/share
mkdir /home/John/units-1.86-1/inst/usr/share
mkdir /home/John/units-1.86-1/inst/usr/share/info
mkdir: cannot create directory `/home/John/units-1.86-1/inst/usr/share':
File exists
mkdir /home/John/units-1.86-1/inst/usr/share/man
make: *** [/home/John/units-1.86-1/inst/usr/share/info/] Error 1
make: *** Waiting for unfinished jobs....
mkdir /home/John/units-1.86-1/inst/usr/share/man/man1
make: *** [install-man] Error 1
*** ERROR: make install DESTDIR failed

doing the make install 'manually' works fine...

$ make install
./mkinstalldirs /usr/local/share/man/man1
mkdir /usr/local/share/man
mkdir /usr/local/share/man/man1
/usr/bin/install -c -m 644 units.1 /usr/local/share/man/man1/`echo
units|sed 's,x,x,'`.1
./mkinstalldirs /usr/local/share/info
mkdir /usr/local/share/info
if test -f; then d=.; \
            else d=.; fi; \
        /usr/bin/install -c -m 644 $d/
/usr/local/share/info/; \
# Run install-info only if it exists.
if test -f /usr/local/share/info/dir; then \
          if /bin/sh -c 'install-info --version' \
               >/dev/null 2>&1; then \
            install-info --dir-file=/usr/local/share/info/dir \
                       /usr/local/share/info/; \
          else true; fi \
        else true; fi
./mkinstalldirs /usr/local/bin /usr/local/share
/usr/bin/install -c units /usr/local/bin/`echo units|sed 's,x,x,'`
/usr/bin/install -c -m 644 ./units.dat /usr/local/share/units.dat

I assume that at this point I need to edit the .cygport script and change
how the src_install() function works, but I'm at a loss and I can't find
sufficient information at a dumb enough level for me to work it out.

Can anyone help?  Sorry about the long post.



PS, is it the done thing to include the .cygport file in the build?

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]