SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I know this is a middle process for something but I decided to post it there, otherwise is to messy posting all in one Thread.
I had to installed the version libftdi-0.19 simple because there is not ./config file in the 1-1.0 version. I compare several slackware installation script but interpolating from the one 0.19 I notice there is not config file.
Now also let talk here about libusb here when I search on Slackbuilds I found libhid there is not libusb I also went and installed the libusb-1.0.9 from http://www.libusb.org/ but I notice that something try to get going is calling a interface in not in there by the name: "hla" is that has to be with libhid? Thanks
I will use this threat to also post about stlink compilation dough.
looking back at the installation of stlink I noticed there was a usb dev rule which it was not in the systems so I assume what I did just compile but didnt install so I decided to follow another post and after compile run :
makepkg -l y -c n /tmp/stlinkv2-SVN1183-i686-1.tgz
in the other one use -SVN1183 does it mean something?
and the reply is:
Quote:
bash-4.2# makepkg -l y -c n /tmp/stlinkv2-SVN1183-i686-1.tgz
Slackware package maker, version 3.14159.
Searching for symbolic links:
No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.
This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!
Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n
You are using one thread for posting several unrelated questions. The probability is high that you will not get the answers you seek.
As for the stlinkv2 package you created. The content is totally fscked up. If you install that package on your Slackware computer there is a chance that you will render it useless by dumping all the content in the root of your filesystem. Files inside a package are meant to have a path prefixed like /usr or /etc or /lib , while your package has all its stuff directly in the root. Why do you want a directory like "toremove" as part of a package???
About your first post, I have no idea why you would need a "./config" file. Can you post at least some errors so that people can give meaningful answers.
Apt-get is not a Slackware tool, forget about that.
You are using one thread for posting several unrelated questions. The probability is high that you will not get the answers you seek.
As for the stlinkv2 package you created. The content is totally fscked up. If you install that package on your Slackware computer there is a chance that you will render it useless by dumping all the content in the root of your filesystem. Files inside a package are meant to have a path prefixed like /usr or /etc or /lib , while your package has all its stuff directly in the root. Why do you want a directory like "toremove" as part of a package???
About your first post, I have no idea why you would need a "./config" file. Can you post at least some errors so that people can give meaningful answers.
Apt-get is not a Slackware tool, forget about that.
Eric
Sorry I checked and I already droop the package... :-(
You are kind of right I looked other package from the slack-build and none file are outside folders.
But remember I didnt create this package manually. As its on the post I run a command like:
Code:
makepkg -l y -c n /tmp/stlinkv2-SVN1183-i686-1.tgz
And to get it in I used
Code:
installpkg /tmp/stlinkv2-SVN1183-i686-1.tgz
And it display like 3 likes (checking bla bla) and than is it.
If I search for the package is say its installed.
I wanted to attached the package here but I cannot attach it and the Print Screen is not working.
I noticed that the installed package has installed the files in the file sys/ folder ufff :-(
Removing package /var/log/packages/stlinkv2-SVN1183-i686-1...
Removing files:
--> /.git/HEAD was found in another package. Skipping.
--> /.git/config was found in another package. Skipping.
--> /.git/description was found in another package. Skipping.
--> /.git/hooks/applypatch-msg.sample was found in another package. Skipping.
--> /.git/hooks/commit-msg.sample was found in another package. Skipping.
--> /.git/hooks/post-update.sample was found in another package. Skipping.
--> /.git/hooks/pre-applypatch.sample was found in another package. Skipping.
--> /.git/hooks/pre-commit.sample was found in another package. Skipping.
--> /.git/hooks/pre-rebase.sample was found in another package. Skipping.
--> /.git/hooks/prepare-commit-msg.sample was found in another package. Skipping.
--> /.git/hooks/update.sample was found in another package. Skipping.
--> /.git/index was found in another package. Skipping.
--> /.git/info/exclude was found in another package. Skipping.
--> /.git/logs/HEAD was found in another package. Skipping.
--> /.git/logs/refs/heads/master was found in another package. Skipping.
--> /.git/logs/refs/remotes/origin/HEAD was found in another package. Skipping.
--> /.git/packed-refs was found in another package. Skipping.
--> /.git/refs/heads/master was found in another package. Skipping.
--> /.git/refs/remotes/origin/HEAD was found in another package. Skipping.
--> /.gitignore was found in another package. Skipping.
--> /AUTHORS was found in another package. Skipping.
--> /COPYING was found in another package. Skipping.
--> /ChangeLog was found in another package. Skipping.
--> /INSTALL was found in another package. Skipping.
--> /Makefile was found in another package. Skipping.
--> /Makefile.am was found in another package. Skipping.
--> /Makefile.in was found in another package. Skipping.
--> /NEWS was found in another package. Skipping.
--> /README was found in another package. Skipping.
--> /TODO was found in another package. Skipping.
--> /aclocal.m4 was found in another package. Skipping.
--> /autom4te.cache/output.0 was found in another package. Skipping.
--> /autom4te.cache/output.1 was found in another package. Skipping.
--> /autom4te.cache/requests was found in another package. Skipping.
--> /autom4te.cache/traces.0 was found in another package. Skipping.
--> /autom4te.cache/traces.1 was found in another package. Skipping.
--> /compile was found in another package. Skipping.
--> /config.guess was found in another package. Skipping.
--> /config.log was found in another package. Skipping.
--> /config.status was found in another package. Skipping.
--> /config.sub was found in another package. Skipping.
--> /configure was found in another package. Skipping.
--> /configure.ac was found in another package. Skipping.
--> /depcomp was found in another package. Skipping.
--> /install-sh was found in another package. Skipping.
--> /missing was found in another package. Skipping.
--> Deleting /.cproject
--> Deleting /.git/objects/pack/pack-b48e819dc7cfed2e14a949228296788ff1fbbda9.idx
--> Deleting /.git/objects/pack/pack-b48e819dc7cfed2e14a949228296788ff1fbbda9.pack
--> Deleting /49-stlinkv1.rules
--> Deleting /49-stlinkv2.rules
--> Deleting /ACKNOWLEDGMENTS
--> Deleting /LICENSE
--> Deleting /autogen.sh
--> Deleting /doc/tutorial/tutorial.pdf
--> Deleting /doc/tutorial/tutorial.tex
--> Deleting /flash/.deps/.dirstamp
--> Deleting /flash/.deps/st_flash-main.Po
--> Deleting /flash/.dirstamp
--> Deleting /flash/Makefile
--> Deleting /flash/main.c
--> Deleting /flash/st_flash-main.o
--> Deleting /flashloaders/stm32f0.s
--> Deleting /flashloaders/stm32f4.s
--> Deleting /gdbserver/.deps/.dirstamp
--> Deleting /gdbserver/.deps/st_util-gdb-remote.Po
--> Deleting /gdbserver/.deps/st_util-gdb-server.Po
--> Deleting /gdbserver/.dirstamp
--> Deleting /gdbserver/Makefile
--> Deleting /gdbserver/gdb-remote.c
--> Deleting /gdbserver/gdb-remote.h
--> Deleting /gdbserver/gdb-server.c
--> Deleting /gdbserver/st_util-gdb-remote.o
--> Deleting /gdbserver/st_util-gdb-server.o
--> Deleting /libstlink.a
--> Deleting /mingw/.deps/.dirstamp
--> Deleting /mingw/.deps/st_util-mingw.Po
--> Deleting /mingw/.dirstamp
--> Deleting /mingw/mingw.c
--> Deleting /mingw/mingw.h
--> Deleting /mingw/st_util-mingw.o
--> Deleting /src/.deps/.dirstamp
--> Deleting /src/.deps/libstlink_a-stlink-common.Po
--> Deleting /src/.deps/libstlink_a-stlink-sg.Po
--> Deleting /src/.deps/libstlink_a-stlink-usb.Po
--> Deleting /src/.deps/libstlink_a-uglylogging.Po
--> Deleting /src/.deps/mmap.Po
--> Deleting /src/.dirstamp
--> Deleting /src/libstlink_a-stlink-common.o
--> Deleting /src/libstlink_a-stlink-sg.o
--> Deleting /src/libstlink_a-stlink-usb.o
--> Deleting /src/libstlink_a-uglylogging.o
--> Deleting /src/mmap.c
--> Deleting /src/mmap.h
--> Deleting /src/stlink-common.c
--> Deleting /src/stlink-common.h
--> Deleting /src/stlink-sg.c
--> Deleting /src/stlink-sg.h
--> Deleting /src/stlink-usb.c
--> Deleting /src/stlink-usb.h
--> Deleting /src/test_sg.c
--> Deleting /src/test_usb.c
--> Deleting /src/uglylogging.c
--> Deleting /src/uglylogging.h
--> Deleting /st-flash
--> Deleting /st-util
--> Deleting /stlink_v1.modprobe.conf
--> Deleting /stlinkv1_macosx_driver/Makefile
--> Deleting /stlinkv1_macosx_driver/README
--> Deleting /stlinkv1_macosx_driver/osx.tar.gz
--> Deleting /toremove/stm32l/src/stlink-hw.h
--> Deleting /toremove/stm32l_notes/USB_traces.ods
--> Deleting /toremove/stm32l_notes/break.csv
--> Deleting /toremove/stm32l_notes/device_connection.csv
--> Deleting /toremove/stm32l_notes/go.csv
--> Deleting /toremove/stm32l_notes/notes
--> Deleting /toremove/stm32l_notes/read_memory.csv
--> Deleting /toremove/stm32l_notes/step_into.csv
--> Deleting empty directory /toremove/stm32l_notes/
--> Deleting empty directory /toremove/stm32l/src/
--> Deleting empty directory /toremove/stm32l/
--> Deleting empty directory /toremove/
--> Deleting empty directory /stlinkv1_macosx_driver/
--> Deleting empty directory /mingw/.deps/
--> Deleting empty directory /mingw/
--> Deleting empty directory /gdbserver/.deps/
--> Deleting empty directory /gdbserver/
--> Deleting empty directory /flashloaders/
--> Deleting empty directory /flash/.deps/
--> Deleting empty directory /flash/
--> Deleting empty directory /doc/tutorial/
Should I be worrying about those skipping on deleting?
Those file where in the package and now it said has been found in another package, have I've just messed it up?
Quote:
--> /.git/HEAD was found in another package. Skipping.
--> /.git/config was found in another package. Skipping.
--> /.git/description was found in another package. Skipping.
--> /.git/hooks/applypatch-msg.sample was found in another package. Skipping.
--> /.git/hooks/commit-msg.sample was found in another package. Skipping.
--> /.git/hooks/post-update.sample was found in another package. Skipping.
--> /.git/hooks/pre-applypatch.sample was found in another package. Skipping.
--> /.git/hooks/pre-commit.sample was found in another package. Skipping.
--> /.git/hooks/pre-rebase.sample was found in another package. Skipping.
--> /.git/hooks/prepare-commit-msg.sample was found in another package. Skipping.
--> /.git/hooks/update.sample was found in another package. Skipping.
--> /.git/index was found in another package. Skipping.
--> /.git/info/exclude was found in another package. Skipping.
--> /.git/logs/HEAD was found in another package. Skipping.
--> /.git/logs/refs/heads/master was found in another package. Skipping.
--> /.git/logs/refs/remotes/origin/HEAD was found in another package. Skipping.
--> /.git/packed-refs was found in another package. Skipping.
--> /.git/refs/heads/master was found in another package. Skipping.
--> /.git/refs/remotes/origin/HEAD was found in another package. Skipping.
--> /.gitignore was found in another package. Skipping.
--> /AUTHORS was found in another package. Skipping.
--> /COPYING was found in another package. Skipping.
--> /ChangeLog was found in another package. Skipping.
--> /INSTALL was found in another package. Skipping.
--> /Makefile was found in another package. Skipping.
--> /Makefile.am was found in another package. Skipping.
--> /Makefile.in was found in another package. Skipping.
--> /NEWS was found in another package. Skipping.
--> /README was found in another package. Skipping.
--> /TODO was found in another package. Skipping.
--> /aclocal.m4 was found in another package. Skipping.
--> /autom4te.cache/output.0 was found in another package. Skipping.
--> /autom4te.cache/output.1 was found in another package. Skipping.
--> /autom4te.cache/requests was found in another package. Skipping.
--> /autom4te.cache/traces.0 was found in another package. Skipping.
--> /autom4te.cache/traces.1 was found in another package. Skipping.
--> /compile was found in another package. Skipping.
--> /config.guess was found in another package. Skipping.
--> /config.log was found in another package. Skipping.
--> /config.status was found in another package. Skipping.
--> /config.sub was found in another package. Skipping.
--> /configure was found in another package. Skipping.
--> /configure.ac was found in another package. Skipping.
--> /depcomp was found in another package. Skipping.
--> /install-sh was found in another package. Skipping.
--> /missing was found in another package. Skipping.
On a folder
git clone https://github.com/texane/stlink.git
./autogen.sh
./configure
make
mkdir /tmp/test
make install DESTDIR=/tmp/test
makepkg -l y -c n /tmp/stlinkv2-SVN1183-i686-1.tgz
installpkg /tmp/stlinkv2-SVN1183-i686-1.tgz
git clone https://github.com/texane/stlink.git
./autogen.sh
./configure
make
mkdir /tmp/test
make install DESTDIR=/tmp/test
cd /tmp/test
makepkg -l y -c n /tmp/stlinkv2-SVN1183-i686-1.tgz
installpkg /tmp/stlinkv2-SVN1183-i686-1.tgz
I've noticed that I did the same mistake with openocd :-(, that is why those files could not be deleted. Now all those files on the "/" folder has disappear after removing openocd.
Now I think I have a lack on my understanding about slackware package. Should the package contain all the files to be use?
this dough comes because if I I do the suggestion in post #10
I get only a package which is like:
Code:
bash-4.2# makepkg -l y -c n /tmp/stlinkv2-SVN1183-i686-1.tgz
Slackware package maker, version 3.14159.
Searching for symbolic links:
No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.
This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!
Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n
Creating Slackware package: /tmp/stlinkv2-SVN1183-i686-1.tgz
./
usr/
usr/local/
usr/local/bin/
usr/local/bin/st-util
usr/local/bin/st-flash
Slackware package /tmp/stlinkv2-SVN1183-i686-1.tgz created.
That is only two files, what should I do with the folder with actually all the files called stlink?
Apparently only those two files were built and installed in your DESTDIR. So something must have gone wrong during the earlier .configure/make steps. Did you get any error messages?
Quote:
Originally Posted by PeterUK
That is only two files, what should I do with the folder with actually all the files called stlink?
After successfully building a package from the content in your DESTDIR you can discard all other files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.